/linux/drivers/gpu/drm/sti/ |
A D | sti_vid.c | 61 readl(vid->regs + reg)) 132 vid_debugfs_files[i].data = vid; in vid_debugfs_init() 157 val = readl(vid->regs + VID_CTL); in sti_vid_commit() 210 struct sti_vid *vid; in sti_vid_create() local 212 vid = devm_kzalloc(dev, sizeof(*vid), GFP_KERNEL); in sti_vid_create() 213 if (!vid) { in sti_vid_create() 218 vid->dev = dev; in sti_vid_create() 219 vid->regs = baseaddr; in sti_vid_create() 220 vid->id = id; in sti_vid_create() 222 sti_vid_init(vid); in sti_vid_create() [all …]
|
/linux/drivers/staging/media/tegra-video/ |
A D | video.c | 16 struct tegra_video_device *vid; in tegra_v4l2_dev_release() local 21 tegra_channels_cleanup(vid->vi); in tegra_v4l2_dev_release() 26 kfree(vid); in tegra_v4l2_dev_release() 46 struct tegra_video_device *vid; in host1x_video_probe() local 49 vid = kzalloc(sizeof(*vid), GFP_KERNEL); in host1x_video_probe() 50 if (!vid) in host1x_video_probe() 53 dev_set_drvdata(&dev->dev, vid); in host1x_video_probe() 55 vid->media_dev.dev = &dev->dev; in host1x_video_probe() 57 sizeof(vid->media_dev.model)); in host1x_video_probe() 67 vid->v4l2_dev.mdev = &vid->media_dev; in host1x_video_probe() [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_vlan.c | 27 u16 vid; in sparx5_vlan_init() local 35 for (vid = NULL_VID; vid < VLAN_N_VID; vid++) in sparx5_vlan_init() 69 port->pvid = vid; in sparx5_vlan_vid_add() 72 if (untagged && port->vid != vid) { in sparx5_vlan_vid_add() 73 if (port->vid) { in sparx5_vlan_vid_add() 76 port->vid); in sparx5_vlan_vid_add() 79 port->vid = vid; in sparx5_vlan_vid_add() 96 if (vid == 0) in sparx5_vlan_vid_del() 110 if (port->vid == vid) in sparx5_vlan_vid_del() 111 port->vid = 0; in sparx5_vlan_vid_del() [all …]
|
A D | sparx5_mactable.c | 40 u16 vid; member 61 u16 vid) in sparx5_mact_select() argument 191 u16 vid) in sparx5_mact_lookup() argument 250 mact_entry->vid = vid; in alloc_mact_entry() 264 if (mact_entry->vid == vid && in find_mact_entry() 283 info.vid = vid; in sparx5_fdb_call_notifiers() 335 u16 vid) in sparx5_del_mact_entry() argument 345 if ((vid == 0 || mact_entry->vid == vid) && in sparx5_del_mact_entry() 379 if (mact_entry->vid == vid && in sparx5_mact_handle_entry() 425 u16 vid; in sparx5_mact_pull_work() local [all …]
|
/linux/net/bridge/ |
A D | br_netlink_tunnel.c | 51 } else if ((v->vid - vtend->vid) == 1 && in __get_num_vlan_tunnel_infos() 56 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos() 67 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos() 103 vid)) in br_fill_vlan_tinfo() 124 if (vtend && (vtend->vid - vtbegin->vid) > 0) { in br_fill_vlan_tinfo_range() 167 } else if ((v->vid - vtend->vid) == 1 && in br_fill_vlan_tunnel_info() 224 u16 vid, flags = 0; in br_parse_vlan_tunnel_info() local 247 tinfo->vid = vid; in br_parse_vlan_tunnel_info() 301 if ((tinfo_curr->vid - tinfo_last->vid) != in br_process_vlan_tunnel_info() 305 for (v = tinfo_last->vid; v <= tinfo_curr->vid; v++) { in br_process_vlan_tunnel_info() [all …]
|
A D | br_vlan.c | 19 return vle->vid != vid; in br_vlan_cmp() 116 if (v->vid >= vent->vid) in __vlan_add_list() 435 u16 vid; in br_handle_vlan() local 618 u16 vid; in br_allowed_egress() local 739 vlan->vid = vid; in br_vlan_add() 1263 vlan->vid = vid; in nbp_vlan_add() 1444 p_vinfo->vid = vid; in br_vlan_get_info() 1471 p_vinfo->vid = vid; in br_vlan_get_info_rcu() 1527 .vid = vid, in br_vlan_get_upper_bind_vlan_dev() 1752 info.vid = vid; in br_vlan_fill_vids() [all …]
|
A D | br_vlan_options.c | 164 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel() 224 int vid, err = 0; in br_vlan_process_options() local 242 for (vid = range_start->vid; vid <= range_end->vid; vid++) { in br_vlan_process_options() 265 if (v->vid == pvid || in br_vlan_process_options() 277 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options() 284 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options() 293 return v_curr->vid - r_end->vid == 1 && in br_vlan_global_opts_can_enter_range() 591 u16 vid, vid_range = 0; in br_vlan_rtm_process_global_options() local 630 vid_range = vid; in br_vlan_rtm_process_global_options() 633 for (; vid <= vid_range; vid++) { in br_vlan_rtm_process_global_options() [all …]
|
A D | br_fdb.c | 210 __u16 vid) in fdb_find_rcu() argument 216 key.vlan_id = vid; in fdb_find_rcu() 225 __u16 vid) in br_fdb_find() argument 240 __u16 vid) in br_fdb_find_port() argument 264 __u16 vid) in br_fdb_find_rcu() argument 344 (!vid || br_vlan_find(vg, vid))) { in fdb_delete_local() 381 __u16 vid, in fdb_create() argument 581 u16 vid, in br_fdb_delete_by_port() argument 596 (vid && f->key.vlan_id != vid)) in br_fdb_delete_by_port() 1048 if (vid) { in br_fdb_add() [all …]
|
/linux/drivers/net/dsa/ |
A D | rtl8366.c | 59 i, vid); in rtl8366_obtain_mc() 63 if (vid == vlanmc->vid) in rtl8366_obtain_mc() 72 i, vid); in rtl8366_obtain_mc() 81 i, vid); in rtl8366_obtain_mc() 85 vlanmc->vid = vid; in rtl8366_obtain_mc() 92 i, vid); in rtl8366_obtain_mc() 97 i, vid); in rtl8366_obtain_mc() 116 vlanmc->vid = vid; in rtl8366_obtain_mc() 127 i, vid); in rtl8366_obtain_mc() 182 mc, vid); in rtl8366_set_vlan() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | vxlan_bridge_1q.sh | 486 local vid=$1; shift 497 bridge vlan add vid $vid dev $swp2 untagged 518 bridge vlan add vid $vid dev $swp2 525 local vid=$1; shift 547 local vid=$1; shift 562 local vid=$1; shift 619 local vid=10 708 local vid=$1; shift 711 local vx=vx$vid 817 local vid=10 [all …]
|
/linux/include/trace/events/ |
A D | bridge.h | 17 TP_ARGS(ndm, dev, addr, vid, nlh_flags), 23 __field(u16, vid) 30 __entry->vid = vid; 38 __entry->addr[5], __entry->vid, 47 TP_ARGS(br, p, addr, vid), 53 __field(u16, vid) 60 __entry->vid = vid; 79 __field(u16, vid) 86 __entry->vid = f->key.vlan_id; 106 __field(u16, vid) [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_switchdev.c | 87 br_vlan->vid = vid; in prestera_bridge_vlan_create() 106 if (br_vlan->vid == vid) in prestera_bridge_vlan_by_vid() 122 if (br_vlan->vid == vid) { in prestera_bridge_vlan_port_count() 144 if (port_vlan->vid == vid) in prestera_port_vlan_by_vid() 172 port_vlan->vid = vid; in prestera_port_vlan_create() 230 u16 vid = port_vlan->vid; in prestera_port_vlan_bridge_leave() local 256 u16 vid = port_vlan->vid; in prestera_port_vlan_destroy() local 762 send_info.vid = info->vid; in prestera_fdb_offload_notify() 786 vid = fdb_info->vid; in prestera_port_fdb_set() 915 u16 vid = port_vlan->vid; in prestera_port_vlan_bridge_join() local [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
A D | pvrusb2-cx2584x-v4l.c | 27 int vid; member 38 .vid = CX25840_COMPOSITE7, 42 .vid = CX25840_COMPOSITE3, 46 .vid = CX25840_COMPOSITE3, 50 .vid = CX25840_SVIDEO1, 63 .vid = CX25840_COMPOSITE2, 69 .vid = CX25840_COMPOSITE1, 73 .vid = CX25840_COMPOSITE1, 90 .vid = CX25840_COMPOSITE1, 106 .vid = CX25840_COMPOSITE7, [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_netdev.c | 657 request->vlan.vid = vid; in fm10k_queue_vlan_request() 702 request->mac.vid = vid; in fm10k_queue_mac_request() 758 u16 vid = interface->vid; in fm10k_uc_vlan_unsync() local 778 u16 vid = interface->vid; in fm10k_mc_vlan_unsync() local 803 if (!vid) in fm10k_update_vid() 883 interface->vid = vid + (set ? VLAN_N_VID : 0); in fm10k_update_vid() 927 prev_vid = vid + 1, vid = fm10k_find_next_vlan(interface, vid)) { in fm10k_clear_unused_vlans() 949 vid = fm10k_find_next_vlan(interface, vid)) { in __fm10k_uc_sync() 1014 vid = fm10k_find_next_vlan(interface, vid)) { in __fm10k_mc_sync() 1435 vid = fm10k_find_next_vlan(interface, vid)) in fm10k_dfwd_add_station() [all …]
|
/linux/net/batman-adv/ |
A D | bridge_loop_avoidance.c | 113 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 137 if (cl1->vid != cl2->vid) in batadv_compare_claim() 270 search_entry.vid = vid; in batadv_backbone_hash_find() 511 entry->vid = vid; in batadv_bla_get_backbone_gw() 696 search_claim.vid = vid; in batadv_bla_add_claim() 707 claim->vid = vid; in batadv_bla_add_claim() 802 search_claim.vid = vid; in batadv_bla_del_claim() 1751 backbone_gw->vid == vid) { in batadv_bla_is_backbone_gw_orig() 1944 search_claim.vid = vid; in batadv_bla_rx() 2056 search_claim.vid = vid; in batadv_bla_tx() [all …]
|
A D | distributed-arp-table.c | 292 __be16 vid; in batadv_hash_dat() local 302 vid = htons(dat->vid); in batadv_hash_dat() 339 to_find.vid = vid; in batadv_dat_entry_hash_find() 391 dat_entry->vid = vid; in batadv_dat_entry_add() 646 dat.vid = vid; in batadv_dat_select_candidates() 1077 unsigned short vid; in batadv_dat_get_vid() local 1089 return vid; in batadv_dat_get_vid() 1148 unsigned short vid; in batadv_dat_snoop_outgoing_arp_request() local 1242 unsigned short vid; in batadv_dat_snoop_incoming_arp_request() local 1278 NULL, vid); in batadv_dat_snoop_incoming_arp_request() [all …]
|
A D | translation-table.h | 20 unsigned short vid, int ifindex, u32 mark); 22 const u8 *addr, unsigned short vid, 31 unsigned short vid); 34 const u8 *addr, unsigned short vid); 37 unsigned short vid); 40 unsigned short vid); 42 unsigned short vid); 45 u8 *addr, unsigned short vid); 47 u8 *addr, unsigned short vid); 52 unsigned short vid); [all …]
|
A D | soft-interface.c | 196 unsigned short vid; in batadv_interface_tx() local 249 vid, skb->skb_iif, in batadv_interface_tx() 374 vid); in batadv_interface_tx() 419 unsigned short vid; in batadv_interface_rx() local 479 vid)) { in batadv_interface_rx() 527 unsigned short vid) in batadv_softif_vlan_get() argument 533 if (vlan_tmp->vid != vid) in batadv_softif_vlan_get() 574 vlan->vid = vid; in batadv_softif_create_vlan() 625 unsigned short vid) in batadv_interface_add_vid() argument 636 vid |= BATADV_VLAN_HAS_TAG; in batadv_interface_add_vid() [all …]
|
/linux/net/dsa/ |
A D | tag_8021q.c | 98 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument 105 int dsa_8021q_rx_source_port(u16 vid) in dsa_8021q_rx_source_port() argument 111 bool vid_is_dsa_8021q_rxvlan(u16 vid) in vid_is_dsa_8021q_rxvlan() argument 117 bool vid_is_dsa_8021q_txvlan(u16 vid) in vid_is_dsa_8021q_txvlan() argument 123 bool vid_is_dsa_8021q(u16 vid) in vid_is_dsa_8021q() argument 125 return vid_is_dsa_8021q_rxvlan(vid) || vid_is_dsa_8021q_txvlan(vid); in vid_is_dsa_8021q() 135 if (v->vid == vid && v->port == port) in dsa_tag_8021q_vlan_find() 170 v->vid = vid; in dsa_port_do_tag_8021q_vlan_add() 578 u16 vid, tci; in dsa_8021q_rcv() local 589 vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv() [all …]
|
/linux/net/8021q/ |
A D | vlan_core.c | 165 u16 vid; member 181 __be16 proto, u16 vid) in vlan_vid_info_get() argument 186 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get() 200 vid_info->vid = vid; in vlan_vid_info_alloc() 244 vid_info->vid); in vlan_for_each() 245 ret = action(vdev, vid_info->vid, arg); in vlan_for_each() 263 vlan_vid_info->vid); in vlan_filter_push_vids() 276 vlan_vid_info->vid); in vlan_filter_push_vids() 291 vlan_vid_info->vid); in vlan_filter_drop_vids() 302 vid_info = vlan_vid_info_alloc(proto, vid); in __vlan_vid_add() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
A D | gk20a.c | 101 if (volt->base.vid[i].uv >= uv) in gk20a_volt_vid_get() 108 gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid) in gk20a_volt_vid_set() argument 113 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set() 114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set() 123 int target_uv = volt->base.vid[id].uv; in gk20a_volt_set_id() 131 ret = gk20a_volt_vid_set(&volt->base, volt->base.vid[id].vid); in gk20a_volt_set_id() 163 volt->base.vid[i].vid = i; in gk20a_volt_ctor() 164 volt->base.vid[i].uv = max( in gk20a_volt_ctor() 168 volt->base.vid[i].vid, volt->base.vid[i].uv); in gk20a_volt_ctor()
|
/linux/drivers/net/ethernet/ti/ |
A D | cpsw_switchdev.c | 147 pvid = vid; in cpsw_set_pvid() 205 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add() 208 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add() 236 if (vid == cpsw_get_pvid(priv)) in cpsw_port_vlan_del() 243 port_mask, ALE_VLAN, vid); in cpsw_port_vlan_del() 245 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_del() 283 ALE_VLAN, mdb->vid, 0); in cpsw_port_mdb_add() 306 ALE_VLAN, mdb->vid); in cpsw_port_mdb_del() 374 info.vid = rcv->vid; in cpsw_fdb_offload_notify() 404 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work() [all …]
|
A D | am65-cpsw-switchdev.c | 139 pvid = vid; in am65_cpsw_set_pvid() 189 am65_cpsw_set_pvid(port, vid, 0, 0); in am65_cpsw_port_vlan_add() 192 port->ndev->name, vid, port_mask); in am65_cpsw_port_vlan_add() 219 HOST_PORT_NUM, ALE_VLAN, vid); in am65_cpsw_port_vlan_del() 221 if (vid == am65_cpsw_get_pvid(port)) in am65_cpsw_port_vlan_del() 228 ALE_VLAN, vid); in am65_cpsw_port_vlan_del() 275 ALE_VLAN, mdb->vid, 0); in am65_cpsw_port_mdb_add() 298 ALE_VLAN, mdb->vid); in am65_cpsw_port_mdb_del() 364 info.vid = rcv->vid; in am65_cpsw_fdb_offload_notify() 394 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_switchdev.c | 77 u16 vid; member 448 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge() 480 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find() 497 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create() 637 u16 vid = bridge_vlan->vid; in mlxsw_sp_port_bridge_vlan_learning_set() local 984 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_join() local 1033 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_leave() local 1062 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_join() local 1115 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_leave() local 1435 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_fdb_set() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | devlink_trap_l2_drops.sh | 125 bridge vlan add vid 1 dev $swp1 untagged master 181 local vid=10 183 bridge vlan add vid $vid dev $swp2 master 197 bridge vlan add vid $vid dev $swp1 master 214 bridge vlan del vid $vid dev $swp1 master 215 bridge vlan del vid $vid dev $swp2 master 224 local vid=20 226 bridge vlan add vid $vid dev $swp2 master 227 bridge vlan add vid $vid dev $swp1 master 255 bridge vlan del vid $vid dev $swp1 master [all …]
|