Lines Matching refs:cmd

200 struct sk_buff *ethnl_reply_init(size_t payload, struct net_device *dev, u8 cmd,  in ethnl_reply_init()  argument
209 *ehdrp = genlmsg_put_reply(skb, info, &ethtool_genl_family, 0, cmd); in ethnl_reply_init()
230 void *ethnl_dump_put(struct sk_buff *skb, struct netlink_callback *cb, u8 cmd) in ethnl_dump_put() argument
233 &ethtool_genl_family, 0, cmd); in ethnl_dump_put()
236 void *ethnl_bcastmsg_put(struct sk_buff *skb, u8 cmd) in ethnl_bcastmsg_put() argument
239 cmd); in ethnl_bcastmsg_put()
374 const u8 cmd = info->genlhdr->cmd; in ethnl_default_doit() local
381 ops = ethnl_default_requests[cmd]; in ethnl_default_doit()
382 if (WARN_ONCE(!ops, "cmd %u has no ethnl_request_ops\n", cmd)) in ethnl_default_doit()
422 cmd, reply_len, rskb->len - hdr_len); in ethnl_default_doit()
529 ops = ethnl_default_requests[ghdr->cmd]; in ethnl_default_start()
530 if (WARN_ONCE(!ops, "cmd %u has no ethnl_request_ops\n", ghdr->cmd)) in ethnl_default_start()
583 const u8 cmd = info->genlhdr->cmd; in ethnl_default_set_doit() local
586 ops = ethnl_default_requests[cmd]; in ethnl_default_set_doit()
587 if (WARN_ONCE(!ops, "cmd %u has no ethnl_request_ops\n", cmd)) in ethnl_default_set_doit()
645 static void ethnl_default_notify(struct net_device *dev, unsigned int cmd, in ethnl_default_notify() argument
657 genl_info_init_ntf(&info, &ethtool_genl_family, cmd); in ethnl_default_notify()
659 if (WARN_ONCE(cmd > ETHTOOL_MSG_KERNEL_MAX || in ethnl_default_notify()
660 !ethnl_default_notify_ops[cmd], in ethnl_default_notify()
661 "unexpected notification type %u\n", cmd)) in ethnl_default_notify()
663 ops = ethnl_default_notify_ops[cmd]; in ethnl_default_notify()
687 reply_payload = ethnl_bcastmsg_put(skb, cmd); in ethnl_default_notify()
721 typedef void (*ethnl_notify_handler_t)(struct net_device *dev, unsigned int cmd,
742 void ethtool_notify(struct net_device *dev, unsigned int cmd, const void *data) in ethtool_notify() argument
748 if (likely(cmd < ARRAY_SIZE(ethnl_notify_handlers) && in ethtool_notify()
749 ethnl_notify_handlers[cmd])) in ethtool_notify()
750 ethnl_notify_handlers[cmd](dev, cmd, data); in ethtool_notify()
753 cmd, netdev_name(dev)); in ethtool_notify()
784 .cmd = ETHTOOL_MSG_STRSET_GET,
793 .cmd = ETHTOOL_MSG_LINKINFO_GET,
802 .cmd = ETHTOOL_MSG_LINKINFO_SET,
809 .cmd = ETHTOOL_MSG_LINKMODES_GET,
818 .cmd = ETHTOOL_MSG_LINKMODES_SET,
825 .cmd = ETHTOOL_MSG_LINKSTATE_GET,
834 .cmd = ETHTOOL_MSG_DEBUG_GET,
843 .cmd = ETHTOOL_MSG_DEBUG_SET,
850 .cmd = ETHTOOL_MSG_WOL_GET,
860 .cmd = ETHTOOL_MSG_WOL_SET,
867 .cmd = ETHTOOL_MSG_FEATURES_GET,
876 .cmd = ETHTOOL_MSG_FEATURES_SET,
883 .cmd = ETHTOOL_MSG_PRIVFLAGS_GET,
892 .cmd = ETHTOOL_MSG_PRIVFLAGS_SET,
899 .cmd = ETHTOOL_MSG_RINGS_GET,
908 .cmd = ETHTOOL_MSG_RINGS_SET,
915 .cmd = ETHTOOL_MSG_CHANNELS_GET,
924 .cmd = ETHTOOL_MSG_CHANNELS_SET,
931 .cmd = ETHTOOL_MSG_COALESCE_GET,
940 .cmd = ETHTOOL_MSG_COALESCE_SET,
947 .cmd = ETHTOOL_MSG_PAUSE_GET,
956 .cmd = ETHTOOL_MSG_PAUSE_SET,
963 .cmd = ETHTOOL_MSG_EEE_GET,
972 .cmd = ETHTOOL_MSG_EEE_SET,
979 .cmd = ETHTOOL_MSG_TSINFO_GET,
988 .cmd = ETHTOOL_MSG_CABLE_TEST_ACT,
995 .cmd = ETHTOOL_MSG_CABLE_TEST_TDR_ACT,
1002 .cmd = ETHTOOL_MSG_TUNNEL_INFO_GET,
1010 .cmd = ETHTOOL_MSG_FEC_GET,
1019 .cmd = ETHTOOL_MSG_FEC_SET,
1026 .cmd = ETHTOOL_MSG_MODULE_EEPROM_GET,
1036 .cmd = ETHTOOL_MSG_STATS_GET,
1045 .cmd = ETHTOOL_MSG_PHC_VCLOCKS_GET,
1054 .cmd = ETHTOOL_MSG_MODULE_GET,
1063 .cmd = ETHTOOL_MSG_MODULE_SET,
1070 .cmd = ETHTOOL_MSG_PSE_GET,
1079 .cmd = ETHTOOL_MSG_PSE_SET,
1086 .cmd = ETHTOOL_MSG_RSS_GET,
1092 .cmd = ETHTOOL_MSG_PLCA_GET_CFG,
1101 .cmd = ETHTOOL_MSG_PLCA_SET_CFG,
1108 .cmd = ETHTOOL_MSG_PLCA_GET_STATUS,
1117 .cmd = ETHTOOL_MSG_MM_GET,
1126 .cmd = ETHTOOL_MSG_MM_SET,