Home
last modified time | relevance | path

Searched refs:vid (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/drivers/staging/media/tegra-video/
Dvideo.c14 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 …]
/drivers/gpu/drm/sti/
Dsti_vid.c61 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 …]
/drivers/net/dsa/
Drtl8366.c47 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 …]
Dqca8k.c293 fdb->vid = (reg[2] >> QCA8K_ATU_VID_S) & QCA8K_ATU_VID_M; in qca8k_fdb_read()
308 qca8k_fdb_write(struct qca8k_priv *priv, u16 vid, u8 port_mask, const u8 *mac, in qca8k_fdb_write() argument
315 reg[2] = (vid & QCA8K_ATU_VID_M) << QCA8K_ATU_VID_S; in qca8k_fdb_write()
368 qca8k_fdb_write(priv, fdb->vid, fdb->port_mask, fdb->mac, fdb->aging); in qca8k_fdb_next()
378 u16 vid, u8 aging) in qca8k_fdb_add() argument
383 qca8k_fdb_write(priv, vid, port_mask, mac, aging); in qca8k_fdb_add()
391 qca8k_fdb_del(struct qca8k_priv *priv, const u8 *mac, u16 port_mask, u16 vid) in qca8k_fdb_del() argument
396 qca8k_fdb_write(priv, vid, port_mask, mac, 0); in qca8k_fdb_del()
412 qca8k_vlan_access(struct qca8k_priv *priv, enum qca8k_vlan_cmd cmd, u16 vid) in qca8k_vlan_access() argument
419 reg |= vid << QCA8K_VTU_FUNC1_VID_S; in qca8k_vlan_access()
[all …]
Ddsa_loop.c229 u16 vid; in dsa_loop_port_vlan_add() local
234 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in dsa_loop_port_vlan_add()
235 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_add()
244 __func__, port, vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_add()
248 ps->ports[port].pvid = vid; in dsa_loop_port_vlan_add()
258 u16 vid, pvid = ps->ports[port].pvid; in dsa_loop_port_vlan_del() local
263 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in dsa_loop_port_vlan_del()
264 vl = &ps->vlans[vid]; in dsa_loop_port_vlan_del()
270 if (pvid == vid) in dsa_loop_port_vlan_del()
274 __func__, port, vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_del()
/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c59 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 …]
Dprestera_hw.h145 int prestera_hw_vlan_create(struct prestera_switch *sw, u16 vid);
146 int prestera_hw_vlan_delete(struct prestera_switch *sw, u16 vid);
147 int prestera_hw_vlan_port_set(struct prestera_port *port, u16 vid,
149 int prestera_hw_vlan_port_vid_set(struct prestera_port *port, u16 vid);
150 int prestera_hw_vlan_port_stp_set(struct prestera_port *port, u16 vid, u8 state);
154 u16 vid, bool dynamic);
156 u16 vid);
158 int prestera_hw_fdb_flush_vlan(struct prestera_switch *sw, u16 vid, u32 mode);
159 int prestera_hw_fdb_flush_port_vlan(struct prestera_port *port, u16 vid,
Dprestera_hw.c244 u16 vid; member
255 u16 vid; member
276 u16 vid; member
319 u32 vid; member
390 evt->fdb_evt.vid = hw_evt->vid; in prestera_fw_parse_fdb_evt()
1006 int prestera_hw_vlan_create(struct prestera_switch *sw, u16 vid) in prestera_hw_vlan_create() argument
1009 .vid = vid, in prestera_hw_vlan_create()
1016 int prestera_hw_vlan_delete(struct prestera_switch *sw, u16 vid) in prestera_hw_vlan_delete() argument
1019 .vid = vid, in prestera_hw_vlan_delete()
1026 int prestera_hw_vlan_port_set(struct prestera_port *port, u16 vid, in prestera_hw_vlan_port_set() argument
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-cx2584x-v4l.c27 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 …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c644 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 …]
Dfm10k_vf.c167 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 …]
/drivers/net/ethernet/ti/
Dcpsw_switchdev.c146 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 …]
Dcpsw_ale.h110 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,
Dcpsw_ale.c343 static int cpsw_ale_match_addr(struct cpsw_ale *ale, const u8 *addr, u16 vid) in cpsw_ale_match_addr() argument
355 if (cpsw_ale_get_vlan_id(ale_entry) != vid) in cpsw_ale_match_addr()
364 static int cpsw_ale_match_vlan(struct cpsw_ale *ale, u16 vid) in cpsw_ale_match_vlan() argument
374 if (cpsw_ale_get_vlan_id(ale_entry) == vid) in cpsw_ale_match_vlan()
433 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument
449 if (vid != -1 && cpsw_ale_get_vlan_id(ale_entry) != vid) in cpsw_ale_flush_multicast()
469 int flags, u16 vid) in cpsw_ale_set_vlan_entry_type() argument
473 cpsw_ale_set_vlan_id(ale_entry, vid); in cpsw_ale_set_vlan_entry_type()
480 int flags, u16 vid) in cpsw_ale_add_ucast() argument
485 cpsw_ale_set_vlan_entry_type(ale_entry, flags, vid); in cpsw_ale_add_ucast()
[all …]
/drivers/net/ethernet/mscc/
Docelot.c17 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 …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c76 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 …]
Dspectrum_fid.c44 u16 vid; member
81 struct mlxsw_sp_port *port, u16 vid);
83 struct mlxsw_sp_port *port, u16 vid);
350 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_map() argument
354 return fid->fid_family->ops->port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_map()
358 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_fid_port_vid_unmap() argument
360 fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_fid_port_vid_unmap()
400 return mlxsw_sp_fid_8021q_fid(fid)->vid; in mlxsw_sp_fid_8021q_vid()
405 u16 vid = *(u16 *) arg; in mlxsw_sp_fid_8021q_setup() local
407 mlxsw_sp_fid_8021q_fid(fid)->vid = vid; in mlxsw_sp_fid_8021q_setup()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgk20a.c101 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()
Dbase.c42 if (volt->vid[i].vid == ret) in nvkm_volt_get()
43 return volt->vid[i].uv; in nvkm_volt_get()
60 int err = volt->vid[i].uv - uv; in nvkm_volt_set()
75 ret = volt->func->vid_set(volt, volt->vid[best].vid); in nvkm_volt_set()
77 volt->vid[best].uv, ret); in nvkm_volt_set()
203 volt->vid[volt->vid_nr].uv = info.base; in nvkm_volt_parse_bios()
204 volt->vid[volt->vid_nr].vid = i; in nvkm_volt_parse_bios()
218 volt->vid[volt->vid_nr].uv = ivid.voltage; in nvkm_volt_parse_bios()
219 volt->vid[volt->vid_nr].vid = ivid.vid; in nvkm_volt_parse_bios()
315 volt->vid[i].vid, volt->vid[i].uv); in nvkm_volt_ctor()
Dgpio.c39 u8 vid = 0; in nvkm_voltgpio_get() local
47 vid |= ret << i; in nvkm_voltgpio_get()
51 return vid; in nvkm_voltgpio_get()
55 nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) in nvkm_voltgpio_set() argument
60 for (i = 0; i < ARRAY_SIZE(tags); i++, vid >>= 1) { in nvkm_voltgpio_set()
62 int ret = nvkm_gpio_set(gpio, 0, tags[i], 0xff, vid & 1); in nvkm_voltgpio_set()
/drivers/hwmon/
Datxp1.c42 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 …]
Dhwmon-vid.c71 int vid; in vid_from_reg() local
81 vid = 1087500 - (val & 0x1f) * 25000; in vid_from_reg()
83 vid = 1862500 - (val & 0x1f) * 25000; in vid_from_reg()
85 vid -= 12500; in vid_from_reg()
86 return (vid + 500) / 1000; in vid_from_reg()
236 unsigned int vid, brand, __maybe_unused dummy; in get_via_model_d_vrm() local
241 rdmsr(0x198, dummy, vid); in get_via_model_d_vrm()
242 vid &= 0xff; in get_via_model_d_vrm()
247 if (vid > 0x3f) { in get_via_model_d_vrm()
/drivers/cpufreq/
Dpowernow-k7.c61 vid:5, member
175 u8 fid, vid; in get_ranges() local
202 vid = *pst++; in get_ranges()
203 powernow_table[j].driver_data |= (vid << 8); /* upper 8 bits */ in get_ranges()
207 fid_codes[fid] % 10, speed/1000, vid, in get_ranges()
208 mobile_vid_table[vid]/1000, in get_ranges()
209 mobile_vid_table[vid]%1000); in get_ranges()
233 static void change_VID(int vid) in change_VID() argument
238 if (fidvidctl.bits.VID != vid) { in change_VID()
240 fidvidctl.bits.VID = vid; in change_VID()
[all …]
/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c27 static int dpaa2_switch_add_vlan(struct ethsw_core *ethsw, u16 vid) in dpaa2_switch_add_vlan() argument
36 ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_add_vlan()
41 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan()
121 u16 vid, u16 flags) in dpaa2_switch_port_add_vlan() argument
128 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan()
129 netdev_warn(netdev, "VLAN %d already configured\n", vid); in dpaa2_switch_port_add_vlan()
135 err = dpsw_vlan_add_if(ethsw->mc_io, 0, ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_port_add_vlan()
141 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan()
146 vid, &vcfg); in dpaa2_switch_port_add_vlan()
152 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan()
[all …]
/drivers/usb/storage/
Dusual-tables.c58 u16 vid, pid, bcdmin, bcdmax; member
65 .vid = id_vendor, \
94 unsigned vid, pid, bcd; in usb_usual_ignore_device() local
98 vid = le16_to_cpu(udev->descriptor.idVendor); in usb_usual_ignore_device()
102 for (p = ignore_ids; p->vid; ++p) { in usb_usual_ignore_device()
103 if (p->vid == vid && p->pid == pid && in usb_usual_ignore_device()

12345678910>>...14