Home
last modified time | relevance | path

Searched refs:req_info (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.15/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c41 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-6.15/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c160 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-6.15/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c143 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-6.15/net/ethtool/
H A Dnetlink.c482 if (!req_info) in ethnl_default_doit()
525 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_default_doit()
527 kfree(req_info); in ethnl_default_doit()
537 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_default_doit()
539 kfree(req_info); in ethnl_default_doit()
630 if (!req_info) in ethnl_default_start()
644 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_default_start()
651 ctx->req_info = req_info; in ethnl_default_start()
660 kfree(req_info); in ethnl_default_start()
781 if (!req_info) in ethnl_default_notify()
[all …]
H A Dphy.c32 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_reply_size()
77 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_fill_reply()
147 struct phy_req_info req_info = {}; in ethnl_phy_doit() local
154 ret = ethnl_parse_header_dev_get(&req_info.base, in ethnl_phy_doit()
162 netdev_lock_ops(req_info.base.dev); in ethnl_phy_doit()
169 if (!req_info.pdn) in ethnl_phy_doit()
186 ret = ethnl_phy_fill_reply(&req_info.base, rskb); in ethnl_phy_doit()
190 netdev_unlock_ops(req_info.base.dev); in ethnl_phy_doit()
192 ethnl_parse_header_dev_put(&req_info.base); in ethnl_phy_doit()
200 netdev_unlock_ops(req_info.base.dev); in ethnl_phy_doit()
[all …]
H A Dtunnels.c167 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 …]
H A Dtsinfo.c332 struct tsinfo_req_info *req_info; in ethnl_tsinfo_dump_one_phydev() local
340 req_info = ctx->req_info; in ethnl_tsinfo_dump_one_phydev()
374 req_info = ctx->req_info; in ethnl_tsinfo_dump_one_netdev()
452 if (ctx->req_info->base.dev) { in ethnl_tsinfo_dumpit()
453 dev = ctx->req_info->base.dev; in ethnl_tsinfo_dumpit()
485 req_info = kzalloc(sizeof(*req_info), GFP_KERNEL); in ethnl_tsinfo_start()
486 if (!req_info) in ethnl_tsinfo_start()
501 ctx->req_info = req_info; in ethnl_tsinfo_start()
513 kfree(req_info); in ethnl_tsinfo_start()
521 struct tsinfo_req_info *req_info = ctx->req_info; in ethnl_tsinfo_done() local
[all …]
H A Dstats.c106 struct stats_req_info *req_info = STATS_REQINFO(req_base); in stats_parse_request() local
124 req_info->src = src; in stats_parse_request()
135 enum ethtool_mac_stats_src src = req_info->src; in stats_prepare_data()
169 if ((test_bit(ETHTOOL_STATS_PHY, req_info->stat_mask) || in stats_prepare_data()
177 if (test_bit(ETHTOOL_STATS_ETH_PHY, req_info->stat_mask) && in stats_prepare_data()
180 if (test_bit(ETHTOOL_STATS_ETH_MAC, req_info->stat_mask) && in stats_prepare_data()
186 if (test_bit(ETHTOOL_STATS_RMON, req_info->stat_mask) && in stats_prepare_data()
204 if (test_bit(ETHTOOL_STATS_ETH_PHY, req_info->stat_mask)) { in stats_reply_size()
216 if (test_bit(ETHTOOL_STATS_RMON, req_info->stat_mask)) { in stats_reply_size()
226 if (test_bit(ETHTOOL_STATS_PHY, req_info->stat_mask)) { in stats_reply_size()
[all …]
H A Dpause.c35 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()
H A Dstrset.c195 struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_parse_request() local
208 req_info->counts_only = tb[ETHTOOL_A_STRSET_COUNTS_ONLY]; in strset_parse_request()
226 req_info->req_ids |= (1U << id); in strset_parse_request()
290 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_prepare_data() local
303 if ((req_info->req_ids & (1U << i)) && in strset_prepare_data()
323 if (!strset_include(req_info, data, i) || in strset_prepare_data()
328 req_info->counts_only); in strset_prepare_data()
380 if (!strset_include(req_info, data, i)) in strset_reply_size()
383 ret = strset_set_size(set_info, req_info->counts_only); in strset_reply_size()
470 if (strset_include(req_info, data, i)) { in strset_fill_reply()
[all …]
H A Dnetlink.h13 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()
292 struct phy_device *ethnl_req_get_phydev(const struct ethnl_req_info *req_info,
393 int (*parse_request)(struct ethnl_req_info *req_info,
396 int (*prepare_data)(const struct ethnl_req_info *req_info,
399 int (*reply_size)(const struct ethnl_req_info *req_info,
402 const struct ethnl_req_info *req_info,
406 int (*set_validate)(struct ethnl_req_info *req_info,
408 int (*set)(struct ethnl_req_info *req_info,
H A Dcabletest.c59 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test() local
66 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test()
73 dev = req_info.dev; in ethnl_act_cable_test()
77 phydev = ethnl_req_get_phydev(&req_info, tb, in ethnl_act_cable_test()
105 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test()
322 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test_tdr() local
330 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test_tdr()
337 dev = req_info.dev; in ethnl_act_cable_test_tdr()
346 phydev = ethnl_req_get_phydev(&req_info, tb, in ethnl_act_cable_test_tdr()
376 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test_tdr()
H A Ddebug.c75 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()
H A Dtsconfig.c199 struct tsconfig_req_info *req_info; in tsconfig_send_reply() local
205 req_info = kzalloc(sizeof(*req_info), GFP_KERNEL); in tsconfig_send_reply()
206 if (!req_info) in tsconfig_send_reply()
210 kfree(req_info); in tsconfig_send_reply()
216 ret = tsconfig_prepare_data(&req_info->base, &reply_data->base, info); in tsconfig_send_reply()
220 ret = tsconfig_reply_size(&req_info->base, &reply_data->base); in tsconfig_send_reply()
230 ret = tsconfig_fill_reply(rskb, &req_info->base, &reply_data->base); in tsconfig_send_reply()
239 kfree(req_info); in tsconfig_send_reply()
H A Dlinkinfo.c87 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()
H A Drss.c37 rss_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, in rss_parse_request() argument
40 struct rss_req_info *request = RSS_REQINFO(req_info); in rss_parse_request()
239 struct ethnl_req_info req_info = {}; in ethnl_rss_dump_start() local
253 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_rss_dump_start()
257 if (req_info.dev) { in ethnl_rss_dump_start()
258 ctx->match_ifindex = req_info.dev->ifindex; in ethnl_rss_dump_start()
260 ethnl_parse_header_dev_put(&req_info); in ethnl_rss_dump_start()
261 req_info.dev = NULL; in ethnl_rss_dump_start()
H A Dmodule.c114 ethnl_set_module_validate(struct ethnl_req_info *req_info, in ethnl_set_module_validate() argument
117 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_module_validate()
123 if (req_info->dev->ethtool->module_fw_flash_in_progress) { in ethnl_set_module_validate()
140 ethnl_set_module(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_module() argument
145 struct net_device *dev = req_info->dev; in ethnl_set_module()
409 struct ethnl_req_info req_info = {}; in ethnl_act_module_fw_flash() local
414 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_module_fw_flash()
420 dev = req_info.dev; in ethnl_act_module_fw_flash()
439 ethnl_parse_header_dev_put(&req_info); in ethnl_act_module_fw_flash()
H A Dwol.c97 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()
H A Deee.c120 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()
H A Dfeatures.c222 struct ethnl_req_info req_info = {}; in ethnl_set_features() local
230 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_set_features()
236 dev = req_info.dev; in ethnl_set_features()
269 if (!(req_info.flags & ETHTOOL_FLAG_OMIT_REPLY)) { in ethnl_set_features()
270 bool compact = req_info.flags & ETHTOOL_FLAG_COMPACT_BITSETS; in ethnl_set_features()
295 ethnl_parse_header_dev_put(&req_info); in ethnl_set_features()
H A Dprivflags.c130 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()
H A Dchannels.c101 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()
H A Dcoalesce.c348 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()
H A Dmm.c176 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()
H A Dfec.c229 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()

12