Lines Matching defs:mcp
74 struct mcp23s08 *mcp[8]; member
82 static int mcp23008_read(struct mcp23s08 *mcp, unsigned reg) in mcp23008_read()
87 static int mcp23008_write(struct mcp23s08 *mcp, unsigned reg, unsigned val) in mcp23008_write()
93 mcp23008_read_regs(struct mcp23s08 *mcp, unsigned reg, u16 *vals, unsigned n) in mcp23008_read_regs()
105 static int mcp23017_read(struct mcp23s08 *mcp, unsigned reg) in mcp23017_read()
110 static int mcp23017_write(struct mcp23s08 *mcp, unsigned reg, unsigned val) in mcp23017_write()
116 mcp23017_read_regs(struct mcp23s08 *mcp, unsigned reg, u16 *vals, unsigned n) in mcp23017_read_regs()
146 static int mcp23s08_read(struct mcp23s08 *mcp, unsigned reg) in mcp23s08_read()
157 static int mcp23s08_write(struct mcp23s08 *mcp, unsigned reg, unsigned val) in mcp23s08_write()
168 mcp23s08_read_regs(struct mcp23s08 *mcp, unsigned reg, u16 *vals, unsigned n) in mcp23s08_read_regs()
187 static int mcp23s17_read(struct mcp23s08 *mcp, unsigned reg) in mcp23s17_read()
198 static int mcp23s17_write(struct mcp23s08 *mcp, unsigned reg, unsigned val) in mcp23s17_write()
210 mcp23s17_read_regs(struct mcp23s08 *mcp, unsigned reg, u16 *vals, unsigned n) in mcp23s17_read_regs()
248 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip); in mcp23s08_direction_input() local
260 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip); in mcp23s08_get() local
277 static int __mcp23s08_set(struct mcp23s08 *mcp, unsigned mask, int value) in __mcp23s08_set()
291 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip); in mcp23s08_set() local
302 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip); in mcp23s08_direction_output() local
328 struct mcp23s08 *mcp; in mcp23s08_dbg_show() local
370 static int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev, in mcp23s08_probe_one()
482 struct mcp23s08 *mcp; in mcp230xx_probe() local
513 struct mcp23s08 *mcp = i2c_get_clientdata(client); in mcp230xx_remove() local