Lines Matching refs:pm_msg

63 int iwpm_register_pid(struct iwpm_dev_data *pm_msg, u8 nl_client)  in iwpm_register_pid()  argument
94 pm_msg->if_name, IWPM_NLA_REG_IF_NAME); in iwpm_register_pid()
98 pm_msg->dev_name, IWPM_NLA_REG_IBDEV_NAME); in iwpm_register_pid()
109 __func__, pm_msg->dev_name, pm_msg->if_name, iwpm_ulib_name); in iwpm_register_pid()
118 nlmsg_request->req_buffer = pm_msg; in iwpm_register_pid()
143 int iwpm_add_mapping(struct iwpm_sa_data *pm_msg, u8 nl_client) in iwpm_add_mapping() argument
177 &pm_msg->loc_addr, IWPM_NLA_MANAGE_ADDR); in iwpm_add_mapping()
182 if (pm_msg->flags && iwpm_ulib_version == IWPM_UABI_VERSION_MIN) { in iwpm_add_mapping()
187 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &pm_msg->flags, in iwpm_add_mapping()
194 nlmsg_request->req_buffer = pm_msg; in iwpm_add_mapping()
226 int iwpm_add_and_query_mapping(struct iwpm_sa_data *pm_msg, u8 nl_client) in iwpm_add_and_query_mapping() argument
263 &pm_msg->loc_addr, IWPM_NLA_QUERY_LOCAL_ADDR); in iwpm_add_and_query_mapping()
267 &pm_msg->rem_addr, IWPM_NLA_QUERY_REMOTE_ADDR); in iwpm_add_and_query_mapping()
272 if (pm_msg->flags && iwpm_ulib_version == IWPM_UABI_VERSION_MIN) { in iwpm_add_and_query_mapping()
277 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &pm_msg->flags, in iwpm_add_and_query_mapping()
284 nlmsg_request->req_buffer = pm_msg; in iwpm_add_and_query_mapping()
389 struct iwpm_dev_data *pm_msg; in iwpm_register_pid_cb() local
407 pm_msg = nlmsg_request->req_buffer; in iwpm_register_pid_cb()
414 if (strcmp(pm_msg->dev_name, dev_name) || in iwpm_register_pid_cb()
459 struct iwpm_sa_data *pm_msg; in iwpm_add_mapping_cb() local
481 pm_msg = nlmsg_request->req_buffer; in iwpm_add_mapping_cb()
487 if (iwpm_compare_sockaddr(local_sockaddr, &pm_msg->loc_addr)) { in iwpm_add_mapping_cb()
497 memcpy(&pm_msg->mapped_loc_addr, mapped_sockaddr, in iwpm_add_mapping_cb()
499 iwpm_print_sockaddr(&pm_msg->loc_addr, in iwpm_add_mapping_cb()
501 iwpm_print_sockaddr(&pm_msg->mapped_loc_addr, in iwpm_add_mapping_cb()
538 struct iwpm_sa_data *pm_msg; in iwpm_add_and_query_mapping_cb() local
560 pm_msg = nlmsg_request->req_buffer; in iwpm_add_and_query_mapping_cb()
576 if (iwpm_compare_sockaddr(local_sockaddr, &pm_msg->loc_addr) || in iwpm_add_and_query_mapping_cb()
577 iwpm_compare_sockaddr(remote_sockaddr, &pm_msg->rem_addr)) { in iwpm_add_and_query_mapping_cb()
589 memcpy(&pm_msg->mapped_loc_addr, mapped_loc_sockaddr, in iwpm_add_and_query_mapping_cb()
591 memcpy(&pm_msg->mapped_rem_addr, mapped_rem_sockaddr, in iwpm_add_and_query_mapping_cb()
594 iwpm_print_sockaddr(&pm_msg->loc_addr, in iwpm_add_and_query_mapping_cb()
596 iwpm_print_sockaddr(&pm_msg->mapped_loc_addr, in iwpm_add_and_query_mapping_cb()
598 iwpm_print_sockaddr(&pm_msg->rem_addr, in iwpm_add_and_query_mapping_cb()
600 iwpm_print_sockaddr(&pm_msg->mapped_rem_addr, in iwpm_add_and_query_mapping_cb()