Searched refs:thresh_val (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/iio/light/ |
H A D | iqs621-als.c | 376 unsigned int thresh_reg, thresh_val; in iqs621_als_write_event_value() local 385 thresh_val = val / 16; in iqs621_als_write_event_value() 393 thresh_val = val / 4; in iqs621_als_write_event_value() 416 thresh_val = val; in iqs621_als_write_event_value() 423 thresh_val = val / 4; in iqs621_als_write_event_value() 439 if (thresh_val > 0xFF) in iqs621_als_write_event_value() 442 ret = regmap_write(iqs62x->regmap, thresh_reg, thresh_val); in iqs621_als_write_event_value() 446 *thresh_cache = thresh_val; in iqs621_als_write_event_value()
|
H A D | gp2ap020a00f.c | 249 unsigned int thresh_val[4]; member 455 thresh_reg_val = data->thresh_val[th_val_id] / 16; in gp2ap020a00f_write_event_threshold() 457 thresh_reg_val = data->thresh_val[th_val_id] > 16000 ? in gp2ap020a00f_write_event_threshold() 459 data->thresh_val[th_val_id]; in gp2ap020a00f_write_event_threshold() 917 if (output_val > priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler() 931 if (output_val < priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler() 1068 data->thresh_val[thresh_val_id] = val; in gp2ap020a00f_write_event_val() 1097 *val = data->thresh_val[GP2AP020A00F_THRESH_VAL_ID(thresh_reg_l)]; in gp2ap020a00f_read_event_val() 1123 if (data->thresh_val[GP2AP020A00F_THRESH_PL] == 0) in gp2ap020a00f_write_prox_event_config() 1126 if (data->thresh_val[GP2AP020A00F_THRESH_P in gp2ap020a00f_write_prox_event_config() [all...] |
/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | iqs621-als.c | 376 unsigned int thresh_reg, thresh_val; in iqs621_als_write_event_value() local 385 thresh_val = val / 16; in iqs621_als_write_event_value() 393 thresh_val = val / 4; in iqs621_als_write_event_value() 416 thresh_val = val; in iqs621_als_write_event_value() 423 thresh_val = val / 4; in iqs621_als_write_event_value() 439 if (thresh_val > 0xFF) in iqs621_als_write_event_value() 442 ret = regmap_write(iqs62x->regmap, thresh_reg, thresh_val); in iqs621_als_write_event_value() 446 *thresh_cache = thresh_val; in iqs621_als_write_event_value()
|
H A D | gp2ap020a00f.c | 249 unsigned int thresh_val[4]; member 455 thresh_reg_val = data->thresh_val[th_val_id] / 16; in gp2ap020a00f_write_event_threshold() 457 thresh_reg_val = data->thresh_val[th_val_id] > 16000 ? in gp2ap020a00f_write_event_threshold() 459 data->thresh_val[th_val_id]; in gp2ap020a00f_write_event_threshold() 917 if (output_val > priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler() 931 if (output_val < priv->thresh_val[thresh_val_id]) in gp2ap020a00f_thresh_event_handler() 1068 data->thresh_val[thresh_val_id] = val; in gp2ap020a00f_write_event_val() 1097 *val = data->thresh_val[GP2AP020A00F_THRESH_VAL_ID(thresh_reg_l)]; in gp2ap020a00f_read_event_val() 1123 if (data->thresh_val[GP2AP020A00F_THRESH_PL] == 0) in gp2ap020a00f_write_prox_event_config() 1126 if (data->thresh_val[GP2AP020A00F_THRESH_P in gp2ap020a00f_write_prox_event_config() [all...] |
/kernel/linux/linux-6.6/drivers/i3c/master/mipi-i3c-hci/ |
H A D | pio.c | 742 unsigned int thresh_val) in hci_pio_set_ibi_thresh() 747 regval |= FIELD_PREP(QUEUE_IBI_STATUS_THLD, thresh_val); in hci_pio_set_ibi_thresh() 752 DBG("%d", thresh_val); in hci_pio_set_ibi_thresh() 760 unsigned int nr_words, thresh_val; in hci_pio_get_ibi_segment() local 768 thresh_val = min(nr_words, pio->max_ibi_thresh); in hci_pio_get_ibi_segment() 769 hci_pio_set_ibi_thresh(hci, pio, thresh_val); in hci_pio_get_ibi_segment() 774 nr_words = thresh_val; in hci_pio_get_ibi_segment() 740 hci_pio_set_ibi_thresh(struct i3c_hci *hci, struct hci_pio_data *pio, unsigned int thresh_val) hci_pio_set_ibi_thresh() argument
|
Completed in 7 milliseconds