Home
last modified time | relevance | path

Searched refs:i2c_buf (Results 1 – 11 of 11) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/touchscreen/hyn_cst2xx/
H A Dhyn_cst2xx.c345 unsigned char *i2c_buf; in cst2xx_download_program() local
350 i2c_buf = kmalloc(sizeof(unsigned char)*(512 + 2), GFP_KERNEL); in cst2xx_download_program()
351 if (i2c_buf == NULL) in cst2xx_download_program()
361 i2c_buf[0] = 0xA0; in cst2xx_download_program()
362 i2c_buf[1] = 0x14; in cst2xx_download_program()
364 i2c_buf[2] = eep_addr; in cst2xx_download_program()
365 i2c_buf[3] = eep_addr>>8; in cst2xx_download_program()
366 ret = cst2xx_i2c_write(ts->client, i2c_buf, 4); in cst2xx_download_program()
371 i2c_buf[0] = 0xA0; in cst2xx_download_program()
372 i2c_buf[1] = 0x18; in cst2xx_download_program()
[all …]
/OK3568_Linux_fs/u-boot/board/theadorable/
H A Dtheadorable.c252 u8 i2c_buf[8]; in board_late_init() local
264 i2c_buf[0] = STM_I2C_ADDR << 1; in board_late_init()
265 i2c_buf[1] = 0xc5; /* cmd */ in board_late_init()
266 i2c_buf[2] = 0x01; /* enable */ in board_late_init()
268 i2c_buf[3] = REBOOT_DELAY & 0x00ff; in board_late_init()
269 i2c_buf[4] = (REBOOT_DELAY & 0xff00) >> 8; in board_late_init()
271 i2c_buf[5] = 0x00; in board_late_init()
272 i2c_buf[6] = 0x00; in board_late_init()
273 i2c_buf[7] = crc8(0x72, &i2c_buf[0], 7); in board_late_init()
275 ret = i2c_write(STM_I2C_ADDR, 0, 0, &i2c_buf[1], 7); in board_late_init()
/OK3568_Linux_fs/kernel/drivers/media/usb/hdpvr/
H A Dhdpvr-i2c.c56 if ((len > sizeof(dev->i2c_buf)) || (wlen > sizeof(dev->i2c_buf))) in hdpvr_i2c_read()
60 memcpy(dev->i2c_buf, wdata, wlen); in hdpvr_i2c_read()
63 (bus << 8) | addr, 0, dev->i2c_buf, in hdpvr_i2c_read()
71 (bus << 8) | addr, 0, dev->i2c_buf, len, 1000); in hdpvr_i2c_read()
74 memcpy(data, dev->i2c_buf, len); in hdpvr_i2c_read()
87 if (len > sizeof(dev->i2c_buf)) in hdpvr_i2c_write()
90 memcpy(dev->i2c_buf, data, len); in hdpvr_i2c_write()
93 (bus << 8) | addr, 0, dev->i2c_buf, len, 1000); in hdpvr_i2c_write()
100 0, 0, dev->i2c_buf, 2, 1000); in hdpvr_i2c_write()
102 if ((ret == 2) && (dev->i2c_buf[1] == (len - 1))) in hdpvr_i2c_write()
H A Dhdpvr.h115 char i2c_buf[HDPVR_I2C_MAX_SIZE]; member
/OK3568_Linux_fs/kernel/drivers/media/pci/pt3/
H A Dpt3.c688 kfree(pt3->i2c_buf); in pt3_remove()
756 pt3->i2c_buf = kmalloc(sizeof(*pt3->i2c_buf), GFP_KERNEL); in pt3_probe()
757 if (pt3->i2c_buf == NULL) { in pt3_probe()
803 kfree(pt3->i2c_buf); in pt3_probe()
H A Dpt3.h155 struct pt3_i2cbuf *i2c_buf; member
H A Dpt3_i2c.c200 cbuf = pt3->i2c_buf; in pt3_i2c_master_xfer()
/OK3568_Linux_fs/kernel/drivers/media/pci/ddbridge/
H A Dddbridge-i2c.c169 i2c->bsize = regmap->i2c_buf->size; in ddb_i2c_add()
171 (regmap->i2c_buf->base + i2c->bsize * i); in ddb_i2c_add()
H A Dddbridge-hw.c79 .i2c_buf = &octopus_i2c_buf,
H A Dddbridge.h82 const struct ddb_regset *i2c_buf; member
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-m41t80.c645 unsigned char i2c_data[2], i2c_buf[0x10]; in wdt_disable() local
657 .buf = i2c_buf, in wdt_disable()