/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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() 146 * current vlan, so we compute: tun_id + v - vinfo->vid in br_vlan_modify_tunnel() 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() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
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.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
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 …]
|
/Linux-v5.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 63 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_learn() 77 const unsigned char mac[ETH_ALEN], unsigned int vid) in ocelot_mact_forget() argument 79 ocelot_mact_select(ocelot, mac, vid); in ocelot_mact_forget() 137 static int ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) in ocelot_vlant_set_mask() argument 139 /* Select the VID to configure */ in ocelot_vlant_set_mask() 140 ocelot_write(ocelot, ANA_TABLES_VLANTIDX_V_INDEX(vid), in ocelot_vlant_set_mask() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.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); 34 /* EtherType of RX VID, used for filtering on master interface */ 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 [all …]
|
/Linux-v5.10/drivers/cpufreq/ |
D | powernow-k8.c | 96 * Update the global current fid / vid values from the status msr. 134 u8 fid, vid; in fidvid_msr_init() local 137 vid = hi & MSR_S_HI_CURRENT_VID; in fidvid_msr_init() 139 lo = fid | (vid << MSR_C_LO_VID_SHIFT); in fidvid_msr_init() 175 pr_err("vid change on fid trans, old 0x%x, new 0x%x\n", in write_new_fid() 189 /* Write a new vid to the hardware */ 190 static int write_new_vid(struct powernow_k8_data *data, u32 vid) in write_new_vid() argument 196 if ((data->currfid & INVALID_FID_MASK) || (vid & INVALID_VID_MASK)) { in write_new_vid() 197 pr_err("internal error - overflow on vid write\n"); in write_new_vid() 202 lo |= (vid << MSR_C_LO_VID_SHIFT); in write_new_vid() [all …]
|