Lines Matching refs:ch_data

150 	struct hx9023s_ch_data ch_data[HX9023S_CH_NUM];  member
336 ch_pos[i] = data->ch_data[i].channel_positive == HX9023S_NOT_CONNECTED ? in hx9023s_ch_cfg()
337 HX9023S_NOT_CONNECTED : conn_cs[data->ch_data[i].channel_positive]; in hx9023s_ch_cfg()
338 ch_neg[i] = data->ch_data[i].channel_negative == HX9023S_NOT_CONNECTED ? in hx9023s_ch_cfg()
339 HX9023S_NOT_CONNECTED : conn_cs[data->ch_data[i].channel_negative]; in hx9023s_ch_cfg()
405 data->ch_data[ch].thres.near = tmp; in hx9023s_get_thres_near()
425 data->ch_data[ch].thres.far = tmp; in hx9023s_get_thres_far()
436 data->ch_data[ch].thres.near = ((val / 32) & GENMASK(9, 0)) * 32; in hx9023s_set_thres_near()
448 data->ch_data[ch].thres.far = ((val / 32) & GENMASK(9, 0)) * 32; in hx9023s_set_thres_far()
472 data->ch_data[i].sel_diff = test_bit(i, &tmp); in hx9023s_data_select()
473 data->ch_data[i].sel_lp = !data->ch_data[i].sel_diff; in hx9023s_data_select()
474 data->ch_data[i].sel_bl = test_bit(i + 4, &tmp); in hx9023s_data_select()
475 data->ch_data[i].sel_raw = !data->ch_data[i].sel_bl; in hx9023s_data_select()
483 data->ch_data[4].sel_diff = test_bit(2, &tmp); in hx9023s_data_select()
484 data->ch_data[4].sel_lp = !data->ch_data[4].sel_diff; in hx9023s_data_select()
485 data->ch_data[4].sel_bl = test_bit(3, &tmp); in hx9023s_data_select()
486 data->ch_data[4].sel_raw = !data->ch_data[4].sel_bl; in hx9023s_data_select()
518 data->ch_data[i].raw = 0; in hx9023s_sample()
519 data->ch_data[i].bl = 0; in hx9023s_sample()
520 if (data->ch_data[i].sel_raw) in hx9023s_sample()
521 data->ch_data[i].raw = value; in hx9023s_sample()
522 if (data->ch_data[i].sel_bl) in hx9023s_sample()
523 data->ch_data[i].bl = value; in hx9023s_sample()
538 data->ch_data[i].lp = 0; in hx9023s_sample()
539 data->ch_data[i].diff = 0; in hx9023s_sample()
540 if (data->ch_data[i].sel_lp) in hx9023s_sample()
541 data->ch_data[i].lp = value; in hx9023s_sample()
542 if (data->ch_data[i].sel_diff) in hx9023s_sample()
543 data->ch_data[i].diff = value; in hx9023s_sample()
547 if (data->ch_data[i].sel_lp && data->ch_data[i].sel_bl) in hx9023s_sample()
548 data->ch_data[i].diff = data->ch_data[i].lp - data->ch_data[i].bl; in hx9023s_sample()
559 data->ch_data[i].dac = value; in hx9023s_sample()
579 data->ch_data[ch_id].enable = en; in hx9023s_ch_en()
594 data->ch_data[i].channel_positive = HX9023S_NOT_CONNECTED; in hx9023s_property_get()
595 data->ch_data[i].channel_negative = HX9023S_NOT_CONNECTED; in hx9023s_property_get()
607 data->ch_data[reg].channel_positive = temp; in hx9023s_property_get()
608 data->ch_data[reg].channel_negative = HX9023S_NOT_CONNECTED; in hx9023s_property_get()
613 data->ch_data[reg].channel_positive = array[0]; in hx9023s_property_get()
614 data->ch_data[reg].channel_negative = array[1]; in hx9023s_property_get()
660 *val = data->ch_data[chan->channel].diff; in hx9023s_get_proximity()
884 data->ch_data[chan->channel].enable); in hx9023s_write_event_config()
942 data->buffer.channels[i++] = cpu_to_le16(data->ch_data[index].diff); in hx9023s_trigger_handler()