Home
last modified time | relevance | path

Searched refs:thresh_val (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iio/light/
H A Dgp2ap020a00f.c248 unsigned int thresh_val[4]; member
454 thresh_reg_val = data->thresh_val[th_val_id] / 16; in gp2ap020a00f_write_event_threshold()
456 thresh_reg_val = data->thresh_val[th_val_id] > 16000 ? in gp2ap020a00f_write_event_threshold()
458 data->thresh_val[th_val_id]; in gp2ap020a00f_write_event_threshold()
916 if (output_val > priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler()
930 if (output_val < priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler()
1066 data->thresh_val[thresh_val_id] = val; in gp2ap020a00f_write_event_val()
1095 *val = data->thresh_val[GP2AP020A00F_THRESH_VAL_ID(thresh_reg_l)]; in gp2ap020a00f_read_event_val()
1121 if (data->thresh_val[GP2AP020A00F_THRESH_PL] == 0) in gp2ap020a00f_write_prox_event_config()
1124 if (data->thresh_val[GP2AP020A00F_THRESH_PH] == 0) in gp2ap020a00f_write_prox_event_config()
/linux/drivers/i3c/master/mipi-i3c-hci/
H A Dpio.c771 unsigned int thresh_val) in hci_pio_set_ibi_thresh() argument
776 regval |= FIELD_PREP(QUEUE_IBI_STATUS_THLD, thresh_val); in hci_pio_set_ibi_thresh()
781 dev_dbg(&hci->master.dev, "%d", thresh_val); in hci_pio_set_ibi_thresh()
789 unsigned int nr_words, thresh_val; in hci_pio_get_ibi_segment() local
797 thresh_val = min(nr_words, pio->max_ibi_thresh); in hci_pio_get_ibi_segment()
798 hci_pio_set_ibi_thresh(hci, pio, thresh_val); in hci_pio_get_ibi_segment()
803 nr_words = thresh_val; in hci_pio_get_ibi_segment()