Home
last modified time | relevance | path

Searched refs:addrdir (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/i2c/busses/
Di2c-powermac.c39 int addrdir = (addr << 1) | read; in i2c_powermac_smbus_xfer() local
106 rc = pmac_i2c_xfer(bus, addrdir, subsize, subaddr, buf, len); in i2c_powermac_smbus_xfer()
111 "err %d\n", addrdir >> 1, size, rc); in i2c_powermac_smbus_xfer()
115 "err %d\n", addrdir >> 1, size, rc); in i2c_powermac_smbus_xfer()
140 int addrdir; in i2c_powermac_master_xfer() local
144 addrdir = i2c_8bit_addr_from_msg(msgs); in i2c_powermac_master_xfer()
157 rc = pmac_i2c_xfer(bus, addrdir, 0, 0, msgs->buf, msgs->len); in i2c_powermac_master_xfer()
161 addrdir & 1 ? "read from" : "write to", in i2c_powermac_master_xfer()
162 addrdir >> 1, rc); in i2c_powermac_master_xfer()
165 addrdir & 1 ? "read from" : "write to", in i2c_powermac_master_xfer()
[all …]
/linux-6.1.9/arch/powerpc/platforms/powermac/
Dlow_i2c.c94 int (*xfer)(struct pmac_i2c_bus *bus, u8 addrdir, int subsize,
396 static int kw_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, in kw_i2c_xfer() argument
432 kw_write_reg(reg_addr, addrdir & 0xff); in kw_i2c_xfer()
444 host->rw = (addrdir & 1); in kw_i2c_xfer()
673 static int pmu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, in pmu_i2c_xfer() argument
679 int read = addrdir & 1; in pmu_i2c_xfer()
698 hdr->address = addrdir; in pmu_i2c_xfer()
705 hdr->address = addrdir & 0xfe; in pmu_i2c_xfer()
706 hdr->comb_addr = addrdir; in pmu_i2c_xfer()
840 static int smu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, in smu_i2c_xfer() argument
[all …]
/linux-6.1.9/arch/powerpc/include/asm/
Dpmac_low_i2c.h90 extern int pmac_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize,