Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/pci/controller/
H A Dpci-thunder-pem.c40 u64 read_val, tmp_val; in thunder_pem_bridge_read() local
55 read_val >>= 32; in thunder_pem_bridge_read()
92 read_val = 0x00000000; in thunder_pem_bridge_read()
96 read_val = 0x000f0000; in thunder_pem_bridge_read()
125 read_val &= 0xff; in thunder_pem_bridge_read()
128 read_val &= 0xffff; in thunder_pem_bridge_read()
133 *val = read_val; in thunder_pem_bridge_read()
236 read_val >>= 32; in thunder_pem_bridge_write()
238 read_val &= mask; in thunder_pem_bridge_write()
245 read_val >>= 32; in thunder_pem_bridge_write()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/abi/
H A Dptrace.c34 uint64_t read_val[MAX_TPIDRS]; in test_tpidr() local
40 read_iov.iov_base = read_val; in test_tpidr()
50 write_val[0] = read_val[0]++; in test_tpidr()
60 read_iov.iov_len = sizeof(read_val); in test_tpidr()
81 write_val[i] = read_val[i] + 1; in test_tpidr()
96 memcmp(read_val, write_val, in test_tpidr()
97 sizeof(read_val)) == 0, in test_tpidr()
104 read_val[1] == 0, in test_tpidr()
110 memcpy(write_val, read_val, sizeof(read_val)); in test_tpidr()
122 memcmp(read_val, write_val, in test_tpidr()
[all …]
/openbmc/u-boot/drivers/power/pmic/
H A Dpmic_tps65218.c16 uchar read_val; in tps65218_reg_read() local
23 *dest_val = read_val; in tps65218_reg_read()
46 uchar read_val; in tps65218_reg_write() local
58 read_val &= (~mask); in tps65218_reg_write()
59 read_val |= (dest_val & mask); in tps65218_reg_write()
60 dest_val = read_val; in tps65218_reg_write()
93 uchar read_val; in tps65218_reg_read() local
103 *dest_val = read_val; in tps65218_reg_read()
111 uchar read_val; in tps65218_reg_write() local
127 read_val &= (~mask); in tps65218_reg_write()
[all …]
H A Dpmic_tps65217.c46 uchar read_val; in tps65217_reg_write() local
56 ret = i2c_read(TPS65217_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65217_reg_write()
58 ret = dm_i2c_read(tps65217_dev, dest_reg, &read_val, 1); in tps65217_reg_write()
63 read_val &= (~mask); in tps65217_reg_write()
64 read_val |= (dest_val & mask); in tps65217_reg_write()
65 dest_val = read_val; in tps65217_reg_write()
/openbmc/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c461 snd_ctl_elem_value_t *read_val) in show_values() argument
481 read_int = snd_ctl_elem_value_get_integer64(read_val, in show_values()
503 snd_ctl_elem_value_t *read_val, in show_mismatch() argument
531 read_int = snd_ctl_elem_value_get_integer64(read_val, in show_mismatch()
573 snd_ctl_elem_value_t *initial_val, *read_val, *w_val; in write_and_verify() local
575 snd_ctl_elem_value_alloca(&read_val); in write_and_verify()
619 snd_ctl_elem_value_set_id(read_val, ctl->id); in write_and_verify()
621 err = snd_ctl_elem_read(ctl->card->handle, read_val); in write_and_verify()
641 show_values(ctl, initial_val, read_val); in write_and_verify()
648 show_values(ctl, initial_val, read_val); in write_and_verify()
[all …]
/openbmc/linux/drivers/iio/adc/
H A 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()
/openbmc/linux/drivers/nvmem/
H A Dsec-qfprom.c28 u32 read_val; in sec_qfprom_reg_read() local
33 if (qcom_scm_io_readl(priv->base + (reg & ~3), &read_val)) { in sec_qfprom_reg_read()
37 tmp = (u8 *)&read_val; in sec_qfprom_reg_read()
/openbmc/linux/drivers/iio/frequency/
H A Dadrf6780.c175 static int adrf6780_read_adc_raw(struct adrf6780_state *st, unsigned int *read_val) in adrf6780_read_adc_raw() argument
194 ret = __adrf6780_spi_read(st, ADRF6780_REG_ADC_OUTPUT, read_val); in adrf6780_read_adc_raw()
198 if (!(*read_val & ADRF6780_ADC_STATUS_MSK)) { in adrf6780_read_adc_raw()
209 ret = __adrf6780_spi_read(st, ADRF6780_REG_ADC_OUTPUT, read_val); in adrf6780_read_adc_raw()
297 unsigned int *read_val) in adrf6780_reg_access() argument
301 if (read_val) in adrf6780_reg_access()
302 return adrf6780_spi_read(st, reg, read_val); in adrf6780_reg_access()
H A Dadf4377.c471 unsigned int *read_val) in adf4377_reg_access() argument
475 if (read_val) in adf4377_reg_access()
476 return regmap_read(st->regmap, reg, read_val); in adf4377_reg_access()
487 unsigned int read_val; in adf4377_soft_reset() local
497 return regmap_read_poll_timeout(st->regmap, 0x0, read_val, in adf4377_soft_reset()
498 !(read_val & (ADF4377_0000_SOFT_RESET_R_MSK | in adf4377_soft_reset()
531 unsigned int read_val; in adf4377_set_freq() local
645 ret = regmap_read_poll_timeout(st->regmap, 0x49, read_val, in adf4377_set_freq()
646 !(read_val & (ADF4377_0049_FSM_BUSY_MSK)), 200, 200 * 100); in adf4377_set_freq()
H A 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()
/openbmc/u-boot/board/xilinx/zynqmp/
H A Dcmds.c68 u32 read_val, addr; in do_zynqmp_mmio_read() local
76 ret = zynqmp_mmio_read(addr, &read_val); in do_zynqmp_mmio_read()
79 addr, read_val); in do_zynqmp_mmio_read()
/openbmc/linux/drivers/iio/dac/
H A Dad5592r-base.c380 u16 read_val; in ad5592r_read_raw() local
387 ret = st->ops->read_adc(st, chan->channel, &read_val); in ad5592r_read_raw()
392 if ((read_val >> 12 & 0x7) != (chan->channel & 0x7)) { in ad5592r_read_raw()
398 read_val &= GENMASK(11, 0); in ad5592r_read_raw()
402 read_val = st->cached_dac[chan->channel]; in ad5592r_read_raw()
407 chan->channel, read_val); in ad5592r_read_raw()
409 *val = (int) read_val; in ad5592r_read_raw()
/openbmc/linux/drivers/infiniband/hw/qib/
H 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()
/openbmc/linux/drivers/hwmon/
H A 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()
/openbmc/u-boot/drivers/pci/
H A Dpci-aardvark.c222 uint *read_val) in pcie_advk_check_pio_status() argument
240 *read_val = advk_readl(pcie, PIO_RD_DATA); in pcie_advk_check_pio_status()
247 *read_val = CFG_RD_UR_VAL; in pcie_advk_check_pio_status()
256 *read_val = CFG_RD_CRS_VAL; in pcie_advk_check_pio_status()
/openbmc/linux/drivers/iio/amplifiers/
H A 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()
/openbmc/qemu/hw/core/
H A Dregister.c212 uint64_t read_val; in register_read_memory() local
232 read_val = register_read(reg, re, reg_array->prefix, in register_read_memory()
235 return extract64(read_val, 0, size * 8); in register_read_memory()
/openbmc/qemu/hw/xen/
H A Dxen_pt.c253 uint32_t read_val = 0, wb_mask; in xen_pt_pci_write_config() local
295 (uint8_t *)&read_val, len); in xen_pt_pci_write_config()
298 memset(&read_val, 0xff, len); in xen_pt_pci_write_config()
317 read_val <<= (addr & 3) << 3; in xen_pt_pci_write_config()
347 read_val >> ((real_offset & 3) << 3), in xen_pt_pci_write_config()
354 (read_val >> ((real_offset & 3) << 3)), in xen_pt_pci_write_config()
361 (read_val >> ((real_offset & 3) << 3)), in xen_pt_pci_write_config()
/openbmc/linux/include/media/drv-intf/
H A Dtea575x.h29 u32 (*read_val)(struct snd_tea575x *tea); member
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common.c828 unsigned int read_val = 0; in mtk_gpio_get_direction() local
838 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get_direction()
839 if (read_val & bit) in mtk_gpio_get_direction()
849 unsigned int read_val = 0; in mtk_gpio_get() local
856 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get()
857 return !!(read_val & bit); in mtk_gpio_get()
/openbmc/linux/drivers/phy/cadence/
H A Dphy-cadence-torrent.c1127 u32 read_val; in cdns_torrent_dp_set_power_state() local
1155 read_val, (read_val & mask) == value, 0, in cdns_torrent_dp_set_power_state()
1169 unsigned int read_val; in cdns_torrent_dp_run() local
1178 read_val, read_val & 1, in cdns_torrent_dp_run()
1292 read_val, in cdns_torrent_dp_configure_rate()
1301 read_val, in cdns_torrent_dp_configure_rate()
1336 read_val, in cdns_torrent_dp_configure_rate()
1345 read_val, in cdns_torrent_dp_configure_rate()
1630 u32 read_val; in cdns_torrent_phy_on() local
1648 read_val, read_val, 1000, in cdns_torrent_phy_on()
[all …]
/openbmc/linux/drivers/iio/filter/
H A Dadmv8818.c389 unsigned int *read_val) in admv8818_reg_access() argument
393 if (read_val) in admv8818_reg_access()
394 return regmap_read(st->regmap, reg, read_val); in admv8818_reg_access()
/openbmc/linux/drivers/hid/
H 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()
/openbmc/linux/drivers/net/ethernet/seeq/
H 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()
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-cy8c95x0.c486 int read_val; in cy8c95x0_read_regs_mask() local
536 ret = regmap_read(chip->regmap, off, &read_val); in cy8c95x0_read_regs_mask()
540 read_val &= bits; in cy8c95x0_read_regs_mask()
541 read_val |= bitmap_get_value8(tval, i * BANK_SZ) & ~bits; in cy8c95x0_read_regs_mask()
542 bitmap_set_value8(tval, read_val, i * BANK_SZ); in cy8c95x0_read_regs_mask()

12