/openbmc/linux/net/batman-adv/ |
H A D | soft-interface.c | 198 unsigned short vid; in batadv_interface_tx() local 250 vid, skb->skb_iif, in batadv_interface_tx() 376 vid); in batadv_interface_tx() 420 unsigned short vid; in batadv_interface_rx() local 480 vid)) { in batadv_interface_rx() 528 unsigned short vid) in batadv_softif_vlan_get() argument 534 if (vlan_tmp->vid != vid) in batadv_softif_vlan_get() 575 vlan->vid = vid; in batadv_softif_create_vlan() 626 unsigned short vid) in batadv_interface_add_vid() argument 637 vid |= BATADV_VLAN_HAS_TAG; in batadv_interface_add_vid() [all …]
|
H A D | translation-table.c | 137 to_search.vid = vid; in batadv_tt_hash_find() 147 if (tt->vid != vid) in batadv_tt_hash_find() 731 tt_local->common.vid = vid; in batadv_tt_local_add() 881 tt_vlan->vid = htons(vlan->vid); in batadv_tt_prepare_tvlv_global_data() 965 tt_vlan->vid = htons(vlan->vid); in batadv_tt_prepare_tvlv_local_data() 1625 common->vid = vid; in batadv_tt_global_add() 2228 vid = tt_global->common.vid; in batadv_tt_global_del_orig() 2461 if (tt_common->vid != vid) in batadv_tt_global_crc() 2536 if (tt_common->vid != vid) in batadv_tt_local_crc() 2949 tt_vlan_req->vid = tt_vlan->vid; in batadv_send_tt_request() [all …]
|
H A D | send.h | 61 unsigned short vid); 65 unsigned short vid); 67 unsigned short vid); 84 unsigned short vid) in batadv_send_skb_via_tt() argument 87 dst_hint, vid); in batadv_send_skb_via_tt() 109 unsigned short vid) in batadv_send_skb_via_tt_4addr() argument 113 packet_subtype, dst_hint, vid); in batadv_send_skb_via_tt_4addr()
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 26 u16 vid; member 495 if (vlan->vid == vid) in ocelot_bridge_vlan_find() 540 vlan->vid = vid; in ocelot_vlan_member_add() 736 for (vid = 1; vid < VLAN_N_VID; vid++) in ocelot_vlan_init() 1761 for (vid = OCELOT_RSV_VLAN_RANGE_START; vid < VLAN_N_VID; vid++) in ocelot_port_setup_dsa_8021q_cpu() 1779 for (vid = OCELOT_RSV_VLAN_RANGE_START; vid < VLAN_N_VID; vid++) in ocelot_port_teardown_dsa_8021q_cpu() 1963 u16 vid = mdb->vid; in ocelot_port_mdb_add() local 1977 mc->vid = vid; in ocelot_port_mdb_add() 2020 u16 vid = mdb->vid; in ocelot_port_mdb_del() local 2225 u16 vid = mc->vid; in ocelot_migrate_mc() local [all …]
|
/openbmc/linux/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 227 u16 port_mask, u16 vid) in qca8k_fdb_del() argument 367 if (vid == 0) in qca8k_vlan_add() 806 if (!vid) in qca8k_port_fdb_insert() 807 vid = QCA8K_PORT_VID_DEF; in qca8k_port_fdb_insert() 830 if (!vid) in qca8k_port_fdb_del() 831 vid = QCA8K_PORT_VID_DEF; in qca8k_port_fdb_del() 865 u16 vid = mdb->vid; in qca8k_port_mdb_add() local 867 if (!vid) in qca8k_port_mdb_add() 868 vid = QCA8K_PORT_VID_DEF; in qca8k_port_mdb_add() 880 u16 vid = mdb->vid; in qca8k_port_mdb_del() local [all …]
|
/openbmc/linux/net/caif/ |
H A D | cfvidl.c | 24 struct cfsrvl *vid = kzalloc(sizeof(struct cfsrvl), GFP_ATOMIC); in cfvidl_create() local 25 if (!vid) in cfvidl_create() 29 cfsrvl_init(vid, channel_id, dev_info, false); in cfvidl_create() 30 vid->layer.receive = cfvidl_receive; in cfvidl_create() 31 vid->layer.transmit = cfvidl_transmit; in cfvidl_create() 32 snprintf(vid->layer.name, CAIF_LAYER_NAME_SZ, "vid1"); in cfvidl_create() 33 return &vid->layer; in cfvidl_create()
|
/openbmc/linux/fs/afs/ |
H A D | callback.c | 109 afs_volid_t vid) in afs_lookup_volume_rcu() argument 127 if (volume->vid < vid) in afs_lookup_volume_rcu() 129 else if (volume->vid > vid) in afs_lookup_volume_rcu() 188 afs_volid_t vid = cbb->fid.vid; in afs_break_some_callbacks() local 191 volume = afs_lookup_volume_rcu(server->cell, vid); in afs_break_some_callbacks() 198 if (cbb->fid.vid == vid) { in afs_break_some_callbacks() 200 cbb->fid.vid, in afs_break_some_callbacks()
|
H A D | volume.c | 30 if (p->vid < volume->vid) { in afs_insert_volume_into_cell() 32 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell() 60 trace_afs_volume(volume->vid, refcount_read(&cell->ref), in afs_remove_volume_from_cell() 85 volume->vid = vldb->vid[params->type]; in afs_alloc_volume() 106 trace_afs_volume(volume->vid, 1, afs_volume_trace_alloc); in afs_alloc_volume() 233 trace_afs_volume(volume->vid, refcount_read(&volume->ref), in afs_destroy_volume() 248 trace_afs_volume(volume->vid, r + 1, reason); in afs_try_get_volume() 264 trace_afs_volume(volume->vid, r + 1, reason); in afs_get_volume() 277 afs_volid_t vid = volume->vid; in afs_put_volume() local 282 trace_afs_volume(vid, r - 1, reason); in afs_put_volume() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 78 u16 vid; member 584 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge() 616 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find() 633 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create() 831 u16 vid = bridge_vlan->vid; in mlxsw_sp_port_bridge_vlan_learning_set() local 1352 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_join() local 1401 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_leave() local 1430 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_join() local 1483 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_leave() local 1877 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_fdb_set() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | base.c | 42 if (volt->vid[i].vid == ret) in nvkm_volt_get() 43 return volt->vid[i].uv; in nvkm_volt_get() 60 int err = volt->vid[i].uv - uv; in nvkm_volt_set() 75 ret = volt->func->vid_set(volt, volt->vid[best].vid); in nvkm_volt_set() 77 volt->vid[best].uv, ret); in nvkm_volt_set() 203 volt->vid[volt->vid_nr].uv = info.base; in nvkm_volt_parse_bios() 204 volt->vid[volt->vid_nr].vid = i; in nvkm_volt_parse_bios() 218 volt->vid[volt->vid_nr].uv = ivid.voltage; in nvkm_volt_parse_bios() 219 volt->vid[volt->vid_nr].vid = ivid.vid; in nvkm_volt_parse_bios() 315 volt->vid[i].vid, volt->vid[i].uv); in nvkm_volt_ctor()
|
H A D | gpio.c | 39 u8 vid = 0; in nvkm_voltgpio_get() local 47 vid |= ret << i; in nvkm_voltgpio_get() 51 return vid; in nvkm_voltgpio_get() 55 nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) in nvkm_voltgpio_set() argument 60 for (i = 0; i < ARRAY_SIZE(tags); i++, vid >>= 1) { in nvkm_voltgpio_set() 62 int ret = nvkm_gpio_set(gpio, 0, tags[i], 0xff, vid & 1); in nvkm_voltgpio_set()
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_vf.c | 177 if ((vid << 16 | vid) >> 28) in fm10k_update_vlan_vf() 182 vid |= FM10K_VLAN_CLEAR; in fm10k_update_vlan_vf() 204 u16 vid; in fm10k_msg_mac_vlan_vf() local 210 perm_addr, &vid); in fm10k_msg_mac_vlan_vf() 272 const u8 *mac, u16 vid, bool add, in fm10k_update_uc_addr_vf() argument 279 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_uc_addr_vf() 293 vid |= FM10K_VLAN_CLEAR; in fm10k_update_uc_addr_vf() 316 const u8 *mac, u16 vid, bool add) in fm10k_update_mc_addr_vf() argument 322 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_mc_addr_vf() 331 vid |= FM10K_VLAN_CLEAR; in fm10k_update_mc_addr_vf() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | powernow-k7.c | 61 vid:5, member 175 u8 fid, vid; in get_ranges() local 202 vid = *pst++; in get_ranges() 208 mobile_vid_table[vid]/1000, in get_ranges() 233 static void change_VID(int vid) in change_VID() argument 240 fidvidctl.bits.VID = vid; in change_VID() 250 u8 fid, vid; in powernow_target() local 277 change_VID(vid); in powernow_target() 280 change_VID(vid); in powernow_target() 352 u8 fid, vid; in powernow_acpi_init() local [all …]
|
/openbmc/linux/drivers/usb/storage/ |
H A D | usual-tables.c | 58 u16 vid, pid, bcdmin, bcdmax; member 65 .vid = id_vendor, \ 94 unsigned vid, pid, bcd; in usb_usual_ignore_device() local 98 vid = le16_to_cpu(udev->descriptor.idVendor); in usb_usual_ignore_device() 102 for (p = ignore_ids; p->vid; ++p) { in usb_usual_ignore_device() 103 if (p->vid == vid && p->pid == pid && in usb_usual_ignore_device()
|
/openbmc/linux/drivers/hwmon/ |
H A D | hwmon-vid.c | 71 int vid; in vid_from_reg() local 81 vid = 1087500 - (val & 0x1f) * 25000; in vid_from_reg() 83 vid = 1862500 - (val & 0x1f) * 25000; in vid_from_reg() 85 vid -= 12500; in vid_from_reg() 86 return (vid + 500) / 1000; in vid_from_reg() 236 unsigned int vid, brand, __maybe_unused dummy; in get_via_model_d_vrm() local 241 rdmsr(0x198, dummy, vid); in get_via_model_d_vrm() 242 vid &= 0xff; in get_via_model_d_vrm() 247 if (vid > 0x3f) { in get_via_model_d_vrm()
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | router_bridge_vlan_upper.sh | 78 bridge vlan add dev br1 vid 555 self 79 bridge vlan add dev br1 vid 777 self 80 bridge vlan add dev $swp1 vid 555 81 bridge vlan add dev $swp2 vid 777 92 bridge vlan del dev $swp2 vid 777 93 bridge vlan del dev $swp1 vid 555 94 bridge vlan del dev br1 vid 777 self 95 bridge vlan del dev br1 vid 555 self 158 bridge vlan add dev $swp1 vid 555 159 bridge vlan add dev $swp2 vid 777
|
H A D | router_bridge_vlan_upper_pvid.sh | 79 bridge vlan add dev br1 vid 10 self 80 bridge vlan add dev $swp1 vid 10 87 bridge vlan del dev $swp1 vid 10 88 bridge vlan del dev br1 vid 10 self 121 bridge vlan add dev br1 vid 10 pvid self 123 bridge vlan add dev br1 vid 10 self 130 bridge vlan add dev br1 vid 10 pvid self 132 bridge vlan add dev br1 vid 20 pvid self
|
/openbmc/linux/net/dsa/ |
H A D | port.h | 50 u16 vid); 52 u16 vid); 54 const unsigned char *addr, u16 vid); 56 const unsigned char *addr, u16 vid); 58 u16 vid); 60 u16 vid); 62 u16 vid); 64 u16 vid); 108 int dsa_port_tag_8021q_vlan_add(struct dsa_port *dp, u16 vid, bool broadcast); 109 void dsa_port_tag_8021q_vlan_del(struct dsa_port *dp, u16 vid, bool broadcast);
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_l2_drops.sh | 126 bridge vlan add vid 1 dev $swp1 untagged master 182 local vid=10 184 bridge vlan add vid $vid dev $swp2 master 198 bridge vlan add vid $vid dev $swp1 master 215 bridge vlan del vid $vid dev $swp1 master 216 bridge vlan del vid $vid dev $swp2 master 225 local vid=20 227 bridge vlan add vid $vid dev $swp2 master 228 bridge vlan add vid $vid dev $swp1 master 256 bridge vlan del vid $vid dev $swp1 master [all …]
|
H A D | ingress_rif_conf_1q.sh | 108 bridge vlan add vid 10 dev $swp2 125 bridge vlan del vid 10 dev $swp2 196 bridge vlan add vid 10 dev br0 self 198 bridge vlan add vid 10 dev $swp1 217 bridge vlan del vid 10 dev $swp1 219 bridge vlan del vid 10 dev br0 self 231 bridge vlan add vid 10 dev br0 self 235 bridge vlan add vid 10 dev $swp1 250 bridge vlan del vid 10 dev $swp1 254 bridge vlan del vid 10 dev br0 self
|
/openbmc/linux/net/bridge/ |
H A D | br_private_tunnel.h | 14 u16 vid; member 33 u16 vid, u32 tun_id, bool *changed); 39 int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid); 40 int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid, 57 u16 vid) in nbp_vlan_tunnel_info_delete() argument 63 u16 vid, u32 tun_id) in nbp_vlan_tunnel_info_add() argument
|
H A D | br_input.c | 88 u16 vid = 0; in br_handle_frame_finish() local 113 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid); in br_handle_frame_finish() 121 vid, BIT(BR_FDB_LOCKED)); in br_handle_frame_finish() 131 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, in br_handle_frame_finish() 141 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish() 167 br_do_proxy_suppress_arp(skb, br, vid, p); in br_handle_frame_finish() 178 br_do_suppress_nd(skb, br, vid, p, msg); in br_handle_frame_finish() 183 mdst = br_mdb_get(brmctx, skb, vid); in br_handle_frame_finish() 215 br_flood(br, skb, pkt_type, local_rcv, false, vid); in br_handle_frame_finish() 234 u16 vid = 0; in __br_handle_local_finish() local [all …]
|
H A D | br_arp_nd_proxy.c | 161 if (br_is_neigh_suppress_enabled(p, vid)) in br_do_proxy_suppress_arp() 175 if (vid != 0) { in br_do_proxy_suppress_arp() 177 vid); in br_do_proxy_suppress_arp() 200 f = br_fdb_find_rcu(br, n->ha, vid); in br_do_proxy_suppress_arp() 207 if (!vid) in br_do_proxy_suppress_arp() 433 if (vid != 0) { in br_do_suppress_nd() 436 vid); in br_do_suppress_nd() 460 f = br_fdb_find_rcu(br, n->ha, vid); in br_do_suppress_nd() 465 if (vid != 0) in br_do_suppress_nd() 492 if (!vid) in br_is_neigh_suppress_enabled() [all …]
|
/openbmc/linux/include/linux/ |
H A D | if_bridge.h | 31 __u16 vid; member 120 int br_vlan_get_info(const struct net_device *dev, u16 vid, 122 int br_vlan_get_info_rcu(const struct net_device *dev, u16 vid, 148 static inline int br_vlan_get_info(const struct net_device *dev, u16 vid, in br_vlan_get_info() argument 154 static inline int br_vlan_get_info_rcu(const struct net_device *dev, u16 vid, in br_vlan_get_info_rcu() argument 180 __u16 vid); 181 void br_fdb_clear_offload(const struct net_device *dev, u16 vid); 189 __u16 vid) in br_fdb_find_port() argument 194 static inline void br_fdb_clear_offload(const struct net_device *dev, u16 vid) in br_fdb_clear_offload() argument
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | cpsw_ale.c | 451 if (vid != -1 && cpsw_ale_get_vlan_id(ale_entry) != vid) in cpsw_ale_flush_multicast() 471 int flags, u16 vid) in cpsw_ale_set_vlan_entry_type() argument 482 int flags, u16 vid) in cpsw_ale_add_ucast() argument 508 int flags, u16 vid) in cpsw_ale_del_ucast() argument 556 int flags, u16 vid) in cpsw_ale_del_mcast() argument 602 u16 vid, int untag_mask) in cpsw_ale_set_vlan_untag() argument 619 idx = cpsw_ale_match_vlan(ale, vid); in cpsw_ale_add_vlan() 654 u16 vid, int port_mask) in cpsw_ale_vlan_del_modify_int() argument 698 idx = cpsw_ale_match_vlan(ale, vid); in cpsw_ale_vlan_del_modify() 715 idx = cpsw_ale_match_vlan(ale, vid); in cpsw_ale_del_vlan() [all …]
|