Home
last modified time | relevance | path

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

/linux/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->req.dlen += nbytes; in update_input_data()
[all …]
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c147 struct otx_cpt_req_info *req_info; in output_iv_copyback() local
160 req_info = &rctx->cpt_req; in output_iv_copyback()
164 if (req_info->is_enc) { in output_iv_copyback()
172 memcpy(sreq->iv, req_info->iv_out, ivsize); in output_iv_copyback()
173 kfree(req_info->iv_out); in output_iv_copyback()
196 static inline void update_input_data(struct otx_cpt_req_info *req_info, in update_input_data() argument
200 req_info->req.dlen += nbytes; in update_input_data()
206 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
207 req_info->in[*argcnt].size = len; in update_input_data()
214 static inline void update_output_data(struct otx_cpt_req_info *req_info, in update_output_data() argument
[all …]
/linux/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.dev) { in ethnl_tunnel_info_start()
[all …]
H A Dnetlink.h13 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info,
27 const struct ethnl_req_info *req_info);
299 static inline void ethnl_parse_header_dev_put(struct ethnl_req_info *req_info) in ethnl_parse_header_dev_put() argument
301 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put()
323 struct phy_device *ethnl_req_get_phydev(const struct ethnl_req_info *req_info,
428 int (*parse_request)(struct ethnl_req_info *req_info,
432 int (*prepare_data)(const struct ethnl_req_info *req_info,
435 int (*reply_size)(const struct ethnl_req_info *req_info,
438 const struct ethnl_req_info *req_info,
442 int (*set_validate)(struct ethnl_req_info *req_info,
[all …]
H A Dstrset.c197 struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_parse_request() local
210 req_info->counts_only = tb[ETHTOOL_A_STRSET_COUNTS_ONLY]; in strset_parse_request()
228 req_info->req_ids |= (1U << id); in strset_parse_request()
292 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_prepare_data() local
305 if ((req_info->req_ids & (1U << i)) && in strset_prepare_data()
325 if (!strset_include(req_info, data, i) || in strset_prepare_data()
330 req_info->counts_only); in strset_prepare_data()
371 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_reply_size() local
382 if (!strset_include(req_info, data, i)) in strset_reply_size()
385 ret = strset_set_size(set_info, req_info->counts_only); in strset_reply_size()
[all …]
H A Dtsconfig.c202 struct tsconfig_req_info *req_info; in tsconfig_send_reply() local
208 req_info = kzalloc_obj(*req_info); in tsconfig_send_reply()
209 if (!req_info) in tsconfig_send_reply()
213 kfree(req_info); in tsconfig_send_reply()
219 ret = tsconfig_prepare_data(&req_info->base, &reply_data->base, info); in tsconfig_send_reply()
223 ret = tsconfig_reply_size(&req_info->base, &reply_data->base); in tsconfig_send_reply()
235 ret = tsconfig_fill_reply(rskb, &req_info->base, &reply_data->base); in tsconfig_send_reply()
247 kfree(req_info); in tsconfig_send_reply()
H A Drss.c70 rss_parse_request(struct ethnl_req_info *req_info, in rss_parse_request() argument
75 struct rss_req_info *request = RSS_REQINFO(req_info); in rss_parse_request()
373 struct ethnl_req_info req_info = {}; in ethnl_rss_dump_start() local
387 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_rss_dump_start()
391 if (req_info.dev) { in ethnl_rss_dump_start()
392 ctx->match_ifindex = req_info.dev->ifindex; in ethnl_rss_dump_start()
394 ethnl_parse_header_dev_put(&req_info); in ethnl_rss_dump_start()
395 req_info.dev = NULL; in ethnl_rss_dump_start()
523 struct rss_req_info req_info = { in ethtool_rss_notify() local
530 ethnl_notify(dev, type, &req_info.base); in ethtool_rss_notify()
[all …]
H A Dcoalesce.c357 ethnl_set_coalesce_validate(struct ethnl_req_info *req_info, in ethnl_set_coalesce_validate() argument
360 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_coalesce_validate()
361 struct dim_irq_moder *irq_moder = req_info->dev->irq_moder; in ethnl_set_coalesce_validate()
526 __ethnl_set_coalesce(struct ethnl_req_info *req_info, struct genl_info *info, in __ethnl_set_coalesce() argument
530 struct net_device *dev = req_info->dev; in __ethnl_set_coalesce()
629 ethnl_set_coalesce(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_coalesce() argument
641 err = __ethnl_set_coalesce(req_info, info, &dual_change); in ethnl_set_coalesce()
647 err = __ethnl_set_coalesce(req_info, info, &dual_change); in ethnl_set_coalesce()
H A Deeprom.c155 static int eeprom_parse_request(struct ethnl_req_info *req_info, in eeprom_parse_request() argument
160 struct eeprom_req_info *request = MODULE_EEPROM_REQINFO(req_info); in eeprom_parse_request()
H A Dpse-pd.c276 ethnl_set_pse(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_pse() argument
282 phydev = ethnl_req_get_phydev(req_info, tb, ETHTOOL_A_PSE_HEADER, in ethnl_set_pse()