Lines Matching refs:result
128 rt_size_t result = 0; in rt_touch_read() local
137 result = touch->ops->touch_readpoint(touch, buf, len); in rt_touch_read()
139 return result; in rt_touch_read()
145 rt_err_t result = RT_EOK; in rt_touch_control() local
152 result = touch->ops->touch_control(touch, RT_TOUCH_CTRL_SET_MODE, args); in rt_touch_control()
154 if (result == RT_EOK) in rt_touch_control()
166 result = touch->ops->touch_control(touch, RT_TOUCH_CTRL_SET_X_RANGE, args); in rt_touch_control()
168 if (result == RT_EOK) in rt_touch_control()
176 result = touch->ops->touch_control(touch, RT_TOUCH_CTRL_SET_Y_RANGE, args); in rt_touch_control()
178 if (result == RT_EOK) in rt_touch_control()
198 return result; in rt_touch_control()
221 rt_err_t result; in rt_hw_touch_register() local
242 result = rt_device_register(device, name, flag | RT_DEVICE_FLAG_STANDALONE); in rt_hw_touch_register()
244 if (result != RT_EOK) in rt_hw_touch_register()
246 LOG_E("rt_touch register err code: %d", result); in rt_hw_touch_register()
247 return result; in rt_hw_touch_register()