/linux-6.6.21/net/ethtool/ |
D | common.c | 536 return info.rule_cnt; in ethtool_get_rxnfc_rule_count() 543 int err, i, rule_cnt; in ethtool_get_max_rxnfc_channel() local 549 rule_cnt = ethtool_get_rxnfc_rule_count(dev); in ethtool_get_max_rxnfc_channel() 550 if (rule_cnt <= 0) in ethtool_get_max_rxnfc_channel() 553 info = kvzalloc(struct_size(info, rule_locs, rule_cnt), GFP_KERNEL); in ethtool_get_max_rxnfc_channel() 558 info->rule_cnt = rule_cnt; in ethtool_get_max_rxnfc_channel() 563 for (i = 0; i < rule_cnt; i++) { in ethtool_get_max_rxnfc_channel()
|
D | ioctl.c | 862 .rule_cnt = crxnfc.rule_cnt, in ethtool_rxnfc_copy_from_compat() 901 .rule_cnt = rxnfc->rule_cnt, in ethtool_rxnfc_copy_to_compat() 962 rxnfc->rule_cnt * sizeof(u32))) in ethtool_rxnfc_copy_to_user() 1011 if (info.rule_cnt > 0) { in ethtool_get_rxnfc() 1012 if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32)) in ethtool_get_rxnfc() 1013 rule_buf = kcalloc(info.rule_cnt, sizeof(u32), in ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/engleder/ |
D | tsnep_rxnfc.c | 136 if (count == cmd->rule_cnt) { in tsnep_rxnfc_get_all() 148 cmd->rule_cnt = count; in tsnep_rxnfc_get_all()
|
D | tsnep_ethtool.c | 270 cmd->rule_cnt = adapter->rxnfc_count; in tsnep_ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 401 if (cnt == cmd->rule_cnt) in enic_grxclsrlall() 407 cmd->rule_cnt = cnt; in enic_grxclsrlall() 504 cmd->rule_cnt = enic->rfs_h.max - enic->rfs_h.free; in enic_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 738 rxnfc->rule_cnt = 0; in dpaa2_eth_get_rxnfc() 739 rxnfc->rule_cnt = dpaa2_eth_num_cls_rules(priv); in dpaa2_eth_get_rxnfc() 755 if (j == rxnfc->rule_cnt) in dpaa2_eth_get_rxnfc() 759 rxnfc->rule_cnt = j; in dpaa2_eth_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/ |
D | bcmasp_ethtool.c | 330 cmd->rule_cnt = bcmasp_netfilt_get_active(intf); in bcmasp_get_rxnfc() 338 err = bcmasp_netfilt_get_all_active(intf, rule_locs, &cmd->rule_cnt); in bcmasp_get_rxnfc()
|
D | bcmasp.c | 532 u32 *rule_cnt) in bcmasp_netfilt_get_all_active() argument 547 if (j == *rule_cnt) in bcmasp_netfilt_get_all_active() 553 *rule_cnt = j; in bcmasp_netfilt_get_all_active()
|
D | bcmasp.h | 581 u32 *rule_cnt);
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.c | 875 struct eth_classify_header *hdr, int rule_cnt) in bnx2x_vlan_mac_set_rdata_hdr_e2() argument 879 hdr->rule_cnt = (u8)rule_cnt; in bnx2x_vlan_mac_set_rdata_hdr_e2() 891 int rule_cnt = rule_idx + 1, cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_mac_e2() local 944 rule_cnt++; in bnx2x_set_one_mac_e2() 965 rule_cnt); in bnx2x_set_one_mac_e2() 1075 int rule_cnt = rule_idx + 1; in bnx2x_set_one_vlan_e2() local 1098 rule_cnt++; in bnx2x_set_one_vlan_e2() 1114 rule_cnt); in bnx2x_set_one_vlan_e2() 1125 int rule_cnt = rule_idx + 1; in bnx2x_set_one_vlan_mac_e2() local 1153 rule_cnt++; in bnx2x_set_one_vlan_mac_e2() [all …]
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 511 u32 rule_cnt = nfc->rule_cnt; in otx2_get_all_flows() local 517 while ((!err || err == -ENOENT) && idx < rule_cnt) { in otx2_get_all_flows() 523 nfc->rule_cnt = rule_cnt; in otx2_get_all_flows()
|
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 607 rxnfc->rule_cnt = 0; in enetc_get_rxnfc() 610 rxnfc->rule_cnt++; in enetc_get_rxnfc() 627 if (j == rxnfc->rule_cnt) in enetc_get_rxnfc() 632 rxnfc->rule_cnt = j; in enetc_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 773 if (unlikely(count == cmd->rule_cnt)) in aq_get_rxnfc_all_rules() 779 cmd->rule_cnt = count; in aq_get_rxnfc_all_rules()
|
D | aq_ethtool.c | 522 cmd->rule_cnt = aq_get_rxnfc_count_all_rules(aq_nic); in aq_ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1376 if (i == cmd->rule_cnt) in gfar_get_cls_all() 1383 cmd->rule_cnt = i; in gfar_get_cls_all() 1434 cmd->rule_cnt = priv->rx_list.count; in gfar_get_nfc()
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 877 info->rule_cnt = in efx_siena_ethtool_get_rxnfc() 896 rule_locs, info->rule_cnt); in efx_siena_ethtool_get_rxnfc() 899 info->rule_cnt = rc; in efx_siena_ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 876 info->rule_cnt = in efx_ethtool_get_rxnfc() 895 rule_locs, info->rule_cnt); in efx_ethtool_get_rxnfc() 898 info->rule_cnt = rc; in efx_ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 991 info->rule_cnt = in ef4_ethtool_get_rxnfc() 1006 rule_locs, info->rule_cnt); in ef4_ethtool_get_rxnfc() 1009 info->rule_cnt = rc; in ef4_ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 828 while ((!err || err == -ENOENT) && idx < info->rule_cnt) { in mlx5e_ethtool_get_all_flows() 1006 info->rule_cnt = ethtool->tot_num_rules; in mlx5e_ethtool_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.c | 1590 int i, ret, rule_cnt; in hclge_dbg_dump_fd_tcam() local 1614 rule_cnt = hclge_dbg_get_rules_location(hdev, rule_locs); in hclge_dbg_dump_fd_tcam() 1615 if (rule_cnt < 0) { in hclge_dbg_dump_fd_tcam() 1616 ret = rule_cnt; in hclge_dbg_dump_fd_tcam() 1623 for (i = 0; i < rule_cnt; i++) { in hclge_dbg_dump_fd_tcam()
|
/linux-6.6.21/include/linux/ |
D | ethtool.h | 37 u32 rule_cnt; member
|
/linux-6.6.21/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 1097 nfc->rule_cnt = rules_cnt; in bcm_sf2_cfp_rule_get_all() 1114 nfc->rule_cnt = bitmap_weight(priv->cfp.unique, in bcm_sf2_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1216 if (cnt == cmd->rule_cnt) { in iavf_get_fdir_fltr_ids() 1227 cmd->rule_cnt = cnt; in iavf_get_fdir_fltr_ids() 1797 cmd->rule_cnt = adapter->fdir_active_fltr; in iavf_get_rxnfc()
|
/linux-6.6.21/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 1033 if (cnt == cmd->rule_cnt) { in igc_ethtool_get_nfc_rules() 1043 cmd->rule_cnt = cnt; in igc_ethtool_get_nfc_rules() 1100 cmd->rule_cnt = adapter->nfc_rule_count; in igc_ethtool_get_rxnfc()
|
/linux-6.6.21/include/uapi/linux/ |
D | ethtool.h | 1226 __u32 rule_cnt; member
|