Searched refs:index (Results 76 - 100 of 2286) sorted by relevance

1234567891011>>

/drivers/video/fbdev/via/
H A Dvt1636.c56 u8 index)
61 plvds_chip_info->lvds_chip_slave_addr, index, &data);
69 int index, data; local
71 index = io_data.Index;
73 index);
77 plvds_chip_info->lvds_chip_slave_addr, index, data);
195 int index; local
200 index = get_clk_range_index(plvds_setting_info->vclk);
202 &GFX_DPA_SETTING_TBL_VT3324[index]);
219 int index; local
54 viafb_gpio_i2c_read_lvds(struct lvds_setting_information *plvds_setting_info, struct lvds_chip_information *plvds_chip_info, u8 index) argument
236 int index; local
[all...]
/drivers/media/usb/dvb-usb/
H A Daz6027.c302 u16 value, u16 index, u8 *b, int blen)
313 index,
324 deb_xfer("in: req. %02x, val: %04x, ind: %04x, buffer: ", req, value, index);
334 u16 index,
340 deb_xfer("out: req. %02x, val: %04x, ind: %04x, buffer: ", req, value, index);
351 index,
371 u16 index; local
378 index = 0;
381 ret = az6027_usb_out_op(adap->dev, req, value, index, NULL, blen);
418 u16 index; local
301 az6027_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen) argument
331 az6027_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen) argument
460 u16 index; local
491 u16 index; local
537 u16 index; local
567 u16 index; local
599 u16 index; local
655 u16 index; local
683 u16 index; local
827 u16 index; local
846 u16 index; local
889 u16 index; local
956 u16 index; local
[all...]
/drivers/hwmon/
H A Dmax1668.c146 int index = to_sensor_dev_attr(devattr)->index; local
152 return sprintf(buf, "%d\n", data->temp[index] * 1000);
158 int index = to_sensor_dev_attr(devattr)->index; local
164 return sprintf(buf, "%d\n", data->temp_max[index] * 1000);
170 int index = to_sensor_dev_attr(devattr)->index; local
176 return sprintf(buf, "%d\n", data->temp_min[index] * 1000);
182 int index local
194 int index = to_sensor_dev_attr(devattr)->index; local
208 int index = to_sensor_dev_attr(devattr)->index; local
234 int index = to_sensor_dev_attr(devattr)->index; local
341 max1668_attribute_mode(struct kobject *kobj, struct attribute *attr, int index) argument
[all...]
H A Dadt7475.c129 /* Macros to easily index the registers */
195 static void adt7475_read_pwm(struct i2c_client *client, int index);
332 (data->alarms >> sattr->index) & 1);
334 val = data->voltage[sattr->nr][sattr->index];
336 reg2volt(sattr->index, val, data->bypass_attn));
355 data->voltage[sattr->nr][sattr->index] =
356 volt2reg(sattr->index, val, data->bypass_attn);
358 if (sattr->index < ADT7475_VOLTAGE_COUNT) {
360 reg = VOLTAGE_MIN_REG(sattr->index);
362 reg = VOLTAGE_MAX_REG(sattr->index);
715 hw_set_pwm(struct i2c_client *client, int index, unsigned int pwmctl, unsigned int pwmchan) argument
1448 adt7475_read_pwm(struct i2c_client *client, int index) argument
[all...]
H A Dlm95245.c221 int index = to_sensor_dev_attr(attr)->index; local
228 if (index == 0 || data->regs[index] & 0x80)
229 temp = temp_from_reg_signed(data->regs[index],
230 data->regs[index + 1]);
232 temp = temp_from_reg_unsigned(data->regs[index + 2],
233 data->regs[index + 3]);
242 int index = to_sensor_dev_attr(attr)->index; local
252 int index = to_sensor_dev_attr(attr)->index; local
278 int index = to_sensor_dev_attr(attr)->index; local
288 int index = to_sensor_dev_attr(attr)->index; local
354 int index = to_sensor_dev_attr(attr)->index; local
[all...]
H A Dabituguru.c795 * sensor_device_attribute_2->index: sensor address/offset in the bank
807 return sprintf(buf, "%d\n", (data->bank1_value[attr->index] *
808 data->bank1_max_value[attr->index] + 128) / 255);
817 (data->bank1_settings[attr->index][attr->nr] *
818 data->bank1_max_value[attr->index] + 128) / 255);
828 return sprintf(buf, "%d\n", (data->bank2_value[attr->index] *
838 (data->bank2_settings[attr->index][attr->nr] *
855 val = (val * 255 + data->bank1_max_value[attr->index] / 2) /
856 data->bank1_max_value[attr->index];
861 if (data->bank1_settings[attr->index][att
[all...]
/drivers/net/wireless/prism54/
H A Dislpci_eth.c42 u32 index; local
48 /* read the index of the first fragment to be freed */
49 index = priv->free_data_tx % ISL38XX_CB_TX_QSIZE;
53 if (priv->pci_map_tx_address[index]) {
56 skb = priv->data_low_tx[index];
65 priv->pci_map_tx_address[index],
80 u32 index; local
199 index = curr_frag % ISL38XX_CB_TX_QSIZE;
200 fragment = &cb->tx_data_low[index];
202 priv->pci_map_tx_address[index]
315 u32 index, offset; local
[all...]
/drivers/staging/rtl8188eu/hal/
H A Drf.c160 u8 index, u32 *powerbase0, u32 *powerbase1,
173 u8 j = index + (rf ? 8 : 0);
178 write_val = hal_data->MCSTxPowerLevelOriginalOffset[chnlGroup][index+(rf ? 8 : 0)] +
179 ((index < 2) ? powerbase0[rf] : powerbase1[rf]);
199 write_val = hal_data->MCSTxPowerLevelOriginalOffset[chnlGroup][index+(rf ? 8 : 0)] +
200 ((index < 2) ? powerbase0[rf] : powerbase1[rf]);
204 write_val = ((index < 2) ? powerbase0[rf] : powerbase1[rf]);
210 if (index < 2)
236 write_val = customer_limit + ((index < 2) ? powerbase0[rf] : powerbase1[rf]);
241 ((index <
159 get_rx_power_val_by_reg(struct adapter *adapt, u8 channel, u8 index, u32 *powerbase0, u32 *powerbase1, u32 *out_val) argument
257 write_ofdm_pwr_reg(struct adapter *adapt, u8 index, u32 *pvalue) argument
296 u8 index = 0; local
[all...]
/drivers/devfreq/exynos/
H A Dexynos4_bus.c293 unsigned int index; local
296 for (index = LV_0; index < EX4210_LV_NUM; index++)
297 if (oppi->rate == exynos4210_busclk_table[index].clk)
300 if (index == EX4210_LV_NUM)
304 tmp = data->dmc_divtable[index];
313 tmp = data->top_divtable[index];
326 tmp |= ((exynos4210_clkdiv_lr_bus[index][0] <<
328 (exynos4210_clkdiv_lr_bus[index][
359 unsigned int index; local
[all...]
/drivers/tty/hvc/
H A Dhvc_console.c93 * This value is used to assign a tty->index value to a hvc_struct based
104 static struct hvc_struct *hvc_get_by_index(int index) argument
113 if (hp->index == index) {
148 int r, donecr = 0, index = co->index; local
151 if (index >= MAX_NR_HVC_CONSOLES)
155 if (vtermnos[index] == -1)
169 r = cons_ops[index]->put_chars(vtermnos[index],
184 hvc_console_device(struct console *c, int *index) argument
252 hvc_check_console(int index) argument
272 hvc_instantiate(uint32_t vtermno, int index, const struct hv_ops *ops) argument
[all...]
/drivers/base/
H A Dmap.c37 unsigned index = MAJOR(dev); local
58 for (i = 0, p -= n; i < n; i++, p++, index++) {
59 struct probe **s = &domain->probes[index % 255];
72 unsigned index = MAJOR(dev); local
80 for (i = 0; i < n; i++, index++) {
82 for (s = &domain->probes[index % 255]; *s; s = &(*s)->next) {
96 struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index) argument
119 *index = dev - p->dev;
125 kobj = probe(dev, index, data);
/drivers/char/hw_random/
H A Dvirtio-rng.c36 int index; member in struct:virtrng_info
103 int err, index; local
110 vi->index = index = ida_simple_get(&rng_index_ida, 0, 0, GFP_KERNEL);
111 if (index < 0) {
112 err = index;
115 sprintf(vi->name, "virtio_rng.%d", index);
137 ida_simple_remove(&rng_index_ida, index);
155 ida_simple_remove(&rng_index_ida, vi->index);
/drivers/gpu/drm/nouveau/core/subdev/ltc/
H A Dbase.c62 nvkm_ltc_zbc_color_get(struct nouveau_ltc *ltc, int index, const u32 color[4]) argument
66 memcpy(priv->zbc_color[index], color, sizeof(priv->zbc_color[index]));
67 impl->zbc_clear_color(priv, index, color);
68 return index;
72 nvkm_ltc_zbc_depth_get(struct nouveau_ltc *ltc, int index, const u32 depth) argument
76 priv->zbc_depth[index] = depth;
77 impl->zbc_clear_depth(priv, index, depth);
78 return index;
/drivers/scsi/fnic/
H A Dvnic_wq.c47 buf->index = i * VNIC_WQ_BUF_BLK_ENTRIES + j;
49 wq->ring.desc_size * buf->index;
50 if (buf->index + 1 == count) {
85 int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, argument
90 wq->index = index;
93 wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index);
95 printk(KERN_ERR "Failed to hook WQ[%d] resource\n", index);
154 printk(KERN_ERR "Failed to disable WQ[%d]\n", wq->index);
H A Dvnic_wq_copy.c44 " fetch index=%d, posted_index=%d\n",
45 wq->index, ioread32(&wq->ctrl->fetch_index),
79 unsigned int index, unsigned int desc_count,
84 wq->index = index;
87 wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index);
89 printk(KERN_ERR "Failed to hook COPY WQ[%d] resource\n", index);
78 vnic_wq_copy_alloc(struct vnic_dev *vdev, struct vnic_wq_copy *wq, unsigned int index, unsigned int desc_count, unsigned int desc_size) argument
/drivers/macintosh/
H A Dwindfarm_pid.c50 st->index = 0;
52 st->index = (st->index + 1) % hlen;
53 st->samples[st->index] = new_sample;
54 st->errors[st->index] = error;
59 integ += st->errors[(st->index + hlen - i) % hlen];
63 deriv = st->errors[st->index] -
64 st->errors[(st->index + hlen - 1) % hlen];
106 st->index = st->tindex = 0;
108 st->index
[all...]
/drivers/media/platform/vsp1/
H A Dvsp1_wpf.c32 reg + wpf->entity.index * VI6_WPF_OFFSET);
38 reg + wpf->entity.index * VI6_WPF_OFFSET, data);
90 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0);
103 ? VI6_WPF_SRCRPF_RPF_ACT_MST(input->entity.index)
104 : VI6_WPF_SRCRPF_RPF_ACT_SUB(input->entity.index);
158 vsp1_write(vsp1, VI6_DPR_WPF_FPORCH(wpf->entity.index),
164 vsp1_write(vsp1, VI6_WPF_IRQ_STA(wpf->entity.index), 0);
165 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index),
217 struct vsp1_rwpf *vsp1_wpf_create(struct vsp1_device *vsp1, unsigned int index) argument
233 wpf->entity.index
[all...]
/drivers/gpu/drm/radeon/
H A Dr600_dpm.h152 void r600_set_tc(struct radeon_device *rdev, u32 index, u32 u_t, u32 d_t);
170 u32 index, bool enable);
172 u32 index, bool enable);
174 u32 index, bool enable);
176 u32 index, u32 divider);
178 u32 index, u32 divider);
180 u32 index, u32 divider);
182 u32 index, u32 step_time);
189 enum r600_power_level index, u64 pins);
193 enum r600_power_level index, boo
[all...]
/drivers/net/can/c_can/
H A Dc_can_platform.c52 enum reg index)
54 return readw(priv->base + priv->regs[index]);
58 enum reg index, u16 val)
60 writew(val, priv->base + priv->regs[index]);
64 enum reg index)
66 return readw(priv->base + 2 * priv->regs[index]);
70 enum reg index, u16 val)
72 writew(val, priv->base + 2 * priv->regs[index]);
112 static u32 c_can_plat_read_reg32(const struct c_can_priv *priv, enum reg index) argument
116 val = priv->read_reg(priv, index);
51 c_can_plat_read_reg_aligned_to_16bit(const struct c_can_priv *priv, enum reg index) argument
57 c_can_plat_write_reg_aligned_to_16bit(const struct c_can_priv *priv, enum reg index, u16 val) argument
63 c_can_plat_read_reg_aligned_to_32bit(const struct c_can_priv *priv, enum reg index) argument
69 c_can_plat_write_reg_aligned_to_32bit(const struct c_can_priv *priv, enum reg index, u16 val) argument
122 c_can_plat_write_reg32(const struct c_can_priv *priv, enum reg index, u32 val) argument
129 d_can_plat_read_reg32(const struct c_can_priv *priv, enum reg index) argument
134 d_can_plat_write_reg32(const struct c_can_priv *priv, enum reg index, u32 val) argument
[all...]
/drivers/xen/
H A Dtmem.c92 u32 index, unsigned long gmfn, u32 tmem_offset, u32 pfn_offset, u32 len)
102 op.u.gen.index = index;
132 u32 index, unsigned long pfn)
136 return xen_tmem_op(TMEM_PUT_PAGE, pool_id, oid, index,
141 u32 index, unsigned long pfn)
145 return xen_tmem_op(TMEM_GET_PAGE, pool_id, oid, index,
149 static int xen_tmem_flush_page(u32 pool_id, struct tmem_oid oid, u32 index) argument
151 return xen_tmem_op(TMEM_FLUSH_PAGE, pool_id, oid, index,
172 pgoff_t index, struc
91 xen_tmem_op(u32 tmem_cmd, u32 tmem_pool, struct tmem_oid oid, u32 index, unsigned long gmfn, u32 tmem_offset, u32 pfn_offset, u32 len) argument
131 xen_tmem_put_page(u32 pool_id, struct tmem_oid oid, u32 index, unsigned long pfn) argument
140 xen_tmem_get_page(u32 pool_id, struct tmem_oid oid, u32 index, unsigned long pfn) argument
171 tmem_cleancache_put_page(int pool, struct cleancache_filekey key, pgoff_t index, struct page *page) argument
186 tmem_cleancache_get_page(int pool, struct cleancache_filekey key, pgoff_t index, struct page *page) argument
206 tmem_cleancache_flush_page(int pool, struct cleancache_filekey key, pgoff_t index) argument
[all...]
/drivers/acpi/acpica/
H A Dexoparg3.c150 u64 index; local
171 index = operand[1]->integer.value;
175 * If the index is beyond the length of the String/Buffer, or if the
178 if (index >= operand[0]->string.length) {
184 else if ((index + length) > operand[0]->string.length) {
186 (acpi_size) index;
229 ACPI_MEMCPY(buffer, operand[0]->string.pointer + index,
/drivers/clk/berlin/
H A Dberlin2-avpll.c218 u8 index; member in struct:berlin2_avpll_channel
228 if (ch->index == 7)
232 reg &= VCO_POWERUP_CH1 << ch->index;
243 reg |= VCO_POWERUP_CH1 << ch->index;
255 reg &= ~(VCO_POWERUP_CH1 << ch->index);
270 if ((reg & (VCO_DPLL_CH1_ENABLE << ch->index)) == 0)
278 reg = readl_relaxed(ch->base + VCO_SYNC1n(ch->index));
280 if (ch->flags & BERLIN2_AVPLL_BIT_QUIRK && ch->index == 0)
284 reg = readl_relaxed(ch->base + VCO_SYNC2n(ch->index));
288 if (ch->index
367 berlin2_avpll_channel_register(void __iomem *base, const char *name, u8 index, const char *parent_name, u8 ch_flags, unsigned long flags) argument
[all...]
/drivers/clk/ti/
H A Dclk.c101 * @index: register index from the clock node
106 void __iomem *ti_clk_get_reg_addr(struct device_node *node, int index) argument
125 reg->index = i;
127 if (of_property_read_u32_index(node, "reg", index, &val)) {
128 pr_err("%s must have reg[%d]!\n", node->name, index);
140 * @index: internal index for clk_reg_ops
143 * mapping from clocks node to the memory map index. All the clocks
147 void ti_dt_clk_init_provider(struct device_node *parent, int index) argument
[all...]
/drivers/staging/octeon/
H A Dethernet-sgmii.c85 int index = INDEX(priv->port); local
93 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface));
95 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64);
121 int index = INDEX(priv->port); local
123 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface));
125 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64);
H A Dethernet-xaui.c85 int index = INDEX(priv->port); local
93 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface));
95 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64);
121 int index = INDEX(priv->port); local
123 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface));
125 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64);

Completed in 539 milliseconds

1234567891011>>