/Linux-v5.10/net/bridge/ |
D | br_netlink.c | 27 int num_vlans = 0; in __get_num_vlan_infos() local 53 num_vlans += 2; in __get_num_vlan_infos() 55 num_vlans += 1; in __get_num_vlan_infos() 65 num_vlans += 2; in __get_num_vlan_infos() 67 num_vlans += 1; in __get_num_vlan_infos() 70 return num_vlans; in __get_num_vlan_infos() 76 int num_vlans; in br_get_num_vlan_infos() local 82 return vg->num_vlans; in br_get_num_vlan_infos() 85 num_vlans = __get_num_vlan_infos(vg, filter_mask); in br_get_num_vlan_infos() 88 return num_vlans; in br_get_num_vlan_infos() [all …]
|
D | br_fdb.c | 279 if (!vg || !vg->num_vlans) in br_fdb_changeaddr() 288 if (!vg || !vg->num_vlans) in br_fdb_changeaddr() 318 if (!vg || !vg->num_vlans) in br_fdb_change_mac_address() 1047 if (err || !vg || !vg->num_vlans) in br_fdb_add() 1132 if (!vg || !vg->num_vlans) in br_fdb_delete()
|
D | br_vlan.c | 297 vg->num_vlans++; in __vlan_add() 319 vg->num_vlans--; in __vlan_add() 369 vg->num_vlans--; in __vlan_del() 624 if (!vg || !vg->num_vlans) in br_should_learn() 674 vg->num_vlans++; in br_vlan_add_existing() 935 if (vg->num_vlans) in br_vlan_set_stats_per_port()
|
D | br_private.h | 176 u16 num_vlans; member
|
/Linux-v5.10/drivers/net/dsa/microchip/ |
D | ksz9477.c | 1351 dev->num_vlans, GFP_KERNEL); in ksz9477_setup() 1489 int num_vlans; member 1501 .num_vlans = 4096, 1511 .num_vlans = 4096, 1521 .num_vlans = 4096, 1530 .num_vlans = 4096, 1549 dev->num_vlans = chip->num_vlans; in ksz9477_switch_init()
|
D | ksz8795.c | 1047 dev->num_vlans, GFP_KERNEL); in ksz8795_setup() 1182 int num_vlans; member 1193 .num_vlans = 4096, 1202 .num_vlans = 4096, 1211 .num_vlans = 4096, 1230 dev->num_vlans = chip->num_vlans; in ksz8795_switch_init()
|
D | ksz_common.h | 65 int num_vlans; member
|
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 419 flow->l2_key.num_vlans = 1; in bnxt_tc_parse_flow() 685 if (flow->l2_key.num_vlans > 0) { in bnxt_hwrm_cfa_flow_alloc() 815 if (l2_info->num_vlans) { in hwrm_cfa_decap_filter_alloc() 891 if (l2_info->num_vlans) { in hwrm_cfa_encap_record_alloc() 892 encap->num_vlan_tags = l2_info->num_vlans; in hwrm_cfa_encap_record_alloc() 1257 l2_info->num_vlans = 1; in bnxt_tc_resolve_tunnel_hdrs() 1335 if (l2_info.num_vlans) { in bnxt_tc_get_decap_handle() 1336 decap_l2_info->num_vlans = l2_info.num_vlans; in bnxt_tc_get_decap_handle()
|
D | bnxt_tc.h | 25 u8 num_vlans; member
|
D | bnxt_hsi.h | 5866 u8 num_vlans; member
|
/Linux-v5.10/drivers/net/dsa/b53/ |
D | b53_common.c | 690 for (i = def_vid; i < dev->num_vlans; i++) in b53_configure_vlan() 705 for (vid = def_vid; vid < dev->num_vlans; vid++) { in b53_configure_vlan() 823 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch() 991 for (i = 0; i < dev->num_vlans; i++) { in b53_devlink_vlan_table_get() 1006 devlink_resource_size_params_init(&size_params, dev->num_vlans, in b53_setup_devlink_resources() 1007 dev->num_vlans, in b53_setup_devlink_resources() 1010 err = dsa_devlink_resource_register(ds, "VLAN", dev->num_vlans, in b53_setup_devlink_resources() 1407 if (vlan->vid_end > dev->num_vlans) in b53_vlan_prepare() 2508 dev->num_vlans = chip->vlans; in b53_switch_init() 2568 dev->num_vlans, sizeof(struct b53_vlan), in b53_switch_init()
|
D | b53_priv.h | 140 unsigned int num_vlans; member
|
/Linux-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1118 u16 num_vlans = 0, bkt; in i40e_getnum_vf_vsi_vlan_filters() local 1122 num_vlans++; in i40e_getnum_vf_vsi_vlan_filters() 1125 return num_vlans; in i40e_getnum_vf_vsi_vlan_filters() 1137 static void i40e_get_vlan_list_sync(struct i40e_vsi *vsi, u16 *num_vlans, in i40e_get_vlan_list_sync() argument 1145 *num_vlans = i40e_getnum_vf_vsi_vlan_filters(vsi); in i40e_get_vlan_list_sync() 1146 *vlan_list = kcalloc(*num_vlans, sizeof(**vlan_list), GFP_ATOMIC); in i40e_get_vlan_list_sync() 1172 bool unicast_enable, s16 *vl, u16 num_vlans) in i40e_set_vsi_promisc() argument 1180 if (!num_vlans || !vl) { in i40e_set_vsi_promisc() 1213 for (i = 0; i < num_vlans; i++) { in i40e_set_vsi_promisc() 1271 u16 num_vlans; in i40e_config_vf_promiscuous_mode() local [all …]
|
/Linux-v5.10/drivers/staging/fsl-dpaa2/ethsw/ |
D | dpsw-cmd.h | 175 __le16 num_vlans; member
|
D | dpsw.h | 168 u16 num_vlans; member
|
D | dpsw.c | 346 attr->num_vlans = le16_to_cpu(rsp_params->num_vlans); in dpsw_get_attributes()
|
D | ethsw.c | 998 if (attr->max_vlans - attr->num_vlans < new_vlans) in dpaa2_switch_port_vlans_add()
|
/Linux-v5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 435 int i, num_vlans; in qlcnic_sriov_set_guest_vlan_mode() local 451 num_vlans = sriov->num_allowed_vlans; in qlcnic_sriov_set_guest_vlan_mode() 452 sriov->allowed_vlans = kcalloc(num_vlans, sizeof(u16), GFP_KERNEL); in qlcnic_sriov_set_guest_vlan_mode() 457 for (i = 0; i < num_vlans; i++) in qlcnic_sriov_set_guest_vlan_mode()
|
/Linux-v5.10/drivers/net/dsa/sja1105/ |
D | sja1105_main.c | 2043 int num_vlans = 0; in sja1105_commit_vlans() local 2054 num_vlans++; in sja1105_commit_vlans() 2086 table->entries = kcalloc(num_vlans, table->ops->unpacked_entry_size, in sja1105_commit_vlans() 2091 table->entry_count = num_vlans; in sja1105_commit_vlans()
|