/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vlan.c | 120 if (untagged && port->vid != vid) { in lan966x_vlan_port_set_vid() 121 if (port->vid) { in lan966x_vlan_port_set_vid() 124 port->vid); in lan966x_vlan_port_set_vid() 127 port->vid = vid; in lan966x_vlan_port_set_vid() 132 port->pvid = vid; in lan966x_vlan_port_set_vid() 142 if (port->vid == vid) in lan966x_vlan_port_remove_vid() 143 port->vid = 0; in lan966x_vlan_port_remove_vid() 193 if (port->vid) in lan966x_vlan_port_apply() 214 u16 vid, in lan966x_vlan_port_add_vlan() argument 285 u16 port, vid; in lan966x_vlan_init() local [all …]
|
H A D | lan966x_mac.c | 22 u16 vid; member 61 mach |= vid << 16; in lan966x_mac_select() 116 unsigned int vid, in lan966x_mac_ip_learn() argument 205 u16 vid) in lan966x_mac_alloc_entry() argument 214 mac_entry->vid = vid; in lan966x_mac_alloc_entry() 229 if (mac_entry->vid == vid && in lan966x_mac_find_entry() 268 info.vid = vid; in lan966x_fdb_call_notifiers() 315 u16 vid) in lan966x_mac_del_entry() argument 322 if (mac_entry->vid == vid && in lan966x_mac_del_entry() 429 u16 vid; in lan966x_mac_irq_process() local [all …]
|
H A D | lan966x_fdb.c | 19 u16 vid; member 30 if (fdb_entry->vid == fdb_info->vid && in lan966x_fdb_find_entry() 54 fdb_entry->vid = fdb_info->vid; in lan966x_fdb_add_entry() 66 if (fdb_entry->vid == fdb_info->vid && in lan966x_fdb_del_entry() 86 if (fdb_entry->vid != vid) in lan966x_fdb_write_entries() 98 if (fdb_entry->vid != vid) in lan966x_fdb_erase_entries() 151 fdb_info->vid); in lan966x_fdb_port_event_work() 157 fdb_info->vid); in lan966x_fdb_port_event_work() 183 fdb_info->vid)) in lan966x_fdb_bridge_event_work() 187 fdb_info->vid); in lan966x_fdb_bridge_event_work() [all …]
|
H A D | lan966x_mdb.c | 17 u16 vid; member 58 u16 vid) in lan966x_mdb_entry_get() argument 64 mdb_entry->vid == vid) in lan966x_mdb_entry_get() 82 mdb_entry->vid = mdb->vid; in lan966x_mdb_entry_add() 294 mdb_entry->vid, type); in lan966x_mdb_l2_add() 351 mdb_entry->vid, type); in lan966x_mdb_l2_del() 433 mdb_entry->vid, type); in lan966x_mdb_l2_cpu_copy() 442 if (mdb_entry->vid != vid || !mdb_entry->cpu_copy) in lan966x_mdb_write_entries() 488 mdb_entry->vid, type); in lan966x_mdb_l2_cpu_remove() 497 if (mdb_entry->vid != vid || !mdb_entry->cpu_copy) in lan966x_mdb_erase_entries() [all …]
|
/openbmc/linux/drivers/staging/media/tegra-video/ |
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H 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 …]
|
/openbmc/linux/net/dsa/ |
H A D | trace.h | 46 __entry->vid = vid; 105 __entry->vid = vid; 164 __entry->vid = vid; 204 __entry->vid = vid; 232 __entry->vid = vid; 260 __entry->vid = vid; 288 __entry->vid = vid; 315 __entry->vid = vid; 344 __entry->vid = vlan->vid; 389 __entry->vid = vlan->vid; [all …]
|
H A D | tag_8021q.c | 69 u16 vid; member 100 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument 107 int dsa_8021q_rx_source_port(u16 vid) in dsa_8021q_rx_source_port() argument 114 static int dsa_tag_8021q_rx_vbid(u16 vid) in dsa_tag_8021q_rx_vbid() argument 122 bool vid_is_dsa_8021q(u16 vid) in vid_is_dsa_8021q() argument 136 if (v->vid == vid && v->port == port) in dsa_tag_8021q_vlan_find() 171 v->vid = vid; in dsa_port_do_tag_8021q_vlan_add() 356 vid, port, ERR_PTR(err)); in dsa_tag_8021q_port_setup() 503 u16 vid, tci; in dsa_8021q_rcv() local 514 vid = tci & VLAN_VID_MASK; in dsa_8021q_rcv() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_mdb.sh | 69 bridge vlan add vid 10 dev br0 self 75 bridge vlan add vid 10 dev $swp1 76 bridge vlan add vid 20 dev $swp1 80 bridge vlan add vid 10 dev $swp2 81 bridge vlan add vid 20 dev $swp2 92 bridge vlan del vid 20 dev $swp2 93 bridge vlan del vid 10 dev $swp2 97 bridge vlan del vid 20 dev $swp1 98 bridge vlan del vid 10 dev $swp1 674 permanent vid 10 &> /dev/null [all …]
|
H A D | no_forwarding.sh | 96 local vid= 110 for vid in "${vids[@]}"; do 111 vlan_create $h1 $vid 114 send_non_ip $h1.$vid $smac $dmac 116 send_non_ip $h1.$vid $smac $BC 117 send_uc_ipv4 $h1.$vid $dmac 118 send_mc_ipv4 $h1.$vid 119 send_uc_ipv6 $h1.$vid $dmac 120 send_mc_ipv6 $h1.$vid 123 vlan_destroy $h1 $vid [all …]
|
H 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 688 local vid=$1; shift 691 local vx=vx$vid 797 local vid=10 [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | bridge_mdb.sh | 69 bridge vlan add vid 10 dev br0 self 75 bridge vlan add vid 10 dev $swp1 76 bridge vlan add vid 20 dev $swp1 80 bridge vlan add vid 10 dev $swp2 81 bridge vlan add vid 20 dev $swp2 92 bridge vlan del vid 20 dev $swp2 93 bridge vlan del vid 10 dev $swp2 97 bridge vlan del vid 20 dev $swp1 98 bridge vlan del vid 10 dev $swp1 674 permanent vid 10 &> /dev/null [all …]
|
H A D | no_forwarding.sh | 96 local vid= 110 for vid in "${vids[@]}"; do 111 vlan_create $h1 $vid 114 send_non_ip $h1.$vid $smac $dmac 116 send_non_ip $h1.$vid $smac $BC 117 send_uc_ipv4 $h1.$vid $dmac 118 send_mc_ipv4 $h1.$vid 119 send_uc_ipv6 $h1.$vid $dmac 120 send_mc_ipv6 $h1.$vid 123 vlan_destroy $h1 $vid [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H 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() 62 if (untagged && port->vid != vid) { in sparx5_vlan_vid_add() 63 if (port->vid) { in sparx5_vlan_vid_add() 66 port->vid); in sparx5_vlan_vid_add() 69 port->vid = vid; in sparx5_vlan_vid_add() 80 port->pvid = 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 …]
|
H A D | sparx5_mactable.c | 40 u16 vid; member 61 u16 vid) in sparx5_mact_select() argument 151 *vid = mach >> 16; in sparx5_mact_get() 251 mact_entry->vid = vid; in alloc_mact_entry() 265 if (mact_entry->vid == vid && in find_mact_entry() 284 info.vid = vid; in sparx5_fdb_call_notifiers() 338 u16 vid) in sparx5_del_mact_entry() argument 348 if ((vid == 0 || mact_entry->vid == vid) && in sparx5_del_mact_entry() 382 if (mact_entry->vid == vid && in sparx5_mact_handle_entry() 428 u16 vid; in sparx5_mact_pull_work() local [all …]
|
/openbmc/linux/net/bridge/ |
H 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() 227 u16 vid, flags = 0; in br_parse_vlan_tunnel_info() local 250 tinfo->vid = vid; in br_parse_vlan_tunnel_info() 304 if ((tinfo_curr->vid - tinfo_last->vid) != in br_process_vlan_tunnel_info() 308 for (v = tinfo_last->vid; v <= tinfo_curr->vid; v++) { in br_process_vlan_tunnel_info() [all …]
|
H A D | br_vlan.c | 19 return vle->vid != vid; in br_vlan_cmp() 133 if (v->vid >= vent->vid) in __vlan_add_list() 480 u16 vid; in br_handle_vlan() local 663 u16 vid; in br_allowed_egress() local 795 vlan->vid = vid; in br_vlan_add() 1337 vlan->vid = vid; in nbp_vlan_add() 1518 p_vinfo->vid = vid; in br_vlan_get_info() 1545 p_vinfo->vid = vid; in br_vlan_get_info_rcu() 1601 .vid = vid, in br_vlan_get_upper_bind_vlan_dev() 1831 info.vid = vid; in br_vlan_fill_vids() [all …]
|
/openbmc/linux/drivers/net/dsa/realtek/ |
H A D | rtl8366-core.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 …]
|
/openbmc/u-boot/drivers/video/ |
H A D | pxa_lcd.c | 413 int fb_size = vid->vl_row * (vid->vl_col * NBITS (vid->vl_bpix)) / 8; in pxafb_init_mem() 437 lccr0 = vid->pxa.reg_lccr0; in pxafb_setup_gpio() 529 vid->vl_col, vid->vl_hpw, in pxafb_init() 530 vid->vl_blw, vid->vl_elw); in pxafb_init() 532 vid->vl_row, vid->vl_vpw, in pxafb_init() 533 vid->vl_bfw, vid->vl_efw); in pxafb_init() 536 LCCR1_DisWdth(vid->vl_col) + in pxafb_init() 539 LCCR1_EndLnDel(vid->vl_elw); in pxafb_init() 542 LCCR2_DisHght(vid->vl_row) + in pxafb_init() 558 (vid->vl_col * vid->vl_row * NBITS(vid->vl_bpix) / 8 / 2) : \ in pxafb_init() [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H 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 …]
|
/openbmc/linux/include/trace/events/ |
H A D | bridge.h | 23 __field(u16, vid) 30 __entry->vid = 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) 114 __entry->vid = vid; 135 __field(u16, vid) [all …]
|
/openbmc/u-boot/lib/tizen/ |
H A D | tizen.c | 15 void get_tizen_logo_info(vidinfo_t *vid) in get_tizen_logo_info() argument 17 switch (vid->vl_bpix) { in get_tizen_logo_info() 19 vid->logo_width = TIZEN_LOGO_16BPP_WIDTH; in get_tizen_logo_info() 20 vid->logo_height = TIZEN_LOGO_16BPP_HEIGHT; in get_tizen_logo_info() 21 vid->logo_x_offset = TIZEN_LOGO_16BPP_X_OFFSET; in get_tizen_logo_info() 22 vid->logo_y_offset = TIZEN_LOGO_16BPP_Y_OFFSET; in get_tizen_logo_info() 24 vid->logo_addr = (ulong)tizen_logo_16bpp_gzip; in get_tizen_logo_info() 26 vid->logo_addr = (ulong)tizen_logo_16bpp; in get_tizen_logo_info() 30 vid->logo_addr = 0; in get_tizen_logo_info()
|
/openbmc/linux/net/batman-adv/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_switchdev.c | 188 br_vlan->vid = vid; in prestera_bridge_vlan_create() 207 if (br_vlan->vid == vid) in prestera_bridge_vlan_by_vid() 223 if (br_vlan->vid == vid) { in prestera_bridge_vlan_port_count() 245 if (port_vlan->vid == vid) in prestera_port_vlan_by_vid() 273 port_vlan->vid = vid; in prestera_port_vlan_create() 395 u16 vid = port_vlan->vid; in prestera_port_vlan_bridge_leave() local 423 u16 vid = port_vlan->vid; in prestera_port_vlan_destroy() local 1209 send_info.vid = info->vid; in prestera_fdb_offload_notify() 1233 vid = fdb_info->vid; in prestera_port_fdb_set() 1362 u16 vid = port_vlan->vid; in prestera_port_vlan_bridge_join() local [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H 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 …]
|