Home
last modified time | relevance | path

Searched refs:ioread8 (Results 1 – 25 of 35) sorted by relevance

12

/linux-4.19.296/drivers/gpio/
Dgpio-pcie-idio-24.c157 return !(ioread8(&idio24gpio->reg->ctl) & out_mode_mask); in idio_24_gpio_get_direction()
173 ctl_state = ioread8(&idio24gpio->reg->ctl) & ~out_mode_mask; in idio_24_gpio_direction_input()
195 ctl_state = ioread8(&idio24gpio->reg->ctl) | out_mode_mask; in idio_24_gpio_direction_output()
213 return !!(ioread8(&idio24gpio->reg->out0_7) & offset_mask); in idio_24_gpio_get()
216 return !!(ioread8(&idio24gpio->reg->out8_15) & offset_mask); in idio_24_gpio_get()
219 return !!(ioread8(&idio24gpio->reg->out16_23) & offset_mask); in idio_24_gpio_get()
223 return !!(ioread8(&idio24gpio->reg->in0_7) & offset_mask); in idio_24_gpio_get()
226 return !!(ioread8(&idio24gpio->reg->in8_15) & offset_mask); in idio_24_gpio_get()
229 return !!(ioread8(&idio24gpio->reg->in16_23) & offset_mask); in idio_24_gpio_get()
232 if (ioread8(&idio24gpio->reg->ctl) & out_mode_mask) in idio_24_gpio_get()
[all …]
Dgpio-pci-idio-16.c96 return !!(ioread8(&idio16gpio->reg->out0_7) & mask); in idio_16_gpio_get()
99 return !!(ioread8(&idio16gpio->reg->out8_15) & (mask >> 8)); in idio_16_gpio_get()
102 return !!(ioread8(&idio16gpio->reg->in0_7) & (mask >> 16)); in idio_16_gpio_get()
104 return !!(ioread8(&idio16gpio->reg->in8_15) & (mask >> 24)); in idio_16_gpio_get()
146 port_state = ioread8(ports[i]); in idio_16_gpio_get_multiple()
176 out_state = ioread8(base) | mask; in idio_16_gpio_set()
178 out_state = ioread8(base) & ~mask; in idio_16_gpio_set()
196 out_state = ioread8(&idio16gpio->reg->out0_7) & ~*mask; in idio_16_gpio_set_multiple()
207 out_state = ioread8(&idio16gpio->reg->out8_15) & ~*mask; in idio_16_gpio_set_multiple()
250 ioread8(&idio16gpio->reg->irq_ctl); in idio_16_irq_unmask()
[all …]
Dgpio-amd8111.c83 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request()
107 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
120 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get()
134 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirout()
151 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirin()
/linux-4.19.296/drivers/misc/mic/vop/
Dvop_main.c86 + ioread8(&desc->num_vq) * sizeof(struct mic_vqconfig) in _vop_desc_size()
87 + ioread8(&desc->feature_len) * 2 in _vop_desc_size()
88 + ioread8(&desc->config_len); in _vop_desc_size()
100 return (u8 __iomem *)(_vop_vq_config(desc) + ioread8(&desc->num_vq)); in _vop_vq_features()
106 return _vop_vq_features(desc) + ioread8(&desc->feature_len) * 2; in _vop_vq_configspace()
122 int feature_len = ioread8(&desc->feature_len); in vop_get_features()
126 if (ioread8(&in_features[i / 8]) & (BIT(i % 8))) in vop_get_features()
136 u8 feature_len = ioread8(&desc->feature_len); in vop_finalize_features()
149 iowrite8(ioread8(&out_features[i / 8]) | (1 << (i % 8)), in vop_finalize_features()
163 if (offset + len > ioread8(&desc->config_len)) in vop_get()
[all …]
/linux-4.19.296/drivers/char/tpm/
Dtpm_atmel.c51 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
56 *buf++ = ioread8(priv->iobase); in tpm_atml_recv()
67 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
78 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
83 *buf++ = ioread8(priv->iobase); in tpm_atml_recv()
87 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
122 return ioread8(priv->iobase + 1); in tpm_atml_status()
Dtpm_tis.c182 *result++ = ioread8(phy->iobase + addr); in tpm_tcg_read_bytes()
/linux-4.19.296/drivers/iio/adc/
Dstx104.c117 adc_config = ioread8(&reg->acfg); in stx104_read_raw()
137 while (ioread8(&reg->cir_asr) & BIT(7)); in stx104_read_raw()
145 adc_config = ioread8(&reg->acfg); in stx104_read_raw()
152 adc_config = ioread8(&reg->acfg); in stx104_read_raw()
269 return !!(ioread8(stx104gpio->base) & BIT(offset)); in stx104_gpio_get()
277 *bits = ioread8(stx104gpio->base); in stx104_gpio_get_multiple()
362 if (ioread8(&priv->reg->cir_asr) & BIT(5)) { in stx104_probe()
/linux-4.19.296/drivers/virtio/
Dvirtio_pci_legacy.c60 ptr[i] = ioread8(ioaddr + i); in vp_get()
82 return ioread8(vp_dev->ioaddr + VIRTIO_PCI_STATUS); in vp_get_status()
100 ioread8(vp_dev->ioaddr + VIRTIO_PCI_STATUS); in vp_reset()
188 ioread8(vp_dev->ioaddr + VIRTIO_PCI_ISR); in del_vq()
Dvirtio_pci_modern.c34 return ioread8(addr); in vp_ioread8()
205 b = ioread8(vp_dev->device + offset); in vp_get()
/linux-4.19.296/drivers/i2c/busses/
Di2c-pca-platform.c47 return ioread8(i2c->reg_base + reg); in i2c_pca_pf_readbyte8()
53 return ioread8(i2c->reg_base + reg * 2); in i2c_pca_pf_readbyte16()
59 return ioread8(i2c->reg_base + reg * 4); in i2c_pca_pf_readbyte32()
Di2c-elektor.c85 int val = ioread8(address); in pcf_isa_getbyte()
Di2c-xiic.c200 ret = ioread8(i2c->base + reg); in xiic_getreg8()
202 ret = ioread8(i2c->base + reg + 3); in xiic_getreg8()
/linux-4.19.296/include/asm-generic/
Diomap.h29 extern unsigned int ioread8(void __iomem *);
Dio.h691 #ifndef ioread8
692 #define ioread8 ioread8 macro
693 static inline u8 ioread8(const volatile void __iomem *addr) in ioread8() function
/linux-4.19.296/drivers/fsi/
Dfsi-master-ast-cf.c328 stat = ioread8(master->sram + CMD_STAT_REG); in do_copro_command()
380 uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; in read_copro_response()
381 uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; in read_copro_response()
449 ioread8(master->sram + STAT_RTAG), in dump_ucode_trace()
450 ioread8(master->sram + STAT_RCRC), in dump_ucode_trace()
458 v = ioread8(master->sram + TRACEBUF + i); in dump_ucode_trace()
970 val = ioread8(master->sram + CF_STARTED); in fsi_master_acf_setup()
1163 val = ioread8(master->sram + ARB_REG); in fsi_master_acf_gpio_request()
/linux-4.19.296/lib/
Diomap.c72 unsigned int ioread8(void __iomem *addr) in ioread8() function
97 EXPORT_SYMBOL(ioread8);
/linux-4.19.296/include/soc/fsl/qe/
Dqe.h254 #define qe_setbits8(_addr, _v) iowrite8(ioread8(_addr) | (_v), (_addr))
255 #define qe_clrbits8(_addr, _v) iowrite8(ioread8(_addr) & ~(_v), (_addr))
262 iowrite8((ioread8(addr) & ~(clear)) | (set), (addr))
/linux-4.19.296/drivers/char/pcmcia/
Dscr24x_cs.c77 status = ioread8(dev->regs + SCR24X_CMD_STATUS); in scr24x_wait_ready()
124 dev->buf[i + y] = ioread8(dev->regs + SCR24X_DATA(y)); in read_chunk()
/linux-4.19.296/drivers/sh/clk/
Dcpg.c22 return ioread8(clk->mapped_reg); in sh_clk_read()
41 return ioread8(addr); in r8()
/linux-4.19.296/drivers/cpufreq/
Dpcc-cpufreq.c463 ioread16(&pcch_hdr->length), ioread8(&pcch_hdr->major), in pcc_cpufreq_probe()
464 ioread8(&pcch_hdr->minor), ioread32(&pcch_hdr->features), in pcc_cpufreq_probe()
/linux-4.19.296/drivers/pci/controller/dwc/
Dpci-layerscape.c61 header_type = ioread8(pci->dbi_base + PCI_HEADER_TYPE); in ls_pcie_is_bridge()
/linux-4.19.296/drivers/i2c/muxes/
Di2c-mux-reg.c58 ioread8(mux->data.reg); in i2c_mux_reg_set()
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_main.c101 scifdev->rdb = ioread8(&bp->c2h_scif_db); in scif_qp_setup_handler()
/linux-4.19.296/drivers/misc/mic/card/
Dmic_device.c389 node_id = ioread8(&bootparam->node_id); in mic_driver_init()
/linux-4.19.296/drivers/misc/
Dpch_phub.c298 *data = ioread8(mem_addr); in pch_phub_read_serial_rom()
325 while (ioread8(chip->pch_phub_extrom_base_address + in pch_phub_write_serial_rom()

12