Lines Matching refs:nlh

1015 static int nldev_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  in nldev_get_doit()  argument
1024 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_get_doit()
1041 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_get_doit()
1049 nlmsg_end(msg, nlh); in nldev_get_doit()
1061 static int nldev_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_set_doit() argument
1069 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_set_doit()
1120 struct nlmsghdr *nlh; in _nldev_get_dumpit() local
1125 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in _nldev_get_dumpit()
1130 nlmsg_cancel(skb, nlh); in _nldev_get_dumpit()
1134 nlmsg_end(skb, nlh); in _nldev_get_dumpit()
1151 static int nldev_port_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_port_get_doit() argument
1161 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_port_get_doit()
1185 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_port_get_doit()
1193 nlmsg_end(msg, nlh); in nldev_port_get_doit()
1211 struct nlmsghdr *nlh; in nldev_port_get_dumpit() local
1217 err = nlmsg_parse_deprecated(cb->nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_port_get_dumpit()
1243 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, in nldev_port_get_dumpit()
1244 cb->nlh->nlmsg_seq, in nldev_port_get_dumpit()
1250 nlmsg_cancel(skb, nlh); in nldev_port_get_dumpit()
1254 nlmsg_end(skb, nlh); in nldev_port_get_dumpit()
1263 static int nldev_res_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_res_get_doit() argument
1272 ret = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_res_get_doit()
1288 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_res_get_doit()
1296 nlmsg_end(msg, nlh); in nldev_res_get_doit()
1313 struct nlmsghdr *nlh; in _nldev_res_get_dumpit() local
1318 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in _nldev_res_get_dumpit()
1323 nlmsg_cancel(skb, nlh); in _nldev_res_get_dumpit()
1326 nlmsg_end(skb, nlh); in _nldev_res_get_dumpit()
1401 static int res_get_common_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in res_get_common_doit() argument
1415 ret = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in res_get_common_doit()
1452 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in res_get_common_doit()
1454 RDMA_NL_GET_OP(nlh->nlmsg_type)), in res_get_common_doit()
1469 nlmsg_end(msg, nlh); in res_get_common_doit()
1497 struct nlmsghdr *nlh; in res_get_common_dumpit() local
1502 err = nlmsg_parse_deprecated(cb->nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in res_get_common_dumpit()
1531 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in res_get_common_dumpit()
1533 RDMA_NL_GET_OP(cb->nlh->nlmsg_type)), in res_get_common_dumpit()
1591 nlmsg_end(skb, nlh); in res_get_common_dumpit()
1608 nlmsg_cancel(skb, nlh); in res_get_common_dumpit()
1623 struct nlmsghdr *nlh, \
1626 return res_get_common_doit(skb, nlh, extack, type, \
1677 static int nldev_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_newlink() argument
1688 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_newlink()
1724 static int nldev_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_dellink() argument
1732 err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_dellink()
1751 static int nldev_get_chardev(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_get_chardev() argument
1762 err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, nldev_policy, in nldev_get_chardev()
1794 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_get_chardev()
1819 nlmsg_end(msg, nlh); in nldev_get_chardev()
1835 static int nldev_sys_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_sys_get_doit() argument
1842 err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_sys_get_doit()
1851 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_sys_get_doit()
1875 nlmsg_end(msg, nlh); in nldev_sys_get_doit()
1879 static int nldev_set_sys_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_set_sys_set_doit() argument
1886 err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_set_sys_set_doit()
1993 static int nldev_stat_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_stat_set_doit() argument
2002 ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, nldev_policy, in nldev_stat_set_doit()
2030 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_stat_set_doit()
2052 nlmsg_end(msg, nlh); in nldev_stat_set_doit()
2063 static int nldev_stat_del_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_stat_del_doit() argument
2072 ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_stat_del_doit()
2099 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_stat_del_doit()
2118 nlmsg_end(msg, nlh); in nldev_stat_del_doit()
2130 struct nlmsghdr *nlh, in stat_get_doit_default_counter() argument
2168 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in stat_get_doit_default_counter()
2207 nlmsg_end(msg, nlh); in stat_get_doit_default_counter()
2222 static int stat_get_doit_qp(struct sk_buff *skb, struct nlmsghdr *nlh, in stat_get_doit_qp() argument
2234 return nldev_res_get_counter_doit(skb, nlh, extack); in stat_get_doit_qp()
2257 nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in stat_get_doit_qp()
2279 nlmsg_end(msg, nlh); in stat_get_doit_qp()
2290 static int nldev_stat_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_stat_get_doit() argument
2296 ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_stat_get_doit()
2302 return stat_get_doit_default_counter(skb, nlh, extack, tb); in nldev_stat_get_doit()
2306 ret = stat_get_doit_qp(skb, nlh, extack, tb); in nldev_stat_get_doit()
2309 ret = res_get_common_doit(skb, nlh, extack, RDMA_RESTRACK_MR, in nldev_stat_get_doit()
2326 ret = nlmsg_parse(cb->nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_stat_get_dumpit()
2348 struct nlmsghdr *nlh, in nldev_stat_get_counter_status_doit() argument
2358 ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, in nldev_stat_get_counter_status_doit()
2387 nlh = nlmsg_put( in nldev_stat_get_counter_status_doit()
2388 msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in nldev_stat_get_counter_status_doit()
2424 nlmsg_end(msg, nlh); in nldev_stat_get_counter_status_doit()