Lines Matching full:quirks
170 const struct i2c_adapter_quirks *quirks; in i2c_check_for_quirks() local
176 quirks = adapter->quirks; in i2c_check_for_quirks()
177 if (quirks == NULL) in i2c_check_for_quirks()
181 max_nmsgs = quirks->max_num_msgs; in i2c_check_for_quirks()
183 if (quirks->flags & I2C_AQ_COMB) { in i2c_check_for_quirks()
187 if (quirks->flags & I2C_AQ_COMB_WRITE_FIRST && in i2c_check_for_quirks()
194 if (quirks->flags & I2C_AQ_COMB_READ_SECOND && in i2c_check_for_quirks()
202 if (quirks->flags & I2C_AQ_COMB_SAME_ADDR && in i2c_check_for_quirks()
211 if (quirks->max_comb_1st_msg_len && in i2c_check_for_quirks()
212 msgs[0].len > quirks->max_comb_1st_msg_len) { in i2c_check_for_quirks()
217 quirks->max_comb_1st_msg_len); in i2c_check_for_quirks()
220 if (quirks->max_comb_2nd_msg_len && in i2c_check_for_quirks()
221 msgs[1].len > quirks->max_comb_2nd_msg_len) { in i2c_check_for_quirks()
226 quirks->max_comb_2nd_msg_len); in i2c_check_for_quirks()
243 if (check_len && quirks->max_read_len && in i2c_check_for_quirks()
244 msgs[i].len > quirks->max_read_len) { in i2c_check_for_quirks()
248 i, msgs[i].len, quirks->max_read_len); in i2c_check_for_quirks()
251 if (quirks->flags & I2C_AQ_NO_ZERO_LEN_READ && in i2c_check_for_quirks()
258 if (check_len && quirks->max_write_len && in i2c_check_for_quirks()
259 msgs[i].len > quirks->max_write_len) { in i2c_check_for_quirks()
262 i, msgs[i].len, quirks->max_write_len); in i2c_check_for_quirks()
265 if (quirks->flags & I2C_AQ_NO_ZERO_LEN_WRITE && in i2c_check_for_quirks()