/kernel/linux/linux-4.19/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw.c | 37 if (ethsw->vlans[vid]) { in ethsw_add_vlan() 48 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in ethsw_add_vlan() 90 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in ethsw_port_set_pvid() 91 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in ethsw_port_set_pvid() 116 if (port_priv->vlans[vid]) { in ethsw_port_add_vlan() 129 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in ethsw_port_add_vlan() 140 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in ethsw_port_add_vlan() 220 if (!ethsw->vlans[vid]) in ethsw_dellink_switch() 228 ethsw->vlans[vid] = 0; in ethsw_dellink_switch() 232 ppriv_local->vlans[vid] = 0; in ethsw_dellink_switch() [all …]
|
D | ethsw.h | 49 u8 vlans[VLAN_VID_MASK + 1]; member 63 u8 vlans[VLAN_VID_MASK + 1]; member
|
/kernel/linux/linux-5.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 | 273 struct gswip_vlan vlans[64]; member 896 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create() 897 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create() 921 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create() 922 priv->vlans[idx].vid = vid; in gswip_vlan_active_create() 923 priv->vlans[idx].fid = fid; in gswip_vlan_active_create() 939 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove() 956 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware() 957 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware() 1019 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware() [all …]
|
/kernel/linux/linux-4.19/drivers/net/dsa/b53/ |
D | b53_common.c | 774 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch() 1164 vl = &dev->vlans[vid]; in b53_vlan_add() 1201 vl = &dev->vlans[vid]; in b53_vlan_del() 1527 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave() 1820 u16 vlans; member 1841 .vlans = 16, 1850 .vlans = 256, 1859 .vlans = 4096, 1871 .vlans = 4096, 1883 .vlans = 4096, [all …]
|
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw.h | 55 u8 vlans[VLAN_VID_MASK + 1]; member 71 u8 vlans[VLAN_VID_MASK + 1]; member
|
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 …]
|
/kernel/linux/linux-5.10/drivers/net/dsa/b53/ |
D | b53_common.c | 721 v = &dev->vlans[vid]; in b53_configure_vlan() 838 memset(priv->vlans, 0, sizeof(*priv->vlans) * priv->num_vlans); in b53_reset_switch() 1007 vl = &dev->vlans[i]; in b53_devlink_vlan_table_get() 1434 vl = &dev->vlans[vid]; in b53_vlan_add() 1471 vl = &dev->vlans[vid]; in b53_vlan_del() 1859 struct b53_vlan *vl = &dev->vlans[0]; in b53_br_leave() 2239 u16 vlans; member 2262 .vlans = 16, 2273 .vlans = 256, 2284 .vlans = 4096, [all …]
|
/kernel/linux/linux-4.19/drivers/scsi/fnic/ |
D | fnic_fcs.c | 454 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp() 462 if (list_empty(&fnic->vlans)) { in fnic_fcoe_process_vlan_resp() 471 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp() 493 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc() 512 if (list_empty(&fnic->vlans)) { in fnic_fcoe_vlan_check() 517 fvlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_vlan_check() 1312 if (!list_empty(&fnic->vlans)) { in fnic_fcoe_reset_vlans() 1313 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans() 1339 if (list_empty(&fnic->vlans)) { in fnic_handle_fip_timer() 1349 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer() [all …]
|
D | fnic.h | 290 struct list_head vlans; member
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-4.19/include/linux/mlx5/ |
D | vport.h | 100 u16 vlans[], 103 u16 vlans[],
|
/kernel/linux/linux-5.10/include/linux/dsa/ |
D | loop.h | 36 struct dsa_loop_vlan vlans[VLAN_N_VID]; member
|
/kernel/linux/linux-4.19/drivers/net/dsa/ |
D | dsa_loop.c | 59 struct dsa_loop_vlan vlans[DSA_LOOP_VLANS]; member 217 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_add() 246 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_del()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-4.19/drivers/net/ |
D | macvlan.c | 48 struct list_head vlans; member 488 vlan = list_first_or_null_rcu(&port->vlans, in macvlan_handle_frame() 1176 INIT_LIST_HEAD(&port->vlans); in macvlan_port_create() 1460 list_add_tail_rcu(&vlan->list, &port->vlans); in macvlan_common_newlink() 1670 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event() 1675 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1682 list_for_each_entry(vlan, &port->vlans, list) { in macvlan_device_event() 1692 vlan = list_first_entry_or_null(&port->vlans, in macvlan_device_event() 1705 list_for_each_entry_safe(vlan, next, &port->vlans, list) in macvlan_device_event() 1717 list_for_each_entry(vlan, &port->vlans, list) in macvlan_device_event()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-4.19/net/mac80211/ |
D | key.c | 76 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count() 750 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_enable_keys() 772 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_reset_crypto_tx_tailroom() 897 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys() 921 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
|
/kernel/linux/linux-4.19/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 | 377 u16 vlans[], in mlx5_query_nic_vport_vlans() argument 428 vlans[i] = MLX5_GET(vlan_layout, vlan_addr, vlan); in mlx5_query_nic_vport_vlans() 437 u16 vlans[], in mlx5_modify_nic_vport_vlans() argument 478 MLX5_SET(vlan_layout, vlan_addr, vlan, vlans[i]); in mlx5_modify_nic_vport_vlans()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs.c | 116 u16 *vlans; in mlx5e_vport_context_update_vlans() local 134 vlans = kcalloc(list_size, sizeof(*vlans), GFP_KERNEL); in mlx5e_vport_context_update_vlans() 135 if (!vlans) in mlx5e_vport_context_update_vlans() 142 vlans[i++] = vlan; in mlx5e_vport_context_update_vlans() 145 err = mlx5_modify_nic_vport_vlans(priv->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans() 150 kfree(vlans); in mlx5e_vport_context_update_vlans()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | vport.h | 121 u16 vlans[],
|
/kernel/linux/linux-5.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() 905 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { in ieee80211_reenable_keys() 1040 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys() 1064 list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) in ieee80211_free_keys()
|
/kernel/linux/linux-4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 184 struct qed_vf_vlan_shadow vlans[QED_ETH_VF_NUM_VLAN_FILTERS + 1]; member
|
/kernel/linux/linux-5.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
|