Home
last modified time | relevance | path

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

12

/openbmc/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 …]
/openbmc/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c129 struct otx2_cpt_req_info *req_info; in output_iv_copyback() local
142 req_info = &rctx->cpt_req; in output_iv_copyback()
146 if (req_info->is_enc) { in output_iv_copyback()
154 memcpy(sreq->iv, req_info->iv_out, ivsize); in output_iv_copyback()
155 kfree(req_info->iv_out); in output_iv_copyback()
178 static inline void update_input_data(struct otx2_cpt_req_info *req_info, in update_input_data() argument
182 req_info->req.dlen += nbytes; in update_input_data()
188 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data()
189 req_info->in[*argcnt].size = len; in update_input_data()
196 static inline void update_output_data(struct otx2_cpt_req_info *req_info, in update_output_data() argument
[all …]
/openbmc/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 …]
/openbmc/linux/net/ethtool/
H A Dnetlink.c88 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->flags = flags; in ethnl_parse_header_dev_get()
263 struct ethnl_req_info *req_info; member
328 static int ethnl_default_parse(struct ethnl_req_info *req_info, in ethnl_default_parse() argument
336 ret = ethnl_parse_header_dev_get(req_info, tb[request_ops->hdr_attr], in ethnl_default_parse()
343 ret = request_ops->parse_request(req_info, tb, info->extack); in ethnl_default_parse()
[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 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 = STATS_REQINFO(req_base); in stats_reply_size() 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,
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->counts_only); in strset_reply_size()
[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 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 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 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 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 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 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 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.c233 ethnl_set_coalesce_validate(struct ethnl_req_info *req_info, in ethnl_set_coalesce_validate() argument
236 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_coalesce_validate()
257 __ethnl_set_coalesce(struct ethnl_req_info *req_info, struct genl_info *info, in __ethnl_set_coalesce() argument
261 struct net_device *dev = req_info->dev; in __ethnl_set_coalesce()
340 ethnl_set_coalesce(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_coalesce() argument
352 err = __ethnl_set_coalesce(req_info, info, &dual_change); in ethnl_set_coalesce()
358 err = __ethnl_set_coalesce(req_info, info, &dual_change); in ethnl_set_coalesce()
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()
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 Drings.c134 ethnl_set_rings_validate(struct ethnl_req_info *req_info, in ethnl_set_rings_validate() argument
137 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_rings_validate()
184 ethnl_set_rings(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_rings() argument
188 struct net_device *dev = req_info->dev; in ethnl_set_rings()
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()
H A Dlinkmodes.c303 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()
H A Drss.c32 rss_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, in rss_parse_request() argument
35 struct rss_req_info *request = RSS_REQINFO(req_info); in rss_parse_request()

12