Lines Matching +refs:get +refs:addr +refs:attrs
503 u8 *addr, int addr_length, in cp2112_i2c_write_read_req() argument
516 memcpy(report->target_address, addr, addr_length); in cp2112_i2c_write_read_req()
536 str_read_write(msgs->flags & I2C_M_RD), msgs->addr, msgs->len); in cp2112_i2c_xfer()
540 count = cp2112_read_req(buf, msgs->addr, msgs->len); in cp2112_i2c_xfer()
542 count = cp2112_i2c_write_req(buf, msgs->addr, in cp2112_i2c_xfer()
549 msgs[0].addr == msgs[1].addr && in cp2112_i2c_xfer()
552 msgs[0].addr, msgs[0].len, msgs[1].len); in cp2112_i2c_xfer()
555 count = cp2112_i2c_write_read_req(buf, msgs[0].addr, in cp2112_i2c_xfer()
635 static int cp2112_xfer(struct i2c_adapter *adap, u16 addr, in cp2112_xfer() argument
650 addr, flags, command, size); in cp2112_xfer()
657 count = cp2112_read_req(buf, addr, read_length); in cp2112_xfer()
659 count = cp2112_write_req(buf, addr, command, NULL, in cp2112_xfer()
666 count = cp2112_write_read_req(buf, addr, read_length, in cp2112_xfer()
669 count = cp2112_write_req(buf, addr, command, in cp2112_xfer()
677 count = cp2112_write_read_req(buf, addr, read_length, in cp2112_xfer()
680 count = cp2112_write_req(buf, addr, command, in cp2112_xfer()
689 count = cp2112_write_read_req(buf, addr, read_length, command, in cp2112_xfer()
695 count = cp2112_write_read_req(buf, addr, read_length, in cp2112_xfer()
698 count = cp2112_write_req(buf, addr, command, in cp2112_xfer()
705 count = cp2112_write_read_req(buf, addr, in cp2112_xfer()
709 count = cp2112_write_req(buf, addr, command, in cp2112_xfer()
718 count = cp2112_write_read_req(buf, addr, I2C_SMBUS_BLOCK_MAX, in cp2112_xfer()
1027 .attrs = (struct attribute *[]){
1059 for (attr = cp2112_attr_group.attrs; *attr; ++attr) { in chmod_sysfs_attrs()
1296 dev->gc.get = cp2112_gpio_get; in cp2112_probe()