Lines Matching refs:cmd
109 if (op->policy || op->cmd < family->resv_start_op) in genl_op_fill_in_reject_policy()
150 u32 cmd; member
167 static int genl_get_cmd_full(u32 cmd, const struct genl_family *family, in genl_get_cmd_full() argument
173 if (family->ops[i].cmd == cmd) { in genl_get_cmd_full()
187 op->cmd = family->small_ops[i].cmd; in genl_op_from_small()
198 static int genl_get_cmd_small(u32 cmd, const struct genl_family *family, in genl_get_cmd_small() argument
204 if (family->small_ops[i].cmd == cmd) { in genl_get_cmd_small()
241 genl_get_cmd_split(u32 cmd, u8 flag, const struct genl_family *family, in genl_get_cmd_split() argument
247 if (family->split_ops[i].cmd == cmd && in genl_get_cmd_split()
286 op->cmd = full->cmd; in genl_cmd_full_to_split()
299 genl_get_cmd(u32 cmd, u8 flags, const struct genl_family *family, in genl_get_cmd() argument
305 err = genl_get_cmd_full(cmd, family, &full); in genl_get_cmd()
307 err = genl_get_cmd_small(cmd, family, &full); in genl_get_cmd()
312 err = genl_get_cmd_split(cmd, flags, family, op); in genl_get_cmd()
322 genl_get_cmd_both(u32 cmd, const struct genl_family *family, in genl_get_cmd_both() argument
327 err1 = genl_get_cmd(cmd, GENL_CMD_CAP_DO, family, doit); in genl_get_cmd_both()
328 err2 = genl_get_cmd(cmd, GENL_CMD_CAP_DUMP, family, dumpit); in genl_get_cmd_both()
378 iter->cmd = iter->doit.cmd | iter->dumpit.cmd; in genl_op_iter_next()
582 if (WARN_ON(i.cmd >= family->resv_start_op && in genl_validate_ops()
588 if (i.cmd == j.cmd) in genl_validate_ops()
608 if (a->cmd < b->cmd) { in genl_validate_ops()
610 } else if (a->cmd > b->cmd) { in genl_validate_ops()
750 const struct genl_family *family, int flags, u8 cmd) in genlmsg_put() argument
761 hdr->cmd = cmd; in genlmsg_put()
989 if (hdr->cmd < family->resv_start_op) in genl_header_check()
1036 if (genl_get_cmd(hdr->cmd, flags, family, &op)) in genl_family_rcv_msg()
1086 u32 flags, struct sk_buff *skb, u8 cmd) in ctrl_fill_info() argument
1091 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_info()
1121 if (nla_put_u32(skb, CTRL_ATTR_OP_ID, i.cmd) || in ctrl_fill_info()
1171 struct sk_buff *skb, u8 cmd) in ctrl_fill_mcgrp_info() argument
1177 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_mcgrp_info()
1237 u32 portid, int seq, u8 cmd) in ctrl_build_family_msg() argument
1246 err = ctrl_fill_info(family, portid, seq, 0, skb, cmd); in ctrl_build_family_msg()
1258 int grp_id, u32 portid, int seq, u8 cmd) in ctrl_build_mcgrp_msg() argument
1268 seq, 0, skb, cmd); in ctrl_build_mcgrp_msg()
1525 nest_op = nla_nest_start(skb, doit->cmd); in ctrl_dumppolicy_put_op()
1623 .cmd = CTRL_CMD_GETFAMILY,
1631 .cmd = CTRL_CMD_GETFAMILY,
1639 .cmd = CTRL_CMD_GETPOLICY,