/linux/drivers/pci/controller/ |
A D | pci-thunder-pem.c | 40 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 D | ad7091r-base.c | 99 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 D | adrf6780.c | 176 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 D | ad5592r-base.c | 376 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 D | adm1031.c | 996 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 D | qib_twsi.c | 137 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 D | qib_iba6120.c | 3039 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 D | qib_iba7220.c | 3751 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 D | qib_iba7322.c | 5674 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 D | pinctrl-mtk-common.c | 795 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 D | tea575x.h | 29 u32 (*read_val)(struct snd_tea575x *tea); member
|
/linux/drivers/hid/ |
A D | hid-alps.c | 166 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 D | ether3.c | 379 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 D | phy-cadence-torrent.c | 1043 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 D | axis-fifo.c | 169 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 D | spi-sprd-adi.c | 220 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 D | tea575x.c | 113 if (tea->ops->read_val) in snd_tea575x_read() 114 return tea->ops->read_val(tea); in snd_tea575x_read()
|
A D | radio-shark.c | 151 .read_val = shark_read_val,
|
/linux/drivers/net/ethernet/broadcom/ |
A D | tg3.c | 13043 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()
|