Lines Matching refs:nlh
442 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh, in iwpm_create_nlmsg() argument
452 if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op, in iwpm_create_nlmsg()
470 ret = nlmsg_validate(cb->nlh, nlh_len, policy_max-1, nlmsg_policy); in iwpm_parse_nlmsg()
475 ret = nlmsg_parse(cb->nlh, nlh_len, nltb, policy_max-1, nlmsg_policy); in iwpm_parse_nlmsg()
584 struct nlmsghdr *nlh; in send_mapinfo_num() local
589 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_MAPINFO_NUM, &nlh, nl_client); in send_mapinfo_num()
594 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in send_mapinfo_num()
597 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_MAPINFO_SEQ); in send_mapinfo_num()
600 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in send_mapinfo_num()
604 ret = ibnl_unicast(skb, nlh, iwpm_pid); in send_mapinfo_num()
621 struct nlmsghdr *nlh = NULL; in send_nlmsg_done() local
626 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in send_nlmsg_done()
631 nlh->nlmsg_type = NLMSG_DONE; in send_nlmsg_done()
642 struct nlmsghdr *nlh; in iwpm_send_mapinfo() local
662 nlh = NULL; in iwpm_send_mapinfo()
663 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in iwpm_send_mapinfo()
670 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
677 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
689 nlmsg_bytes += nlh->nlmsg_len; in iwpm_send_mapinfo()
692 if (NLMSG_GOODSIZE - nlmsg_bytes < nlh->nlmsg_len * 2) { in iwpm_send_mapinfo()