Lines Matching refs:addr
19 #define CHIMP_PREPARE_ACCESS_WINDOW(addr) \ argument
23 addr & 0xffc00000)\
25 #define CHIMP_INDIRECT_TGT_ADDR(addr) \ argument
26 (CHIMP_INDIRECT_BASE + (addr & CHIMP_INDIRECT_ADDR_MASK))
37 void bcm_chimp_write(uintptr_t addr, uint32_t value) in bcm_chimp_write() argument
39 CHIMP_PREPARE_ACCESS_WINDOW(addr); in bcm_chimp_write()
40 mmio_write_32(CHIMP_INDIRECT_TGT_ADDR(addr), value); in bcm_chimp_write()
43 uint32_t bcm_chimp_read(uintptr_t addr) in bcm_chimp_read() argument
45 CHIMP_PREPARE_ACCESS_WINDOW(addr); in bcm_chimp_read()
46 return mmio_read_32(CHIMP_INDIRECT_TGT_ADDR(addr)); in bcm_chimp_read()
49 void bcm_chimp_clrbits(uintptr_t addr, uint32_t bits) in bcm_chimp_clrbits() argument
51 CHIMP_PREPARE_ACCESS_WINDOW(addr); in bcm_chimp_clrbits()
52 mmio_clrbits_32(CHIMP_INDIRECT_TGT_ADDR(addr), bits); in bcm_chimp_clrbits()
55 void bcm_chimp_setbits(uintptr_t addr, uint32_t bits) in bcm_chimp_setbits() argument
57 CHIMP_PREPARE_ACCESS_WINDOW(addr); in bcm_chimp_setbits()
58 mmio_setbits_32(CHIMP_INDIRECT_TGT_ADDR(addr), bits); in bcm_chimp_setbits()
260 static int bcm_chimp_find_fw_in_spi(uintptr_t *addr, size_t *size) in bcm_chimp_find_fw_in_spi() argument
302 *addr = ((uintptr_t)dir_block_hdr + dir_block_hdr->length + in bcm_chimp_find_fw_in_spi()
304 dir_entry = (bnxnvm_directory_entry_t *)(*addr); in bcm_chimp_find_fw_in_spi()
315 *addr = QSPI_BASE_ADDR + dir_entry->item_location; in bcm_chimp_find_fw_in_spi()
319 *addr, *size); in bcm_chimp_find_fw_in_spi()