Lines Matching full:sensor
30 struct rmi_2d_sensor sensor; member
67 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
68 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
83 "F12 does not have the sensor tuning control register\n"); in rmi_f12_read_sensor_tuning()
103 sensor->max_x = (buf[offset + 1] << 8) | buf[offset]; in rmi_f12_read_sensor_tuning()
104 sensor->max_y = (buf[offset + 3] << 8) | buf[offset + 2]; in rmi_f12_read_sensor_tuning()
109 sensor->max_x, sensor->max_y); in rmi_f12_read_sensor_tuning()
118 /* Units 1/128 sensor pitch */ in rmi_f12_read_sensor_tuning()
144 sensor->x_mm = sensor->max_x / dpm_resolution; in rmi_f12_read_sensor_tuning()
145 sensor->y_mm = sensor->max_y / dpm_resolution; in rmi_f12_read_sensor_tuning()
153 /* Skip over sensor flags */ in rmi_f12_read_sensor_tuning()
157 sensor->x_mm = (pitch_x * rx_receivers) >> 12; in rmi_f12_read_sensor_tuning()
158 sensor->y_mm = (pitch_y * tx_receivers) >> 12; in rmi_f12_read_sensor_tuning()
162 sensor->x_mm, sensor->y_mm); in rmi_f12_read_sensor_tuning()
170 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_process_objects() local
177 struct rmi_2d_sensor_abs_object *obj = &sensor->objs[i]; in rmi_f12_process_objects()
205 rmi_2d_sensor_abs_process(sensor, obj, i); in rmi_f12_process_objects()
210 if (sensor->kernel_tracking) in rmi_f12_process_objects()
211 input_mt_assign_slots(sensor->input, in rmi_f12_process_objects()
212 sensor->tracking_slots, in rmi_f12_process_objects()
213 sensor->tracking_pos, in rmi_f12_process_objects()
214 sensor->nbr_fingers, in rmi_f12_process_objects()
215 sensor->dmax); in rmi_f12_process_objects()
218 rmi_2d_sensor_abs_report(sensor, &sensor->objs[i], i); in rmi_f12_process_objects()
228 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_attention() local
229 int valid_bytes = sensor->pkt_size; in rmi_f12_attention()
232 if (sensor->attn_size > drvdata->attn_data.size) in rmi_f12_attention()
235 valid_bytes = sensor->attn_size; in rmi_f12_attention()
236 memcpy(sensor->data_pkt, drvdata->attn_data.data, in rmi_f12_attention()
242 sensor->data_pkt, sensor->pkt_size); in rmi_f12_attention()
252 &sensor->data_pkt[f12->data1_offset], valid_bytes); in rmi_f12_attention()
254 input_mt_sync_frame(sensor->input); in rmi_f12_attention()
271 && (f12->sensor.dribble != RMI_REG_STATE_DEFAULT)) { in rmi_f12_write_control_regs()
293 switch (f12->sensor.dribble) { in rmi_f12_write_control_regs()
321 struct rmi_2d_sensor *sensor; in rmi_f12_config() local
324 sensor = &f12->sensor; in rmi_f12_config()
326 if (!sensor->report_abs) in rmi_f12_config()
349 struct rmi_2d_sensor *sensor; in rmi_f12_probe() local
426 sensor = &f12->sensor; in rmi_f12_probe()
427 sensor->fn = fn; in rmi_f12_probe()
429 sensor->pkt_size = rmi_register_desc_calc_size(&f12->data_reg_desc); in rmi_f12_probe()
431 sensor->axis_align = in rmi_f12_probe()
434 sensor->x_mm = f12->sensor_pdata.x_mm; in rmi_f12_probe()
435 sensor->y_mm = f12->sensor_pdata.y_mm; in rmi_f12_probe()
436 sensor->dribble = f12->sensor_pdata.dribble; in rmi_f12_probe()
438 if (sensor->sensor_type == rmi_sensor_default) in rmi_f12_probe()
439 sensor->sensor_type = in rmi_f12_probe()
443 sensor->pkt_size); in rmi_f12_probe()
444 sensor->data_pkt = devm_kzalloc(&fn->dev, sensor->pkt_size, GFP_KERNEL); in rmi_f12_probe()
445 if (!sensor->data_pkt) in rmi_f12_probe()
470 sensor->nbr_fingers = item->num_subpackets; in rmi_f12_probe()
471 sensor->report_abs = 1; in rmi_f12_probe()
472 sensor->attn_size += item->reg_size; in rmi_f12_probe()
492 sensor->attn_size += item->reg_size; in rmi_f12_probe()
515 if (!sensor->report_abs) in rmi_f12_probe()
516 sensor->report_rel = 1; in rmi_f12_probe()
547 sensor->tracking_pos = devm_kcalloc(&fn->dev, in rmi_f12_probe()
548 sensor->nbr_fingers, sizeof(struct input_mt_pos), in rmi_f12_probe()
550 sensor->tracking_slots = devm_kcalloc(&fn->dev, in rmi_f12_probe()
551 sensor->nbr_fingers, sizeof(int), GFP_KERNEL); in rmi_f12_probe()
552 sensor->objs = devm_kcalloc(&fn->dev, in rmi_f12_probe()
553 sensor->nbr_fingers, in rmi_f12_probe()
556 if (!sensor->tracking_pos || !sensor->tracking_slots || !sensor->objs) in rmi_f12_probe()
559 ret = rmi_2d_sensor_configure_input(fn, sensor); in rmi_f12_probe()