Lines Matching refs:nlh

438 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,  in iwpm_create_nlmsg()  argument
447 if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op, in iwpm_create_nlmsg()
465 ret = nlmsg_validate_deprecated(cb->nlh, nlh_len, policy_max - 1, in iwpm_parse_nlmsg()
471 ret = nlmsg_parse_deprecated(cb->nlh, nlh_len, nltb, policy_max - 1, in iwpm_parse_nlmsg()
581 struct nlmsghdr *nlh; in send_mapinfo_num() local
586 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_MAPINFO_NUM, &nlh, nl_client); in send_mapinfo_num()
591 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in send_mapinfo_num()
594 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_MAPINFO_SEQ); in send_mapinfo_num()
597 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in send_mapinfo_num()
602 nlmsg_end(skb, nlh); in send_mapinfo_num()
620 struct nlmsghdr *nlh = NULL; in send_nlmsg_done() local
625 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
663 nlh = NULL; in iwpm_send_mapinfo()
664 if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client, in iwpm_send_mapinfo()
671 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
678 ret = ibnl_put_attr(skb, nlh, in iwpm_send_mapinfo()
686 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in iwpm_send_mapinfo()
693 nlmsg_end(skb, nlh); in iwpm_send_mapinfo()
700 nlmsg_bytes += nlh->nlmsg_len; in iwpm_send_mapinfo()
703 if (NLMSG_GOODSIZE - nlmsg_bytes < nlh->nlmsg_len * 2) { in iwpm_send_mapinfo()
764 struct nlmsghdr *nlh; in iwpm_send_hello() local
768 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_HELLO, &nlh, nl_client); in iwpm_send_hello()
773 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_send_hello()
775 ret = ibnl_put_attr(skb, nlh, sizeof(u16), &abi_version, in iwpm_send_hello()
779 nlmsg_end(skb, nlh); in iwpm_send_hello()