/linux-6.12.1/drivers/crypto/cavium/cpt/ |
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-6.12.1/drivers/crypto/marvell/octeontx/ |
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 …]
|
/linux-6.12.1/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_algs.c | 130 struct otx2_cpt_req_info *req_info; in output_iv_copyback() local 143 req_info = &rctx->cpt_req; in output_iv_copyback() 147 if (req_info->is_enc) { in output_iv_copyback() 155 memcpy(sreq->iv, req_info->iv_out, ivsize); in output_iv_copyback() 156 kfree(req_info->iv_out); in output_iv_copyback() 179 static inline void update_input_data(struct otx2_cpt_req_info *req_info, in update_input_data() argument 183 req_info->req.dlen += nbytes; in update_input_data() 189 req_info->in[*argcnt].vptr = (void *)ptr; in update_input_data() 190 req_info->in[*argcnt].size = len; in update_input_data() 197 static inline void update_output_data(struct otx2_cpt_req_info *req_info, in update_output_data() argument [all …]
|
/linux-6.12.1/net/ethtool/ |
D | netlink.c | 137 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, in ethnl_parse_header_dev_get() argument 167 dev = netdev_get_by_index(net, ifindex, &req_info->dev_tracker, in ethnl_parse_header_dev_get() 178 netdev_put(dev, &req_info->dev_tracker); in ethnl_parse_header_dev_get() 185 &req_info->dev_tracker, GFP_KERNEL); in ethnl_parse_header_dev_get() 199 req_info->phy_index = nla_get_u32(tb[ETHTOOL_A_HEADER_PHY_INDEX]); in ethnl_parse_header_dev_get() 207 req_info->dev = dev; in ethnl_parse_header_dev_get() 208 req_info->flags = flags; in ethnl_parse_header_dev_get() 212 struct phy_device *ethnl_req_get_phydev(const struct ethnl_req_info *req_info, in ethnl_req_get_phydev() argument 220 if (!req_info->dev) in ethnl_req_get_phydev() 223 if (!req_info->phy_index) in ethnl_req_get_phydev() [all …]
|
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 …]
|
D | phy.c | 30 struct phy_req_info *req_info = PHY_REQINFO(req_base); in ethnl_phy_reply_size() local 31 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_reply_size() 75 struct phy_req_info *req_info = PHY_REQINFO(req_base); in ethnl_phy_fill_reply() local 76 struct phy_device_node *pdn = req_info->pdn; in ethnl_phy_fill_reply() 125 struct phy_req_info *req_info = PHY_REQINFO(req_base); in ethnl_phy_parse_request() local 139 req_info->pdn = xa_load(&topo->phys, phydev->phyindex); in ethnl_phy_parse_request() 146 struct phy_req_info req_info = {}; in ethnl_phy_doit() local 153 ret = ethnl_parse_header_dev_get(&req_info.base, in ethnl_phy_doit() 162 ret = ethnl_phy_parse_request(&req_info.base, tb, info->extack); in ethnl_phy_doit() 167 if (!req_info.pdn) in ethnl_phy_doit() [all …]
|
D | stats.c | 92 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 …]
|
D | netlink.h | 13 int ethnl_parse_header_dev_get(struct ethnl_req_info *req_info, 269 static inline void ethnl_parse_header_dev_put(struct ethnl_req_info *req_info) in ethnl_parse_header_dev_put() argument 271 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put() 291 struct phy_device *ethnl_req_get_phydev(const struct ethnl_req_info *req_info, 392 int (*parse_request)(struct ethnl_req_info *req_info, 395 int (*prepare_data)(const struct ethnl_req_info *req_info, 398 int (*reply_size)(const struct ethnl_req_info *req_info, 401 const struct ethnl_req_info *req_info, 405 int (*set_validate)(struct ethnl_req_info *req_info, 407 int (*set)(struct ethnl_req_info *req_info,
|
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() 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()
|
D | strset.c | 185 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() 280 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_prepare_data() local 293 if ((req_info->req_ids & (1U << i)) && in strset_prepare_data() 313 if (!strset_include(req_info, data, i) || in strset_prepare_data() 318 req_info->counts_only); in strset_prepare_data() 359 const struct strset_req_info *req_info = STRSET_REQINFO(req_base); in strset_reply_size() local 370 if (!strset_include(req_info, data, i)) in strset_reply_size() 373 ret = strset_set_size(set_info, req_info->counts_only); in strset_reply_size() [all …]
|
D | cabletest.c | 58 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test() local 65 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test() 72 dev = req_info.dev; in ethnl_act_cable_test() 75 phydev = ethnl_req_get_phydev(&req_info, in ethnl_act_cable_test() 102 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test() 319 struct ethnl_req_info req_info = {}; in ethnl_act_cable_test_tdr() local 327 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_cable_test_tdr() 334 dev = req_info.dev; in ethnl_act_cable_test_tdr() 342 phydev = ethnl_req_get_phydev(&req_info, in ethnl_act_cable_test_tdr() 371 ethnl_parse_header_dev_put(&req_info); in ethnl_act_cable_test_tdr()
|
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()
|
D | rss.c | 35 rss_parse_request(struct ethnl_req_info *req_info, struct nlattr **tb, in rss_parse_request() argument 38 struct rss_req_info *request = RSS_REQINFO(req_info); in rss_parse_request() 236 struct ethnl_req_info req_info = {}; in ethnl_rss_dump_start() local 250 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_rss_dump_start() 254 if (req_info.dev) { in ethnl_rss_dump_start() 255 ctx->match_ifindex = req_info.dev->ifindex; in ethnl_rss_dump_start() 257 ethnl_parse_header_dev_put(&req_info); in ethnl_rss_dump_start() 258 req_info.dev = NULL; in ethnl_rss_dump_start()
|
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()
|
D | module.c | 113 ethnl_set_module_validate(struct ethnl_req_info *req_info, in ethnl_set_module_validate() argument 116 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_module_validate() 122 if (req_info->dev->ethtool->module_fw_flash_in_progress) { in ethnl_set_module_validate() 139 ethnl_set_module(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_module() argument 144 struct net_device *dev = req_info->dev; in ethnl_set_module() 408 struct ethnl_req_info req_info = {}; in ethnl_act_module_fw_flash() local 413 ret = ethnl_parse_header_dev_get(&req_info, in ethnl_act_module_fw_flash() 419 dev = req_info.dev; in ethnl_act_module_fw_flash() 436 ethnl_parse_header_dev_put(&req_info); in ethnl_act_module_fw_flash()
|
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()
|
D | features.c | 220 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()
|
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()
|
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()
|
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()
|
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()
|
D | mm.c | 176 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()
|
D | fec.c | 229 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()
|
D | rings.c | 136 ethnl_set_rings_validate(struct ethnl_req_info *req_info, in ethnl_set_rings_validate() argument 139 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_rings_validate() 194 ethnl_set_rings(struct ethnl_req_info *req_info, struct genl_info *info) in ethnl_set_rings() argument 198 struct net_device *dev = req_info->dev; in ethnl_set_rings()
|
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()
|