Home
last modified time | relevance | path

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

/drivers/pci/controller/
Dpci-thunder-pem.c31 u64 read_val, tmp_val; in thunder_pem_bridge_read() local
45 read_val = where & ~3ull; in thunder_pem_bridge_read()
46 writeq(read_val, pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
47 read_val = readq(pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
48 read_val >>= 32; in thunder_pem_bridge_read()
56 read_val &= 0xffff00ff; in thunder_pem_bridge_read()
57 read_val |= 0x00007000; /* Skip MSI CAP */ in thunder_pem_bridge_read()
64 if (!(read_val & (0x1f << 25))) in thunder_pem_bridge_read()
65 read_val |= (2u << 25); in thunder_pem_bridge_read()
69 read_val &= 0xc00000ff; in thunder_pem_bridge_read()
[all …]
/drivers/staging/kpc2000/kpc2000/
Dcore.c205 u64 read_val = readq(pcard->sysinfo_regs_base + REG_FPGA_SSID); in wait_and_read_ssid() local
208 if (read_val & 0x8000000000000000UL) { in wait_and_read_ssid()
209 pcard->ssid = read_val; in wait_and_read_ssid()
215 read_val = readq(pcard->sysinfo_regs_base + REG_FPGA_SSID); in wait_and_read_ssid()
216 if (read_val & 0x8000000000000000UL) { in wait_and_read_ssid()
217 pcard->ssid = read_val; in wait_and_read_ssid()
233 u64 read_val; in read_system_regs() local
235 read_val = readq(pcard->sysinfo_regs_base + REG_MAGIC_NUMBER); in read_system_regs()
236 if (read_val != KP2000_MAGIC_VALUE) { in read_system_regs()
239 read_val, KP2000_MAGIC_VALUE); in read_system_regs()
[all …]
Dcell_probe.c54 void parse_core_table_entry_v0(struct core_table_entry *cte, const u64 read_val) in parse_core_table_entry_v0() argument
56 cte->type = ((read_val & 0xFFF0000000000000UL) >> 52); in parse_core_table_entry_v0()
57 cte->offset = ((read_val & 0x00000000FFFF0000UL) >> 16) * 4096; in parse_core_table_entry_v0()
58 cte->length = ((read_val & 0x0000FFFF00000000UL) >> 32) * 8; in parse_core_table_entry_v0()
59 cte->s2c_dma_present = ((read_val & 0x0008000000000000UL) >> 51); in parse_core_table_entry_v0()
60 cte->s2c_dma_channel_num = ((read_val & 0x0007000000000000UL) >> 48); in parse_core_table_entry_v0()
61 cte->c2s_dma_present = ((read_val & 0x0000000000008000UL) >> 15); in parse_core_table_entry_v0()
62 cte->c2s_dma_channel_num = ((read_val & 0x0000000000007000UL) >> 12); in parse_core_table_entry_v0()
63 cte->irq_count = ((read_val & 0x0000000000000C00UL) >> 10); in parse_core_table_entry_v0()
64 cte->irq_base_num = ((read_val & 0x00000000000003F8UL) >> 3); in parse_core_table_entry_v0()
[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/gpu/drm/i915/display/
Dintel_dp_aux_backlight.c82 u8 read_val[2] = { 0x0 }; in intel_dp_aux_get_backlight() local
93 &read_val, sizeof(read_val)) < 0) { in intel_dp_aux_get_backlight()
98 level = read_val[0]; in intel_dp_aux_get_backlight()
100 level = (read_val[0] << 8 | read_val[1]); in intel_dp_aux_get_backlight()
/drivers/iio/dac/
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()
/drivers/hwmon/
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()
/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.c5696 u64 read_val, new_out; in gpio_7322_mod() local
5721 read_val = qib_read_kreg64(dd, kr_extstatus); in gpio_7322_mod()
5722 return SYM_FIELD(read_val, EXTStatus, GPIOIn); in gpio_7322_mod()
/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c796 unsigned int read_val = 0; in mtk_gpio_get_direction() local
806 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get_direction()
807 if (read_val & bit) in mtk_gpio_get_direction()
817 unsigned int read_val = 0; in mtk_gpio_get() local
824 regmap_read(pctl->regmap1, reg_addr, &read_val); in mtk_gpio_get()
825 return !!(read_val & bit); in mtk_gpio_get()
/drivers/phy/cadence/
Dphy-cadence-torrent.c622 u32 read_val; in cdns_torrent_dp_configure_rate() local
632 read_val, in cdns_torrent_dp_configure_rate()
633 ((read_val >> 2) & 0x01) != 0, in cdns_torrent_dp_configure_rate()
661 read_val, in cdns_torrent_dp_configure_rate()
662 (read_val & 0x01) != 0, in cdns_torrent_dp_configure_rate()
1521 u32 read_val; in cdns_torrent_dp_set_power_state() local
1567 read_val, (read_val & mask) == value, 0, in cdns_torrent_dp_set_power_state()
1577 unsigned int read_val; in cdns_torrent_dp_run() local
1586 read_val, read_val & 1, in cdns_torrent_dp_run()
1611 u32 read_val; in cdns_torrent_phy_on() local
[all …]
/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/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/ide/
Dide-ioctls.c38 goto read_val; in ide_setting_ioctl()
45 read_val: in ide_setting_ioctl()
/drivers/staging/axis-fifo/
Daxis-fifo.c173 unsigned int read_val; in sysfs_read() local
177 read_val = ioread32(fifo->base_addr + addr_offset); in sysfs_read()
178 len = snprintf(tmp, sizeof(tmp), "0x%x\n", read_val); in sysfs_read()
/drivers/spi/
Dspi-sprd-adi.c164 static int sprd_adi_read(struct sprd_adi *sadi, u32 reg_paddr, u32 *read_val) in sprd_adi_read() argument
222 *read_val = val & RD_VALUE_MASK; in sprd_adi_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/power/supply/
Dpm2301_charger.c291 u8 read_val; in pm2xxx_charger_itv_pwr_plug_mngt() local
298 ret = pm2xxx_charger_detection(pm2, &read_val); in pm2xxx_charger_itv_pwr_plug_mngt()
300 if ((ret == 0) && read_val) { in pm2xxx_charger_itv_pwr_plug_mngt()
/drivers/net/ethernet/broadcom/
Dtg3.c13135 u32 offset, read_mask, write_mask, val, save_val, read_val; in tg3_test_registers() local
13310 read_val = save_val & read_mask; in tg3_test_registers()
13320 if (((val & read_mask) != read_val) || (val & write_mask)) in tg3_test_registers()
13332 if ((val & read_mask) != read_val) in tg3_test_registers()