/linux-6.6.21/drivers/pci/controller/ |
D | pci-thunder-pem.c | 40 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 …]
|
/linux-6.6.21/tools/testing/selftests/arm64/abi/ |
D | ptrace.c | 34 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() 56 ksft_test_result(ret == 0 && write_val[0] == read_val[0], in test_tpidr() 60 read_iov.iov_len = sizeof(read_val); in test_tpidr() 64 if (read_iov.iov_len >= sizeof(read_val)) in test_tpidr() 81 write_val[i] = read_val[i] + 1; in test_tpidr() 89 read_iov.iov_len = sizeof(read_val); in test_tpidr() 95 read_iov.iov_len >= sizeof(read_val) && in test_tpidr() 96 memcmp(read_val, write_val, in test_tpidr() [all …]
|
/linux-6.6.21/tools/testing/selftests/alsa/ |
D | mixer-test.c | 461 snd_ctl_elem_value_t *read_val) in show_values() argument 470 read_int = snd_ctl_elem_value_get_boolean(read_val, i); in show_values() 475 read_int = snd_ctl_elem_value_get_integer(read_val, i); in show_values() 481 read_int = snd_ctl_elem_value_get_integer64(read_val, in show_values() 488 read_int = snd_ctl_elem_value_get_enumerated(read_val, in show_values() 503 snd_ctl_elem_value_t *read_val, in show_mismatch() argument 519 read_int = snd_ctl_elem_value_get_boolean(read_val, index); in show_mismatch() 525 read_int = snd_ctl_elem_value_get_integer(read_val, index); in show_mismatch() 531 read_int = snd_ctl_elem_value_get_integer64(read_val, in show_mismatch() 538 read_int = snd_ctl_elem_value_get_enumerated(read_val, in show_mismatch() [all …]
|
/linux-6.6.21/drivers/iio/adc/ |
D | ad7091r-base.c | 122 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()
|
/linux-6.6.21/drivers/nvmem/ |
D | sec-qfprom.c | 28 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()
|
/linux-6.6.21/drivers/iio/frequency/ |
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()
|
D | adf4377.c | 471 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()
|
D | admv1013.c | 369 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()
|
D | admv1014.c | 469 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()
|
/linux-6.6.21/drivers/iio/dac/ |
D | ad5592r-base.c | 380 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()
|
D | ad7293.c | 639 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()
|
/linux-6.6.21/drivers/infiniband/hw/qib/ |
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()
|
/linux-6.6.21/drivers/hwmon/ |
D | adm1031.c | 995 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()
|
/linux-6.6.21/drivers/iio/amplifiers/ |
D | ada4250.c | 263 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()
|
/linux-6.6.21/include/media/drv-intf/ |
D | tea575x.h | 29 u32 (*read_val)(struct snd_tea575x *tea); member
|
/linux-6.6.21/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common.c | 828 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()
|
/linux-6.6.21/drivers/phy/cadence/ |
D | phy-cadence-torrent.c | 1127 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() 1166 unsigned int read_val; in cdns_torrent_dp_run() local 1175 read_val, read_val & 1, in cdns_torrent_dp_run() 1269 u32 read_val, field_val; in cdns_torrent_dp_configure_rate() local 1289 read_val, in cdns_torrent_dp_configure_rate() 1290 ((read_val >> 2) & 0x01) != 0, in cdns_torrent_dp_configure_rate() 1298 read_val, in cdns_torrent_dp_configure_rate() 1299 ((read_val >> 3) & 0x01) != 0, in cdns_torrent_dp_configure_rate() 1333 read_val, in cdns_torrent_dp_configure_rate() [all …]
|
/linux-6.6.21/drivers/iio/filter/ |
D | admv8818.c | 389 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()
|
/linux-6.6.21/drivers/net/ethernet/seeq/ |
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-6.6.21/drivers/hid/ |
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-6.6.21/drivers/pinctrl/ |
D | pinctrl-cy8c95x0.c | 486 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()
|
/linux-6.6.21/drivers/staging/axis-fifo/ |
D | axis-fifo.c | 167 unsigned int read_val; in sysfs_read() local 171 read_val = ioread32(fifo->base_addr + addr_offset); in sysfs_read() 172 len = snprintf(tmp, sizeof(tmp), "0x%x\n", read_val); in sysfs_read()
|
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/ |
D | main.c | 479 u32 read_val, fifo_occup; in __wait_for_fifo_occupancy_below_th() local 485 read_val = readl(rdev->en_dev->bar0 + rdev->pacing.dbr_db_fifo_reg_off); in __wait_for_fifo_occupancy_below_th() 487 ((read_val & BNXT_RE_DB_FIFO_ROOM_MASK) >> in __wait_for_fifo_occupancy_below_th() 544 u32 read_val, fifo_occup; in bnxt_re_pacing_timer_exp() local 550 read_val = readl(rdev->en_dev->bar0 + rdev->pacing.dbr_db_fifo_reg_off); in bnxt_re_pacing_timer_exp() 552 ((read_val & BNXT_RE_DB_FIFO_ROOM_MASK) >> in bnxt_re_pacing_timer_exp()
|
/linux-6.6.21/drivers/spi/ |
D | spi-sprd-adi.c | 219 static int sprd_adi_read(struct sprd_adi *sadi, u32 reg, u32 *read_val) in sprd_adi_read() argument 278 *read_val = val & RD_VALUE_MASK; in sprd_adi_read()
|
/linux-6.6.21/drivers/media/radio/ |
D | tea575x.c | 113 if (tea->ops->read_val) in snd_tea575x_read() 114 return tea->ops->read_val(tea); in snd_tea575x_read()
|