Lines Matching refs:nlh

482 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,  in iwpm_create_nlmsg()  argument
491 if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op, in iwpm_create_nlmsg()
509 ret = nlmsg_validate_deprecated(cb->nlh, nlh_len, policy_max - 1, in iwpm_parse_nlmsg()
515 ret = nlmsg_parse_deprecated(cb->nlh, nlh_len, nltb, policy_max - 1, in iwpm_parse_nlmsg()
625 struct nlmsghdr *nlh; in send_mapinfo_num() local
630 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_MAPINFO_NUM, &nlh, nl_client); in send_mapinfo_num()
635 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in send_mapinfo_num()
638 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_MAPINFO_SEQ); in send_mapinfo_num()
641 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in send_mapinfo_num()
646 nlmsg_end(skb, nlh); in send_mapinfo_num()
664 struct nlmsghdr *nlh = NULL; in send_nlmsg_done() local
669 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in send_nlmsg_done()
675 nlh->nlmsg_type = NLMSG_DONE; in send_nlmsg_done()
686 struct nlmsghdr *nlh; in iwpm_send_mapinfo() local
707 nlh = NULL; in iwpm_send_mapinfo()
708 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in iwpm_send_mapinfo()
715 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
722 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
730 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in iwpm_send_mapinfo()
737 nlmsg_end(skb, nlh); in iwpm_send_mapinfo()
744 nlmsg_bytes += nlh->nlmsg_len; in iwpm_send_mapinfo()
747 if (NLMSG_GOODSIZE - nlmsg_bytes < nlh->nlmsg_len * 2) { in iwpm_send_mapinfo()
808 struct nlmsghdr *nlh; in iwpm_send_hello() local
812 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_HELLO, &nlh, nl_client); in iwpm_send_hello()
817 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_send_hello()
819 ret = ibnl_put_attr(skb, nlh, sizeof(u16), &abi_version, in iwpm_send_hello()
823 nlmsg_end(skb, nlh); in iwpm_send_hello()