Searched refs:index (Results 226 - 250 of 2286) sorted by relevance

1234567891011>>

/drivers/hwmon/
H A Dadc128d818.c146 int index = to_sensor_dev_attr_2(attr)->index; local
153 val = DIV_ROUND_CLOSEST(data->in[index][nr] * data->vref, 4095);
161 int index = to_sensor_dev_attr_2(attr)->index; local
174 data->in[index][nr] = regval << 4;
175 reg = index == 1 ? ADC128_REG_IN_MIN(nr) : ADC128_REG_IN_MAX(nr);
186 int index = to_sensor_dev_attr(attr)->index; local
192 temp = (data->temp[index] <<
201 int index = to_sensor_dev_attr(attr)->index; local
[all...]
H A Dadm1029.c177 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]));
186 if (data->fan[attr->index] == 0
187 || (data->fan_div[attr->index] & 0xC0) == 0
188 || data->fan[attr->index] == 255) {
192 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index])
193 / data->fan[attr->index];
202 if ((data->fan_div[attr->index] & 0xC0) == 0)
204 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
223 ADM1029_REG_FAN_DIV[attr->index]);
246 data->fan_div[attr->index]
[all...]
H A Dtmp421.c131 int index = to_sensor_dev_attr(devattr)->index; local
137 temp = temp_from_u16(data->temp[index]);
139 temp = temp_from_s16(data->temp[index]);
148 int index = to_sensor_dev_attr(devattr)->index; local
155 if (data->temp[index] & 0x01)
167 unsigned int index; local
170 index = to_sensor_dev_attr(devattr)->index;
[all...]
H A Dnct6683.c346 u8 index; member in struct:sensor_device_template::__anon1342::__anon1343
348 int index; member in union:sensor_device_template::__anon1342
350 bool s2; /* true if both index and nr are used */
369 .u.index = _index, \
375 .u.s.index = _index, \
444 a2->index = (*t)->u.s.index;
453 a->index = (*t)->u.index + i;
520 static int get_in_reg(struct nct6683_data *data, int nr, int index) argument
543 get_temp_reg(struct nct6683_data *data, int nr, int index) argument
666 int index = sattr->index; local
673 nct6683_in_is_visible(struct kobject *kobj, struct attribute *attr, int index) argument
738 nct6683_fan_is_visible(struct kobject *kobj, struct attribute *attr, int index) argument
796 int index = sattr->index; local
818 int index = sattr->index; local
856 nct6683_temp_is_visible(struct kobject *kobj, struct attribute *attr, int index) argument
914 int index = sattr->index; local
921 nct6683_pwm_is_visible(struct kobject *kobj, struct attribute *attr, int index) argument
[all...]
/drivers/staging/line6/
H A Dplayback.c142 int index; local
155 index =
158 if (index < 0 || index >= LINE6_ISO_BUFFERS) {
164 urb_out = line6pcm->urb_audio_out[index];
200 index * LINE6_ISO_PACKETS * line6pcm->max_packet_size;
278 set_bit(index, &line6pcm->active_urb_out);
281 "URB out #%d submission failed (%d)\n", index, ret);
366 int i, index, length = 0, shutdown = 0; local
378 /* find index o
[all...]
/drivers/xen/
H A Dgntalloc.c101 uint64_t index; member in struct:gntalloc_file_private_data
138 gref->file_index = op->index + i * PAGE_SIZE;
215 uint64_t index, uint32_t count)
219 if (gref->file_index == index && !rv)
222 if (gref->file_index != index)
224 index += PAGE_SIZE;
311 op.index = priv->index;
312 priv->index += op.count * PAGE_SIZE;
321 * its index)
214 find_grefs(struct gntalloc_file_private_data *priv, uint64_t index, uint32_t count) argument
386 uint64_t index; local
[all...]
/drivers/acpi/
H A Dpci_irq.c51 u32 index; /* GSI, or link _CRS index */ member in struct:acpi_prt_entry
189 entry->index = prt->source_index;
219 prt->source, entry->index));
305 "IRQ %d\n", entry->index,
306 (entry->index % 4) + 16);
307 entry->index = (entry->index % 4) + 16;
311 "IRQ: unknown mapping\n", entry->index);
430 entry->index,
[all...]
/drivers/iommu/
H A Dirq_remapping.c30 int index, int sub_handle);
55 int ret, sub_handle, nvec_pow2, index = 0; local
74 index = msi_alloc_remapped_irq(dev, irq, nvec_pow2);
75 if (index < 0) {
76 ret = index;
81 index, sub_handle);
107 int node, ret, sub_handle, index = 0; local
121 ret = index = msi_alloc_remapped_irq(dev, irq, nvec);
123 ret = msi_setup_remapped_irq(dev, irq, index, sub_handle);
339 int index, in
338 msi_setup_remapped_irq(struct pci_dev *pdev, unsigned int irq, int index, int sub_handle) argument
[all...]
/drivers/scsi/aic94xx/
H A Daic94xx_hwi.h147 /* If this is an Empty SCB, index of first edb in seq->edb_arr. */
301 static inline void asd_tc_index_release(struct asd_seq_data *seq, int index) argument
303 seq->tc_index_array[index] = NULL;
304 clear_bit(index, seq->tc_index_bitmap);
311 int index; local
313 index = find_first_zero_bit(seq->tc_index_bitmap,
315 if (index == seq->tc_index_bitmap_bits)
318 seq->tc_index_array[index] = ptr;
319 set_bit(index, seq->tc_index_bitmap);
321 return index;
326 asd_tc_index_find(struct asd_seq_data *seq, int index) argument
[all...]
/drivers/video/fbdev/
H A Dsbuslib.c124 int index, count, i; local
126 if (get_user(index, &c->index) ||
150 cmap.start = index + i;
163 int index, count, i; local
166 if (get_user(index, &c->index) ||
173 if (index + count > cmap->len)
177 red = cmap->red[index + i] >> 8;
178 green = cmap->green[index
[all...]
/drivers/net/ethernet/marvell/
H A Dmvpp2.c295 #define MVPP2_QUEUE_NEXT_DESC(q, index) \
296 (((index) < (q)->last_desc) ? ((index) + 1) : 0)
860 u32 index; member in struct:mvpp2_prs_entry
881 u32 index; member in struct:mvpp2_cls_flow_entry
993 if (pe->index > MVPP2_PRS_TCAM_SRAM_SIZE - 1)
999 /* Write tcam index - indirect access */
1000 mvpp2_write(priv, MVPP2_PRS_TCAM_IDX_REG, pe->index);
1004 /* Write sram index - indirect access */
1005 mvpp2_write(priv, MVPP2_PRS_SRAM_IDX_REG, pe->index);
1040 mvpp2_prs_hw_inv(struct mvpp2 *priv, int index) argument
1049 mvpp2_prs_shadow_set(struct mvpp2 *priv, int index, int lu) argument
1056 mvpp2_prs_shadow_ri_set(struct mvpp2 *priv, int index, unsigned int ri, unsigned int ri_mask) argument
1463 mvpp2_prs_mac_multi_set(struct mvpp2 *priv, int port, int index, bool add) argument
2892 int err, index, i; local
2959 int index; local
3130 int index, tid; local
3273 int index; local
[all...]
/drivers/char/
H A Di8k.c498 int index = to_sensor_dev_attr(devattr)->index; local
501 temp = i8k_get_temp(index);
511 int index = to_sensor_dev_attr(devattr)->index; local
514 fan_speed = i8k_get_fan_speed(index);
524 int index = to_sensor_dev_attr(devattr)->index; local
527 status = i8k_get_fan_status(index);
537 int index local
578 i8k_is_visible(struct kobject *kobj, struct attribute *attr, int index) argument
[all...]
/drivers/gpu/drm/nouveau/core/subdev/bios/
H A Dinit.c204 init_rdvgai(struct nvbios_init *init, u16 port, u8 index) argument
209 return nv_rdvgai(subdev, head, port, index);
215 init_wrvgai(struct nvbios_init *init, u16 port, u8 index, u8 value) argument
219 if (port == 0x03d4 && index == 0x44)
225 nv_wrvgai(init->subdev, head, port, index, value);
230 if (port == 0x03d4 && index == 0x44 && value == 3)
236 init_i2c(struct nvbios_init *init, int index) argument
240 if (index == 0xff) {
241 index = NV_I2C_DEFAULT(0);
243 index
264 init_rdi2cr(struct nvbios_init *init, u8 index, u8 addr, u8 reg) argument
273 init_wri2cr(struct nvbios_init *init, u8 index, u8 addr, u8 reg, u8 val) argument
372 init_script(struct nouveau_bios *bios, int index) argument
424 init_xlat_(struct nvbios_init *init, u8 index, u8 offset) argument
464 u8 index = nv_ro08(bios, table + (cond * 5) + 2); local
481 u8 index = nv_ro08(bios, table + (cond * 9) + 2); local
588 u8 index = nv_ro08(bios, init->offset + 3); local
651 u8 index = nv_ro08(bios, init->offset + 3); local
710 u8 index = nv_ro08(bios, init->offset + 9); local
810 u8 index = nv_ro08(bios, init->offset + 1); local
829 u8 index = nv_ro08(bios, init->offset + 1); local
879 u8 index = nv_ro08(bios, init->offset + 3); local
930 u8 index = nv_ro08(bios, init->offset + 1); local
961 u8 index = nv_ro08(bios, init->offset + 1); local
988 u8 index = nv_ro08(bios, init->offset + 1); local
1279 u8 index = nv_ro08(bios, init->offset + 1); local
1333 u8 index = nv_ro08(bios, init->offset + 3); local
1554 u8 index = nv_ro08(bios, init->offset + 1); local
1710 u8 index = nv_ro16(bios, init->offset + 3); local
1818 u8 index = init_ram_restrict(init); local
1894 u8 index = nv_ro08(bios, init->offset + 7); local
1986 u8 index = nv_ro08(bios, init->offset + 1); local
[all...]
/drivers/staging/octeon/
H A Dethernet.c272 int index = INDEX(priv->port); local
300 cvmx_write_csr(CVMX_GMXX_RXX_FRM_MAX(index, interface),
320 cvmx_write_csr(CVMX_GMXX_RXX_JABBER(index, interface),
335 int index = INDEX(priv->port); local
364 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface));
365 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface),
368 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CTL(index, interface),
372 (index, interface), 0);
375 (index, interface), 1);
377 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interfac
394 int index = INDEX(priv->port); local
[all...]
/drivers/acpi/acpica/
H A Dexoparg2.c258 u64 index; local
365 index = operand[1]->integer.value;
366 return_desc->reference.value = (u32) index;
371 * Verify that the index is within range.
376 if (index >= operand[0]->string.length) {
387 if (index >= operand[0]->buffer.length) {
398 if (index >= operand[0]->package.count) {
405 &operand[0]->package.elements[index];
419 ACPI_FORMAT_UINT64(index),
426 * of the index
[all...]
/drivers/clk/
H A Dclkdev.c56 struct clk *of_clk_get(struct device_node *np, int index) argument
62 if (index < 0)
65 rc = of_parse_phandle_with_args(np, "clocks", "#clock-cells", index,
91 int index = 0; local
96 * index will be an error code, and of_clk_get() will fail.
99 index = of_property_match_string(np, "clock-names", name);
100 clk = of_clk_get(np, index);
103 else if (name && index >= 0) {
106 np->full_name, name ? name : "", index);
/drivers/cpufreq/
H A Ddbx500-cpufreq.c23 unsigned int index)
26 return clk_set_rate(armss_clk, freq_table[index].frequency * 1000);
22 dbx500_cpufreq_target(struct cpufreq_policy *policy, unsigned int index) argument
/drivers/cpuidle/
H A Dcpuidle-exynos.c25 int index)
27 int new_index = index;
23 exynos_enter_lowpower(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
H A Dcpuidle-kirkwood.c34 int index)
39 return index;
32 kirkwood_enter_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
H A Dcpuidle-ux500.c28 struct cpuidle_driver *drv, int index)
92 return index;
27 ux500_enter_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
/drivers/edac/
H A Dr82600_edac.c223 int index; local
232 for (index = 0; index < mci->nr_csrows; index++) {
233 csrow = mci->csrows[index];
237 pci_read_config_byte(pdev, R82600_DRBA + index, &drbar);
239 edac_dbg(1, "Row=%d DRBA = %#0x\n", index, drbar);
245 index, row_high_limit, row_high_limit_last);
/drivers/gpu/drm/nouveau/core/engine/disp/
H A Dconn.h11 int index; member in struct:nvkm_connector
49 nv_##l(nv_object(conn)->engine, "%02x:%02x%02x: "f, _conn->index, \
H A Doutp.h11 int index; member in struct:nvkm_output
53 nv_##l(nv_object(outp)->engine, "%02x:%04x:%04x: "f, _outp->index, \
/drivers/gpu/drm/nouveau/core/include/subdev/bios/
H A Ddcb.h18 int index; /* may not be raw dcb index if merging has happened */ member in struct:dcb_output
67 (struct nouveau_bios *, void *, int index, u16 entry));
/drivers/gpu/drm/nouveau/
H A Dnouveau_connector.h65 u8 index; member in struct:nouveau_connector
106 nouveau_connector_create(struct drm_device *, int index);

Completed in 1014 milliseconds

1234567891011>>