Home
last modified time | relevance | path

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

123456789

/drivers/gpu/drm/sti/
Dsti_vid.c59 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()
126 int vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor) in vid_debugfs_init() argument
131 vid_debugfs_files[i].data = vid; in vid_debugfs_init()
138 void sti_vid_commit(struct sti_vid *vid, in sti_vid_commit() argument
[all …]
Dsti_vid.h23 void sti_vid_commit(struct sti_vid *vid,
25 void sti_vid_disable(struct sti_vid *vid);
29 int vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor);
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c56 u16 vid) in mlxsw_sp_port_vid_to_fid_get() argument
59 u16 fid = vid; in mlxsw_sp_port_vid_to_fid_get()
74 u16 vid; in mlxsw_sp_port_orig_get() local
79 vid = vlan_dev_vlan_id(dev); in mlxsw_sp_port_orig_get()
80 mlxsw_sp_vport = mlxsw_sp_port_vport_find(mlxsw_sp_port, vid); in mlxsw_sp_port_orig_get()
121 u16 vid; in mlxsw_sp_port_stp_state_set() local
146 vid = mlxsw_sp_vport_vid_get(mlxsw_sp_port); in mlxsw_sp_port_stp_state_set()
147 mlxsw_reg_spms_vid_pack(spms_pl, vid, spms_state); in mlxsw_sp_port_stp_state_set()
149 for_each_set_bit(vid, mlxsw_sp_port->active_vlans, VLAN_N_VID) in mlxsw_sp_port_stp_state_set()
150 mlxsw_reg_spms_vid_pack(spms_pl, vid, spms_state); in mlxsw_sp_port_stp_state_set()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-cx2584x-v4l.c42 int vid; member
53 .vid = CX25840_COMPOSITE7,
57 .vid = CX25840_COMPOSITE3,
61 .vid = CX25840_COMPOSITE3,
65 .vid = CX25840_SVIDEO1,
78 .vid = CX25840_COMPOSITE2,
84 .vid = CX25840_COMPOSITE1,
88 .vid = CX25840_COMPOSITE1,
92 .vid = (CX25840_SVIDEO_LUMA3|CX25840_SVIDEO_CHROMA4),
105 .vid = CX25840_COMPOSITE1,
[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.c41 if (volt->vid[i].vid == ret) in nvkm_volt_get()
42 return volt->vid[i].uv; in nvkm_volt_get()
59 if (volt->vid[i].uv == uv) { in nvkm_volt_set()
60 ret = volt->func->vid_set(volt, volt->vid[i].vid); in nvkm_volt_set()
128 volt->vid[volt->vid_nr].uv = info.base; in nvkm_volt_parse_bios()
129 volt->vid[volt->vid_nr].vid = i; in nvkm_volt_parse_bios()
142 volt->vid[volt->vid_nr].uv = ivid.voltage; in nvkm_volt_parse_bios()
143 volt->vid[volt->vid_nr].vid = ivid.vid; in nvkm_volt_parse_bios()
202 volt->vid[i].vid, volt->vid[i].uv); in nvkm_volt_ctor()
Dgpio.c38 u8 vid = 0; in nvkm_voltgpio_get() local
46 vid |= ret << i; in nvkm_voltgpio_get()
50 return vid; in nvkm_voltgpio_get()
54 nvkm_voltgpio_set(struct nvkm_volt *volt, u8 vid) in nvkm_voltgpio_set() argument
59 for (i = 0; i < ARRAY_SIZE(tags); i++, vid >>= 1) { in nvkm_voltgpio_set()
61 int ret = nvkm_gpio_set(gpio, 0, tags[i], 0xff, vid & 1); in nvkm_voltgpio_set()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c756 u16 vid = interface->vid; in fm10k_uc_vlan_unsync() local
757 bool set = !!(vid / VLAN_N_VID); in fm10k_uc_vlan_unsync()
761 vid &= VLAN_N_VID - 1; in fm10k_uc_vlan_unsync()
763 err = hw->mac.ops.update_uc_addr(hw, glort, uc_addr, vid, set, 0); in fm10k_uc_vlan_unsync()
777 u16 vid = interface->vid; in fm10k_mc_vlan_unsync() local
778 bool set = !!(vid / VLAN_N_VID); in fm10k_mc_vlan_unsync()
782 vid &= VLAN_N_VID - 1; in fm10k_mc_vlan_unsync()
784 err = hw->mac.ops.update_mc_addr(hw, glort, mc_addr, vid, set); in fm10k_mc_vlan_unsync()
792 static int fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) in fm10k_update_vid() argument
800 if (!vid) in fm10k_update_vid()
[all …]
Dfm10k_vf.c184 static s32 fm10k_update_vlan_vf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) in fm10k_update_vlan_vf() argument
194 if ((vid << 16 | vid) >> 28) in fm10k_update_vlan_vf()
199 vid |= FM10K_VLAN_CLEAR; in fm10k_update_vlan_vf()
203 fm10k_tlv_attr_put_u32(msg, FM10K_MAC_VLAN_MSG_VLAN, vid); in fm10k_update_vlan_vf()
221 u16 vid; in fm10k_msg_mac_vlan_vf() local
227 perm_addr, &vid); in fm10k_msg_mac_vlan_vf()
232 hw->mac.default_vid = vid & (FM10K_VLAN_TABLE_VID_MAX - 1); in fm10k_msg_mac_vlan_vf()
233 hw->mac.vlan_override = !!(vid & FM10K_VLAN_OVERRIDE); in fm10k_msg_mac_vlan_vf()
288 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_uc_addr_vf() argument
294 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_uc_addr_vf()
[all …]
Dfm10k_pf.c215 static s32 fm10k_update_vlan_pf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) in fm10k_update_vlan_pf() argument
236 len = vid >> 16; in fm10k_update_vlan_pf()
237 vid = (vid << 17) >> 17; in fm10k_update_vlan_pf()
240 if (len >= FM10K_VLAN_TABLE_VID_MAX || vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_vlan_pf()
244 for (reg = FM10K_VLAN_TABLE(vsi, vid / 32), bit = vid % 32; in fm10k_update_vlan_pf()
326 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_xc_addr_pf() argument
333 vid &= ~FM10K_VLAN_CLEAR; in fm10k_update_xc_addr_pf()
336 if (!fm10k_glort_valid_pf(hw, glort) || vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_xc_addr_pf()
346 mac_update.vlan = cpu_to_le16(vid); in fm10k_update_xc_addr_pf()
373 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_uc_addr_pf() argument
[all …]
/drivers/hwmon/
Datxp1.c51 u8 vid; /* VID output register */ member
69 data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); in atxp1_update_device()
92 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, in atxp1_showvcore()
104 int vid, cvid; in atxp1_storevcore() local
116 vid = vid_to_reg(vcore, data->vrm); in atxp1_storevcore()
117 if (vid < 0) { in atxp1_storevcore()
119 return vid; in atxp1_storevcore()
126 if (data->reg.vid & ATXP1_VIDENA) in atxp1_storevcore()
127 cvid = data->reg.vid & ATXP1_VIDMASK; in atxp1_storevcore()
132 if (vid == cvid) in atxp1_storevcore()
[all …]
Dhwmon-vid.c84 int vid; in vid_from_reg() local
94 vid = 1087500 - (val & 0x1f) * 25000; in vid_from_reg()
96 vid = 1862500 - (val & 0x1f) * 25000; in vid_from_reg()
98 vid -= 12500; in vid_from_reg()
99 return (vid + 500) / 1000; in vid_from_reg()
249 unsigned int vid, brand, __maybe_unused dummy; in get_via_model_d_vrm() local
254 rdmsr(0x198, dummy, vid); in get_via_model_d_vrm()
255 vid &= 0xff; in get_via_model_d_vrm()
260 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 …]
Dpowernow-k8.c139 u8 fid, vid; in fidvid_msr_init() local
142 vid = hi & MSR_S_HI_CURRENT_VID; in fidvid_msr_init()
144 lo = fid | (vid << MSR_C_LO_VID_SHIFT); in fidvid_msr_init()
195 static int write_new_vid(struct powernow_k8_data *data, u32 vid) in write_new_vid() argument
201 if ((data->currfid & INVALID_FID_MASK) || (vid & INVALID_VID_MASK)) { in write_new_vid()
207 lo |= (vid << MSR_C_LO_VID_SHIFT); in write_new_vid()
211 vid, lo, STOP_GRANT_5NS); in write_new_vid()
227 if (vid != data->currvid) { in write_new_vid()
229 vid, data->currvid); in write_new_vid()
504 if (pst[j].vid > LEAST_VID) { in check_pst_table()
[all …]
/drivers/net/ethernet/ti/
Dcpsw_ale.c150 static int cpsw_ale_match_addr(struct cpsw_ale *ale, u8 *addr, u16 vid) in cpsw_ale_match_addr() argument
162 if (cpsw_ale_get_vlan_id(ale_entry) != vid) in cpsw_ale_match_addr()
171 static int cpsw_ale_match_vlan(struct cpsw_ale *ale, u16 vid) in cpsw_ale_match_vlan() argument
181 if (cpsw_ale_get_vlan_id(ale_entry) == vid) in cpsw_ale_match_vlan()
238 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast() argument
254 if (vid != -1 && cpsw_ale_get_vlan_id(ale_entry) != vid) in cpsw_ale_flush_multicast()
272 int flags, u16 vid) in cpsw_ale_set_vlan_entry_type() argument
276 cpsw_ale_set_vlan_id(ale_entry, vid); in cpsw_ale_set_vlan_entry_type()
283 int flags, u16 vid) in cpsw_ale_add_ucast() argument
288 cpsw_ale_set_vlan_entry_type(ale_entry, flags, vid); in cpsw_ale_add_ucast()
[all …]
Dcpsw_ale.h93 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid);
95 int flags, u16 vid);
97 int flags, u16 vid);
99 int flags, u16 vid, int mcast_state);
101 int flags, u16 vid);
102 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port, int untag,
104 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port);
/drivers/usb/storage/
Dusual-tables.c74 u16 vid, pid, bcdmin, bcdmax; member
81 .vid = id_vendor, \
110 unsigned vid, pid, bcd; in usb_usual_ignore_device() local
114 vid = le16_to_cpu(udev->descriptor.idVendor); in usb_usual_ignore_device()
118 for (p = ignore_ids; p->vid; ++p) { in usb_usual_ignore_device()
119 if (p->vid == vid && p->pid == pid && in usb_usual_ignore_device()
/drivers/net/dsa/b53/
Db53_common.c248 static void b53_set_vlan_entry(struct b53_device *dev, u16 vid, in b53_set_vlan_entry() argument
258 entry |= VA_VALID_25_R4 | vid << VA_VID_HIGH_S; in b53_set_vlan_entry()
264 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | in b53_set_vlan_entry()
274 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_65, vid | in b53_set_vlan_entry()
277 b53_write16(dev, B53_ARLIO_PAGE, dev->vta_regs[1], vid); in b53_set_vlan_entry()
285 vid, vlan->members, vlan->untag); in b53_set_vlan_entry()
288 static void b53_get_vlan_entry(struct b53_device *dev, u16 vid, in b53_get_vlan_entry() argument
294 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | in b53_get_vlan_entry()
308 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_65, vid | in b53_get_vlan_entry()
318 b53_write16(dev, B53_ARLIO_PAGE, dev->vta_regs[1], vid); in b53_get_vlan_entry()
[all …]
/drivers/net/dsa/
Dqca8k.c300 fdb->vid = (reg[2] >> QCA8K_ATU_VID_S) & QCA8K_ATU_VID_M; in qca8k_fdb_read()
315 qca8k_fdb_write(struct qca8k_priv *priv, u16 vid, u8 port_mask, const u8 *mac, in qca8k_fdb_write() argument
322 reg[2] = (vid & QCA8K_ATU_VID_M) << QCA8K_ATU_VID_S; in qca8k_fdb_write()
375 qca8k_fdb_write(priv, fdb->vid, fdb->port_mask, fdb->mac, fdb->aging); in qca8k_fdb_next()
385 u16 vid, u8 aging) in qca8k_fdb_add() argument
390 qca8k_fdb_write(priv, vid, port_mask, mac, aging); in qca8k_fdb_add()
398 qca8k_fdb_del(struct qca8k_priv *priv, const u8 *mac, u16 port_mask, u16 vid) in qca8k_fdb_del() argument
403 qca8k_fdb_write(priv, vid, port_mask, mac, 0); in qca8k_fdb_del()
826 u16 port_mask, u16 vid) in qca8k_port_fdb_insert() argument
829 if (!vid) in qca8k_port_fdb_insert()
[all …]
/drivers/rapidio/
Drio-driver.c33 while (id->vid || id->asm_vid) { in rio_match_device()
34 if (((id->vid == RIO_ANY_ID) || (id->vid == rdev->vid)) && in rio_match_device()
224 rdev->vid, rdev->did, rdev->asm_vid, rdev->asm_did)) in rio_uevent()
/drivers/net/dsa/mv88e6xxx/
Dchip.c1336 static int _mv88e6xxx_vtu_vid_write(struct mv88e6xxx_chip *chip, u16 vid) in _mv88e6xxx_vtu_vid_write() argument
1339 vid & GLOBAL_VTU_VID_MASK); in _mv88e6xxx_vtu_vid_write()
1361 next.vid = val & GLOBAL_VTU_VID_MASK; in _mv88e6xxx_vtu_getnext()
1434 vlan->vid_begin = next.vid; in mv88e6xxx_port_vlan_dump()
1435 vlan->vid_end = next.vid; in mv88e6xxx_port_vlan_dump()
1441 if (next.vid == pvid) in mv88e6xxx_port_vlan_dump()
1447 } while (next.vid < GLOBAL_VTU_VID_MASK); in mv88e6xxx_port_vlan_dump()
1496 reg |= entry->vid & GLOBAL_VTU_VID_MASK; in _mv88e6xxx_vtu_loadpurge()
1678 } while (vlan.vid < GLOBAL_VTU_VID_MASK); in _mv88e6xxx_fid_new()
1691 static int _mv88e6xxx_vtu_new(struct mv88e6xxx_chip *chip, u16 vid, in _mv88e6xxx_vtu_new() argument
[all …]
/drivers/net/ethernet/rocker/
Drocker_ofdpa.c251 u16 vid, bool *pop_vlan) in ofdpa_port_vid_to_vlan() argument
257 vlan_id = htons(vid); in ofdpa_port_vid_to_vlan()
1820 u16 vid; in ofdpa_port_ctrl() local
1823 for (vid = 1; vid < VLAN_N_VID; vid++) { in ofdpa_port_ctrl()
1824 if (!test_bit(vid, ofdpa_port->vlan_bitmap)) in ofdpa_port_ctrl()
1827 ctrl, htons(vid)); in ofdpa_port_ctrl()
1836 struct switchdev_trans *trans, int flags, u16 vid) in ofdpa_port_vlan() argument
1841 __be16 vlan_id = htons(vid); in ofdpa_port_vlan()
1848 internal_vlan_id = ofdpa_port_vid_to_vlan(ofdpa_port, vid, &untagged); in ofdpa_port_vlan()
1926 u16 vid; member
[all …]
/drivers/net/vmxnet3/
Dvmxnet3_defs.h743 #define VMXNET3_SET_VFTABLE_ENTRY(vfTable, vid) \ argument
744 (vfTable[vid >> 5] |= (1 << (vid & 31)))
745 #define VMXNET3_CLEAR_VFTABLE_ENTRY(vfTable, vid) \ argument
746 (vfTable[vid >> 5] &= ~(1 << (vid & 31)))
748 #define VMXNET3_VFTABLE_ENTRY_IS_SET(vfTable, vid) \ argument
749 ((vfTable[vid >> 5] & (1 << (vid & 31))) != 0)
/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.h495 #define dma_fmt(vid, val) ((val & 0xf) << ((vid) ? 20 : 16)) argument
496 #define dma_swaprb(vid, val) ((val ? 1 : 0) << ((vid) ? 4 : 12)) argument
497 #define dma_swapuv(vid, val) ((val ? 1 : 0) << ((vid) ? 3 : 11)) argument
498 #define dma_swapyuv(vid, val) ((val ? 1 : 0) << ((vid) ? 2 : 10)) argument
499 #define dma_csc(vid, val) ((val ? 1 : 0) << ((vid) ? 1 : 9)) argument
500 #define dma_hsmooth(vid, val) ((val ? 1 : 0) << ((vid) ? 6 : 14)) argument
501 #define dma_mask(vid) (dma_palette(1) | dma_fmt(vid, 0xf) | dma_csc(vid, 1) \ argument
502 | dma_swaprb(vid, 1) | dma_swapuv(vid, 1) | dma_swapyuv(vid, 1))
/drivers/media/platform/vivid/
DMakefile1 vivid-objs := vivid-core.o vivid-ctrls.o vivid-vid-common.o vivid-vbi-gen.o \
2 vivid-vid-cap.o vivid-vid-out.o vivid-kthread-cap.o vivid-kthread-out.o \

123456789