Home
last modified time | relevance | path

Searched refs:abs_step (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Ddw9763.c245 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 Daw8601.c211 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 Dvm149c.c154 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 Dfp5510.c343 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 Dgt9760s.c354 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 Ddw9800w.c221 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 Ddw9714.c438 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 Dcn3927v.c456 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()