Lines Matching full:item

65 	const struct rmi_register_desc_item *item;  in rmi_f12_read_sensor_tuning()  local
77 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning()
78 if (!item) { in rmi_f12_read_sensor_tuning()
86 if (item->reg_size > sizeof(buf)) { in rmi_f12_read_sensor_tuning()
89 sizeof(buf), item->reg_size); in rmi_f12_read_sensor_tuning()
94 item->reg_size); in rmi_f12_read_sensor_tuning()
99 if (rmi_register_desc_has_subpacket(item, 0)) { in rmi_f12_read_sensor_tuning()
108 if (rmi_register_desc_has_subpacket(item, 1)) { in rmi_f12_read_sensor_tuning()
114 if (rmi_register_desc_has_subpacket(item, 2)) { in rmi_f12_read_sensor_tuning()
125 if (rmi_register_desc_has_subpacket(item, 3)) { in rmi_f12_read_sensor_tuning()
132 if (rmi_register_desc_has_subpacket(item, 4)) in rmi_f12_read_sensor_tuning()
239 const struct rmi_register_desc_item *item; in rmi_f12_write_control_regs() local
249 item = rmi_get_register_desc_item(&f12->control_reg_desc, 20); in rmi_f12_write_control_regs()
250 if (item) { in rmi_f12_write_control_regs()
260 control_size = min(item->reg_size, 3UL); in rmi_f12_write_control_regs()
267 if (rmi_register_desc_has_subpacket(item, 0)) in rmi_f12_write_control_regs()
325 const struct rmi_register_desc_item *item; in rmi_f12_probe() local
438 item = rmi_get_register_desc_item(&f12->data_reg_desc, 0); in rmi_f12_probe()
439 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
440 data_offset += item->reg_size; in rmi_f12_probe()
442 item = rmi_get_register_desc_item(&f12->data_reg_desc, 1); in rmi_f12_probe()
443 if (item) { in rmi_f12_probe()
444 f12->data1 = item; in rmi_f12_probe()
446 data_offset += item->reg_size; in rmi_f12_probe()
447 sensor->nbr_fingers = item->num_subpackets; in rmi_f12_probe()
449 sensor->attn_size += item->reg_size; in rmi_f12_probe()
452 item = rmi_get_register_desc_item(&f12->data_reg_desc, 2); in rmi_f12_probe()
453 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
454 data_offset += item->reg_size; in rmi_f12_probe()
456 item = rmi_get_register_desc_item(&f12->data_reg_desc, 3); in rmi_f12_probe()
457 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
458 data_offset += item->reg_size; in rmi_f12_probe()
460 item = rmi_get_register_desc_item(&f12->data_reg_desc, 4); in rmi_f12_probe()
461 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
462 data_offset += item->reg_size; in rmi_f12_probe()
464 item = rmi_get_register_desc_item(&f12->data_reg_desc, 5); in rmi_f12_probe()
465 if (item) { in rmi_f12_probe()
466 f12->data5 = item; in rmi_f12_probe()
468 data_offset += item->reg_size; in rmi_f12_probe()
469 sensor->attn_size += item->reg_size; in rmi_f12_probe()
472 item = rmi_get_register_desc_item(&f12->data_reg_desc, 6); in rmi_f12_probe()
473 if (item && !drvdata->attn_data.data) { in rmi_f12_probe()
474 f12->data6 = item; in rmi_f12_probe()
476 data_offset += item->reg_size; in rmi_f12_probe()
479 item = rmi_get_register_desc_item(&f12->data_reg_desc, 7); in rmi_f12_probe()
480 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
481 data_offset += item->reg_size; in rmi_f12_probe()
483 item = rmi_get_register_desc_item(&f12->data_reg_desc, 8); in rmi_f12_probe()
484 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
485 data_offset += item->reg_size; in rmi_f12_probe()
487 item = rmi_get_register_desc_item(&f12->data_reg_desc, 9); in rmi_f12_probe()
488 if (item && !drvdata->attn_data.data) { in rmi_f12_probe()
489 f12->data9 = item; in rmi_f12_probe()
491 data_offset += item->reg_size; in rmi_f12_probe()
496 item = rmi_get_register_desc_item(&f12->data_reg_desc, 10); in rmi_f12_probe()
497 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
498 data_offset += item->reg_size; in rmi_f12_probe()
500 item = rmi_get_register_desc_item(&f12->data_reg_desc, 11); in rmi_f12_probe()
501 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
502 data_offset += item->reg_size; in rmi_f12_probe()
504 item = rmi_get_register_desc_item(&f12->data_reg_desc, 12); in rmi_f12_probe()
505 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
506 data_offset += item->reg_size; in rmi_f12_probe()
508 item = rmi_get_register_desc_item(&f12->data_reg_desc, 13); in rmi_f12_probe()
509 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
510 data_offset += item->reg_size; in rmi_f12_probe()
512 item = rmi_get_register_desc_item(&f12->data_reg_desc, 14); in rmi_f12_probe()
513 if (item && !drvdata->attn_data.data) in rmi_f12_probe()
514 data_offset += item->reg_size; in rmi_f12_probe()
516 item = rmi_get_register_desc_item(&f12->data_reg_desc, 15); in rmi_f12_probe()
517 if (item && !drvdata->attn_data.data) { in rmi_f12_probe()
518 f12->data15 = item; in rmi_f12_probe()
520 data_offset += item->reg_size; in rmi_f12_probe()