Home
last modified time | relevance | path

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

/drivers/pci/controller/
Dpci-thunder-pem.c40 u64 read_val, tmp_val; in thunder_pem_bridge_read() local
52 read_val = where & ~3ull; in thunder_pem_bridge_read()
53 writeq(read_val, pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
54 read_val = readq(pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
55 read_val >>= 32; in thunder_pem_bridge_read()
63 read_val &= 0xffff00ff; in thunder_pem_bridge_read()
64 read_val |= 0x00007000; /* Skip MSI CAP */ in thunder_pem_bridge_read()
71 if (!(read_val & (0x1f << 25))) in thunder_pem_bridge_read()
72 read_val |= (2u << 25); in thunder_pem_bridge_read()
76 read_val &= 0xc00000ff; in thunder_pem_bridge_read()
[all …]
/drivers/iio/adc/
Dad7091r-base.c122 unsigned int channel, unsigned int *read_val) in ad7091r_read_one() argument
139 *read_val = AD7091R_REG_RESULT_CONV_RESULT(val); in ad7091r_read_one()
149 unsigned int read_val; in ad7091r_read_raw() local
161 ret = ad7091r_read_one(iio_dev, chan->channel, &read_val); in ad7091r_read_raw()
165 *val = read_val; in ad7091r_read_raw()
336 unsigned int i, read_val; in ad7091r_event_handler() local
340 ret = regmap_read(st->map, AD7091R_REG_ALERT, &read_val); in ad7091r_event_handler()
345 if (read_val & BIT(i * 2)) in ad7091r_event_handler()
350 if (read_val & BIT(i * 2 + 1)) in ad7091r_event_handler()
/drivers/iio/frequency/
Dadrf6780.c176 static int adrf6780_read_adc_raw(struct adrf6780_state *st, unsigned int *read_val) in adrf6780_read_adc_raw() argument
195 ret = __adrf6780_spi_read(st, ADRF6780_REG_ADC_OUTPUT, read_val); in adrf6780_read_adc_raw()
199 if (!(*read_val & ADRF6780_ADC_STATUS_MSK)) { in adrf6780_read_adc_raw()
210 ret = __adrf6780_spi_read(st, ADRF6780_REG_ADC_OUTPUT, read_val); in adrf6780_read_adc_raw()
298 unsigned int *read_val) in adrf6780_reg_access() argument
302 if (read_val) in adrf6780_reg_access()
303 return adrf6780_spi_read(st, reg, read_val); in adrf6780_reg_access()
Dadmv1013.c369 unsigned int *read_val) in admv1013_reg_access() argument
373 if (read_val) in admv1013_reg_access()
374 return admv1013_spi_read(st, reg, read_val); in admv1013_reg_access()
Dadmv1014.c469 unsigned int *read_val) in admv1014_reg_access() argument
473 if (read_val) in admv1014_reg_access()
474 return admv1014_spi_read(st, reg, read_val); in admv1014_reg_access()
/drivers/iio/dac/
Dad5592r-base.c375 u16 read_val; in ad5592r_read_raw() local
382 ret = st->ops->read_adc(st, chan->channel, &read_val); in ad5592r_read_raw()
387 if ((read_val >> 12 & 0x7) != (chan->channel & 0x7)) { in ad5592r_read_raw()
393 read_val &= GENMASK(11, 0); in ad5592r_read_raw()
397 read_val = st->cached_dac[chan->channel]; in ad5592r_read_raw()
402 chan->channel, read_val); in ad5592r_read_raw()
404 *val = (int) read_val; in ad5592r_read_raw()
Dad7293.c639 unsigned int *read_val) in ad7293_reg_access() argument
644 if (read_val) { in ad7293_reg_access()
647 *read_val = temp; in ad7293_reg_access()
/drivers/hwmon/
Dadm1031.c995 unsigned int read_val; in adm1031_init_client() local
1006 read_val = adm1031_read_value(client, ADM1031_REG_CONF2); in adm1031_init_client()
1007 if ((read_val | mask) != read_val) in adm1031_init_client()
1008 adm1031_write_value(client, ADM1031_REG_CONF2, read_val | mask); in adm1031_init_client()
1010 read_val = adm1031_read_value(client, ADM1031_REG_CONF1); in adm1031_init_client()
1011 if ((read_val | ADM1031_CONF1_MONITOR_ENABLE) != read_val) { in adm1031_init_client()
1013 read_val | ADM1031_CONF1_MONITOR_ENABLE); in adm1031_init_client()
1018 read_val = adm1031_read_value(client, ADM1031_REG_FAN_FILTER); in adm1031_init_client()
1019 i = (read_val & mask) >> ADM1031_UPDATE_RATE_SHIFT; in adm1031_init_client()
/drivers/infiniband/hw/qib/
Dqib_twsi.c137 u32 read_val, mask; in sda_in() local
143 read_val = dd->f_gpio_mod(dd, 0, 0, 0); in sda_in()
146 return (read_val & mask) >> bnum; in sda_in()
Dqib_iba6120.c3039 u64 read_val, new_out; in gpio_6120_mod() local
3064 read_val = qib_read_kreg64(dd, kr_extstatus); in gpio_6120_mod()
3065 return SYM_FIELD(read_val, EXTStatus, GPIOIn); in gpio_6120_mod()
Dqib_iba7220.c3751 u64 read_val, new_out; in gpio_7220_mod() local
3776 read_val = qib_read_kreg64(dd, kr_extstatus); in gpio_7220_mod()
3777 return SYM_FIELD(read_val, EXTStatus, GPIOIn); in gpio_7220_mod()
Dqib_iba7322.c5674 u64 read_val, new_out; in gpio_7322_mod() local
5699 read_val = qib_read_kreg64(dd, kr_extstatus); in gpio_7322_mod()
5700 return SYM_FIELD(read_val, EXTStatus, GPIOIn); in gpio_7322_mod()
/drivers/iio/amplifiers/
Dada4250.c263 unsigned int *read_val) in ada4250_reg_access() argument
267 if (read_val) in ada4250_reg_access()
268 return regmap_read(st->regmap, reg, read_val); in ada4250_reg_access()
/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c815 unsigned int read_val = 0; in mtk_gpio_get_direction() local
825 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get_direction()
826 if (read_val & bit) in mtk_gpio_get_direction()
836 unsigned int read_val = 0; in mtk_gpio_get() local
843 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get()
844 return !!(read_val & bit); in mtk_gpio_get()
/drivers/iio/filter/
Dadmv8818.c387 unsigned int *read_val) in admv8818_reg_access() argument
391 if (read_val) in admv8818_reg_access()
392 return regmap_read(st->regmap, reg, read_val); in admv8818_reg_access()
/drivers/net/ethernet/seeq/
Dether3.c379 int read_val; in ether3_probe_bus_16() local
382 read_val = ether3_inw(REG_RECVPTR); in ether3_probe_bus_16()
384 printk(KERN_DEBUG "ether3_probe: write16 [%04X], read16 [%04X]\n", val, read_val); in ether3_probe_bus_16()
386 return read_val == val; in ether3_probe_bus_16()
/drivers/hid/
Dhid-alps.c166 u8 *read_val, u8 write_val, bool read_flag) in t4_read_write_register() argument
240 *read_val = readbuf[12]; in t4_read_write_register()
253 u8 *read_val, u8 write_val, bool read_flag) in u1_read_write_register() argument
307 *read_val = readbuf[6]; in u1_read_write_register()
/drivers/phy/cadence/
Dphy-cadence-torrent.c1042 u32 read_val; in cdns_torrent_dp_set_power_state() local
1088 read_val, (read_val & mask) == value, 0, in cdns_torrent_dp_set_power_state()
1098 unsigned int read_val; in cdns_torrent_dp_run() local
1107 read_val, read_val & 1, in cdns_torrent_dp_run()
1196 u32 read_val, ret; in cdns_torrent_dp_configure_rate() local
1206 read_val, in cdns_torrent_dp_configure_rate()
1207 ((read_val >> 2) & 0x01) != 0, in cdns_torrent_dp_configure_rate()
1234 read_val, in cdns_torrent_dp_configure_rate()
1235 (read_val & 0x01) != 0, in cdns_torrent_dp_configure_rate()
1506 u32 read_val; in cdns_torrent_phy_on() local
[all …]
/drivers/pinctrl/
Dpinctrl-cy8c95x0.c480 int read_val; in cy8c95x0_read_regs_mask() local
530 ret = regmap_read(chip->regmap, off, &read_val); in cy8c95x0_read_regs_mask()
534 read_val &= bits; in cy8c95x0_read_regs_mask()
535 read_val |= bitmap_get_value8(tval, i * BANK_SZ) & ~bits; in cy8c95x0_read_regs_mask()
536 bitmap_set_value8(tval, read_val, i * BANK_SZ); in cy8c95x0_read_regs_mask()
/drivers/staging/axis-fifo/
Daxis-fifo.c169 unsigned int read_val; in sysfs_read() local
173 read_val = ioread32(fifo->base_addr + addr_offset); in sysfs_read()
174 len = snprintf(tmp, sizeof(tmp), "0x%x\n", read_val); in sysfs_read()
/drivers/media/radio/
Dtea575x.c113 if (tea->ops->read_val) in snd_tea575x_read()
114 return tea->ops->read_val(tea); in snd_tea575x_read()
Dradio-shark.c151 .read_val = shark_read_val,
/drivers/spi/
Dspi-sprd-adi.c220 static int sprd_adi_read(struct sprd_adi *sadi, u32 reg, u32 *read_val) in sprd_adi_read() argument
279 *read_val = val & RD_VALUE_MASK; in sprd_adi_read()
/drivers/gpu/drm/mediatek/
Dmtk_dp.c325 u32 read_val; in mtk_dp_read() local
328 ret = regmap_read(mtk_dp->regs, offset, &read_val); in mtk_dp_read()
335 return read_val; in mtk_dp_read()
/drivers/net/ethernet/broadcom/
Dtg3.c13089 u32 offset, read_mask, write_mask, val, save_val, read_val; in tg3_test_registers() local
13264 read_val = save_val & read_mask; in tg3_test_registers()
13274 if (((val & read_mask) != read_val) || (val & write_mask)) in tg3_test_registers()
13286 if ((val & read_mask) != read_val) in tg3_test_registers()