| /Linux-v5.10/drivers/net/dsa/ |
| D | dsa_loop.c | 41 for (i = 0; i < ARRAY_SIZE(ps->vlans); i++) { in dsa_loop_devlink_vtu_get() 42 vl = &ps->vlans[i]; in dsa_loop_devlink_vtu_get() 56 devlink_resource_size_params_init(&size_params, ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 57 ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 60 err = dsa_devlink_resource_register(ds, "VTU", ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources() 215 if (vlan->vid_end > ARRAY_SIZE(ps->vlans)) in dsa_loop_port_vlan_prepare() 235 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_add() 264 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_del()
|
| D | lantiq_gswip.c | 254 struct gswip_vlan vlans[64]; member 878 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create() 879 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create() 903 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create() 904 priv->vlans[idx].vid = vid; in gswip_vlan_active_create() 905 priv->vlans[idx].fid = fid; in gswip_vlan_active_create() 921 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove() 938 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware() 939 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware() 1001 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware() [all …]
|
| /Linux-v5.10/drivers/staging/fsl-dpaa2/ethsw/ |
| D | ethsw.c | 41 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan() 102 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid() 103 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid() 128 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan() 141 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan() 152 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan() 214 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_set_stp_state() 237 if (!ethsw->vlans[vid]) in dpaa2_switch_dellink() 245 ethsw->vlans[vid] = 0; in dpaa2_switch_dellink() 249 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink() [all …]
|
| D | ethsw.h | 55 u8 vlans[VLAN_VID_MASK + 1]; member 71 u8 vlans[VLAN_VID_MASK + 1]; member
|
| /Linux-v5.10/drivers/net/dsa/b53/ |
| D | b53_common.c | 706 v = &dev->vlans[vid]; in b53_configure_vlan() 823 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch() 992 vl = &dev->vlans[i]; in b53_devlink_vlan_table_get() 1426 vl = &dev->vlans[vid]; in b53_vlan_add() 1463 vl = &dev->vlans[vid]; in b53_vlan_del() 1849 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave() 2228 u16 vlans; member 2250 .vlans = 16, 2260 .vlans = 256, 2270 .vlans = 4096, [all …]
|
| D | b53_priv.h | 141 struct b53_vlan *vlans; member
|
| /Linux-v5.10/drivers/scsi/fnic/ |
| D | fnic_fcs.c | 464 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp() 472 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp() 481 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp() 503 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc() 522 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check() 527 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check() 1314 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans() 1315 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans() 1341 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer() 1351 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer() [all …]
|
| D | fnic.h | 292 struct list_head vlans; member
|
| /Linux-v5.10/include/linux/dsa/ |
| D | loop.h | 36 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
|
| /Linux-v5.10/drivers/net/ |
| D | macvlan.c | 46 struct list_head vlans; member 485 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame() 1215 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create() 1498 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink() 1708 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event() 1713 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1720 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1730 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event() 1743 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event() 1755 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
|
| /Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | dr_action.c | 370 struct dr_action_vlan_info vlans; member 430 for (i = 0; i < attr->vlans.count; i++) { in dr_actions_apply_tx() 438 attr->vlans.headers[i], in dr_actions_apply_tx() 494 for (i = 0; i < attr->vlans.count; i++) { in dr_actions_apply_rx() 760 attr.vlans.count++; in mlx5dr_actions_build_ste_arr() 764 if (attr.vlans.count == MAX_VLANS) in mlx5dr_actions_build_ste_arr() 767 attr.vlans.headers[attr.vlans.count++] = action->push_vlan.vlan_hdr; in mlx5dr_actions_build_ste_arr()
|
| /Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en_fs.c | 115 u16 *vlans; in mlx5e_vport_context_update_vlans() local 133 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans() 134 if (!vlans) in mlx5e_vport_context_update_vlans() 141 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans() 144 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans() 149 kfree(vlans); in mlx5e_vport_context_update_vlans()
|
| D | vport.c | 368 u16 vlans[], in mlx5_modify_nic_vport_vlans() argument 409 MLX5_SET(vlan_layout, vlan_addr, vlan, vlans[i]); in mlx5_modify_nic_vport_vlans()
|
| /Linux-v5.10/include/linux/mlx5/ |
| D | vport.h | 121 u16 vlans[],
|
| /Linux-v5.10/net/mac80211/ |
| D | key.c | 74 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count() 898 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_reenable_keys() 1033 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys() 1057 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
|
| D | iface.c | 487 list_for_each_entry_safe(vlan, tmpsdata, &sdata->u.ap.vlans, in ieee80211_do_stop() 490 WARN_ON(!list_empty(&sdata->u.ap.vlans)); in ieee80211_do_stop() 1042 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open() 1549 INIT_LIST_HEAD(&sdata->u.ap.vlans); in ieee80211_setup_sdata()
|
| D | sta_info.h | 795 int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans);
|
| D | sta_info.c | 1194 int __sta_info_flush(struct ieee80211_sub_if_data *sdata, bool vlans) in __sta_info_flush() argument 1203 WARN_ON(vlans && sdata->vif.type != NL80211_IFTYPE_AP); in __sta_info_flush() 1204 WARN_ON(vlans && !sdata->bss); in __sta_info_flush() 1209 (vlans && sdata->bss == sta->sdata->bss)) { in __sta_info_flush()
|
| D | chan.c | 830 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in __ieee80211_vif_copy_chanctx_to_vlans() 1017 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_vif_update_chandef()
|
| /Linux-v5.10/drivers/net/ethernet/qlogic/qed/ |
| D | qed_sriov.h | 158 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
|
| D | qed_sriov.c | 1732 if (!p_vf->shadow_config.vlans[i].used) in qed_iov_reconfigure_unicast_vlan() 1736 filter.vlan = p_vf->shadow_config.vlans[i].vid; in qed_iov_reconfigure_unicast_vlan() 3103 if (p_vf->shadow_config.vlans[i].used && in qed_iov_vf_update_vlan_shadow() 3104 p_vf->shadow_config.vlans[i].vid == in qed_iov_vf_update_vlan_shadow() 3106 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow() 3119 p_vf->shadow_config.vlans[i].used = false; in qed_iov_vf_update_vlan_shadow() 3131 if (p_vf->shadow_config.vlans[i].used) in qed_iov_vf_update_vlan_shadow() 3134 p_vf->shadow_config.vlans[i].used = true; in qed_iov_vf_update_vlan_shadow() 3135 p_vf->shadow_config.vlans[i].vid = p_params->vlan; in qed_iov_vf_update_vlan_shadow()
|
| /Linux-v5.10/drivers/net/ethernet/intel/fm10k/ |
| D | fm10k.h | 517 u16 glort, bool vlans);
|
| D | fm10k_netdev.c | 724 u16 glort, bool vlans) in fm10k_clear_macvlan_queue() argument 742 if (vlans) { in fm10k_clear_macvlan_queue()
|
| /Linux-v5.10/net/bridge/ |
| D | br_vlan.c | 2021 int err, vlans = 0; in br_vlan_rtm_process() local 2044 vlans++; in br_vlan_rtm_process() 2050 if (!vlans) { in br_vlan_rtm_process()
|
| /Linux-v5.10/drivers/net/ethernet/qlogic/qlcnic/ |
| D | qlcnic_sriov_common.c | 436 u16 *vlans; in qlcnic_sriov_set_guest_vlan_mode() local 456 vlans = (u16 *)&cmd->rsp.arg[3]; in qlcnic_sriov_set_guest_vlan_mode() 458 sriov->allowed_vlans[i] = vlans[i]; in qlcnic_sriov_set_guest_vlan_mode()
|