/Linux-v5.4/drivers/gpu/drm/sti/ |
D | sti_vid.c | 61 readl(vid->regs + reg)) 96 struct sti_vid *vid = (struct sti_vid *)node->info_ent->data; in vid_dbg_show() local 98 seq_printf(s, "VID: (vaddr= 0x%p)", vid->regs); in vid_dbg_show() 101 vid_dbg_ctl(s, readl(vid->regs + VID_CTL)); in vid_dbg_show() 105 vid_dbg_vpo(s, readl(vid->regs + VID_VPO)); in vid_dbg_show() 107 vid_dbg_vps(s, readl(vid->regs + VID_VPS)); in vid_dbg_show() 115 vid_dbg_mst(s, readl(vid->regs + VID_MST)); in vid_dbg_show() 127 int vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor) in vid_debugfs_init() argument 132 vid_debugfs_files[i].data = vid; in vid_debugfs_init() 139 void sti_vid_commit(struct sti_vid *vid, in sti_vid_commit() argument [all …]
|
/Linux-v5.4/net/bridge/ |
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() 90 static int br_fill_vlan_tinfo(struct sk_buff *skb, u16 vid, in br_fill_vlan_tinfo() argument 103 vid)) in br_fill_vlan_tinfo() 124 if (vtend && (vtend->vid - vtbegin->vid) > 0) { in br_fill_vlan_tinfo_range() 126 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range() 132 err = br_fill_vlan_tinfo(skb, vtend->vid, in br_fill_vlan_tinfo_range() 138 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range() 167 } else if ((v->vid - vtend->vid) == 1 && in br_fill_vlan_tunnel_info() [all …]
|
D | br_vlan.c | 11 static void nbp_vlan_set_vlan_dev_state(struct net_bridge_port *p, u16 vid); 17 u16 vid = *(u16 *)arg->key; in br_vlan_cmp() local 19 return vle->vid != vid; in br_vlan_cmp() 24 .key_offset = offsetof(struct net_bridge_vlan, vid), 32 static struct net_bridge_vlan *br_vlan_lookup(struct rhashtable *tbl, u16 vid) in br_vlan_lookup() argument 34 return rhashtable_lookup_fast(tbl, &vid, br_vlan_rht_params); in br_vlan_lookup() 37 static bool __vlan_add_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_add_pvid() argument 39 if (vg->pvid == vid) in __vlan_add_pvid() 43 vg->pvid = vid; in __vlan_add_pvid() 48 static bool __vlan_delete_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_delete_pvid() argument [all …]
|
D | br_fdb.c | 36 const unsigned char *addr, u16 vid); 91 __u16 vid) in fdb_find_rcu() argument 97 key.vlan_id = vid; in fdb_find_rcu() 106 __u16 vid) in br_fdb_find() argument 113 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find() 121 __u16 vid) in br_fdb_find_port() argument 134 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port() 145 __u16 vid) in br_fdb_find_rcu() argument 147 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu() 219 u16 vid = f->key.vlan_id; in fdb_delete_local() local [all …]
|
/Linux-v5.4/include/trace/events/ |
D | bridge.h | 15 const unsigned char *addr, u16 vid, u16 nlh_flags), 17 TP_ARGS(ndm, dev, addr, vid, nlh_flags), 23 __field(u16, vid) 30 __entry->vid = vid; 38 __entry->addr[5], __entry->vid, 45 const unsigned char *addr, u16 vid), 47 TP_ARGS(br, p, addr, vid), 53 __field(u16, vid) 60 __entry->vid = vid; 66 __entry->addr[4], __entry->addr[5], __entry->vid) [all …]
|
/Linux-v5.4/drivers/net/dsa/ |
D | rtl8366.c | 39 int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member, in rtl8366_set_vlan() argument 47 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_vlan() 66 if (vid == vlanmc.vid) { in rtl8366_set_vlan() 95 *val = vlanmc.vid; in rtl8366_get_pvid() 101 unsigned int vid) in rtl8366_set_pvid() argument 114 if (vid == vlanmc.vid) { in rtl8366_set_pvid() 130 if (vlanmc.vid == 0 && vlanmc.member == 0) { in rtl8366_set_pvid() 132 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_pvid() 136 vlanmc.vid = vid; in rtl8366_set_pvid() 159 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_pvid() [all …]
|
/Linux-v5.4/drivers/media/usb/pvrusb2/ |
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, 77 .vid = (CX25840_SVIDEO_LUMA3|CX25840_SVIDEO_CHROMA4), 90 .vid = CX25840_COMPOSITE1, [all …]
|
/Linux-v5.4/tools/testing/selftests/net/forwarding/ |
D | vxlan_bridge_1q.sh | 170 bridge vlan add vid 10 dev vx10 pvid untagged 178 bridge vlan add vid 20 dev vx20 pvid untagged 182 bridge vlan add vid 10 dev $swp1 183 bridge vlan add vid 20 dev $swp1 187 bridge vlan add vid 10 dev $swp2 188 bridge vlan add vid 20 dev $swp2 205 bridge vlan del vid 20 dev $swp2 206 bridge vlan del vid 10 dev $swp2 210 bridge vlan del vid 20 dev $swp1 211 bridge vlan del vid 10 dev $swp1 [all …]
|
/Linux-v5.4/net/batman-adv/ |
D | translation-table.h | 20 unsigned short vid, int ifindex, u32 mark); 22 const u8 *addr, unsigned short vid, 33 unsigned short vid); 36 const u8 *addr, unsigned short vid); 39 unsigned short vid); 42 unsigned short vid); 44 unsigned short vid); 47 u8 *addr, unsigned short vid); 49 u8 *addr, unsigned short vid); 54 unsigned short vid); [all …]
|
D | distributed-arp-table.c | 297 key = (const unsigned char *)&dat->vid; in batadv_hash_dat() 298 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat() 322 unsigned short vid) in batadv_dat_entry_hash_find() argument 333 to_find.vid = vid; in batadv_dat_entry_hash_find() 362 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument 367 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip, vid); in batadv_dat_entry_add() 376 batadv_print_vid(vid)); in batadv_dat_entry_add() 385 dat_entry->vid = vid; in batadv_dat_entry_add() 402 &dat_entry->ip, dat_entry->mac_addr, batadv_print_vid(vid)); in batadv_dat_entry_add() 626 unsigned short vid) in batadv_dat_select_candidates() argument [all …]
|
D | bridge_loop_avoidance.c | 72 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim() 90 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_backbone_gw() 113 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 137 if (cl1->vid != cl2->vid) in batadv_compare_claim() 252 unsigned short vid) in batadv_backbone_hash_find() argument 264 search_entry.vid = vid; in batadv_backbone_hash_find() 334 unsigned short vid, int claimtype) in batadv_bla_send_claim() argument 385 batadv_print_vid(vid)); in batadv_bla_send_claim() 394 batadv_print_vid(vid)); in batadv_bla_send_claim() 403 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() [all …]
|
D | soft-interface.c | 147 batadv_tt_local_remove(bat_priv, old_addr, vlan->vid, in batadv_interface_set_mac_addr() 149 batadv_tt_local_add(dev, addr->sa_data, vlan->vid, in batadv_interface_set_mac_addr() 198 unsigned short vid; in batadv_interface_tx() local 213 vid = batadv_get_vid(skb, 0); in batadv_interface_tx() 240 if (batadv_bla_tx(bat_priv, skb, vid)) in batadv_interface_tx() 250 vid, skb->skb_iif, in batadv_interface_tx() 257 batadv_dat_snoop_outgoing_dhcp_ack(bat_priv, skb, proto, vid); in batadv_interface_tx() 365 ret = batadv_send_skb_via_gw(bat_priv, skb, vid); in batadv_interface_tx() 369 mcast_single_orig, vid); in batadv_interface_tx() 371 ret = batadv_mcast_forw_send(bat_priv, skb, vid); in batadv_interface_tx() [all …]
|
D | translation-table.c | 67 unsigned short vid, 75 unsigned short vid, const char *message, 94 return (tt1->vid == tt2->vid) && batadv_compare_eth(data1, data2); in batadv_compare_tt() 112 hash = jhash(&tt->vid, sizeof(tt->vid), hash); in batadv_choose_tt() 128 unsigned short vid) in batadv_tt_hash_find() argument 138 to_search.vid = vid; in batadv_tt_hash_find() 148 if (tt->vid != vid) in batadv_tt_hash_find() 173 unsigned short vid) in batadv_tt_local_hash_find() argument 179 vid); in batadv_tt_local_hash_find() 198 unsigned short vid) in batadv_tt_global_hash_find() argument [all …]
|
D | bridge_loop_avoidance.h | 38 unsigned short vid, bool is_bcast); 40 unsigned short vid); 50 unsigned short vid); 62 unsigned short vid); 68 struct sk_buff *skb, unsigned short vid, in batadv_bla_rx() argument 75 struct sk_buff *skb, unsigned short vid) in batadv_bla_tx() argument 100 u8 *orig, unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument 142 unsigned short vid) in batadv_bla_check_claim() argument
|
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_netdev.c | 757 u32 vid, u8 vsi, bool set) in fm10k_queue_vlan_request() argument 770 request->vlan.vid = vid; in fm10k_queue_vlan_request() 796 const unsigned char *addr, u16 vid, bool set) in fm10k_queue_mac_request() argument 815 request->mac.vid = vid; in fm10k_queue_mac_request() 871 u16 vid = interface->vid; in fm10k_uc_vlan_unsync() local 872 bool set = !!(vid / VLAN_N_VID); in fm10k_uc_vlan_unsync() 876 vid &= VLAN_N_VID - 1; in fm10k_uc_vlan_unsync() 878 err = fm10k_queue_mac_request(interface, glort, uc_addr, vid, set); in fm10k_uc_vlan_unsync() 891 u16 vid = interface->vid; in fm10k_mc_vlan_unsync() local 892 bool set = !!(vid / VLAN_N_VID); in fm10k_mc_vlan_unsync() [all …]
|
D | fm10k_vf.c | 167 static s32 fm10k_update_vlan_vf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) in fm10k_update_vlan_vf() argument 177 if ((vid << 16 | vid) >> 28) in fm10k_update_vlan_vf() 182 vid |= FM10K_VLAN_CLEAR; in fm10k_update_vlan_vf() 186 fm10k_tlv_attr_put_u32(msg, FM10K_MAC_VLAN_MSG_VLAN, vid); 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() 215 hw->mac.default_vid = vid & (FM10K_VLAN_TABLE_VID_MAX - 1); in fm10k_msg_mac_vlan_vf() 216 hw->mac.vlan_override = !!(vid & FM10K_VLAN_OVERRIDE); 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() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
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-v5.4/net/8021q/ |
D | vlan_core.c | 164 u16 vid; member 180 __be16 proto, u16 vid) in vlan_vid_info_get() argument 185 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get() 191 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument 199 vid_info->vid = vid; in vlan_vid_info_alloc() 204 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_add_rx_filter_info() argument 210 return dev->netdev_ops->ndo_vlan_rx_add_vid(dev, proto, vid); in vlan_add_rx_filter_info() 215 static int vlan_kill_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_kill_rx_filter_info() argument 221 return dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, proto, vid); in vlan_kill_rx_filter_info() 227 int (*action)(struct net_device *dev, int vid, void *arg), in vlan_for_each() argument [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 76 u16 vid; member 88 const struct net_device *vxlan_dev, u16 vid, 92 u16 vid, struct netlink_ext_ack *extack); 95 u16 vid); 341 u16 vid) in mlxsw_sp_port_vlan_find_by_bridge() argument 353 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge() 380 u16 vid) in mlxsw_sp_bridge_vlan_find() argument 385 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find() 393 mlxsw_sp_bridge_vlan_create(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_create() argument 402 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create() [all …]
|
D | spectrum_fid.c | 43 u16 vid; member 80 struct mlxsw_sp_port *port, u16 vid); 82 struct mlxsw_sp_port *port, u16 vid); 349 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map() argument 353 return fid->fid_family->ops->port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_map() 357 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap() argument 359 fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_unmap() 399 return mlxsw_sp_fid_8021q_fid(fid)->vid; in mlxsw_sp_fid_8021q_vid() 404 u16 vid = *(u16 *) arg; in mlxsw_sp_fid_8021q_setup() local 406 mlxsw_sp_fid_8021q_fid(fid)->vid = vid; in mlxsw_sp_fid_8021q_setup() [all …]
|
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/ |
D | devlink_trap_l2_drops.sh | 167 bridge vlan add vid 1 dev $swp1 untagged master 178 bridge vlan add vid 1 dev $swp1 pvid untagged master 224 local vid=10 226 bridge vlan add vid $vid dev $swp2 master 233 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q & 240 bridge vlan add vid $vid dev $swp1 master 257 bridge vlan del vid $vid dev $swp1 master 258 bridge vlan del vid $vid dev $swp2 master 268 local vid=20 270 bridge vlan add vid $vid dev $swp2 master [all …]
|
/Linux-v5.4/drivers/hwmon/ |
D | atxp1.c | 42 u8 vid; /* VID output register */ member 60 data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); in atxp1_update_device() 83 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, in cpu0_vid_show() 95 int vid, cvid; in cpu0_vid_store() local 107 vid = vid_to_reg(vcore, data->vrm); in cpu0_vid_store() 108 if (vid < 0) { in cpu0_vid_store() 110 return vid; in cpu0_vid_store() 117 if (data->reg.vid & ATXP1_VIDENA) in cpu0_vid_store() 118 cvid = data->reg.vid & ATXP1_VIDMASK; in cpu0_vid_store() 123 if (vid == cvid) in cpu0_vid_store() [all …]
|
/Linux-v5.4/tools/power/cpupower/debug/i386/ |
D | powernow-k8-decode.c | 27 static int get_fidvid(uint32_t cpu, uint32_t *fid, uint32_t *vid) in get_fidvid() argument 47 *vid = ((uint32_t )(msr>>32 & 0xffffffffull)) & MSR_S_HI_CURRENT_VID; in get_fidvid() 63 static uint32_t find_millivolts_from_vid(uint32_t vid) in find_millivolts_from_vid() argument 65 return 1550-vid*25; in find_millivolts_from_vid() 72 uint32_t fid, vid; in main() local 79 err = get_fidvid(cpu, &fid, &vid); in main() 92 find_millivolts_from_vid(vid)); in main()
|
/Linux-v5.4/drivers/net/ethernet/mscc/ |
D | ocelot.c | 46 u16 vid; member 68 unsigned int vid) in ocelot_mact_select() argument 75 mach |= vid << 16; in ocelot_mact_select() 90 unsigned int vid, in ocelot_mact_learn() argument 93 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_learn() 107 unsigned int vid) in ocelot_mact_forget() argument 109 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_forget() 159 static int ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) in ocelot_vlant_set_mask() argument 162 ocelot_write(ocelot, ANA_TABLES_VLANTIDX_V_INDEX(vid), in ocelot_vlant_set_mask() 208 if (port->vlan_aware && !port->vid) in ocelot_vlan_port_apply() [all …]
|
/Linux-v5.4/net/caif/ |
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()
|