Searched refs:abs_step (Results 1 – 8 of 8) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | dw9763.c | 245 unsigned int abs_step; in dw9763_get_dac() local 247 ret = dw9763_read_reg(client, 0x03, 2, &abs_step); in dw9763_get_dac() 251 *cur_dac = abs_step; in dw9763_get_dac() 267 unsigned int abs_step; in dw9763_get_pos() local 269 ret = dw9763_read_reg(client, 0x03, 2, &abs_step); in dw9763_get_pos() 273 if (abs_step <= dev_vcm->start_current) in dw9763_get_pos() 274 abs_step = VCMDRV_MAX_LOG; in dw9763_get_pos() 275 else if ((abs_step > dev_vcm->start_current) && in dw9763_get_pos() 276 (abs_step <= dev_vcm->rated_current)) in dw9763_get_pos() 277 abs_step = (dev_vcm->rated_current - abs_step) / dev_vcm->step; in dw9763_get_pos() [all …]
|
| H A D | aw8601.c | 211 unsigned int abs_step, range; in aw8601_get_pos() local 215 ret = aw8601_read_reg(client, 0x03, 2, &abs_step); in aw8601_get_pos() 219 if (abs_step <= dev_vcm->start_current) { in aw8601_get_pos() 220 abs_step = dev_vcm->max_logicalpos; in aw8601_get_pos() 221 } else if ((abs_step > dev_vcm->start_current) && in aw8601_get_pos() 222 (abs_step <= dev_vcm->rated_current)) { in aw8601_get_pos() 223 abs_step = (abs_step - dev_vcm->start_current) * dev_vcm->max_logicalpos / range; in aw8601_get_pos() 224 abs_step = dev_vcm->max_logicalpos - abs_step; in aw8601_get_pos() 226 abs_step = 0; in aw8601_get_pos() 229 *cur_pos = abs_step; in aw8601_get_pos()
|
| H A D | vm149c.c | 154 unsigned int abs_step = 0; in vm149c_get_pos() local 160 abs_step = (((unsigned int)(msb & 0x3FU)) << 4U) | in vm149c_get_pos() 162 if (abs_step <= dev_vcm->start_current) in vm149c_get_pos() 163 abs_step = VCMDRV_MAX_LOG; in vm149c_get_pos() 164 else if ((abs_step > dev_vcm->start_current) && in vm149c_get_pos() 165 (abs_step <= dev_vcm->rated_current)) in vm149c_get_pos() 166 abs_step = (dev_vcm->rated_current - abs_step) / dev_vcm->step; in vm149c_get_pos() 168 abs_step = 0; in vm149c_get_pos() 170 *cur_pos = abs_step; in vm149c_get_pos()
|
| H A D | fp5510.c | 343 unsigned int abs_step; in fp5510_get_pos() local 349 abs_step = (((unsigned int)(msb & 0x3FU)) << 4U) | in fp5510_get_pos() 351 if (abs_step <= dev_vcm->start_current) in fp5510_get_pos() 352 abs_step = VCMDRV_MAX_LOG; in fp5510_get_pos() 353 else if ((abs_step > dev_vcm->start_current) && in fp5510_get_pos() 354 (abs_step <= dev_vcm->rated_current)) in fp5510_get_pos() 355 abs_step = (dev_vcm->rated_current - abs_step) / dev_vcm->step; in fp5510_get_pos() 357 abs_step = 0; in fp5510_get_pos() 359 *cur_pos = abs_step; in fp5510_get_pos()
|
| H A D | gt9760s.c | 354 unsigned int abs_step = 0; in gt9760s_get_pos() local 360 abs_step = (((unsigned int)(msb & 0x3FU)) << 4U) | in gt9760s_get_pos() 362 if (abs_step <= dev_vcm->start_current) in gt9760s_get_pos() 363 abs_step = VCMDRV_MAX_LOG; in gt9760s_get_pos() 364 else if ((abs_step > dev_vcm->start_current) && in gt9760s_get_pos() 365 (abs_step <= dev_vcm->rated_current)) in gt9760s_get_pos() 366 abs_step = (dev_vcm->rated_current - abs_step) / dev_vcm->step; in gt9760s_get_pos() 368 abs_step = 0; in gt9760s_get_pos() 370 *cur_pos = abs_step; in gt9760s_get_pos()
|
| H A D | dw9800w.c | 221 unsigned int abs_step; in dw9800w_get_pos() local 223 ret = dw9800w_read_reg(client, 0x03, 2, &abs_step); in dw9800w_get_pos() 227 if (abs_step <= dev_vcm->start_current) in dw9800w_get_pos() 228 abs_step = VCMDRV_MAX_LOG; in dw9800w_get_pos() 229 else if ((abs_step > dev_vcm->start_current) && in dw9800w_get_pos() 230 (abs_step <= dev_vcm->rated_current)) in dw9800w_get_pos() 231 abs_step = (dev_vcm->rated_current - abs_step) / dev_vcm->step; in dw9800w_get_pos() 233 abs_step = 0; in dw9800w_get_pos() 235 *cur_pos = abs_step; in dw9800w_get_pos()
|
| H A D | dw9714.c | 438 unsigned int abs_step; in dw9714_get_dac() local 441 ret = dw9714_read_reg(client, DW9714_ADVMODE_VCM_MSB, 2, &abs_step); in dw9714_get_dac() 449 abs_step = (((unsigned int)(msb & 0x3FU)) << 4U) | in dw9714_get_dac() 453 *cur_dac = abs_step; in dw9714_get_dac()
|
| H A D | cn3927v.c | 456 unsigned int abs_step; in cn3927v_get_dac() local 459 ret = cn3927v_read_reg(client, CN3927V_ADVMODE_VCM_MSB, 2, &abs_step); in cn3927v_get_dac() 467 abs_step = (((unsigned int)(msb & 0x3FU)) << 4U) | in cn3927v_get_dac() 471 *cur_dac = abs_step; in cn3927v_get_dac()
|