Home
last modified time | relevance | path

Searched refs:req_info (Results 1 - 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c34 static inline void update_input_iv(struct cpt_request_info *req_info, in update_input_iv() argument
39 req_info->in[*argcnt].vptr = (void *)iv; in update_input_iv()
40 req_info->in[*argcnt].size = enc_iv_len; in update_input_iv()
41 req_info->req.dlen += enc_iv_len; in update_input_iv()
46 static inline void update_output_iv(struct cpt_request_info *req_info, in update_output_iv() argument
51 req_info->out[*argcnt].vptr = (void *)iv; in update_output_iv()
52 req_info->out[*argcnt].size = enc_iv_len; in update_output_iv()
53 req_info->rlen += enc_iv_len; in update_output_iv()
58 static inline void update_input_data(struct cpt_request_info *req_info, in update_input_data() argument
62 req_info in update_input_data()
77 update_output_data(struct cpt_request_info *req_info, struct scatterlist *outp_sg, u32 nbytes, u32 *argcnt) update_output_data() argument
103 struct cpt_request_info *req_info = &rctx->cpt_req; create_ctx_hdr() local
155 struct cpt_request_info *req_info = &rctx->cpt_req; create_input_list() local
166 store_cb_info(struct skcipher_request *req, struct cpt_request_info *req_info) store_cb_info() argument
177 struct cpt_request_info *req_info = &rctx->cpt_req; create_output_list() local
199 struct cpt_request_info *req_info = &rctx->cpt_req; cvm_enc_dec() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c34 static inline void update_input_iv(struct cpt_request_info *req_info, in update_input_iv() argument
39 req_info->in[*argcnt].vptr = (void *)iv; in update_input_iv()
40 req_info->in[*argcnt].size = enc_iv_len; in update_input_iv()
41 req_info->req.dlen += enc_iv_len; in update_input_iv()
46 static inline void update_output_iv(struct cpt_request_info *req_info, in update_output_iv() argument
51 req_info->out[*argcnt].vptr = (void *)iv; in update_output_iv()
52 req_info->out[*argcnt].size = enc_iv_len; in update_output_iv()
53 req_info->rlen += enc_iv_len; in update_output_iv()
58 static inline void update_input_data(struct cpt_request_info *req_info, in update_input_data() argument
62 req_info in update_input_data()
77 update_output_data(struct cpt_request_info *req_info, struct scatterlist *outp_sg, u32 nbytes, u32 *argcnt) update_output_data() argument
103 struct cpt_request_info *req_info = &rctx->cpt_req; create_ctx_hdr() local
155 struct cpt_request_info *req_info = &rctx->cpt_req; create_input_list() local
166 store_cb_info(struct skcipher_request *req, struct cpt_request_info *req_info) store_cb_info() argument
177 struct cpt_request_info *req_info = &rctx->cpt_req; create_output_list() local
199 struct cpt_request_info *req_info = &rctx->cpt_req; cvm_enc_dec() local
[all...]
/kernel/linux/linux-5.10/net/ethtool/
H A Dnetlink.c34 * @req_info: structure to put results into
41 * the structure pointed to by @req_info. Extack from @info is used for error
42 * reporting. If req_info->dev is not null on return, reference to it has
43 * been taken. If error is returned, *req_info is null initialized and no
48 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, in ethnl_parse_header_dev_get() argument
110 req_info->dev = dev; in ethnl_parse_header_dev_get()
111 req_info->flags = flags; in ethnl_parse_header_dev_get()
215 * @req_info: parsed request header of processed request
226 struct ethnl_req_info *req_info; member
257 * @req_info
269 ethnl_default_parse(struct ethnl_req_info *req_info, struct nlattr **tb, struct net *net, const struct ethnl_request_ops *request_ops, struct netlink_ext_ack *extack, bool require_dev) ethnl_default_parse() argument
312 struct ethnl_req_info *req_info = NULL; ethnl_default_doit() local
483 struct ethnl_req_info *req_info; ethnl_default_start() local
563 struct ethnl_req_info *req_info; ethnl_default_notify() local
[all...]
H A Dtunnels.c165 struct ethnl_req_info req_info = {}; in ethnl_tunnel_info_doit() local
172 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_tunnel_info_doit()
180 ret = ethnl_tunnel_info_reply_size(&req_info, info->extack); in ethnl_tunnel_info_doit()
185 rskb = ethnl_reply_init(reply_len, req_info.dev, in ethnl_tunnel_info_doit()
194 ret = ethnl_tunnel_info_fill_reply(&req_info, rskb); in ethnl_tunnel_info_doit()
198 dev_put(req_info.dev); in ethnl_tunnel_info_doit()
207 dev_put(req_info.dev); in ethnl_tunnel_info_doit()
212 struct ethnl_req_info req_info; member
228 ret = ethnl_parse_header_dev_get(&ctx->req_info, in ethnl_tunnel_info_start()
232 if (ctx->req_info in ethnl_tunnel_info_start()
[all...]
H A Dstrset.c160 struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_parse_request() local
173 req_info->counts_only = tb[ETHTOOL_A_STRSET_COUNTS_ONLY]; in strset_parse_request()
191 req_info->req_ids |= (1U << id); in strset_parse_request()
254 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_prepare_data() local
265 if ((req_info->req_ids & (1U << i)) && in strset_prepare_data()
279 if (!strset_include(req_info, data, i) || in strset_prepare_data()
284 req_info->counts_only); in strset_prepare_data()
325 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_reply_size() local
336 if (!strset_include(req_info, data, i)) in strset_reply_size()
339 ret = strset_set_size(set_info, req_info in strset_reply_size()
415 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); strset_fill_reply() local
[all...]
H A Dlinkinfo.c102 struct ethnl_req_info req_info = {}; in ethnl_set_linkinfo() local
108 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_set_linkinfo()
114 dev = req_info.dev; in ethnl_set_linkinfo()
H A Ddebug.c88 struct ethnl_req_info req_info = {}; in ethnl_set_debug() local
95 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_set_debug()
101 dev = req_info.dev; in ethnl_set_debug()
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c128 struct otx2_cpt_req_info *req_info; in output_iv_copyback() local
141 req_info = &rctx->cpt_req; in output_iv_copyback()
145 if (req_info->is_enc) { in output_iv_copyback()
153 memcpy(sreq->iv, req_info->iv_out, ivsize); in output_iv_copyback()
154 kfree(req_info->iv_out); in output_iv_copyback()
177 static inline void update_input_data(struct otx2_cpt_req_info *req_info, in update_input_data() argument
181 req_info->req.dlen += nbytes; in update_input_data()
187 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
188 req_info->in[*argcnt].size = len; in update_input_data()
195 static inline void update_output_data(struct otx2_cpt_req_info *req_info, in update_output_data() argument
224 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_ctx_hdr() local
292 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_input_list() local
310 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_output_list() local
353 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; cpt_enc_dec() local
1019 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_aead_ctx_hdr() local
1110 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_hmac_ctx_hdr() local
1132 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_aead_input_list() local
1149 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_aead_output_list() local
1165 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_aead_null_input_list() local
1182 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; create_aead_null_output_list() local
1286 struct otx2_cpt_req_info *req_info = &rctx->cpt_req; cpt_aead_enc_dec() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c145 struct otx_cpt_req_info *req_info; in output_iv_copyback() local
158 req_info = &rctx->cpt_req; in output_iv_copyback()
162 if (req_info->is_enc) { in output_iv_copyback()
170 memcpy(sreq->iv, req_info->iv_out, ivsize); in output_iv_copyback()
171 kfree(req_info->iv_out); in output_iv_copyback()
194 static inline void update_input_data(struct otx_cpt_req_info *req_info, in update_input_data() argument
198 req_info->req.dlen += nbytes; in update_input_data()
204 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
205 req_info->in[*argcnt].size = len; in update_input_data()
212 static inline void update_output_data(struct otx_cpt_req_info *req_info, in update_output_data() argument
236 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_ctx_hdr() local
306 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_input_list() local
324 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_output_list() local
343 struct otx_cpt_req_info *req_info = &rctx->cpt_req; cpt_enc_dec() local
970 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_ctx_hdr() local
1055 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_hmac_ctx_hdr() local
1079 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_input_list() local
1096 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_output_list() local
1114 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_null_input_list() local
1133 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_null_output_list() local
1220 struct otx_cpt_req_info *req_info = &rctx->cpt_req; cpt_aead_enc_dec() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c146 struct otx_cpt_req_info *req_info; in output_iv_copyback() local
159 req_info = &rctx->cpt_req; in output_iv_copyback()
163 if (req_info->is_enc) { in output_iv_copyback()
171 memcpy(sreq->iv, req_info->iv_out, ivsize); in output_iv_copyback()
172 kfree(req_info->iv_out); in output_iv_copyback()
195 static inline void update_input_data(struct otx_cpt_req_info *req_info, in update_input_data() argument
199 req_info->req.dlen += nbytes; in update_input_data()
205 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
206 req_info->in[*argcnt].size = len; in update_input_data()
213 static inline void update_output_data(struct otx_cpt_req_info *req_info, in update_output_data() argument
237 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_ctx_hdr() local
307 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_input_list() local
325 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_output_list() local
344 struct otx_cpt_req_info *req_info = &rctx->cpt_req; cpt_enc_dec() local
972 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_ctx_hdr() local
1057 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_hmac_ctx_hdr() local
1081 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_input_list() local
1098 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_output_list() local
1116 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_null_input_list() local
1135 struct otx_cpt_req_info *req_info = &rctx->cpt_req; create_aead_null_output_list() local
1222 struct otx_cpt_req_info *req_info = &rctx->cpt_req; cpt_aead_enc_dec() local
[all...]
/kernel/linux/linux-6.6/net/ethtool/
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()
182 ret = ethnl_tunnel_info_reply_size(&req_info, info->extack); in ethnl_tunnel_info_doit()
187 rskb = ethnl_reply_init(reply_len, req_info.dev, in ethnl_tunnel_info_doit()
196 ret = ethnl_tunnel_info_fill_reply(&req_info, rskb); 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
229 ret = ethnl_parse_header_dev_get(&ctx->req_info, in ethnl_tunnel_info_start()
233 if (ctx->req_info in ethnl_tunnel_info_start()
[all...]
H A Dnetlink.c74 * @req_info: structure to put results into
81 * the structure pointed to by @req_info. Extack from @info is used for error
82 * reporting. If req_info->dev is not null on return, reference to it has
83 * been taken. If error is returned, *req_info is null initialized and no
88 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, in ethnl_parse_header_dev_get() argument
118 dev = netdev_get_by_index(net, ifindex, &req_info->dev_tracker, in ethnl_parse_header_dev_get()
129 netdev_put(dev, &req_info->dev_tracker); in ethnl_parse_header_dev_get()
136 &req_info->dev_tracker, GFP_KERNEL); in ethnl_parse_header_dev_get()
148 req_info->dev = dev; in ethnl_parse_header_dev_get()
149 req_info in ethnl_parse_header_dev_get()
263 struct ethnl_req_info *req_info; global() member
328 ethnl_default_parse(struct ethnl_req_info *req_info, const struct genl_info *info, const struct ethnl_request_ops *request_ops, bool require_dev) ethnl_default_parse() argument
373 struct ethnl_req_info *req_info = NULL; ethnl_default_doit() local
522 struct ethnl_req_info *req_info; ethnl_default_start() local
582 struct ethnl_req_info req_info = {}; ethnl_default_set_doit() local
650 struct ethnl_req_info *req_info; ethnl_default_notify() local
[all...]
H A Dstats.c92 struct stats_req_info *req_info = STATS_REQINFO(req_base); in stats_parse_request() local
96 err = ethnl_update_bitset(req_info->stat_mask, __ETHTOOL_STATS_CNT, in stats_parse_request()
110 req_info->src = src; in stats_parse_request()
119 const struct stats_req_info *req_info = STATS_REQINFO(req_base); in stats_prepare_data() local
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()
169 const struct stats_req_info *req_info in stats_reply_size() local
404 const struct stats_req_info *req_info = STATS_REQINFO(req_base); stats_fill_reply() local
[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 Dnetlink.h13 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info,
264 static inline void ethnl_parse_header_dev_put(struct ethnl_req_info *req_info) in ethnl_parse_header_dev_put() argument
266 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put()
353 int (*parse_request)(struct ethnl_req_info *req_info,
356 int (*prepare_data)(const struct ethnl_req_info *req_info,
359 int (*reply_size)(const struct ethnl_req_info *req_info,
362 const struct ethnl_req_info *req_info,
366 int (*set_validate)(struct ethnl_req_info *req_info,
368 int (*set)(struct ethnl_req_info *req_info,
[all...]
H A Dstrset.c185 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()
279 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_prepare_data() local
290 if ((req_info->req_ids & (1U << i)) && in strset_prepare_data()
304 if (!strset_include(req_info, data, i) || in strset_prepare_data()
309 req_info->counts_only); in strset_prepare_data()
350 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_reply_size() local
361 if (!strset_include(req_info, data, i)) in strset_reply_size()
364 ret = strset_set_size(set_info, req_info in strset_reply_size()
440 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); strset_fill_reply() local
[all...]
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 Dmodule.c103 ethnl_set_module_validate(struct ethnl_req_info *req_info, in ethnl_set_module_validate() argument
106 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_module_validate()
123 ethnl_set_module(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_module() argument
128 struct net_device *dev = req_info->dev; in ethnl_set_module()
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 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.c123 ethnl_set_eee_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_eee_validate() argument
125 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_eee_validate()
131 ethnl_set_eee(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_eee() argument
133 struct net_device *dev = req_info->dev; in ethnl_set_eee()
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 Dfeatures.c220 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()
H A Dcabletest.c58 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test() local
64 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test()
71 dev = req_info.dev; in ethnl_act_cable_test()
99 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test()
309 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test_tdr() local
316 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test_tdr()
323 dev = req_info.dev; in ethnl_act_cable_test_tdr()
356 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test_tdr()
H A Dpse-pd.c119 ethnl_set_pse_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_pse_validate() argument
125 ethnl_set_pse(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_pse() argument
127 struct net_device *dev = req_info->dev; in ethnl_set_pse()

Completed in 15 milliseconds

12