/openbmc/u-boot/drivers/rtc/ |
H A D | s3c24x0_rtc.c | 55 sec = readb(&rtc->bcdsec); in rtc_get() 56 min = readb(&rtc->bcdmin); in rtc_get() 57 hour = readb(&rtc->bcdhour); in rtc_get() 58 mday = readb(&rtc->bcddate); in rtc_get() 59 wday = readb(&rtc->bcdday); in rtc_get() 60 mon = readb(&rtc->bcdmon); in rtc_get() 61 year = readb(&rtc->bcdyear); in rtc_get() 65 a_sec = readb(&rtc->almsec); in rtc_get() 66 a_min = readb(&rtc->almmin); in rtc_get() 69 a_mon = readb(&rtc->almmon); in rtc_get() [all …]
|
/openbmc/linux/drivers/char/ |
H A D | applicom.c | 136 (readb(loc + CONF_END_TEST + 3) != 0xFF)) in ac_register_board() 160 byte_reset_it = readb(loc + RAM_IT_TO_PC); in ac_register_board() 501 *(to++) = readb(from++); in do_ac_read() 588 Dummy = readb(apbs[i].RamIO + VERS); in ac_read() 601 Dummy = readb(apbs[i].RamIO + VERS); in ac_read() 678 Dummy = readb(apbs[i].RamIO + VERS); in ac_interrupt() 739 adgl->conf_end_test[i] = readb(pmem++); in ac_ioctl() 741 adgl->error_code[i] = readb(pmem++); in ac_ioctl() 745 adgl->vers = readb(pmem); in ac_ioctl() 748 adgl->reserv1[i] = readb(pmem++); in ac_ioctl() [all …]
|
H A D | toshiba.c | 353 id = (0x100*(int) readb(bios+0xfffe))+((int) readb(bios+0xfffa)); in tosh_get_machine_id() 416 if (readb(bios+0xe010+i)!=signature[i]) { in tosh_probe() 448 major = readb(bios+0xe009)-'0'; in tosh_probe() 449 minor = ((readb(bios+0xe00b)-'0')*10)+(readb(bios+0xe00c)-'0'); in tosh_probe() 454 day = ((readb(bios+0xfff5)-'0')*10)+(readb(bios+0xfff6)-'0'); in tosh_probe() 455 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); in tosh_probe() 456 year = ((readb(bios+0xfffb)-'0')*10)+(readb(bios+0xfffc)-'0'); in tosh_probe()
|
/openbmc/qemu/tests/qtest/ |
H A D | tpm-tis-util.c | 55 access = readb(TIS_REG(locty, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_localities() 82 access = readb(TIS_REG(locty, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg() 89 access = readb(TIS_REG(locty, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg() 97 access = readb(TIS_REG(locty, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg() 116 access = readb(TIS_REG(locty, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg_seize() 122 access = readb(TIS_REG(locty, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg_seize() 130 access = readb(TIS_REG(l, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg_seize() 255 access = readb(TIS_REG(l, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg_seize() 263 access = readb(TIS_REG(l, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_access_reg_seize() 384 access = readb(TIS_REG(0, TPM_TIS_REG_ACCESS)); in tpm_tis_test_check_transmit() [all …]
|
/openbmc/linux/drivers/media/cec/platform/s5p/ |
H A D | exynos_hdmi_cecctrl.c | 54 reg = readb(cec->reg + S5P_CEC_RX_CTRL); in s5p_cec_enable_rx() 63 reg = readb(cec->reg + S5P_CEC_IRQ_MASK); in s5p_cec_mask_rx_interrupts() 73 reg = readb(cec->reg + S5P_CEC_IRQ_MASK); in s5p_cec_unmask_rx_interrupts() 83 reg = readb(cec->reg + S5P_CEC_IRQ_MASK); in s5p_cec_mask_tx_interrupts() 93 reg = readb(cec->reg + S5P_CEC_IRQ_MASK); in s5p_cec_unmask_tx_interrupts() 106 reg = readb(cec->reg + 0xc4); in s5p_cec_reset() 122 reg = readb(cec->reg + 0xc4); in s5p_cec_rx_reset() 145 reg = readb(cec->reg + S5P_CEC_TX_CTRL); in s5p_cec_copy_packet() 172 status = readb(cec->reg + S5P_CEC_STATUS_0) & 0xf; in s5p_cec_get_status() 174 status |= readb(cec->reg + S5P_CEC_STATUS_1) << 8; in s5p_cec_get_status() [all …]
|
/openbmc/linux/drivers/tty/serial/jsm/ |
H A D | jsm_cls.c | 54 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 55 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_cts_flow_control() 95 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_ixon_flow_control() 96 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_ixon_flow_control() 141 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_no_output_flow_control() 184 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_rts_flow_control() 399 readb(&ch->ch_cls_uart->txrx); in cls_copy_data_from_uart_to_queue() 734 ier = readb(&ch->ch_cls_uart->ier); in cls_param() 859 readb(&ch->ch_cls_uart->txrx); in cls_uart_init() 867 readb(&ch->ch_cls_uart->lsr); in cls_uart_init() [all …]
|
H A D | jsm_neo.c | 32 readb(bd->re_map_membase + 0x8D); in neo_pci_posting_flush() 38 ier = readb(&ch->ch_neo_uart->ier); in neo_set_cts_flow_control() 39 efr = readb(&ch->ch_neo_uart->efr); in neo_set_cts_flow_control() 69 ier = readb(&ch->ch_neo_uart->ier); in neo_set_rts_flow_control() 70 efr = readb(&ch->ch_neo_uart->efr); in neo_set_rts_flow_control() 109 ier = readb(&ch->ch_neo_uart->ier); in neo_set_ixon_flow_control() 110 efr = readb(&ch->ch_neo_uart->efr); in neo_set_ixon_flow_control() 146 ier = readb(&ch->ch_neo_uart->ier); in neo_set_ixoff_flow_control() 1289 readb(&ch->ch_neo_uart->txrx); in neo_uart_init() 1291 readb(&ch->ch_neo_uart->lsr); in neo_uart_init() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1742.c | 91 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in ds1742_rtc_read_time() 92 minute = readb(ioaddr + RTC_MINUTES); in ds1742_rtc_read_time() 93 hour = readb(ioaddr + RTC_HOURS); in ds1742_rtc_read_time() 94 day = readb(ioaddr + RTC_DATE); in ds1742_rtc_read_time() 95 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1742_rtc_read_time() 96 month = readb(ioaddr + RTC_MONTH); in ds1742_rtc_read_time() 97 year = readb(ioaddr + RTC_YEAR); in ds1742_rtc_read_time() 125 *buf++ = readb(ioaddr + pos++); in ds1742_nvram_read() 172 sec = readb(ioaddr + RTC_SECONDS); in ds1742_rtc_probe() 175 cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1742_rtc_probe() [all …]
|
H A D | rtc-stk17ta8.c | 78 flags = readb(pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time() 110 minute = readb(ioaddr + RTC_MINUTES); in stk17ta8_rtc_read_time() 111 hour = readb(ioaddr + RTC_HOURS); in stk17ta8_rtc_read_time() 112 day = readb(ioaddr + RTC_DATE); in stk17ta8_rtc_read_time() 114 month = readb(ioaddr + RTC_MONTH); in stk17ta8_rtc_read_time() 115 year = readb(ioaddr + RTC_YEAR); in stk17ta8_rtc_read_time() 116 century = readb(ioaddr + RTC_CENTURY); in stk17ta8_rtc_read_time() 138 flags = readb(ioaddr + RTC_FLAGS); in stk17ta8_rtc_update_alarm() 241 *buf++ = readb(ioaddr + pos++); in stk17ta8_nvram_read() 284 cal = readb(ioaddr + RTC_CALIBRATION); in stk17ta8_rtc_probe() [all …]
|
H A D | rtc-sh.c | 114 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_interrupt() 130 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_alarm() 145 tmp = readb(rtc->regbase + RCR2); in __sh_rtc_periodic() 222 tmp = readb(rtc->regbase + RCR1); in sh_rtc_setaie() 239 tmp = readb(rtc->regbase + RCR1); in sh_rtc_proc() 242 tmp = readb(rtc->regbase + RCR2); in sh_rtc_proc() 256 tmp = readb(rtc->regbase + RCR1); in sh_rtc_setcie() 287 tmp = readb(rtc->regbase + RCR1); in sh_rtc_read_time() 345 tmp = readb(rtc->regbase + RCR2); in sh_rtc_set_time() 367 tmp = readb(rtc->regbase + RCR2); in sh_rtc_set_time() [all …]
|
H A D | rtc-ds1553.c | 108 minute = readb(ioaddr + RTC_MINUTES); in ds1553_rtc_read_time() 109 hour = readb(ioaddr + RTC_HOURS); in ds1553_rtc_read_time() 110 day = readb(ioaddr + RTC_DATE); in ds1553_rtc_read_time() 111 week = readb(ioaddr + RTC_DAY) & RTC_DAY_MASK; in ds1553_rtc_read_time() 112 month = readb(ioaddr + RTC_MONTH); in ds1553_rtc_read_time() 113 year = readb(ioaddr + RTC_YEAR); in ds1553_rtc_read_time() 190 if (readb(ioaddr + RTC_FLAGS) & RTC_FLAGS_AF) { in ds1553_rtc_interrupt() 192 if (readb(ioaddr + RTC_SECONDS_ALARM) & 0x80) in ds1553_rtc_interrupt() 233 *buf++ = readb(ioaddr + pos++); in ds1553_nvram_read() 277 sec = readb(ioaddr + RTC_SECONDS); in ds1553_rtc_probe() [all …]
|
H A D | rtc-pic32.c | 141 rtc_tm->tm_hour = readb(base + PIC32_RTCHOUR); in pic32_rtc_gettime() 142 rtc_tm->tm_min = readb(base + PIC32_RTCMIN); in pic32_rtc_gettime() 143 rtc_tm->tm_mon = readb(base + PIC32_RTCMON); in pic32_rtc_gettime() 144 rtc_tm->tm_mday = readb(base + PIC32_RTCDAY); in pic32_rtc_gettime() 145 rtc_tm->tm_year = readb(base + PIC32_RTCYEAR); in pic32_rtc_gettime() 146 rtc_tm->tm_sec = readb(base + PIC32_RTCSEC); in pic32_rtc_gettime() 198 alm_tm->tm_sec = readb(base + PIC32_ALRMSEC); in pic32_rtc_getalarm() 199 alm_tm->tm_min = readb(base + PIC32_ALRMMIN); in pic32_rtc_getalarm() 201 alm_tm->tm_mon = readb(base + PIC32_ALRMMON); in pic32_rtc_getalarm() 202 alm_tm->tm_mday = readb(base + PIC32_ALRMDAY); in pic32_rtc_getalarm() [all …]
|
H A D | rtc-m48t35.c | 67 control = readb(&priv->reg->control); in m48t35_read_time() 69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() 70 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time() 71 tm->tm_hour = readb(&priv->reg->hour); in m48t35_read_time() 72 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time() 73 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time() 74 tm->tm_year = readb(&priv->reg->year); in m48t35_read_time() 132 control = readb(&priv->reg->control); in m48t35_set_time()
|
H A D | rtc-s3c.c | 140 tm->tm_min = readb(info->base + S3C2410_RTCMIN); in s3c_rtc_read_time() 141 tm->tm_hour = readb(info->base + S3C2410_RTCHOUR); in s3c_rtc_read_time() 142 tm->tm_mday = readb(info->base + S3C2410_RTCDATE); in s3c_rtc_read_time() 143 tm->tm_mon = readb(info->base + S3C2410_RTCMON); in s3c_rtc_read_time() 144 tm->tm_year = readb(info->base + S3C2410_RTCYEAR); in s3c_rtc_read_time() 145 tm->tm_sec = readb(info->base + S3C2410_RTCSEC); in s3c_rtc_read_time() 235 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm() 236 alm_tm->tm_min = readb(info->base + S3C2410_ALMMIN); in s3c_rtc_getalarm() 238 alm_tm->tm_mon = readb(info->base + S3C2410_ALMMON); in s3c_rtc_getalarm() 242 alm_en = readb(info->base + S3C2410_RTCALM); in s3c_rtc_getalarm() [all …]
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_ebda.c | 251 ebda_sz = readb(io_mem); in ibmphp_access_ebda() 285 format = readb(io_mem + offset); in ibmphp_access_ebda() 304 num_ctlrs = readb(io_mem + sub_addr); in ibmphp_access_ebda() 698 ctlr_id = readb(io_mem + addr); in ebda_rsrc_controller() 700 slot_num = readb(io_mem + addr); in ebda_rsrc_controller() 706 bus_num = readb(io_mem + addr); in ebda_rsrc_controller() 711 temp = readb(io_mem + addr); in ebda_rsrc_controller() 801 hpc_ptr->irq = readb(io_mem + addr + 2); in ebda_rsrc_controller() 817 hpc_ptr->irq = readb(io_mem + addr + 4); in ebda_rsrc_controller() 825 hpc_ptr->irq = readb(io_mem + addr + 5); in ebda_rsrc_controller() [all …]
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 392 unsigned int b0 = readb(pins); in get_pins() 421 *dst++ = readb(pins+i); in get_pins() 430 pcir_offset = readb(vbios + 24) | (readb(vbios + 25) << 8); in get_bios_version() 445 h = readb(vbios + 5); in get_bios_version() 455 b = readb(vbios + 0x7FF1); in get_bios_output() 467 if (readb(vbios + 0x1D) != 'I' || in get_bios_tvout() 468 readb(vbios + 0x1E) != 'B' || in get_bios_tvout() 492 if (readb(vbios) != 0x55 || readb(vbios + 1) != 0xAA) { in parse_bios() 523 pins_offset = readb(vbios + 0x7FFC) | (readb(vbios + 0x7FFD) << 8); in parse_bios() 791 unsigned int ven = readb(b+0x64+0) | (readb(b+0x64+1) << 8); in matroxfb_read_pins() [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | mcfuart.c | 102 while (!(readb(&uart->usr) & UART_USR_TXRDY)) in mcf_serial_putc() 113 while (!(readb(&uart->usr) & UART_USR_RXRDY)) in mcf_serial_getc() 116 return readb(&uart->urb); in mcf_serial_getc() 130 return readb(&uart->usr) & UART_USR_RXRDY; in mcf_serial_tstc() 172 if (!(readb(&uart->usr) & UART_USR_TXRDY)) in coldfire_serial_putc() 186 if (!(readb(&uart->usr) & UART_USR_RXRDY)) in coldfire_serial_getc() 189 return readb(&uart->urb); in coldfire_serial_getc() 208 return readb(&uart->usr) & UART_USR_RXRDY ? 1 : 0; in coldfire_serial_pending() 210 return readb(&uart->usr) & UART_USR_TXRDY ? 0 : 1; in coldfire_serial_pending()
|
H A D | serial_arc.c | 55 while (!(readb(®s->status) & UART_TXEMPTY)) in arc_serial_putc() 65 return !(readb(®s->status) & UART_RXEMPTY); in arc_serial_tstc() 72 uint32_t status = readb(®s->status); in arc_serial_pending() 89 if (readb(®s->status) & UART_OVERFLOW_ERR) in arc_serial_getc() 92 return readb(®s->data) & 0xFF; in arc_serial_getc() 150 while (!(readb(®s->status) & UART_TXEMPTY)) in _debug_uart_putc()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | amba-pl010.c | 65 cr = readb(uap->port.membase + UART010_CR); in pl010_stop_tx() 76 cr = readb(uap->port.membase + UART010_CR); in pl010_start_tx() 87 cr = readb(uap->port.membase + UART010_CR); in pl010_stop_rx() 97 cr = readb(uap->port.membase + UART010_CR); in pl010_disable_ms() 108 cr = readb(uap->port.membase + UART010_CR); in pl010_enable_ms() 118 status = readb(port->membase + UART01x_FR); in pl010_rx_chars() 120 ch = readb(port->membase + UART01x_DR); in pl010_rx_chars() 161 status = readb(port->membase + UART01x_FR); in pl010_rx_chars() 212 status = readb(port->membase + UART010_IIR); in pl010_int() 248 status = readb(port->membase + UART01x_FR); in pl010_get_mctrl() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-pl061.c | 67 if (readb(pl061->base + GPIODIR) & BIT(offset)) in pl061_get_direction() 80 gpiodir = readb(pl061->base + GPIODIR); in pl061_direction_input() 97 gpiodir = readb(pl061->base + GPIODIR); in pl061_direction_output() 115 return !!readb(pl061->base + (BIT(offset + 2))); in pl061_get_value() 150 gpioiev = readb(pl061->base + GPIOIEV); in pl061_irq_type() 151 gpiois = readb(pl061->base + GPIOIS); in pl061_irq_type() 152 gpioibe = readb(pl061->base + GPIOIBE); in pl061_irq_type() 223 pending = readb(pl061->base + GPIOMIS); in pl061_irq_handler() 241 gpioie = readb(pl061->base + GPIOIE) & ~mask; in pl061_irq_mask() 258 gpioie = readb(pl061->base + GPIOIE) | mask; in pl061_irq_unmask() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-microchip-corei2c.c | 121 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_disable() 129 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_enable() 143 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_stop() 173 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_set_divisor() 178 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_set_divisor() 210 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_empty_rx() 237 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_handle_isr() 262 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_handle_isr() 301 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_isr() 307 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_isr() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | sharpsl.c | 69 writeb((readb(sharpsl->io + FLASHCTL) & ~0x17) | bits, sharpsl->io + FLASHCTL); in sharpsl_nand_hwcontrol() 79 return !((readb(sharpsl->io + FLASHCTL) & FLRYBY) == 0); in sharpsl_nand_dev_ready() 92 ecc_code[0] = ~readb(sharpsl->io + ECCLPUB); in sharpsl_nand_calculate_ecc() 93 ecc_code[1] = ~readb(sharpsl->io + ECCLPLB); in sharpsl_nand_calculate_ecc() 94 ecc_code[2] = (~readb(sharpsl->io + ECCCP) << 2) | 0x03; in sharpsl_nand_calculate_ecc() 95 return readb(sharpsl->io + ECCCNTR) != 0; in sharpsl_nand_calculate_ecc() 171 writeb(readb(sharpsl->io + FLASHCTL) | FLWP, sharpsl->io + FLASHCTL); in sharpsl_nand_probe()
|
/openbmc/linux/arch/arm/mach-rpc/ |
H A D | irq.c | 80 reg = readb(IOC_BASE + IOMD_IRQREQB); in iomd_get_irq_nr() 86 reg = readb(IOC_BASE + IOMD_DMAREQ); in iomd_get_irq_nr() 92 reg = readb(IOC_BASE + IOMD_IRQREQA); in iomd_get_irq_nr() 130 val = readb(base + MASK); in iomd_irq_mask_ack() 140 val = readb(base + MASK); in iomd_irq_mask() 149 val = readb(base + MASK); in iomd_irq_unmask()
|
/openbmc/u-boot/arch/sh/cpu/sh2/ |
H A D | cpu.c | 14 writeb(readb(STBCR4) & ~0x04, STBCR4);\ 17 writeb(readb(STBCR4) & ~0x80, STBCR4);\ 20 writeb(readb(STBCR4) & ~0x10, STBCR4);\
|
/openbmc/linux/drivers/net/ethernet/i825xx/ |
H A D | sni_82596.c | 113 mac[0] = readb(eth_addr + 0x0b); in sni_82596_probe() 114 mac[1] = readb(eth_addr + 0x0a); in sni_82596_probe() 115 mac[2] = readb(eth_addr + 0x09); in sni_82596_probe() 116 mac[3] = readb(eth_addr + 0x08); in sni_82596_probe() 117 mac[4] = readb(eth_addr + 0x07); in sni_82596_probe() 118 mac[5] = readb(eth_addr + 0x06); in sni_82596_probe()
|