Lines Matching refs:addr
35 static int addr_to_apid(uint32_t addr) in addr_to_apid() argument
41 if ((reg != 0U) && ((addr & PPID_MASK) == (reg & PPID_MASK))) { in addr_to_apid()
69 static void arb_command(uint16_t apid, uint8_t opcode, uint32_t addr, in arb_command() argument
73 (addr & 0xff) << 4 | (bytes - 1)); in arb_command()
76 int spmi_arb_read8(uint32_t addr) in spmi_arb_read8() argument
78 int apid = addr_to_apid(addr); in spmi_arb_read8()
84 arb_command(apid, OPC_EXT_READL, addr, 1); in spmi_arb_read8()
88 ERROR("SPMI_ARB read error [0x%x]: 0x%x\n", addr, ret); in spmi_arb_read8()
95 int spmi_arb_write8(uint32_t addr, uint8_t data) in spmi_arb_write8() argument
97 int apid = addr_to_apid(addr); in spmi_arb_write8()
104 arb_command(apid, OPC_EXT_WRITEL, addr, 1); in spmi_arb_write8()
109 addr, data, ret); in spmi_arb_write8()