Lines Matching refs:index
350 int ret, i, index = -1, status;
354 index = i;
358 /* Make sure integ time index is valid */
359 if (index < 0)
371 if (index > 1)
375 if (index == 1)
378 return regmap_field_write(data->reg_it, index);
385 int ret, index;
387 ret = regmap_field_read(data->reg_it, &index);
391 /* Make sure integ time index is valid */
392 if (index < 0 || index >= ARRAY_SIZE(int_time_mapping))
395 *val2 = int_time_mapping[index];