Searched refs:pthresh (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/iio/proximity/ |
| H A D | sx9310.c | 438 unsigned int regval, pthresh; in sx9310_read_hysteresis() local 441 ret = sx9310_read_thresh(data, chan, &pthresh); in sx9310_read_hysteresis() 454 *val = pthresh >> (5 - regval); in sx9310_read_hysteresis() 557 int ret, pthresh; in sx9310_write_hysteresis() local 559 ret = sx9310_read_thresh(data, chan, &pthresh); in sx9310_write_hysteresis() 565 else if (val == pthresh >> 2) in sx9310_write_hysteresis() 567 else if (val == pthresh >> 3) in sx9310_write_hysteresis() 569 else if (val == pthresh >> 4) in sx9310_write_hysteresis()
|
| H A D | sx9324.c | 530 unsigned int regval, pthresh; in sx9324_read_hysteresis() local 533 ret = sx9324_read_thresh(data, chan, &pthresh); in sx9324_read_hysteresis() 545 *val = pthresh >> (5 - regval); in sx9324_read_hysteresis() 638 int ret, pthresh; in sx9324_write_hysteresis() local 640 ret = sx9324_read_thresh(data, chan, &pthresh); in sx9324_write_hysteresis() 646 else if (val >= pthresh >> 2) in sx9324_write_hysteresis() 648 else if (val >= pthresh >> 3) in sx9324_write_hysteresis() 650 else if (val >= pthresh >> 4) in sx9324_write_hysteresis()
|