Lines Matching refs:vt

31     vfs_timer_t *vt = (vfs_timer_t *)f->node->i_arg;  in timer_device_ioctl()  local
32 timer_dev_t *timer_dev = &vt->dev; in timer_device_ioctl()
39 if (!vt->started) { in timer_device_ioctl()
41 vt->started = ret ? false : true; in timer_device_ioctl()
43 ddkc_warn("timer%d is already started\r\n", vt->dev.port); in timer_device_ioctl()
45 if (vt->started) in timer_device_ioctl()
48 ddkc_warn("timer%d is not started yet\r\n", vt->dev.port); in timer_device_ioctl()
50 vt->started = false; in timer_device_ioctl()
72 if (!vt->started) { in timer_device_ioctl()
79 vt->started = ret ? false : true; in timer_device_ioctl()
98 if (vt->started) { in timer_device_ioctl()
101 vt->started = ret ? false : true; in timer_device_ioctl()
131 vfs_timer_t *vt = (vfs_timer_t *)f->node->i_arg; in timer_device_open() local
132 timer_dev_t *timer_dev = &vt->dev; in timer_device_open()
141 vfs_timer_t *vt = (vfs_timer_t *)f->node->i_arg; in timer_device_close() local
142 timer_dev_t *timer_dev = &vt->dev; in timer_device_close()
146 if (vt->started) { in timer_device_close()
148 vt->started = false; in timer_device_close()
217 vfs_timer_t *vt = malloc(sizeof(vfs_timer_t)); in vfs_timer_drv_init() local
220 if (!(*ppsdev) || !vt) { in vfs_timer_drv_init()
221 ddkc_err("malloc failed, *ppsdev:%p, vt:%p\r\n", *ppsdev, vt); in vfs_timer_drv_init()
228 if (vt) in vfs_timer_drv_init()
229 free(vt); in vfs_timer_drv_init()
235 memset(vt, 0, sizeof(*vt)); in vfs_timer_drv_init()
237 vt->dev.port = i; in vfs_timer_drv_init()
247 (*ppsdev)->user_data = vt; in vfs_timer_drv_init()
253 free(vt); in vfs_timer_drv_init()