Lines Matching refs:nlh
67 struct nlmsghdr *nlh; in iwpm_register_pid() local
75 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REG_PID, &nlh, nl_client); in iwpm_register_pid()
80 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_register_pid()
81 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid()
90 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_REG_PID_SEQ); in iwpm_register_pid()
93 ret = ibnl_put_attr(skb, nlh, IFNAMSIZ, in iwpm_register_pid()
97 ret = ibnl_put_attr(skb, nlh, IWPM_DEVNAME_SIZE, in iwpm_register_pid()
101 ret = ibnl_put_attr(skb, nlh, IWPM_ULIBNAME_SIZE, in iwpm_register_pid()
106 nlmsg_end(skb, nlh); in iwpm_register_pid()
147 struct nlmsghdr *nlh; in iwpm_add_mapping() local
158 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_ADD_MAPPING, &nlh, nl_client); in iwpm_add_mapping()
163 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_add_mapping()
164 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_add_mapping()
172 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, in iwpm_add_mapping()
176 ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage), in iwpm_add_mapping()
187 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &pm_msg->flags, in iwpm_add_mapping()
193 nlmsg_end(skb, nlh); in iwpm_add_mapping()
230 struct nlmsghdr *nlh; in iwpm_add_and_query_mapping() local
242 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_QUERY_MAPPING, &nlh, nl_client); in iwpm_add_and_query_mapping()
247 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_add_and_query_mapping()
248 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, in iwpm_add_and_query_mapping()
258 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, in iwpm_add_and_query_mapping()
262 ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage), in iwpm_add_and_query_mapping()
266 ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage), in iwpm_add_and_query_mapping()
277 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &pm_msg->flags, in iwpm_add_and_query_mapping()
283 nlmsg_end(skb, nlh); in iwpm_add_and_query_mapping()
317 struct nlmsghdr *nlh; in iwpm_remove_mapping() local
328 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REMOVE_MAPPING, &nlh, nl_client); in iwpm_remove_mapping()
335 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_remove_mapping()
337 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, in iwpm_remove_mapping()
341 ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage), in iwpm_remove_mapping()
346 nlmsg_end(skb, nlh); in iwpm_remove_mapping()
423 iwpm_user_pid = cb->nlh->nlmsg_pid; in iwpm_register_pid_cb()
428 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_register_pid_cb()
472 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_add_mapping_cb()
551 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_add_and_query_mapping_cb()
573 __func__, cb->nlh->nlmsg_pid, msg_seq); in iwpm_add_and_query_mapping_cb()
634 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_remote_info_cb()
635 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_remote_info_cb()
716 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_info_cb()
718 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_mapping_info_cb()
719 iwpm_user_pid = cb->nlh->nlmsg_pid; in iwpm_mapping_info_cb()
760 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_ack_mapping_info_cb()
779 int nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_error_cb()
800 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_mapping_error_cb()
838 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_hello_cb()
840 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_hello_cb()
843 iwpm_user_pid = cb->nlh->nlmsg_pid; in iwpm_hello_cb()