/kernel/linux/linux-5.10/drivers/staging/media/tegra-video/ |
D | video.c | 14 struct tegra_video_device *vid; in tegra_v4l2_dev_release() local 16 vid = container_of(v4l2_dev, struct tegra_video_device, v4l2_dev); in tegra_v4l2_dev_release() 19 tegra_channels_cleanup(vid->vi); in tegra_v4l2_dev_release() 22 media_device_unregister(&vid->media_dev); in tegra_v4l2_dev_release() 23 media_device_cleanup(&vid->media_dev); in tegra_v4l2_dev_release() 24 kfree(vid); in tegra_v4l2_dev_release() 29 struct tegra_video_device *vid; in host1x_video_probe() local 32 vid = kzalloc(sizeof(*vid), GFP_KERNEL); in host1x_video_probe() 33 if (!vid) in host1x_video_probe() 36 dev_set_drvdata(&dev->dev, vid); in host1x_video_probe() [all …]
|
/kernel/linux/linux-5.10/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 void 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 …]
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
D | rtl8366.c | 47 static int rtl8366_obtain_mc(struct realtek_smi *smi, int vid, in rtl8366_obtain_mc() argument 59 i, vid); in rtl8366_obtain_mc() 63 if (vid == vlanmc->vid) in rtl8366_obtain_mc() 72 i, vid); in rtl8366_obtain_mc() 76 if (vlanmc->vid == 0 && vlanmc->member == 0) { in rtl8366_obtain_mc() 78 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); 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() [all …]
|
/kernel/linux/linux-5.10/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() 40 if (vg->pvid == v->vid) in __vlan_add_pvid() 45 vg->pvid = v->vid; in __vlan_add_pvid() 50 static bool __vlan_delete_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_delete_pvid() argument 52 if (vg->pvid != vid) in __vlan_delete_pvid() [all …]
|
D | br_fdb.c | 36 const unsigned char *addr, u16 vid); 92 __u16 vid) in fdb_find_rcu() argument 98 key.vlan_id = vid; in fdb_find_rcu() 107 __u16 vid) in br_fdb_find() argument 114 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find() 122 __u16 vid) in br_fdb_find_port() argument 135 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port() 146 __u16 vid) in br_fdb_find_rcu() argument 148 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu() 220 u16 vid = f->key.vlan_id; in fdb_delete_local() local [all …]
|
D | br_vlan_options.c | 89 if (v->vid == br_get_pvid(vg)) in br_vlan_modify_state() 148 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel() 157 return br_vlan_tunnel_info(p, cmd, v->vid, tun_id, changed); in br_vlan_modify_tunnel() 196 int vid, err = 0; in br_vlan_process_options() local 214 for (vid = range_start->vid; vid <= range_end->vid; vid++) { in br_vlan_process_options() 217 v = br_vlan_find(vg, vid); in br_vlan_process_options() 237 if (v->vid == pvid || in br_vlan_process_options() 239 br_vlan_notify(br, p, curr_start->vid, in br_vlan_process_options() 240 curr_end->vid, RTM_NEWVLAN); in br_vlan_process_options() 249 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_switchdev.c | 59 u16 vid; member 67 u16 vid; member 74 static int prestera_port_vid_stp_set(struct prestera_port *port, u16 vid, 78 prestera_bridge_vlan_create(struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_vlan_create() argument 87 br_vlan->vid = vid; in prestera_bridge_vlan_create() 101 prestera_bridge_vlan_by_vid(struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_vlan_by_vid() argument 106 if (br_vlan->vid == vid) in prestera_bridge_vlan_by_vid() 114 u16 vid) in prestera_bridge_vlan_port_count() argument 122 if (br_vlan->vid == vid) { in prestera_bridge_vlan_port_count() 139 prestera_port_vlan_by_vid(struct prestera_port *port, u16 vid) in prestera_port_vlan_by_vid() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_netdev.c | 644 u32 vid, u8 vsi, bool set) in fm10k_queue_vlan_request() argument 657 request->vlan.vid = vid; in fm10k_queue_vlan_request() 683 const unsigned char *addr, u16 vid, bool set) in fm10k_queue_mac_request() argument 702 request->mac.vid = vid; in fm10k_queue_mac_request() 758 u16 vid = interface->vid; in fm10k_uc_vlan_unsync() local 759 bool set = !!(vid / VLAN_N_VID); in fm10k_uc_vlan_unsync() 763 vid &= VLAN_N_VID - 1; in fm10k_uc_vlan_unsync() 765 err = fm10k_queue_mac_request(interface, glort, uc_addr, vid, set); in fm10k_uc_vlan_unsync() 778 u16 vid = interface->vid; in fm10k_mc_vlan_unsync() local 779 bool set = !!(vid / VLAN_N_VID); in fm10k_mc_vlan_unsync() [all …]
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | distributed-arp-table.c | 290 __be16 vid; in batadv_hash_dat() local 300 vid = htons(dat->vid); in batadv_hash_dat() 301 key = (__force const unsigned char *)&vid; in batadv_hash_dat() 302 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat() 326 unsigned short vid) in batadv_dat_entry_hash_find() argument 337 to_find.vid = vid; in batadv_dat_entry_hash_find() 366 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument 371 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip, vid); in batadv_dat_entry_add() 380 batadv_print_vid(vid)); in batadv_dat_entry_add() 389 dat_entry->vid = vid; in batadv_dat_entry_add() [all …]
|
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 | bridge_loop_avoidance.c | 73 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim() 92 hash = jhash(&gw->vid, sizeof(gw->vid), hash); in batadv_choose_backbone_gw() 115 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 139 if (cl1->vid != cl2->vid) in batadv_compare_claim() 254 unsigned short vid) in batadv_backbone_hash_find() argument 266 search_entry.vid = vid; in batadv_backbone_hash_find() 336 unsigned short vid, int claimtype) in batadv_bla_send_claim() argument 387 batadv_print_vid(vid)); in batadv_bla_send_claim() 396 batadv_print_vid(vid)); in batadv_bla_send_claim() 405 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
D | cpsw_switchdev.c | 146 static void cpsw_set_pvid(struct cpsw_priv *priv, u16 vid, bool cfi, u32 cos) in cpsw_set_pvid() argument 152 pvid = vid; in cpsw_set_pvid() 171 u16 vid, struct net_device *orig_dev) in cpsw_port_vlan_add() argument 197 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add() 206 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_add() 210 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add() 213 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add() 217 static int cpsw_port_vlan_del(struct cpsw_priv *priv, u16 vid, in cpsw_port_vlan_del() argument 230 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del() 239 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_del() [all …]
|
D | cpsw_ale.h | 110 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid); 112 int flags, u16 vid); 114 int flags, u16 vid); 116 int flags, u16 vid, int mcast_state); 118 int flags, u16 vid); 119 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port, int untag, 121 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port); 130 static inline int cpsw_ale_get_vlan_p0_untag(struct cpsw_ale *ale, u16 vid) in cpsw_ale_get_vlan_p0_untag() argument 132 return test_bit(vid, ale->p0_untag_vid_mask); in cpsw_ale_get_vlan_p0_untag() 135 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask,
|
/kernel/liteos_a/security/vid/ |
D | vid.c | 73 static TimerIdMapNode *FindListNodeByVid(UINT16 vid) in FindListNodeByVid() argument 80 if (vid == idNode->vid) { in FindListNodeByVid() 148 static VOID ReleaseVid(UINT16 vid) in ReleaseVid() argument 156 if (vid >= (VID_MAP_MAX_NUM * INT_BIT_COUNT)) { in ReleaseVid() 160 a = vid >> INT_BIT_SHIFT; in ReleaseVid() 161 b = vid & (INT_BIT_COUNT - 1); in ReleaseVid() 182 UINT16 vid; in AddNodeByRid() local 186 return tmp->vid; in AddNodeByRid() 190 vid = GetFreeVid(); in AddNodeByRid() 191 if (vid == MAX_INVALID_TIMER_VID) { in AddNodeByRid() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
D | ocelot.c | 17 u16 vid; member 39 unsigned int vid) in ocelot_mact_select() argument 46 mach |= vid << 16; in ocelot_mact_select() 61 unsigned int vid, enum macaccess_entry_type type) in ocelot_mact_learn() argument 80 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_learn() 90 const unsigned char mac[ETH_ALEN], unsigned int vid) in ocelot_mact_forget() argument 92 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_forget() 150 static int ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) in ocelot_vlant_set_mask() argument 153 ocelot_write(ocelot, ANA_TABLES_VLANTIDX_V_INDEX(vid), in ocelot_vlant_set_mask() 164 u16 vid) in ocelot_port_set_native_vlan() argument [all …]
|
/kernel/linux/linux-5.10/include/linux/dsa/ |
D | 8021q.h | 26 int (*vlan_add)(struct dsa_switch *ds, int port, u16 vid, u16 flags); 27 int (*vlan_del)(struct dsa_switch *ds, int port, u16 vid); 61 int dsa_8021q_rx_switch_id(u16 vid); 63 int dsa_8021q_rx_source_port(u16 vid); 65 u16 dsa_8021q_rx_subvlan(u16 vid); 67 bool vid_is_dsa_8021q(u16 vid); 111 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument 116 int dsa_8021q_rx_source_port(u16 vid) in dsa_8021q_rx_source_port() argument 121 u16 dsa_8021q_rx_subvlan(u16 vid) in dsa_8021q_rx_subvlan() argument 126 bool vid_is_dsa_8021q(u16 vid) in vid_is_dsa_8021q() argument
|
/kernel/linux/linux-5.10/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); 411 u16 vid) in mlxsw_sp_port_vlan_find_by_bridge() argument 423 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge() 450 u16 vid) in mlxsw_sp_bridge_vlan_find() argument 455 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find() 463 mlxsw_sp_bridge_vlan_create(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_create() argument 472 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | devlink_trap_l2_drops.sh | 125 bridge vlan add vid 1 dev $swp1 untagged master 136 bridge vlan add vid 1 dev $swp1 pvid untagged master 181 local vid=10 183 bridge vlan add vid $vid dev $swp2 master 190 $MZ $h1 -Q $vid -c 0 -p 100 -a own -b $dmac -t ip -d 1msec -q & 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 [all …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | callback.c | 69 afs_volid_t vid) in afs_lookup_volume_rcu() argument 86 if (volume->vid < vid) in afs_lookup_volume_rcu() 88 else if (volume->vid > vid) in afs_lookup_volume_rcu() 147 afs_volid_t vid = cbb->fid.vid; in afs_break_some_callbacks() local 150 volume = afs_lookup_volume_rcu(server->cell, vid); in afs_break_some_callbacks() 157 if (cbb->fid.vid == vid) { in afs_break_some_callbacks() 159 cbb->fid.vid, in afs_break_some_callbacks()
|