| /linux/drivers/crypto/cavium/cpt/ |
| A D | cptvf_algs.c | 41 req_info->req.dlen += enc_iv_len; in update_input_iv() 53 req_info->rlen += enc_iv_len; in update_output_iv() 62 req_info->req.dlen += nbytes; in update_input_data() 69 req_info->in[*argcnt].size = len; in update_input_data() 81 req_info->rlen += nbytes; in update_output_data() 107 req_info->ctrl.s.grp = 0; in create_ctx_hdr() 114 req_info->req.opcode.s.minor = 2; in create_ctx_hdr() 116 req_info->req.opcode.s.minor = 3; in create_ctx_hdr() 161 req_info->incnt = argcnt; in create_input_list() 190 req_info->outcnt = argcnt; in create_output_list() [all …]
|
| /linux/drivers/crypto/marvell/octeontx/ |
| A D | otx_cptvf_algs.c | 160 req_info = &rctx->cpt_req; in output_iv_copyback() 164 if (req_info->is_enc) { in output_iv_copyback() 173 kfree(req_info->iv_out); in output_iv_copyback() 218 req_info->rlen += nbytes; in update_output_data() 261 if (!req_info->iv_out) in create_ctx_hdr() 271 req_info->req.param2 = 0; in create_ctx_hdr() 317 req_info->incnt = argcnt; in create_input_list() 338 req_info->outcnt = argcnt; in create_output_list() 370 req_info->is_enc = enc; in cpt_enc_dec() 372 req_info->ctrl.s.grp = 0; in cpt_enc_dec() [all …]
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| A D | otx2_cptvf_algs.c | 143 req_info = &rctx->cpt_req; in output_iv_copyback() 147 if (req_info->is_enc) { in output_iv_copyback() 156 kfree(req_info->iv_out); in output_iv_copyback() 204 req_info->rlen += nbytes; in update_output_data() 235 req_info->ctrl.s.se_req = 1; in create_ctx_hdr() 247 if (!req_info->iv_out) in create_ctx_hdr() 257 req_info->req.param2 = 0; in create_ctx_hdr() 303 req_info->in_cnt = argcnt; in create_input_list() 324 req_info->out_cnt = argcnt; in create_output_list() 385 req_info->is_enc = enc; in cpt_enc_dec() [all …]
|
| /linux/net/ethtool/ |
| A D | netlink.c | 476 if (!req_info) in ethnl_default_doit() 515 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_default_doit() 517 kfree(req_info); in ethnl_default_doit() 527 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_default_doit() 529 kfree(req_info); in ethnl_default_doit() 617 if (!req_info) in ethnl_default_start() 631 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_default_start() 638 ctx->req_info = req_info; in ethnl_default_start() 647 kfree(req_info); in ethnl_default_start() 749 if (!req_info) in ethnl_default_notify() [all …]
|
| A D | tunnels.c | 167 struct ethnl_req_info req_info = {}; in ethnl_tunnel_info_doit() local 174 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_tunnel_info_doit() 187 rskb = ethnl_reply_init(reply_len, req_info.dev, in ethnl_tunnel_info_doit() 200 ethnl_parse_header_dev_put(&req_info); in ethnl_tunnel_info_doit() 209 ethnl_parse_header_dev_put(&req_info); in ethnl_tunnel_info_doit() 214 struct ethnl_req_info req_info; member 233 if (ctx->req_info.dev) { in ethnl_tunnel_info_start() 234 ethnl_parse_header_dev_put(&ctx->req_info); in ethnl_tunnel_info_start() 235 ctx->req_info.dev = NULL; in ethnl_tunnel_info_start() 265 ctx->req_info.dev = dev; in ethnl_tunnel_info_dumpit() [all …]
|
| A D | phy.c | 30 struct phy_req_info *req_info = PHY_REQINFO(req_base); in ethnl_phy_reply_size() local 31 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_reply_size() 75 struct phy_req_info *req_info = PHY_REQINFO(req_base); in ethnl_phy_fill_reply() local 76 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_fill_reply() 146 struct phy_req_info req_info = {}; in ethnl_phy_doit() local 153 ret = ethnl_parse_header_dev_get(&req_info.base, in ethnl_phy_doit() 167 if (!req_info.pdn) in ethnl_phy_doit() 175 rskb = ethnl_reply_init(reply_len, req_info.base.dev, in ethnl_phy_doit() 184 ret = ethnl_phy_fill_reply(&req_info.base, rskb); in ethnl_phy_doit() 189 ethnl_parse_header_dev_put(&req_info.base); in ethnl_phy_doit() [all …]
|
| A D | stats.c | 92 struct stats_req_info *req_info = STATS_REQINFO(req_base); in stats_parse_request() local 110 req_info->src = src; in stats_parse_request() 121 enum ethtool_mac_stats_src src = req_info->src; in stats_prepare_data() 148 if (test_bit(ETHTOOL_STATS_ETH_PHY, req_info->stat_mask) && in stats_prepare_data() 151 if (test_bit(ETHTOOL_STATS_ETH_MAC, req_info->stat_mask) && in stats_prepare_data() 154 if (test_bit(ETHTOOL_STATS_ETH_CTRL, req_info->stat_mask) && in stats_prepare_data() 157 if (test_bit(ETHTOOL_STATS_RMON, req_info->stat_mask) && in stats_prepare_data() 175 if (test_bit(ETHTOOL_STATS_ETH_PHY, req_info->stat_mask)) { in stats_reply_size() 179 if (test_bit(ETHTOOL_STATS_ETH_MAC, req_info->stat_mask)) { in stats_reply_size() 187 if (test_bit(ETHTOOL_STATS_RMON, req_info->stat_mask)) { in stats_reply_size() [all …]
|
| A D | netlink.h | 13 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, 269 static inline void ethnl_parse_header_dev_put(struct ethnl_req_info *req_info) in ethnl_parse_header_dev_put() argument 271 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put() 291 struct phy_device *ethnl_req_get_phydev(const struct ethnl_req_info *req_info, 392 int (*parse_request)(struct ethnl_req_info *req_info, 395 int (*prepare_data)(const struct ethnl_req_info *req_info, 398 int (*reply_size)(const struct ethnl_req_info *req_info, 401 const struct ethnl_req_info *req_info, 405 int (*set_validate)(struct ethnl_req_info *req_info, 407 int (*set)(struct ethnl_req_info *req_info,
|
| A D | pause.c | 35 struct pause_req_info *req_info = PAUSE_REQINFO(req_base); in pause_parse_request() local 47 req_info->src = src; in pause_parse_request() 56 const struct pause_req_info *req_info = PAUSE_REQINFO(req_base); in pause_prepare_data() local 58 enum ethtool_mac_stats_src src = req_info->src; in pause_prepare_data() 174 ethnl_set_pause_validate(struct ethnl_req_info *req_info, in ethnl_set_pause_validate() argument 177 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_pause_validate() 183 ethnl_set_pause(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_pause() argument 185 struct net_device *dev = req_info->dev; in ethnl_set_pause()
|
| A D | strset.c | 185 struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_parse_request() local 198 req_info->counts_only = tb[ETHTOOL_A_STRSET_COUNTS_ONLY]; in strset_parse_request() 216 req_info->req_ids |= (1U << id); in strset_parse_request() 280 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_prepare_data() local 293 if ((req_info->req_ids & (1U << i)) && in strset_prepare_data() 313 if (!strset_include(req_info, data, i) || in strset_prepare_data() 318 req_info->counts_only); in strset_prepare_data() 370 if (!strset_include(req_info, data, i)) in strset_reply_size() 373 ret = strset_set_size(set_info, req_info->counts_only); in strset_reply_size() 460 if (strset_include(req_info, data, i)) { in strset_fill_reply() [all …]
|
| A D | cabletest.c | 58 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test() local 65 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test() 72 dev = req_info.dev; in ethnl_act_cable_test() 75 phydev = ethnl_req_get_phydev(&req_info, in ethnl_act_cable_test() 102 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test() 319 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test_tdr() local 327 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test_tdr() 334 dev = req_info.dev; in ethnl_act_cable_test_tdr() 342 phydev = ethnl_req_get_phydev(&req_info, in ethnl_act_cable_test_tdr() 371 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test_tdr()
|
| A D | debug.c | 75 ethnl_set_debug_validate(struct ethnl_req_info *req_info, in ethnl_set_debug_validate() argument 78 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_debug_validate() 84 ethnl_set_debug(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_debug() argument 86 struct net_device *dev = req_info->dev; in ethnl_set_debug()
|
| A D | rss.c | 35 rss_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, in rss_parse_request() argument 38 struct rss_req_info *request = RSS_REQINFO(req_info); in rss_parse_request() 236 struct ethnl_req_info req_info = {}; in ethnl_rss_dump_start() local 250 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_rss_dump_start() 254 if (req_info.dev) { in ethnl_rss_dump_start() 255 ctx->match_ifindex = req_info.dev->ifindex; in ethnl_rss_dump_start() 257 ethnl_parse_header_dev_put(&req_info); in ethnl_rss_dump_start() 258 req_info.dev = NULL; in ethnl_rss_dump_start()
|
| A D | linkinfo.c | 87 ethnl_set_linkinfo_validate(struct ethnl_req_info *req_info, in ethnl_set_linkinfo_validate() argument 90 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_linkinfo_validate() 98 ethnl_set_linkinfo(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_linkinfo() argument 102 struct net_device *dev = req_info->dev; in ethnl_set_linkinfo()
|
| A D | module.c | 113 ethnl_set_module_validate(struct ethnl_req_info *req_info, in ethnl_set_module_validate() argument 116 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_module_validate() 122 if (req_info->dev->ethtool->module_fw_flash_in_progress) { in ethnl_set_module_validate() 139 ethnl_set_module(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_module() argument 144 struct net_device *dev = req_info->dev; in ethnl_set_module() 408 struct ethnl_req_info req_info = {}; in ethnl_act_module_fw_flash() local 413 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_module_fw_flash() 419 dev = req_info.dev; in ethnl_act_module_fw_flash() 436 ethnl_parse_header_dev_put(&req_info); in ethnl_act_module_fw_flash()
|
| A D | wol.c | 97 ethnl_set_wol_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_wol_validate() argument 99 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_wol_validate() 105 ethnl_set_wol(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_wol() argument 108 struct net_device *dev = req_info->dev; in ethnl_set_wol()
|
| A D | eee.c | 120 ethnl_set_eee_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_eee_validate() argument 122 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_eee_validate() 128 ethnl_set_eee(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_eee() argument 130 struct net_device *dev = req_info->dev; in ethnl_set_eee()
|
| A D | features.c | 220 struct ethnl_req_info req_info = {}; in ethnl_set_features() local 228 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_set_features() 234 dev = req_info.dev; in ethnl_set_features() 266 if (!(req_info.flags & ETHTOOL_FLAG_OMIT_REPLY)) { in ethnl_set_features() 267 bool compact = req_info.flags & ETHTOOL_FLAG_COMPACT_BITSETS; in ethnl_set_features() 291 ethnl_parse_header_dev_put(&req_info); in ethnl_set_features()
|
| A D | privflags.c | 130 ethnl_set_privflags_validate(struct ethnl_req_info *req_info, in ethnl_set_privflags_validate() argument 133 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_privflags_validate() 145 ethnl_set_privflags(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_privflags() argument 148 struct net_device *dev = req_info->dev; in ethnl_set_privflags()
|
| A D | channels.c | 101 ethnl_set_channels_validate(struct ethnl_req_info *req_info, in ethnl_set_channels_validate() argument 104 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_channels_validate() 110 ethnl_set_channels(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_channels() argument 114 struct net_device *dev = req_info->dev; in ethnl_set_channels()
|
| A D | coalesce.c | 348 ethnl_set_coalesce_validate(struct ethnl_req_info *req_info, in ethnl_set_coalesce_validate() argument 351 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_coalesce_validate() 352 struct dim_irq_moder *irq_moder = req_info->dev->irq_moder; in ethnl_set_coalesce_validate() 511 __ethnl_set_coalesce(struct ethnl_req_info *req_info, struct genl_info *info, in __ethnl_set_coalesce() argument 515 struct net_device *dev = req_info->dev; in __ethnl_set_coalesce() 610 ethnl_set_coalesce(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_coalesce() argument 622 err = __ethnl_set_coalesce(req_info, info, &dual_change); in ethnl_set_coalesce() 628 err = __ethnl_set_coalesce(req_info, info, &dual_change); in ethnl_set_coalesce()
|
| A D | mm.c | 176 ethnl_set_mm_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_mm_validate() argument 178 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_mm_validate() 183 static int ethnl_set_mm(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_mm() argument 186 struct net_device *dev = req_info->dev; in ethnl_set_mm()
|
| A D | fec.c | 229 ethnl_set_fec_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_fec_validate() argument 231 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_fec_validate() 237 ethnl_set_fec(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_fec() argument 240 struct net_device *dev = req_info->dev; in ethnl_set_fec()
|
| A D | rings.c | 136 ethnl_set_rings_validate(struct ethnl_req_info *req_info, in ethnl_set_rings_validate() argument 139 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_rings_validate() 194 ethnl_set_rings(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_rings() argument 198 struct net_device *dev = req_info->dev; in ethnl_set_rings()
|
| A D | linkmodes.c | 303 ethnl_set_linkmodes_validate(struct ethnl_req_info *req_info, in ethnl_set_linkmodes_validate() argument 306 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_linkmodes_validate() 319 ethnl_set_linkmodes(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_linkmodes() argument 322 struct net_device *dev = req_info->dev; in ethnl_set_linkmodes()
|