Home
last modified time | relevance | path

Searched refs:req_info (Results 1 – 15 of 15) 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/net/ethtool/
H A Dnetlink.c135 * @req_info: structure to put results into
142 * the structure pointed to by @req_info. Extack from @info is used for error
143 * reporting. If req_info->dev is not null on return, reference to it has
144 * been taken. If error is returned, *req_info is null initialized and no
149 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, in ethnl_parse_header_dev_get()
179 dev = netdev_get_by_index(net, ifindex, &req_info->dev_tracker, in ethnl_parse_header_dev_get()
190 netdev_put(dev, &req_info->dev_tracker); in ethnl_parse_header_dev_get()
197 &req_info->dev_tracker, GFP_KERNEL); in ethnl_parse_header_dev_get()
211 req_info->phy_index = nla_get_u32(tb[ETHTOOL_A_HEADER_PHY_INDEX]); in ethnl_parse_header_dev_get()
219 req_info in ethnl_parse_header_dev_get()
148 ethnl_parse_header_dev_get(struct ethnl_req_info * req_info,const struct nlattr * header,struct net * net,struct netlink_ext_ack * extack,bool require_dev) ethnl_parse_header_dev_get() argument
223 ethnl_req_get_phydev(const struct ethnl_req_info * req_info,struct nlattr ** tb,unsigned int header,struct netlink_ext_ack * extack) ethnl_req_get_phydev() argument
362 struct ethnl_req_info *req_info; global() member
450 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
501 struct ethnl_req_info *req_info = NULL; ethnl_default_doit() local
655 struct ethnl_req_info *req_info; ethnl_default_start() local
709 struct ethnl_req_info *req_info; ethnl_perphy_start() local
883 struct ethnl_req_info *req_info; ethnl_default_set_doit() local
975 struct ethnl_req_info *req_info; ethnl_default_notify() local
1078 ethnl_notify(struct net_device * dev,unsigned int cmd,const struct ethnl_req_info * req_info) ethnl_notify() argument
[all...]
H A Dtsinfo.c294 struct tsinfo_req_info *req_info;
326 struct tsinfo_req_info *req_info, in ethnl_tsinfo_end_dump()
339 ret = tsinfo_fill_reply(skb, &req_info->base, &reply_data->base); in ethnl_tsinfo_end_dump()
356 struct tsinfo_req_info *req_info; in ethnl_tsinfo_dump_one_phydev()
364 req_info = ctx->req_info; in ethnl_tsinfo_dump_one_phydev()
378 ret = ethnl_tsinfo_end_dump(skb, dev, req_info, reply_data, ehdr); in ethnl_tsinfo_dump_one_phydev()
395 struct tsinfo_req_info *req_info; in ethnl_tsinfo_dump_one_netdev()
403 req_info = ctx->req_info; in ethnl_tsinfo_dump_one_netdev()
293 struct tsinfo_req_info *req_info; global() member
325 ethnl_tsinfo_end_dump(struct sk_buff * skb,struct net_device * dev,struct tsinfo_req_info * req_info,struct tsinfo_reply_data * reply_data,void * ehdr) ethnl_tsinfo_end_dump() argument
355 struct tsinfo_req_info *req_info; ethnl_tsinfo_dump_one_phydev() local
394 struct tsinfo_req_info *req_info; ethnl_tsinfo_dump_one_netdev() local
508 struct tsinfo_req_info *req_info; ethnl_tsinfo_start() local
557 struct tsinfo_req_info *req_info = ctx->req_info; ethnl_tsinfo_done() local
[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()
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);
271 static inline void ethnl_parse_header_dev_put(struct ethnl_req_info *req_info)
273 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put()
279 * @req_info: The ethnl request to get the phy from.
295 struct phy_device *ethnl_req_get_phydev(const struct ethnl_req_info *req_info,
346 * be conveyed to the req_info used during NTF generation.
400 int (*parse_request)(struct ethnl_req_info *req_info,
404 int (*prepare_data)(const struct ethnl_req_info *req_info,
272 ethnl_parse_header_dev_put(struct ethnl_req_info * req_info) ethnl_parse_header_dev_put() argument
[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()
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()
201 struct tsconfig_req_info *req_info; tsconfig_send_reply() local
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()
134 ethnl_set_module(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_module() argument
139 struct net_device *dev = req_info->dev; in ethnl_set_module()
419 struct ethnl_req_info req_info = {}; in ethnl_act_module_fw_flash()
424 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_module_fw_flash()
430 dev = req_info.dev; in ethnl_act_module_fw_flash()
448 ethnl_parse_header_dev_put(&req_info); in ethnl_act_module_fw_flash()
417 struct ethnl_req_info req_info = {}; ethnl_act_module_fw_flash() local
H A Dphy.c36 static int phy_reply_size(const struct ethnl_req_info *req_info, in phy_reply_size() argument
70 static int phy_prepare_data(const struct ethnl_req_info *req_info, in phy_prepare_data() argument
81 phydev = ethnl_req_get_phydev(req_info, tb, ETHTOOL_A_PHY_HEADER, in phy_prepare_data()
141 const struct ethnl_req_info *req_info, in phy_fill_reply()
142 phy_fill_reply(struct sk_buff * skb,const struct ethnl_req_info * req_info,const struct ethnl_reply_data * reply_data) phy_fill_reply() argument
H A Drss.c70 rss_parse_request(struct ethnl_req_info *req_info, in rss_parse_request()
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()
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 ethnl_rss_delete_notify()
530 ethnl_notify(dev, type, &req_info in ethtool_rss_notify()
69 rss_parse_request(struct ethnl_req_info * req_info,const struct genl_info * info,struct nlattr ** tb,struct netlink_ext_ack * extack) rss_parse_request() argument
372 struct ethnl_req_info req_info = {}; ethnl_rss_dump_start() local
527 struct rss_req_info req_info = { ethtool_rss_notify() local
586 ethnl_rss_set_validate(struct ethnl_req_info * req_info,struct genl_info * info) ethnl_rss_set_validate() argument
828 ethnl_rss_set(struct ethnl_req_info * req_info,struct genl_info * info) ethnl_rss_set() argument
[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 Dmm.c177 ethnl_set_mm_validate(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_mm_validate() argument
179 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_mm_validate()
184 static int ethnl_set_mm(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_mm() argument
187 struct net_device *dev = req_info->dev; in ethnl_set_mm()
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()
/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 …]