Home
last modified time | relevance | path

Searched refs:inb (Results 1 – 25 of 40) sorted by relevance

12

/u-boot/drivers/i2c/
A Dintel_i2c.c72 byte = inb(base + SMBHSTSTAT); in smbus_wait_until_ready()
87 byte = inb(base + SMBHSTSTAT); in smbus_wait_until_done()
110 inb(base + SMBHSTCTL); in smbus_block_read()
117 outb((inb(base + SMBHSTCTL) & (~(0x7) << 2)) | (0x5 << 2), in smbus_block_read()
120 outb(inb(base + SMBHSTSTAT), base + SMBHSTSTAT); in smbus_block_read()
131 count = inb(base + SMBHSTDAT0); in smbus_block_read()
150 buf_temp[i] = inb(base + SMBBLKDAT); in smbus_block_read()
155 if (!(inb(base + SMBHSTSTAT) & SMBHSTSTS_INTR)) in smbus_block_read()
177 outb((inb(base + SMBHSTCTL) & (~(0x7) << 2)) | (0x5 << 2), in smbus_block_write()
180 outb(inb(base + SMBHSTSTAT), base + SMBHSTSTAT); in smbus_block_write()
[all …]
/u-boot/arch/x86/cpu/qemu/
A Ddram.c19 ram = ((u32)inb(CMOS_DATA_PORT)) << 14; in qemu_get_low_memory_size()
21 ram |= ((u32)inb(CMOS_DATA_PORT)) << 6; in qemu_get_low_memory_size()
32 ram = ((u64)inb(CMOS_DATA_PORT)) << 22; in qemu_get_high_memory_size()
34 ram |= ((u64)inb(CMOS_DATA_PORT)) << 14; in qemu_get_high_memory_size()
36 ram |= ((u64)inb(CMOS_DATA_PORT)) << 6; in qemu_get_high_memory_size()
A Dqemu.c45 data[i++] = inb(FW_DATA_PORT); in qemu_x86_fwcfg_read_entry_pio()
/u-boot/drivers/misc/
A Dcros_ec_lpc.c74 *d = inb(EC_LPC_ADDR_HOST_PACKET + i); in cros_ec_lpc_packet()
136 i = inb(data_addr); in cros_ec_lpc_command()
144 *d = inb(args_addr + i); in cros_ec_lpc_command()
164 *d = inb(param_addr + i); in cros_ec_lpc_command()
197 byte &= inb(EC_LPC_ADDR_HOST_CMD); in cros_ec_lpc_init()
198 byte &= inb(EC_LPC_ADDR_HOST_DATA); in cros_ec_lpc_init()
200 byte &= inb(EC_LPC_ADDR_HOST_PARAM + i); in cros_ec_lpc_init()
213 return inb(EC_LPC_ADDR_MEMMAP + EC_MEMMAP_SWITCHES); in cros_ec_lpc_get_switches()
226 if (inb(EC_LPC_ADDR_MEMMAP + EC_MEMMAP_ID) == 'E' && in cros_ec_lpc_check_version()
227 inb(EC_LPC_ADDR_MEMMAP + EC_MEMMAP_ID + 1) in cros_ec_lpc_check_version()
[all …]
A Dsmsc_sio1007.c15 return inb(port + 1); in sio1007_read()
102 val = inb(port + reg); in sio1007_gpio_get_value()
121 data = inb(port + reg); in sio1007_gpio_set_value()
A Dali512x.c52 return inb(ALI_DATA);
377 data = inb(ALI_CIO_DATA); in ali512x_cio_out()
398 data = inb(ALI_CIO_DATA); in ali512x_cio_in()
A Dnuvoton_nct6102d.c20 return inb(NCT_EFDR); in superio_inb()
/u-boot/scripts/dtc/
A Dflattree.c586 inb->base = base; in inbuf_init()
587 inb->limit = limit; in inbuf_init()
588 inb->ptr = inb->base; in inbuf_init()
593 if ((inb->ptr + len) > inb->limit) in flat_read_chunk()
598 inb->ptr += len; in flat_read_chunk()
605 assert(((inb->ptr - inb->base) % sizeof(val)) == 0); in flat_read_word()
614 int off = inb->ptr - inb->base; in flat_realign()
616 inb->ptr = inb->base + ALIGN(off, align); in flat_realign()
617 if (inb->ptr > inb->limit) in flat_realign()
635 inb->ptr += len; in flat_read_string()
[all …]
/u-boot/arch/x86/lib/
A Di8259.c79 outb(inb(imr_port) | (1 << (irq & 7)), imr_port); in mask_irq()
94 outb(inb(imr_port) & ~(1 << (irq & 7)), imr_port); in unmask_irq()
117 u16 int_bits = inb(ELCR1) | (((u16)inb(ELCR2)) << 8); in configure_irq_trigger()
A Dearly_cmos.c21 return inb(CMOS_IO_PORT + 1); in cmos_read8()
/u-boot/include/
A Data.h80 #define ATA_GET_ERR() inb(ATA_STATUS)
81 #define ATA_GET_STAT() inb(ATA_STATUS)
A Dusbdevice.h49 #ifndef inb
50 #define inb(p) (*(volatile u8*)(p)) macro
110 *(__b2 + __i) = inb(r); \
/u-boot/arch/sh/cpu/sh4/
A Dwatchdog.c19 return inb(WDT_BASE + 0x04); in csr_read()
/u-boot/arch/microblaze/include/asm/
A Dio.h46 #define inb(addr) readb(addr) macro
72 #define inb_p(port) inb((port))
93 *p++ = inb(port); in io_insb()
/u-boot/drivers/timer/
A Dtsc_timer.c231 inb(0x42); in pit_verify_msb()
232 return inb(0x42) == val; in pit_verify_msb()
273 outb((inb(0x61) & ~0x02) | 0x01, 0x61); in quick_pit_calibrate()
/u-boot/test/dm/
A Dpci.c73 ut_asserteq(2, inb(io_addr)); in dm_test_pci_swapcase()
94 ut_asserteq(2, inb(io_addr)); in dm_test_pci_swapcase()
155 ut_asserteq(2, inb(io_addr)); in dm_test_pci_mixed()
179 ut_asserteq(2, inb(io_addr)); in dm_test_pci_mixed()
/u-boot/arch/xtensa/include/asm/
A Dio.h59 #define inb(port) readb((u8 *)((port))) macro
66 #define inb_p(port) inb((port))
/u-boot/arch/x86/include/asm/
A Dpnp_def.h47 return inb(port + 1); in pnp_read_config()
/u-boot/arch/sh/include/asm/
A Dio.h88 #define inb(p) ({ unsigned int __v = __raw_readb(p); __v; }) macro
103 #define inb_p(port) inb((port))
118 #define in_8(port) inb(port)
/u-boot/arch/x86/cpu/
A Dpci.c26 *valuep = inb(PCI_REG_DATA + (offset & 3)); in pci_x86_read_config()
/u-boot/cmd/
A Dio.c79 *ptr = inb(addr + i); in do_io_iod()
/u-boot/arch/nios2/include/asm/
A Dio.h75 #define inb(addr) readb(addr) macro
85 while (count--) *p++ = inb (port); in insb()
/u-boot/drivers/net/
A Drtl8139.c272 retval |= inb(ee_addr) & EE_DATA_READ; in rtl8139_read_eeprom()
311 reg = inb(priv->ioaddr + RTL_REG_CHIPCMD); in rtl8139_hw_reset()
446 if (inb(priv->ioaddr + RTL_REG_CHIPCMD) & RTL_REG_CHIPCMD_RXBUFEMPTY) in rtl8139_recv_common()
522 reg = inb(priv->ioaddr + RTL_REG_MEDIASTATUS); in rtl8139_init_common()
/u-boot/drivers/bios_emulator/include/
A Dx86emu.h90 u8(X86APIP inb) (X86EMU_pioAddr addr);
/u-boot/drivers/serial/
A Dserial_omap.c51 return inb((ulong)addr); in serial_in_shift()

Completed in 26 milliseconds

12