| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptvf_algs.c | 34 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 D | netlink.c | 133 * @req_info: structure to put results into 140 * the structure pointed to by @req_info. Extack from @info is used for error 141 * reporting. If req_info->dev is not null on return, reference to it has 142 * been taken. If error is returned, *req_info is null initialized and no 147 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, in ethnl_parse_header_dev_get() argument 177 dev = netdev_get_by_index(net, ifindex, &req_info->dev_tracker, in ethnl_parse_header_dev_get() 188 netdev_put(dev, &req_info->dev_tracker); in ethnl_parse_header_dev_get() 195 &req_info->dev_tracker, GFP_KERNEL); in ethnl_parse_header_dev_get() 209 req_info->phy_index = nla_get_u32(tb[ETHTOOL_A_HEADER_PHY_INDEX]); in ethnl_parse_header_dev_get() 217 req_info in ethnl_parse_header_dev_get() 222 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 361 struct ethnl_req_info *req_info; global() member 448 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 498 struct ethnl_req_info *req_info = NULL; ethnl_default_doit() local 652 struct ethnl_req_info *req_info; ethnl_default_start() local 706 struct ethnl_req_info *req_info; ethnl_perphy_start() local 880 struct ethnl_req_info *req_info; ethnl_default_set_doit() local 972 struct ethnl_req_info *req_info; ethnl_default_notify() local 1075 ethnl_notify(struct net_device * dev,unsigned int cmd,const struct ethnl_req_info * req_info) ethnl_notify() argument [all...] |
| H A D | phy.c | 36 static int phy_reply_size(const struct ethnl_req_info *req_info, in ethnl_phy_reply_size() 70 static int phy_prepare_data(const struct ethnl_req_info *req_info, in ethnl_phy_reply_size() 81 phydev = ethnl_req_get_phydev(req_info, tb, ETHTOOL_A_PHY_HEADER, in ethnl_phy_fill_reply() 112 const struct ethnl_req_info *req_info, in ethnl_phy_fill_reply() 31 struct phy_req_info *req_info = PHY_REQINFO(req_base); ethnl_phy_reply_size() local 76 struct phy_req_info *req_info = PHY_REQINFO(req_base); ethnl_phy_fill_reply() local 126 struct phy_req_info *req_info = PHY_REQINFO(req_base); ethnl_phy_parse_request() local 147 struct phy_req_info req_info = {}; ethnl_phy_doit() local
|
| H A D | tunnels.c | 167 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 D | tsinfo.c | 286 struct tsinfo_req_info *req_info; member 318 struct tsinfo_req_info *req_info, in ethnl_tsinfo_end_dump() argument 331 ret = tsinfo_fill_reply(skb, &req_info->base, &reply_data->base); in ethnl_tsinfo_end_dump() 348 struct tsinfo_req_info *req_info; in ethnl_tsinfo_dump_one_phydev() local 356 req_info = ctx->req_info; in ethnl_tsinfo_dump_one_phydev() 370 ret = ethnl_tsinfo_end_dump(skb, dev, req_info, reply_data, ehdr); in ethnl_tsinfo_dump_one_phydev() 387 struct tsinfo_req_info *req_info; in ethnl_tsinfo_dump_one_netdev() local 395 req_info = ctx->req_info; in ethnl_tsinfo_dump_one_netdev() 415 ret = ethnl_tsinfo_end_dump(skb, dev, req_info, reply_data, in ethnl_tsinfo_dump_one_netdev() 475 if (ctx->req_info->base.dev) { in ethnl_tsinfo_dumpit() [all …]
|
| H A D | stats.c | 106 struct stats_req_info *req_info = STATS_REQINFO(req_base); in stats_parse_request() local 110 err = ethnl_update_bitset(req_info->stat_mask, __ETHTOOL_STATS_CNT, in stats_parse_request() 124 req_info->src = src; in stats_parse_request() 133 const struct stats_req_info *req_info = STATS_REQINFO(req_base); in stats_prepare_data() local 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() 170 test_bit(ETHTOOL_STATS_ETH_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() 183 if (test_bit(ETHTOOL_STATS_ETH_CTRL, req_info->stat_mask) && in stats_prepare_data() [all …]
|
| H A D | netlink.h | 14 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, 28 const struct ethnl_req_info *req_info); 272 static inline void ethnl_parse_header_dev_put(struct ethnl_req_info *req_info) in ethnl_parse_header_dev_put() argument 274 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put() 280 * @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, 344 * be conveyed to the req_info used during NTF generation. 398 int (*parse_request)(struct ethnl_req_info *req_info, 401 int (*prepare_data)(const struct ethnl_req_info *req_info, [all...] |
| H A D | strset.c | 195 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() 369 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_reply_size() local 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() [all …]
|
| H A D | pause.c | 35 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() 175 ethnl_set_pause_validate(struct ethnl_req_info *req_info, in ethnl_set_pause_validate() argument 178 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_pause_validate() 184 ethnl_set_pause(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_pause() argument 186 struct net_device *dev = req_info->dev; in ethnl_set_pause()
|
| H A D | cabletest.c | 59 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 D | tsconfig.c | 199 struct tsconfig_req_info *req_info; in tsconfig_send_reply() local 205 req_info = kzalloc_obj(*req_info); 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 D | debug.c | 75 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 D | module.c | 114 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 D | linkinfo.c | 87 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 D | features.c | 222 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 D | wol.c | 97 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 D | eee.c | 120 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 D | rss.c | 69 rss_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, in rss_parse_request() argument 72 struct rss_req_info *request = RSS_REQINFO(req_info); in rss_parse_request() 369 struct ethnl_req_info req_info = {}; in ethnl_rss_dump_start() local 383 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_rss_dump_start() 387 if (req_info.dev) { in ethnl_rss_dump_start() 388 ctx->match_ifindex = req_info.dev->ifindex; in ethnl_rss_dump_start() 390 ethnl_parse_header_dev_put(&req_info); in ethnl_rss_dump_start() 391 req_info.dev = NULL; in ethnl_rss_dump_start() 524 struct rss_req_info req_info = { in ethtool_rss_notify() local 531 ethnl_notify(dev, type, &req_info.base); in ethtool_rss_notify() [all …]
|
| H A D | privflags.c | 130 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 D | channels.c | 101 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 D | coalesce.c | 348 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 D | linkmodes.c | 303 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 D | rings.c | 150 ethnl_set_rings_validate(struct ethnl_req_info *req_info, in ethnl_set_rings_validate() argument 153 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_rings_validate() 216 ethnl_set_rings(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_rings() argument 219 struct net_device *dev = req_info->dev; in ethnl_set_rings()
|
| H A D | mm.c | 177 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()
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 147 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 …]
|