Lines Matching refs:nlh
450 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh, in iwpm_create_nlmsg() argument
460 if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op, in iwpm_create_nlmsg()
478 ret = nlmsg_validate(cb->nlh, nlh_len, policy_max-1, nlmsg_policy); in iwpm_parse_nlmsg()
483 ret = nlmsg_parse(cb->nlh, nlh_len, nltb, policy_max-1, nlmsg_policy); in iwpm_parse_nlmsg()
592 struct nlmsghdr *nlh; in send_mapinfo_num() local
597 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_MAPINFO_NUM, &nlh, nl_client); in send_mapinfo_num()
602 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in send_mapinfo_num()
605 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_MAPINFO_SEQ); in send_mapinfo_num()
608 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in send_mapinfo_num()
612 ret = ibnl_unicast(skb, nlh, iwpm_pid); in send_mapinfo_num()
629 struct nlmsghdr *nlh = NULL; in send_nlmsg_done() local
634 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in send_nlmsg_done()
639 nlh->nlmsg_type = NLMSG_DONE; in send_nlmsg_done()
650 struct nlmsghdr *nlh; in iwpm_send_mapinfo() local
670 nlh = NULL; in iwpm_send_mapinfo()
671 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in iwpm_send_mapinfo()
678 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
685 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
697 nlmsg_bytes += nlh->nlmsg_len; in iwpm_send_mapinfo()
700 if (NLMSG_GOODSIZE - nlmsg_bytes < nlh->nlmsg_len * 2) { in iwpm_send_mapinfo()