Lines Matching refs:val
56 __be16 val = cpu_to_be16(data);
58 ret = i2c_master_send(client, (const char *)&val, sizeof(val));
59 if (ret != sizeof(val)) {
66 static int dw9714_t_focus_vcm(struct dw9714_device *dw9714_dev, u16 val)
70 dw9714_dev->current_val = val;
72 return dw9714_i2c_write(client, DW9714_VAL(val, DW9714_DEFAULT_S));
80 return dw9714_t_focus_vcm(dev_vcm, ctrl->val);
221 int ret, val;
226 for (val = dw9714_dev->current_val & ~(DW9714_CTRL_STEPS - 1);
227 val >= 0; val -= DW9714_CTRL_STEPS) {
229 DW9714_VAL(val, DW9714_DEFAULT_S));
253 int ret, val;
265 for (val = dw9714_dev->current_val % DW9714_CTRL_STEPS;
266 val < dw9714_dev->current_val + DW9714_CTRL_STEPS - 1;
267 val += DW9714_CTRL_STEPS) {
269 DW9714_VAL(val, DW9714_DEFAULT_S));