Home
last modified time | relevance | path

Searched refs:byte_addr (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Dpflash-cfi02-test.c104 static inline void flash_write(const FlashConfig *c, uint64_t byte_addr, in flash_write() argument
109 uint64_t addr = BASE_ADDR + byte_addr; in flash_write()
128 static inline uint64_t flash_read(const FlashConfig *c, uint64_t byte_addr) in flash_read() argument
130 uint64_t addr = BASE_ADDR + byte_addr; in flash_read()
199 static void sector_erase(const FlashConfig *c, uint64_t byte_addr) in sector_erase() argument
204 flash_write(c, byte_addr, replicate(c, SECTOR_ERASE_CMD)); in sector_erase()
207 static void wait_for_completion(const FlashConfig *c, uint64_t byte_addr) in wait_for_completion() argument
211 if ((flash_read(c, byte_addr) & dq6) ^ (flash_read(c, byte_addr) & dq6)) { in wait_for_completion()
215 g_assert_cmphex(flash_read(c, byte_addr), ==, flash_read(c, byte_addr)); in wait_for_completion()
219 static void bypass_program(const FlashConfig *c, uint64_t byte_addr, in bypass_program() argument
[all …]
/openbmc/linux/drivers/mtd/nand/
H A Decc-sw-hamming.c379 unsigned int byte_addr; in ecc_sw_hamming_correct() local
426 byte_addr = (addressbits[b1] << 4) + addressbits[b0]; in ecc_sw_hamming_correct()
428 byte_addr = (addressbits[b2 & 0x3] << 8) + in ecc_sw_hamming_correct()
432 buf[byte_addr] ^= (1 << bit_addr); in ecc_sw_hamming_correct()
/openbmc/linux/arch/mips/cavium-octeon/executive/
H A Docteon-model.c39 static uint8_t __init cvmx_fuse_read_byte(int byte_addr) in cvmx_fuse_read_byte() argument
44 read_cmd.s.addr = byte_addr; in cvmx_fuse_read_byte()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dzynq_nand.c382 unsigned int byte_addr; in zynq_nand_correct_data() local
401 byte_addr = (ecc_odd >> 3) & 0x1ff; in zynq_nand_correct_data()
405 buf[byte_addr] ^= (1 << bit_addr); in zynq_nand_correct_data()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dpl35x-nand-controller.c400 unsigned short byte_addr, bit_addr; in pl35x_nand_correct_data() local
422 byte_addr = (ecc_odd >> 3) & PL35X_NAND_ECC_BYTE_OFF_MASK; in pl35x_nand_correct_data()
426 buf[byte_addr] ^= (BIT(bit_addr)); in pl35x_nand_correct_data()
H A Dstm32_fmc2_nand.c518 u32 byte_addr = 0, b; in stm32_fmc2_nfc_ham_correct() local
551 byte_addr += shifting; in stm32_fmc2_nfc_ham_correct()
563 dat[byte_addr] ^= (1 << bit_position); in stm32_fmc2_nfc_ham_correct()