| /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() 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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/sti/ |
| D | sti_vid.c | 59 readl(vid->regs + reg)) 94 struct sti_vid *vid = (struct sti_vid *)node->info_ent->data; in vid_dbg_show() local 96 seq_printf(s, "VID: (vaddr= 0x%p)", vid->regs); in vid_dbg_show() 99 vid_dbg_ctl(s, readl(vid->regs + VID_CTL)); in vid_dbg_show() 103 vid_dbg_vpo(s, readl(vid->regs + VID_VPO)); in vid_dbg_show() 105 vid_dbg_vps(s, readl(vid->regs + VID_VPS)); in vid_dbg_show() 113 vid_dbg_mst(s, readl(vid->regs + VID_MST)); in vid_dbg_show() 122 { "vid", vid_dbg_show, 0, NULL }, 125 int vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor) in vid_debugfs_init() argument 130 vid_debugfs_files[i].data = vid; in vid_debugfs_init() [all …]
|
| /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-4.19/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/net/bridge/ |
| D | br_vlan.c | 14 u16 vid = *(u16 *)arg->key; in br_vlan_cmp() local 16 return vle->vid != vid; in br_vlan_cmp() 21 .key_offset = offsetof(struct net_bridge_vlan, vid), 30 static struct net_bridge_vlan *br_vlan_lookup(struct rhashtable *tbl, u16 vid) in br_vlan_lookup() argument 32 return rhashtable_lookup_fast(tbl, &vid, br_vlan_rht_params); in br_vlan_lookup() 35 static bool __vlan_add_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_add_pvid() argument 37 if (vg->pvid == vid) in __vlan_add_pvid() 41 vg->pvid = vid; in __vlan_add_pvid() 46 static bool __vlan_delete_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_delete_pvid() argument 48 if (vg->pvid != vid) in __vlan_delete_pvid() [all …]
|
| D | br_netlink_tunnel.c | 55 } else if ((v->vid - vtend->vid) == 1 && in __get_num_vlan_tunnel_infos() 60 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos() 71 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos() 94 static int br_fill_vlan_tinfo(struct sk_buff *skb, u16 vid, in br_fill_vlan_tinfo() argument 107 vid)) in br_fill_vlan_tinfo() 128 if (vtend && (vtend->vid - vtbegin->vid) > 0) { in br_fill_vlan_tinfo_range() 130 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range() 136 err = br_fill_vlan_tinfo(skb, vtend->vid, in br_fill_vlan_tinfo_range() 142 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range() 171 } else if ((v->vid - vtend->vid) == 1 && in br_fill_vlan_tunnel_info() [all …]
|
| D | br_fdb.c | 41 const unsigned char *addr, u16 vid); 96 __u16 vid) in fdb_find_rcu() argument 102 key.vlan_id = vid; in fdb_find_rcu() 111 __u16 vid) in br_fdb_find() argument 118 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find() 126 __u16 vid) in br_fdb_find_port() argument 139 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port() 150 __u16 vid) in br_fdb_find_rcu() argument 152 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu() 224 u16 vid = f->key.vlan_id; in fdb_delete_local() local [all …]
|
| /kernel/linux/linux-4.19/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 …]
|
| /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; 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 …]
|
| /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 …]
|
| /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/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 …]
|
| /kernel/linux/linux-5.10/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 * SVL/SUBVLAN - { VID[9], VID[5:4] }: 35 * * 1 (0b001): Received traffic is tagged with a VID value private 45 * SWITCH_ID - VID[8:6]: 48 * PORT - VID[3:0]: 81 /* Returns the VID to be inserted into the frame from xmit for switch steering 91 /* Returns the VID that will be installed as pvid for this switch port, sent as 108 /* Returns the decoded switch ID from the RX VID. */ 109 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument [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() 212 dev_dbg(priv->dev, "VID add: %s: vid:%u ports:%X\n", 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() [all …]
|
| /kernel/linux/linux-4.19/net/8021q/ |
| D | vlan_core.c | 125 * vlan info and vid list 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() [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/net/8021q/ |
| D | vlan_core.c | 125 * vlan info and vid list 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() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_fid.c | 31 u16 vid; member 56 struct mlxsw_sp_port *port, u16 vid); 58 struct mlxsw_sp_port *port, u16 vid); 144 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map() argument 148 return fid->fid_family->ops->port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_map() 152 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap() argument 154 fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_unmap() 194 return mlxsw_sp_fid_8021q_fid(fid)->vid; in mlxsw_sp_fid_8021q_vid() 199 u16 vid = *(u16 *) arg; in mlxsw_sp_fid_8021q_setup() local 201 mlxsw_sp_fid_8021q_fid(fid)->vid = vid; in mlxsw_sp_fid_8021q_setup() [all …]
|
| /kernel/linux/linux-4.19/net/batman-adv/ |
| D | bridge_loop_avoidance.c | 86 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim() 105 hash = jhash(&gw->vid, sizeof(gw->vid), hash); in batadv_choose_backbone_gw() 111 * batadv_compare_backbone_gw() - compare address and vid of two backbone gws 128 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 135 * batadv_compare_claim() - compare address and vid of two claims 152 if (cl1->vid != cl2->vid) in batadv_compare_claim() 261 * @vid: the VLAN ID 267 unsigned short vid) in batadv_backbone_hash_find() argument 279 search_entry.vid = vid; in batadv_backbone_hash_find() 345 * @vid: the VLAN ID [all …]
|
| /kernel/linux/linux-5.10/net/batman-adv/ |
| 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() 98 * batadv_compare_backbone_gw() - compare address and vid of two backbone gws 115 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 122 * batadv_compare_claim() - compare address and vid of two claims 139 if (cl1->vid != cl2->vid) in batadv_compare_claim() 248 * @vid: the VLAN ID 254 unsigned short vid) in batadv_backbone_hash_find() argument 266 search_entry.vid = vid; in batadv_backbone_hash_find() 332 * @vid: the VLAN ID [all …]
|
| /kernel/linux/linux-4.19/drivers/hwmon/ |
| D | hwmon-vid.c | 2 * hwmon-vid.c - VID/VRM/VRD voltage conversions 6 * Partly imported from i2c-vid.h of the lm_sensors project 29 #include <linux/hwmon-vid.h> 32 * Common code for decoding VID pins. 44 * Table 74. VID Code Voltages 46 * These CPU models (K8 revision <= E) have 5 VID pins. See also: 52 * Table 71. VID Code Voltages 54 * These CPU models (K8 revision >= F) have 6 VID pins. See also: 78 * val is the 4-bit or more VID code. 80 * Some VID have some bits in uV scale, this is rounded to mV. [all …]
|