Home
last modified time | relevance | path

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

/linux/drivers/pci/controller/
A Dpci-thunder-pem.c40 u64 read_val, tmp_val; in thunder_pem_bridge_read() local
57 read_val >>= 32; in thunder_pem_bridge_read()
94 read_val = 0x00000000; in thunder_pem_bridge_read()
98 read_val = 0x000f0000; in thunder_pem_bridge_read()
127 read_val &= 0xff; in thunder_pem_bridge_read()
130 read_val &= 0xffff; in thunder_pem_bridge_read()
135 *val = read_val; in thunder_pem_bridge_read()
238 read_val >>= 32; in thunder_pem_bridge_write()
240 read_val &= mask; in thunder_pem_bridge_write()
247 read_val >>= 32; in thunder_pem_bridge_write()
[all …]
/linux/drivers/iio/adc/
A Dad7091r-base.c99 unsigned int channel, unsigned int *read_val) in ad7091r_read_one() argument
116 *read_val = AD7091R_REG_RESULT_CONV_RESULT(val); in ad7091r_read_one()
126 unsigned int read_val; in ad7091r_read_raw() local
138 ret = ad7091r_read_one(iio_dev, chan->channel, &read_val); in ad7091r_read_raw()
142 *val = read_val; in ad7091r_read_raw()
179 unsigned int i, read_val; in ad7091r_event_handler() local
183 ret = regmap_read(st->map, AD7091R_REG_ALERT, &read_val); in ad7091r_event_handler()
188 if (read_val & BIT(i * 2)) in ad7091r_event_handler()
193 if (read_val & BIT(i * 2 + 1)) in ad7091r_event_handler()
/linux/drivers/iio/frequency/
A 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()
/linux/drivers/iio/dac/
A Dad5592r-base.c376 u16 read_val; in ad5592r_read_raw() local
383 ret = st->ops->read_adc(st, chan->channel, &read_val); in ad5592r_read_raw()
388 if ((read_val >> 12 & 0x7) != (chan->channel & 0x7)) { in ad5592r_read_raw()
394 read_val &= GENMASK(11, 0); in ad5592r_read_raw()
398 read_val = st->cached_dac[chan->channel]; in ad5592r_read_raw()
403 chan->channel, read_val); in ad5592r_read_raw()
405 *val = (int) read_val; in ad5592r_read_raw()
/linux/drivers/hwmon/
A Dadm1031.c996 unsigned int read_val; in adm1031_init_client() local
1007 read_val = adm1031_read_value(client, ADM1031_REG_CONF2); in adm1031_init_client()
1008 if ((read_val | mask) != read_val) in adm1031_init_client()
1009 adm1031_write_value(client, ADM1031_REG_CONF2, read_val | mask); in adm1031_init_client()
1011 read_val = adm1031_read_value(client, ADM1031_REG_CONF1); in adm1031_init_client()
1012 if ((read_val | ADM1031_CONF1_MONITOR_ENABLE) != read_val) { in adm1031_init_client()
1014 read_val | ADM1031_CONF1_MONITOR_ENABLE); in adm1031_init_client()
1019 read_val = adm1031_read_value(client, ADM1031_REG_FAN_FILTER); in adm1031_init_client()
1020 i = (read_val & mask) >> ADM1031_UPDATE_RATE_SHIFT; in adm1031_init_client()
/linux/drivers/infiniband/hw/qib/
A 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()
A 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()
A 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()
A 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()
/linux/drivers/pinctrl/mediatek/
A Dpinctrl-mtk-common.c795 unsigned int read_val = 0; in mtk_gpio_get_direction() local
805 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get_direction()
806 if (read_val & bit) in mtk_gpio_get_direction()
816 unsigned int read_val = 0; in mtk_gpio_get() local
823 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get()
824 return !!(read_val & bit); in mtk_gpio_get()
/linux/include/media/drv-intf/
A Dtea575x.h29 u32 (*read_val)(struct snd_tea575x *tea); member
/linux/drivers/hid/
A 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()
/linux/drivers/net/ethernet/seeq/
A 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()
/linux/drivers/phy/cadence/
A Dphy-cadence-torrent.c1043 u32 read_val; in cdns_torrent_dp_set_power_state() local
1089 read_val, (read_val & mask) == value, 0, in cdns_torrent_dp_set_power_state()
1099 unsigned int read_val; in cdns_torrent_dp_run() local
1108 read_val, read_val & 1, in cdns_torrent_dp_run()
1197 u32 read_val, ret; in cdns_torrent_dp_configure_rate() local
1207 read_val, in cdns_torrent_dp_configure_rate()
1235 read_val, in cdns_torrent_dp_configure_rate()
1236 (read_val & 0x01) != 0, in cdns_torrent_dp_configure_rate()
1507 u32 read_val; in cdns_torrent_phy_on() local
1525 read_val, read_val, 1000, in cdns_torrent_phy_on()
[all …]
/linux/drivers/staging/axis-fifo/
A 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()
/linux/drivers/spi/
A 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()
/linux/drivers/media/radio/
A Dtea575x.c113 if (tea->ops->read_val) in snd_tea575x_read()
114 return tea->ops->read_val(tea); in snd_tea575x_read()
A Dradio-shark.c151 .read_val = shark_read_val,
/linux/drivers/net/ethernet/broadcom/
A Dtg3.c13043 u32 offset, read_mask, write_mask, val, save_val, read_val; in tg3_test_registers() local
13218 read_val = save_val & read_mask; in tg3_test_registers()
13228 if (((val & read_mask) != read_val) || (val & write_mask)) in tg3_test_registers()
13240 if ((val & read_mask) != read_val) in tg3_test_registers()

Completed in 95 milliseconds