/Linux-v5.15/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() 124 { "vid", vid_dbg_show, 0, NULL }, 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() [all …]
|
/Linux-v5.15/drivers/staging/media/tegra-video/ |
D | video.c | 16 struct tegra_video_device *vid; in tegra_v4l2_dev_release() local 18 vid = container_of(v4l2_dev, struct tegra_video_device, v4l2_dev); in tegra_v4l2_dev_release() 21 tegra_channels_cleanup(vid->vi); in tegra_v4l2_dev_release() 24 media_device_unregister(&vid->media_dev); in tegra_v4l2_dev_release() 25 media_device_cleanup(&vid->media_dev); 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() [all …]
|
/Linux-v5.15/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_vlan.c | 10 static int sparx5_vlant_set_mask(struct sparx5 *sparx5, u16 vid) in sparx5_vlant_set_mask() argument 15 bitmap_to_arr32(mask, sparx5->vlan_mask[vid], SPX5_PORTS); in sparx5_vlant_set_mask() 18 spx5_wr(mask[0], sparx5, ANA_L3_VLAN_MASK_CFG(vid)); in sparx5_vlant_set_mask() 19 spx5_wr(mask[1], sparx5, ANA_L3_VLAN_MASK_CFG1(vid)); in sparx5_vlant_set_mask() 20 spx5_wr(mask[2], sparx5, ANA_L3_VLAN_MASK_CFG2(vid)); in sparx5_vlant_set_mask() 27 u16 vid; in sparx5_vlan_init() local 35 for (vid = NULL_VID; vid < VLAN_N_VID; vid++) in sparx5_vlan_init() 36 spx5_rmw(ANA_L3_VLAN_CFG_VLAN_FID_SET(vid), in sparx5_vlan_init() 39 ANA_L3_VLAN_CFG(vid)); in sparx5_vlan_init() 55 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid, in sparx5_vlan_vid_add() argument [all …]
|
D | sparx5_mactable.c | 40 u16 vid; member 61 u16 vid) in sparx5_mact_select() argument 68 mach |= vid << 16; in sparx5_mact_select() 81 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_learn() argument 96 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_learn() 136 u16 *vid, u32 *pcfg2) in sparx5_mact_get() argument 151 *vid = mach >> 16; in sparx5_mact_get() 160 unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) in sparx5_mact_getnext() argument 167 sparx5_mact_select(sparx5, mac, *vid); in sparx5_mact_getnext() 179 ret = sparx5_mact_get(sparx5, mac, vid, &cfg2); in sparx5_mact_getnext() [all …]
|
/Linux-v5.15/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; 35 TP_printk("dev %s addr %02x:%02x:%02x:%02x:%02x:%02x vid %u nlh_flags %04x ndm_flags %02x", 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; [all …]
|
/Linux-v5.15/drivers/net/dsa/ |
D | rtl8366.c | 42 * @vid: the VLAN ID to look up or allocate 47 static int rtl8366_obtain_mc(struct realtek_smi *smi, int vid, in rtl8366_obtain_mc() argument 54 /* Try to find an existing member config entry for this VID */ in rtl8366_obtain_mc() 58 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 59 i, vid); in rtl8366_obtain_mc() 63 if (vid == vlanmc->vid) in rtl8366_obtain_mc() 67 /* We have no MC entry for this VID, try to find an empty one */ in rtl8366_obtain_mc() 71 dev_err(smi->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc() 72 i, vid); in rtl8366_obtain_mc() 76 if (vlanmc->vid == 0 && vlanmc->member == 0) { in rtl8366_obtain_mc() [all …]
|
/Linux-v5.15/net/dsa/ |
D | tag_8021q.c | 15 /* Binary structure of the fake 12-bit VID field (when the TPID is 23 * DIR - VID[11:10]: 30 * SWITCH_ID - VID[8:6]: 33 * VBID - { VID[9], VID[5:4] }: 38 * PORT - VID[3:0]: 78 /* Returns the VID to be inserted into the frame from xmit for switch steering 88 /* Returns the VID that will be installed as pvid for this switch port, sent as 98 /* Returns the decoded switch ID from the RX VID. */ 99 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument 101 return (vid & DSA_8021Q_SWITCH_ID_MASK) >> DSA_8021Q_SWITCH_ID_SHIFT; in dsa_8021q_rx_switch_id() [all …]
|
/Linux-v5.15/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_vlan_options.c | 105 if (v->vid == br_get_pvid(vg)) in br_vlan_modify_state() 162 * current vlan, so we compute: tun_id + v - vinfo->vid in br_vlan_modify_tunnel() 164 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel() 173 return br_vlan_tunnel_info(p, cmd, v->vid, tun_id, changed); 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() 245 v = br_vlan_find(vg, vid); in br_vlan_process_options() 265 if (v->vid == pvid || in br_vlan_process_options() 267 br_vlan_notify(br, p, curr_start->vid, in br_vlan_process_options() 268 curr_end->vid, RTM_NEWVLAN); in br_vlan_process_options() [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 …]
|
/Linux-v5.15/tools/testing/selftests/net/forwarding/ |
D | vxlan_bridge_1q.sh | 19 # | | vid 10 vid 10 | | 20 # | | vid 20 vid 20 | | 26 # | | vid 10 pvid untagged vid 20 pvid untagged | | 61 # | | vid 10 pvid untagged | | | | vid 10 pvid untagged | | 68 # | | vid 20 pvid untagged | | | | vid 20 pvid untagged | | 71 # | | | vid 10 | | | | | vid 10 | | 72 # | | | vid 20 | | | | | vid 20 | | 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 [all …]
|
D | vxlan_symmetric.sh | 15 # | | vid 10 pvid untagged vid 20 pvid untagged | | 22 # | | vid 10 pvid untagged vid 20 pvid untagged | | 29 # | | vid 4001 pvid untagged | | 86 # | | vid 10 pvid untagged vid 20 pvid untagged | | 93 # | | vid 4001 pvid untagged | | 96 # | | | vid 10 pvid untagged br1 | vid 20 pvid untagged | | 187 bridge vlan add vid 10 dev vx10 pvid untagged 195 bridge vlan add vid 20 dev vx20 pvid untagged 199 bridge vlan add vid 10 dev $swp1 pvid untagged 203 bridge vlan add vid 20 dev $swp2 pvid untagged [all …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/drivers/net/ethernet/ti/ |
D | am65-cpsw-switchdev.c | 133 static void am65_cpsw_set_pvid(struct am65_cpsw_port *port, u16 vid, bool cfi, u32 cos) in am65_cpsw_set_pvid() argument 139 pvid = vid; in am65_cpsw_set_pvid() 150 u16 vid, struct net_device *orig_dev) in am65_cpsw_port_vlan_add() argument 176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add() 185 HOST_PORT_NUM, ALE_VLAN | ALE_SECURE, vid); in am65_cpsw_port_vlan_add() 189 am65_cpsw_set_pvid(port, vid, 0, 0); in am65_cpsw_port_vlan_add() 191 netdev_dbg(port->ndev, "VID add: %s: vid:%u ports:%X\n", in am65_cpsw_port_vlan_add() 192 port->ndev->name, vid, port_mask); in am65_cpsw_port_vlan_add() 197 static int am65_cpsw_port_vlan_del(struct am65_cpsw_port *port, u16 vid, in am65_cpsw_port_vlan_del() argument 210 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in am65_cpsw_port_vlan_del() [all …]
|
D | cpsw_switchdev.c | 141 static void cpsw_set_pvid(struct cpsw_priv *priv, u16 vid, bool cfi, u32 cos) in cpsw_set_pvid() argument 147 pvid = vid; in cpsw_set_pvid() 166 u16 vid, struct net_device *orig_dev) in cpsw_port_vlan_add() argument 192 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add() 201 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_add() 205 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add() 207 dev_dbg(priv->dev, "VID add: %s: vid:%u ports:%X\n", in cpsw_port_vlan_add() 208 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add() 212 static int cpsw_port_vlan_del(struct cpsw_priv *priv, u16 vid, in cpsw_port_vlan_del() argument 225 ret = cpsw_ale_vlan_del_modify(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del() [all …]
|
/Linux-v5.15/net/8021q/ |
D | vlan_core.c | 126 * vlan info and vid list 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() 192 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument 200 vid_info->vid = vid; in vlan_vid_info_alloc() 205 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_add_rx_filter_info() argument 211 return dev->netdev_ops->ndo_vlan_rx_add_vid(dev, proto, vid); in vlan_add_rx_filter_info() 216 static int vlan_kill_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_kill_rx_filter_info() argument 222 return dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, proto, vid); in vlan_kill_rx_filter_info() [all …]
|
/Linux-v5.15/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.15/drivers/hwmon/ |
D | hwmon-vid.c | 3 * hwmon-vid.c - VID/VRM/VRD voltage conversions 7 * Partly imported from i2c-vid.h of the lm_sensors project 16 #include <linux/hwmon-vid.h> 19 * Common code for decoding VID pins. 31 * Table 74. VID Code Voltages 33 * These CPU models (K8 revision <= E) have 5 VID pins. See also: 39 * Table 71. VID Code Voltages 41 * These CPU models (K8 revision >= F) have 6 VID pins. See also: 65 * val is the 4-bit or more VID code. 67 * Some VID have some bits in uV scale, this is rounded to mV. [all …]
|
D | atxp1.c | 3 * atxp1.c - kernel module for setting CPU VID and general purpose 17 #include <linux/hwmon-vid.h> 42 u8 vid; /* VID output register */ member 43 u8 cpu_vid; /* VID input from CPU */ 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 106 /* Calculate VID */ in cpu0_vid_store() 107 vid = vid_to_reg(vcore, data->vrm); in cpu0_vid_store() 108 if (vid < 0) { in cpu0_vid_store() [all …]
|
/Linux-v5.15/net/batman-adv/ |
D | bridge_loop_avoidance.c | 71 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim() 90 hash = jhash(&gw->vid, sizeof(gw->vid), hash); in batadv_choose_backbone_gw() 96 * batadv_compare_backbone_gw() - compare address and vid of two backbone gws 113 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 120 * batadv_compare_claim() - compare address and vid of two claims 137 if (cl1->vid != cl2->vid) in batadv_compare_claim() 252 * @vid: the VLAN ID 258 unsigned short vid) in batadv_backbone_hash_find() argument 270 search_entry.vid = vid; in batadv_backbone_hash_find() 336 * @vid: the VLAN ID [all …]
|
D | distributed-arp-table.c | 292 __be16 vid; in batadv_hash_dat() local 302 vid = htons(dat->vid); in batadv_hash_dat() 303 key = (__force const unsigned char *)&vid; in batadv_hash_dat() 304 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat() 322 * @vid: VLAN identifier 328 unsigned short vid) in batadv_dat_entry_hash_find() argument 339 to_find.vid = vid; in batadv_dat_entry_hash_find() 365 * @vid: VLAN identifier 368 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument 373 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip, 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, 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 …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_netdev.c | 634 * @vid: the VLAN vid 644 u32 vid, u8 vsi, bool set) in fm10k_queue_vlan_request() argument 657 request->vlan.vid = vid; in fm10k_queue_vlan_request() 675 * @vid: the vid to update 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() [all …]
|