Home
last modified time | relevance | path

Searched refs:I2C_SMBUS_BLOCK_MAX (Results 1 – 25 of 69) sorted by relevance

123

/linux/drivers/input/mouse/
H A Delan_i2c_smbus.c57 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 Di2c-core-smbus.c256 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 Di2c-viapro.c114 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 Di2c-ismt.c178 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 Di2c-amd8111.c253 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 Di2c-pasemi-core.c236 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 Di2c-isch.c217 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 Di2c.h140 #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 Ducd9000.c64 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 Dacbel-fsg032.c22 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 Dinspur-ipsps.c60 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 Dq54sj108a2.c80 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 Dtps53679.c91 u8 buf[I2C_SMBUS_BLOCK_MAX]; in tps53679_identify_chip()
152 u8 buf[I2C_SMBUS_BLOCK_MAX]; in tps53676_identify()
H A Dir36021.c31 u8 buf[I2C_SMBUS_BLOCK_MAX]; in ir36021_probe()
H A Dmax15301.c59 u8 device_id[I2C_SMBUS_BLOCK_MAX + 1]; in max15301_probe()
H A Dibm-cffps.c137 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 Dmp5920.c43 u8 buf[I2C_SMBUS_BLOCK_MAX]; in mp5920_probe()
H A Dmax16601.c76 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 Dtpm_tis_i2c.c207 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 Dregmap-i2c.c245 .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 Dsmbus.h39 __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 D88pm860x-i2c.c86 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 Didt_89hpesx.c429 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 Dee1004.c143 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 Dpanel-olimex-lcd-olinuxino.c189 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()

123