/linux/drivers/input/mouse/ |
H A D | elan_i2c_smbus.c | 57 u8 values[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_initialize() 118 u8 buf[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_calibrate_result() 135 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_baseline_data() 154 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_version() 174 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_sm_version() 192 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_product_id() 209 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_checksum() 230 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_max() 250 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_resolution() 271 u8 val[I2C_SMBUS_BLOCK_MAX] = {0}; in elan_smbus_get_num_traces() [all …]
|
/linux/drivers/i2c/ |
H A D | i2c-core-smbus.c | 256 if (length > I2C_SMBUS_BLOCK_MAX) in i2c_smbus_write_block_data() 257 length = I2C_SMBUS_BLOCK_MAX; in i2c_smbus_write_block_data() 273 if (length > I2C_SMBUS_BLOCK_MAX) in i2c_smbus_read_i2c_block_data() 274 length = I2C_SMBUS_BLOCK_MAX; in i2c_smbus_read_i2c_block_data() 292 if (length > I2C_SMBUS_BLOCK_MAX) in i2c_smbus_write_i2c_block_data() 293 length = I2C_SMBUS_BLOCK_MAX; in i2c_smbus_write_i2c_block_data() 307 dma_buf = kzalloc(I2C_SMBUS_BLOCK_MAX + (is_read ? 2 : 3), GFP_KERNEL); in i2c_smbus_try_get_dmabuf() 333 unsigned char msgbuf0[I2C_SMBUS_BLOCK_MAX+3]; in i2c_smbus_xfer_emulated() 334 unsigned char msgbuf1[I2C_SMBUS_BLOCK_MAX+2]; in i2c_smbus_xfer_emulated() 403 if (msg[0].len > I2C_SMBUS_BLOCK_MAX + 2) { in i2c_smbus_xfer_emulated() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-viapro.c | 114 for (i = 0; i < I2C_SMBUS_BLOCK_MAX / 2; i++) in vt596_dump_regs() 118 for (; i < I2C_SMBUS_BLOCK_MAX - 1; i++) in vt596_dump_regs() 236 if (len > I2C_SMBUS_BLOCK_MAX) in vt596_access() 237 len = I2C_SMBUS_BLOCK_MAX; in vt596_access() 274 if (data->block[0] > I2C_SMBUS_BLOCK_MAX) in vt596_access() 275 data->block[0] = I2C_SMBUS_BLOCK_MAX; in vt596_access()
|
H A D | i2c-ismt.c | 178 u8 buffer[I2C_SMBUS_BLOCK_MAX + 16]; /* temp R/W data buffer */ 521 if (data->block[0] < 1 || data->block[0] > I2C_SMBUS_BLOCK_MAX) in ismt_access() 533 dma_size = I2C_SMBUS_BLOCK_MAX; in ismt_access() 543 if (data->block[0] > I2C_SMBUS_BLOCK_MAX) in ismt_access() 546 dma_size = I2C_SMBUS_BLOCK_MAX; in ismt_access() 561 if (data->block[0] > I2C_SMBUS_BLOCK_MAX) in ismt_access() 562 data->block[0] = I2C_SMBUS_BLOCK_MAX; in ismt_access()
|
H A D | i2c-amd8111.c | 253 I2C_SMBUS_BLOCK_MAX); in amd8111_access() 270 I2C_SMBUS_BLOCK_MAX); in amd8111_access() 306 I2C_SMBUS_BLOCK_MAX - 1); in amd8111_access() 383 len = min_t(u8, len, I2C_SMBUS_BLOCK_MAX); in amd8111_access()
|
H A D | i2c-pasemi-core.c | 236 I2C_SMBUS_BLOCK_MAX); in pasemi_smb_xfer() 240 len = min_t(u8, data->block[0], I2C_SMBUS_BLOCK_MAX); in pasemi_smb_xfer() 257 len = min_t(u8, data->block[0], I2C_SMBUS_BLOCK_MAX - 1); in pasemi_smb_xfer() 268 I2C_SMBUS_BLOCK_MAX - len); in pasemi_smb_xfer()
|
H A D | i2c-isch.c | 217 if (len == 0 || len > I2C_SMBUS_BLOCK_MAX) in sch_access() 253 if (data->block[0] == 0 || data->block[0] > I2C_SMBUS_BLOCK_MAX) in sch_access()
|
/linux/include/uapi/linux/ |
H A D | i2c.h | 140 #define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */ macro 144 __u8 block[I2C_SMBUS_BLOCK_MAX + 2]; /* block[0] is used for length */
|
/linux/drivers/hwmon/pmbus/ |
H A D | ucd9000.c | 64 u8 fan_data[UCD9000_NUM_FAN][I2C_SMBUS_BLOCK_MAX]; 397 u8 buffer[I2C_SMBUS_BLOCK_MAX]; in ucd9000_debugfs_show_mfr_status_bit() 421 u8 buffer[I2C_SMBUS_BLOCK_MAX]; in ucd9000_debugfs_read_mfr_status() 422 char str[(I2C_SMBUS_BLOCK_MAX * 2) + 2]; in ucd9000_debugfs_read_mfr_status() 430 res = bin2hex(str, buffer, min(rc, I2C_SMBUS_BLOCK_MAX)); in ucd9000_debugfs_read_mfr_status() 502 u8 block_buffer[I2C_SMBUS_BLOCK_MAX + 1]; in ucd9000_probe()
|
H A D | acbel-fsg032.c | 22 u8 data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; in acbel_fsg032_debugfs_read() 68 u8 buf[I2C_SMBUS_BLOCK_MAX + 1]; in acbel_fsg032_probe()
|
H A D | inspur-ipsps.c | 60 char data[I2C_SMBUS_BLOCK_MAX + 1]; in ipsps_string_show() 82 u8 data[I2C_SMBUS_BLOCK_MAX] = { 0 }; in ipsps_fw_version_show()
|
H A D | q54sj108a2.c | 80 char data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; in q54sj108a2_debugfs_read() 81 char data_char[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; in q54sj108a2_debugfs_read() 280 u8 buf[I2C_SMBUS_BLOCK_MAX + 1]; in q54sj108a2_probe()
|
H A D | tps53679.c | 91 u8 buf[I2C_SMBUS_BLOCK_MAX]; in tps53679_identify_chip() 152 u8 buf[I2C_SMBUS_BLOCK_MAX]; in tps53676_identify()
|
H A D | ir36021.c | 31 u8 buf[I2C_SMBUS_BLOCK_MAX]; in ir36021_probe()
|
H A D | max15301.c | 59 u8 device_id[I2C_SMBUS_BLOCK_MAX + 1]; in max15301_probe()
|
H A D | ibm-cffps.c | 137 char data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; in ibm_cffps_debugfs_read() 154 rc = snprintf(data, I2C_SMBUS_BLOCK_MAX, "%d", rc); in ibm_cffps_debugfs_read() 503 char mfg_id[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; in ibm_cffps_probe()
|
H A D | mp5920.c | 43 u8 buf[I2C_SMBUS_BLOCK_MAX]; in mp5920_probe()
|
H A D | max16601.c | 76 u8 buf[I2C_SMBUS_BLOCK_MAX + 1]; in max16601_read_word() 277 u8 buf[I2C_SMBUS_BLOCK_MAX + 1]; in max16601_get_id()
|
/linux/drivers/char/tpm/ |
H A D | tpm_tis_i2c.c | 207 if (msg.len > I2C_SMBUS_BLOCK_MAX) in tpm_tis_i2c_read_bytes() 208 msg.len = I2C_SMBUS_BLOCK_MAX; in tpm_tis_i2c_read_bytes() 243 if (msg.len > I2C_SMBUS_BLOCK_MAX) in tpm_tis_i2c_write_bytes() 244 msg.len = I2C_SMBUS_BLOCK_MAX; in tpm_tis_i2c_write_bytes()
|
/linux/drivers/base/regmap/ |
H A D | regmap-i2c.c | 245 .max_raw_read = I2C_SMBUS_BLOCK_MAX - 1, 246 .max_raw_write = I2C_SMBUS_BLOCK_MAX - 1, 302 .max_raw_read = I2C_SMBUS_BLOCK_MAX - 2, 303 .max_raw_write = I2C_SMBUS_BLOCK_MAX - 2,
|
/linux/include/trace/events/ |
H A D | smbus.h | 39 __array(__u8, buf, I2C_SMBUS_BLOCK_MAX + 2) ), 105 __array(__u8, buf, I2C_SMBUS_BLOCK_MAX + 2) ), 147 __array(__u8, buf, I2C_SMBUS_BLOCK_MAX + 2) ),
|
/linux/drivers/mfd/ |
H A D | 88pm860x-i2c.c | 86 unsigned char msgbuf0[I2C_SMBUS_BLOCK_MAX + 3]; in read_device() 87 unsigned char msgbuf1[I2C_SMBUS_BLOCK_MAX + 2]; in read_device()
|
/linux/drivers/misc/eeprom/ |
H A D | idt_89hpesx.c | 429 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_write_block() 453 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_read_block() 479 u8 ccode, buf[I2C_SMBUS_BLOCK_MAX + 1]; in idt_smb_write_i2c_block() 482 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_write_i2c_block() 509 u8 ccode, buf[I2C_SMBUS_BLOCK_MAX + 1]; in idt_smb_read_i2c_block() 513 if (seq->bytecnt > I2C_SMBUS_BLOCK_MAX) in idt_smb_read_i2c_block()
|
H A D | ee1004.c | 143 if (count > I2C_SMBUS_BLOCK_MAX) in ee1004_eeprom_read() 144 count = I2C_SMBUS_BLOCK_MAX; in ee1004_eeprom_read()
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-olimex-lcd-olinuxino.c | 189 for (i = 0; i < LCD_OLINUXINO_DATA_LEN; i += I2C_SMBUS_BLOCK_MAX) { in lcd_olinuxino_probe() 193 I2C_SMBUS_BLOCK_MAX, in lcd_olinuxino_probe()
|