Home
last modified time | relevance | path

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

12345678

/openbmc/linux/drivers/uio/
H A Duio_aec.c45 unsigned char status = ioread8(int_flag); in aectc_irq()
50 status = ioread8(dev_info->priv + MAILBOX); in aectc_irq()
61 ioread8(i->priv + 0x01), in print_board_data()
62 ioread8(i->priv + 0x00), in print_board_data()
63 ioread8(i->priv + 0x03), in print_board_data()
64 ioread8(i->priv + 0x02), in print_board_data()
65 ioread8(i->priv + 0x06), in print_board_data()
66 ioread8(i->priv + 0x07)); in print_board_data()
106 if (!(ioread8(info->priv + INTA_DRVR_ADDR) in probe()
131 ioread8(info->priv + MAILBOX); in remove()
/openbmc/linux/drivers/ata/
H A Dpata_ns87415.c231 tmp = ioread8(port); in ns87560_read_buggy()
268 tf->error = ioread8(ioaddr->error_addr); in ns87560_tf_read()
269 tf->nsect = ioread8(ioaddr->nsect_addr); in ns87560_tf_read()
270 tf->lbal = ioread8(ioaddr->lbal_addr); in ns87560_tf_read()
271 tf->lbam = ioread8(ioaddr->lbam_addr); in ns87560_tf_read()
272 tf->lbah = ioread8(ioaddr->lbah_addr); in ns87560_tf_read()
277 tf->hob_feature = ioread8(ioaddr->error_addr); in ns87560_tf_read()
278 tf->hob_nsect = ioread8(ioaddr->nsect_addr); in ns87560_tf_read()
279 tf->hob_lbal = ioread8(ioaddr->lbal_addr); in ns87560_tf_read()
280 tf->hob_lbam = ioread8(ioaddr->lbam_addr); in ns87560_tf_read()
[all …]
H A Dpata_pdc202xx_old.c190 iowrite8(ioread8(clock) | sel66, clock); in pdc2026x_bmdma_start()
192 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_start()
240 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_stop()
244 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_stop()
268 u8 burst = ioread8(bmdma + 0x1f); in pdc2026x_port_start()
H A Dpata_legacy.c343 ioread8(ap->ioaddr.nsect_addr); in pdc_data_xfer_vlb()
344 ioread8(ap->ioaddr.nsect_addr); in pdc_data_xfer_vlb()
345 ioread8(ap->ioaddr.nsect_addr); in pdc_data_xfer_vlb()
402 ioread8(ap->ioaddr.status_addr); in ht6560a_set_piomode()
444 ioread8(ap->ioaddr.status_addr); in ht6560b_set_piomode()
516 rc = ioread8(ap->ioaddr.lbal_addr); in opti82c611a_set_piomode()
526 rc = ioread8(ap->ioaddr.device_addr); in opti82c611a_set_piomode()
536 rc = ioread8(ap->ioaddr.lbal_addr); in opti82c611a_set_piomode()
595 rc = ioread8(ap->ioaddr.lbal_addr); in opti82c46x_set_piomode()
605 rc = ioread8(ap->ioaddr.device_addr); in opti82c46x_set_piomode()
[all …]
H A Dlibata-sff.c66 return ioread8(ap->ioaddr.status_addr); in ata_sff_check_status()
93 tmp = ioread8(ap->ioaddr.altstatus_addr); in ata_sff_altstatus()
397 tf->error = ioread8(ioaddr->error_addr); in ata_sff_tf_read()
398 tf->nsect = ioread8(ioaddr->nsect_addr); in ata_sff_tf_read()
399 tf->lbal = ioread8(ioaddr->lbal_addr); in ata_sff_tf_read()
400 tf->lbam = ioread8(ioaddr->lbam_addr); in ata_sff_tf_read()
401 tf->lbah = ioread8(ioaddr->lbah_addr); in ata_sff_tf_read()
1715 nsect = ioread8(ioaddr->nsect_addr); in ata_devchk()
1716 lbal = ioread8(ioaddr->lbal_addr); in ata_devchk()
1850 lbal = ioread8(ioaddr->lbal_addr); in ata_sff_wait_after_reset()
[all …]
/openbmc/linux/drivers/staging/vt6655/
H A Dmac.c44 reg_value = ioread8(iobase + reg_offset); in vt6655_mac_reg_bits_on()
60 reg_value = ioread8(iobase + reg_offset); in vt6655_mac_reg_bits_off()
76 reg_value = ioread8(iobase + MAC_REG_STICKHW); in vt6655_mac_clear_stck_ds()
102 return !(ioread8(io_base + reg_offset) & mask); in vt6655_mac_is_reg_bits_off()
356 if (!(ioread8(io_base + MAC_REG_HOSTCR) & HOSTCR_RXONST)) in vt6655_mac_safe_rx_off()
536 org_dma_ctl = ioread8(io_base + MAC_REG_RXDMACTL0); in vt6655_mac_set_curr_rx_0_desc_addr()
570 org_dma_ctl = ioread8(io_base + MAC_REG_RXDMACTL1); in vt6655_mac_set_curr_rx_1_desc_addr()
604 org_dma_ctl = ioread8(io_base + MAC_REG_TXDMACTL0); in vt6655_mac_set_curr_tx_0_desc_addr_ex()
639 org_dma_ctl = ioread8(io_base + MAC_REG_AC0DMACTL); in vt6655_mac_set_curr_ac_0_desc_addr_ex()
687 byValue = ioread8(io_base + MAC_REG_TMCTL0); in MACvTimer0MicroSDelay()
[all …]
H A Dsrom.c68 byOrg = ioread8(iobase + MAC_REG_I2MCFG); in SROMbyReadEmbedded()
79 byWait = ioread8(iobase + MAC_REG_I2MCSR); in SROMbyReadEmbedded()
89 byData = ioread8(iobase + MAC_REG_I2MDIPT); in SROMbyReadEmbedded()
/openbmc/linux/drivers/char/tpm/
H A Dtpm_tis_synquacer.c44 *result++ = ioread8(phy->iobase + addr); in tpm_tis_synquacer_read_bytes()
47 result[1] = ioread8(phy->iobase + addr + 1); in tpm_tis_synquacer_read_bytes()
48 result[0] = ioread8(phy->iobase + addr); in tpm_tis_synquacer_read_bytes()
51 result[3] = ioread8(phy->iobase + addr + 3); in tpm_tis_synquacer_read_bytes()
52 result[2] = ioread8(phy->iobase + addr + 2); in tpm_tis_synquacer_read_bytes()
53 result[1] = ioread8(phy->iobase + addr + 1); in tpm_tis_synquacer_read_bytes()
54 result[0] = ioread8(phy->iobase + addr); in tpm_tis_synquacer_read_bytes()
H A Dtpm_atmel.c46 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
51 *buf++ = ioread8(priv->iobase); in tpm_atml_recv()
62 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
73 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
78 *buf++ = ioread8(priv->iobase); in tpm_atml_recv()
82 status = ioread8(priv->iobase + 1); in tpm_atml_recv()
117 return ioread8(priv->iobase + 1); in tpm_atml_status()
/openbmc/linux/drivers/ipack/
H A Dipack.c362 if ((ioread8(idmem + 1) == 'I') && in ipack_device_read_id()
363 (ioread8(idmem + 3) == 'P') && in ipack_device_read_id()
364 (ioread8(idmem + 5) == 'A') && in ipack_device_read_id()
365 ((ioread8(idmem + 7) == 'C') || in ipack_device_read_id()
366 (ioread8(idmem + 7) == 'H'))) { in ipack_device_read_id()
374 (ioread8(idmem + 1) == 'V') && in ipack_device_read_id()
375 (ioread8(idmem + 2) == 'A') && in ipack_device_read_id()
376 (ioread8(idmem + 3) == 'T') && in ipack_device_read_id()
377 (ioread8(idmem + 4) == ' ') && in ipack_device_read_id()
378 (ioread8(idmem + 5) == '4')) { in ipack_device_read_id()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dibm_rtl.c100 if (ioread8(&rtl_table->rt_status) != value) { in ibm_rtl_write()
105 cmd_port_val = ioread8(&rtl_table->cmd_port_value); in ibm_rtl_write()
121 while (ioread8(&rtl_table->command)) { in ibm_rtl_write()
132 if (ioread8(&rtl_table->command_status)) { in ibm_rtl_write()
146 return sprintf(buf, "%d\n", (int)ioread8(&rtl_table->version)); in rtl_show_version()
153 return sprintf(buf, "%d\n", ioread8(&rtl_table->rt_status)); in rtl_show_state()
283 rtl_cmd_width = ioread8(&rtl_table->cmd_granularity); in ibm_rtl_init()
284 rtl_cmd_type = ioread8(&rtl_table->cmd_address_type); in ibm_rtl_init()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-npcm7xx.c374 return ioread8(bus->reg + NPCM_I2CSDA); in npcm_i2c_rd_byte()
441 val = ioread8(bus->reg + NPCM_I2CCST3); in npcm_i2c_eob_int()
445 val = ioread8(bus->reg + NPCM_I2CCTL1); in npcm_i2c_eob_int()
511 val = ioread8(bus->reg + NPCM_I2CCTL1); in npcm_i2c_int_enable()
524 val = ioread8(bus->reg + NPCM_I2CCTL1); in npcm_i2c_master_start()
540 val = ioread8(bus->reg + NPCM_I2CCTL1); in npcm_i2c_master_stop()
562 val = ioread8(bus->reg + NPCM_I2CCTL1); in npcm_i2c_stall_after_start()
575 val = ioread8(bus->reg + NPCM_I2CCTL1); in npcm_i2c_nack()
758 ioread8(bus->reg + NPCM_I2CTXF_STS)); in npcm_i2c_fifo_usage()
761 ioread8(bus->reg + NPCM_I2CRXF_STS)); in npcm_i2c_fifo_usage()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Dio.c17 ioread8(const void __iomem *addr) in ioread8() function
21 ret = IO_CONCAT(__IO_PREFIX,ioread8)(addr); in ioread8()
77 EXPORT_SYMBOL(ioread8);
88 return ioread8(ioport_map(port, 1)); in inb()
283 *(unsigned char *)dst = ioread8(port); in ioread8_rep()
290 w = ioread8(port); in ioread8_rep()
291 w |= ioread8(port) << 8; in ioread8_rep()
292 w |= ioread8(port) << 16; in ioread8_rep()
293 w |= ioread8(port) << 24; in ioread8_rep()
300 *(unsigned char *)dst = ioread8(port); in ioread8_rep()
/openbmc/linux/drivers/media/pci/cobalt/
H A Dcobalt-i2c.c139 status = ioread8(&regs->cr_sr); in cobalt_tx_bytes()
144 status = ioread8(&regs->cr_sr); in cobalt_tx_bytes()
198 status = ioread8(&regs->cr_sr); in cobalt_rx_bytes()
203 status = ioread8(&regs->cr_sr); in cobalt_rx_bytes()
213 data[i] = ioread8(&regs->txr_rxr); in cobalt_rx_bytes()
336 status = ioread8(&regs->cr_sr); in cobalt_i2c_init()
/openbmc/linux/drivers/gpio/
H A Dgpio-amd8111.c80 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request()
104 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
117 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get()
131 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirout()
148 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirin()
H A Dgpio-npcm-sgpio.c198 reg = ioread8(gpio->base + NPCM_IOXCFG2); in npcm_sgpio_init_port()
237 reg = ioread8(addr); in npcm_sgpio_set()
263 reg = ioread8(addr); in npcm_sgpio_get()
272 reg = ioread8(gpio->base + NPCM_IOXCTS); in npcm_sgpio_setup_enable()
292 tmp = ioread8(gpio->base + NPCM_IOXCFG1) & ~NPCM_IOXCFG1_SFT_CLK; in npcm_sgpio_setup_clk()
347 reg = ioread8(addr); in npcm_sgpio_irq_set_mask()
445 reg = ioread8(bank_reg(gpio, bank, EVENT_STS)); in npcm_sgpio_irq_handler()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dhealth.c103 u8 synd = ioread8(&h->synd); in sensor_fw_synd_rfr()
106 rfr = mlx5_health_get_rfr(ioread8(&h->rfr_severity)); in sensor_fw_synd_rfr()
419 if (!ioread8(&h->synd)) in print_health_info()
427 rfr_severity = ioread8(&h->rfr_severity); in print_health_info()
445 mlx5_log(dev, severity, "synd 0x%x: %s\n", ioread8(&h->synd), in print_health_info()
446 hsynd_str(ioread8(&h->synd))); in print_health_info()
462 synd = ioread8(&h->synd); in mlx5_fw_reporter_diagnose()
501 if (!ioread8(&h->synd)) in mlx5_fw_reporter_heath_buffer_data_put()
536 rfr_severity = ioread8(&h->rfr_severity); in mlx5_fw_reporter_heath_buffer_data_put()
544 ioread8(&h->irisc_index)); in mlx5_fw_reporter_heath_buffer_data_put()
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dpch_uart.c328 ioread8(priv->membase + PCH_UART_BRCSR)); in port_show_regs()
330 lcr = ioread8(priv->membase + UART_LCR); in port_show_regs()
417 u8 ier = ioread8(priv->membase + UART_IER); in pch_uart_hal_enable_interrupt()
425 u8 ier = ioread8(priv->membase + UART_IER); in pch_uart_hal_disable_interrupt()
559 lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read()
580 return ioread8(priv->membase + UART_IIR) &\ in pch_uart_hal_get_iid()
586 return ioread8(priv->membase + UART_LSR); in pch_uart_hal_get_line_status()
593 lcr = ioread8(priv->membase + UART_LCR); in pch_uart_hal_set_break()
1453 status = ioread8(up->membase + UART_LSR); in wait_for_xmitr()
1504 ier = ioread8(priv->membase + UART_IER); in pch_uart_put_poll_char()
[all …]
H A Dtimbuart.c72 u8 ctl = ioread8(port->membase + TIMBUART_CTRL) | in timbuart_flush_buffer()
85 u8 ch = ioread8(port->membase + TIMBUART_RXFIFO); in timbuart_rx_chars()
111 ioread8(port->membase + TIMBUART_CTRL), in timbuart_tx_chars()
113 ioread8(port->membase + TIMBUART_BAUDRATE)); in timbuart_tx_chars()
155 u8 ctl = ioread8(port->membase + TIMBUART_CTRL) | in timbuart_handle_rx_port()
198 u8 cts = ioread8(port->membase + TIMBUART_CTRL); in timbuart_get_mctrl()
350 if (ioread8(uart->port.membase + TIMBUART_IPR)) { in timbuart_handleinterrupt()
/openbmc/linux/drivers/mfd/
H A Dtqmx86.c208 board_id = ioread8(io_base + TQMX86_REG_BOARD_ID); in tqmx86_probe()
209 sauc = ioread8(io_base + TQMX86_REG_SAUC); in tqmx86_probe()
211 rev = ioread8(io_base + TQMX86_REG_BOARD_REV); in tqmx86_probe()
228 readback = ioread8(io_base + TQMX86_REG_IO_EXT_INT); in tqmx86_probe()
/openbmc/linux/arch/powerpc/sysdev/
H A Dpmi.c50 type = ioread8(data->pmi_reg + PMI_READ_TYPE); in pmi_irq_handler()
66 data->msg.data0 = ioread8(data->pmi_reg + PMI_READ_DATA0); in pmi_irq_handler()
67 data->msg.data1 = ioread8(data->pmi_reg + PMI_READ_DATA1); in pmi_irq_handler()
68 data->msg.data2 = ioread8(data->pmi_reg + PMI_READ_DATA2); in pmi_irq_handler()
/openbmc/linux/drivers/net/ethernet/amd/pds_core/
H A Ddev.c61 pdsc->fw_status = ioread8(&pdsc->info_regs->fw_status); in pdsc_is_fw_running()
87 return ioread8(&pdsc->cmd_regs->comp.status); in pdsc_devcmd_status()
241 pdsc->dev_info.asic_type = ioread8(&pdsc->info_regs->asic_type); in pdsc_init_devinfo()
242 pdsc->dev_info.asic_rev = ioread8(&pdsc->info_regs->asic_rev); in pdsc_init_devinfo()
244 ioread8(&pdsc->info_regs->fw_status); in pdsc_init_devinfo()
/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c737 #define mdio_delay() ioread8(mdio_addr)
973 ioread8(ioaddr + TxFrameId)); in tx_timeout()
1253 hw_frame_id = ioread8(ioaddr + TxFrameId); in intr_handler()
1524 mult_coll = ioread8(ioaddr + StatsMultiColl); in get_stats()
1526 single_coll = ioread8(ioaddr + StatsOneColl); in get_stats()
1528 late_coll = ioread8(ioaddr + StatsLateColl); in get_stats()
1537 np->xstats.tx_bcasts += ioread8(ioaddr + StatsBcastTx); in get_stats()
1538 np->xstats.rx_bcasts += ioread8(ioaddr + StatsBcastRx); in get_stats()
1745 wol_bits = ioread8(ioaddr + WakeEvent); in sundance_get_wol()
1763 wol_bits = ioread8(ioaddr + WakeEvent); in sundance_set_wol()
[all …]
/openbmc/linux/drivers/net/ethernet/
H A Dec_bhf.c257 block_count = ioread8(priv->io + INFO_BLOCK_BLK_CNT); in ec_bhf_setup_offsets()
271 priv->tx_dma_chan = ioread8(ec_info + INFO_BLOCK_TX_CHAN); in ec_bhf_setup_offsets()
272 priv->rx_dma_chan = ioread8(ec_info + INFO_BLOCK_RX_CHAN); in ec_bhf_setup_offsets()
457 stats->rx_errors = ioread8(priv->mac_io + MAC_RX_ERR_CNT) + in ec_bhf_get_stats()
458 ioread8(priv->mac_io + MAC_CRC_ERR_CNT) + in ec_bhf_get_stats()
459 ioread8(priv->mac_io + MAC_FRAME_ERR_CNT); in ec_bhf_get_stats()
462 stats->rx_dropped = ioread8(priv->mac_io + MAC_DROPPED_FRMS); in ec_bhf_get_stats()
/openbmc/linux/drivers/net/ethernet/via/
H A Dvia-rhine.c485 #define BYTE_REG_BITS_IS_ON(x, p) (ioread8((p)) & (x))
557 intr_status |= ioread8(ioaddr + IntrStatus2) << 16; in rhine_get_events()
594 wolstat = ioread8(ioaddr + PwrcsrSet); in rhine_power_init()
639 if (ioread8(ioaddr + ChipCmd1) & Cmd1Reset) { in rhine_chip_reset()
650 cmd1 = ioread8(ioaddr + ChipCmd1); in rhine_chip_reset()
835 if (ioread8(ioaddr + ChipCmd) & CmdTxOn) in rhine_napipoll()
937 addr[i] = ioread8(ioaddr + StationAddr + i); in rhine_init_one_common()
950 phy_id = ioread8(ioaddr + 0x6C); in rhine_init_one_common()
1858 iowrite8(ioread8(ioaddr + ChipCmd1) | Cmd1TxDemand, in rhine_start_tx()
2161 iowrite8(ioread8(ioaddr + ChipCmd) | CmdTxOn, in rhine_restart_tx()
[all …]

12345678