Home
last modified time | relevance | path

Searched refs:motion_set (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/media/i2c/nvp6158_drv/
H A Dnvp6158_motion.c34 void nvp6158_motion_detection_get(motion_mode *motion_set) in nvp6158_motion_detection_get() argument
39 unsigned char ch = motion_set->ch; in nvp6158_motion_detection_get()
44 gpio_i2c_write(nvp6158_iic_addr[motion_set->devnum], 0xFF, 0x00); in nvp6158_motion_detection_get()
45 ReadVal = gpio_i2c_read(nvp6158_iic_addr[motion_set->devnum], 0xA9); in nvp6158_motion_detection_get()
48 motion_set->set_val = ret; in nvp6158_motion_detection_get()
54 void nvp6158_motion_onoff_set(motion_mode *motion_set) in nvp6158_motion_onoff_set() argument
57 gpio_i2c_write(nvp6158_iic_addr[motion_set->devnum], 0xFF, 0x02); in nvp6158_motion_onoff_set()
59 if(motion_set->fmtdef == TVI_3M_18P || motion_set->fmtdef == TVI_5M_12_5P || in nvp6158_motion_onoff_set()
60 motion_set->fmtdef == TVI_5M_20P) { in nvp6158_motion_onoff_set()
61 gpio_i2c_write(nvp6158_iic_addr[motion_set->devnum], 0x00 + (0x07 * motion_set->ch), 0x0C); in nvp6158_motion_onoff_set()
[all …]
H A Dnvp6158_motion.h32 void nvp6158_motion_onoff_set(motion_mode *motion_set);
33 void nvp6158_motion_display_onoff_set(motion_mode *motion_set);
34 void nvp6158_motion_pixel_all_onoff_set(motion_mode *motion_set);
35 void nvp6158_motion_pixel_onoff_set(motion_mode *motion_set);
36 void nvp6158_motion_pixel_onoff_get(motion_mode *motion_set);
37 void nvp6158_motion_tsen_set(motion_mode *motion_set);
38 void nvp6158_motion_psen_set(motion_mode *motion_set);
39 void nvp6158_motion_detection_get(motion_mode *motion_set);
H A Dnvp6158_drv.c355 motion_mode motion_set; in nvp6158_native_ioctl() local
649 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in nvp6158_native_ioctl()
651 nvp6158_motion_detection_get(&motion_set); in nvp6158_native_ioctl()
652 cpy2usr_ret = copy_to_user(argp, &motion_set, sizeof(motion_mode)); in nvp6158_native_ioctl()
655 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in nvp6158_native_ioctl()
657 nvp6158_motion_onoff_set(&motion_set); in nvp6158_native_ioctl()
660 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in nvp6158_native_ioctl()
662 nvp6158_motion_pixel_onoff_set(&motion_set); in nvp6158_native_ioctl()
665 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in nvp6158_native_ioctl()
667 nvp6158_motion_pixel_onoff_get(&motion_set); in nvp6158_native_ioctl()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/jaguar1_drv/
H A Djaguar1_motion.c32 void motion_detection_get(motion_mode *motion_set) in motion_detection_get() argument
37 unsigned char ch = motion_set->ch; in motion_detection_get()
42 gpio_i2c_write(jaguar1_i2c_addr[motion_set->devnum], 0xFF, 0x00); in motion_detection_get()
43 ReadVal = gpio_i2c_read(jaguar1_i2c_addr[motion_set->devnum], 0xA1); in motion_detection_get()
46 motion_set->set_val = ret; in motion_detection_get()
52 void motion_onoff_set(motion_mode *motion_set) in motion_onoff_set() argument
55 gpio_i2c_write(jaguar1_i2c_addr[motion_set->devnum], 0xFF, 0x04); in motion_onoff_set()
57 …if(motion_set->fmtdef == TVI_3M_18P || motion_set->fmtdef == TVI_5M_12_5P || motion_set->fmtdef ==… in motion_onoff_set()
59 gpio_i2c_write(jaguar1_i2c_addr[motion_set->devnum], 0x00 + (0x07 * motion_set->ch), 0x0C); in motion_onoff_set()
60 gpio_i2c_write(jaguar1_i2c_addr[motion_set->devnum], 0x02 + (0x07 * motion_set->ch), 0x23); in motion_onoff_set()
[all …]
H A Djaguar1_motion.h29 void motion_onoff_set(motion_mode *motion_set);
30 void motion_display_onoff_set(motion_mode *motion_set);
31 void motion_pixel_all_onoff_set(motion_mode *motion_set);
32 void motion_pixel_onoff_set(motion_mode *motion_set);
33 void motion_pixel_onoff_get(motion_mode *motion_set);
34 void motion_tsen_set(motion_mode *motion_set);
35 void motion_psen_set(motion_mode *motion_set);
36 void motion_detection_get(motion_mode *motion_set);
H A Djaguar1_drv.c425 motion_mode motion_set; in jaguar1_ioctl() local
645 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in jaguar1_ioctl()
647 motion_detection_get(&motion_set); in jaguar1_ioctl()
648 cpy2usr_ret = copy_to_user(argp, &motion_set, sizeof(motion_mode)); in jaguar1_ioctl()
651 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in jaguar1_ioctl()
653 motion_onoff_set(&motion_set); in jaguar1_ioctl()
656 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in jaguar1_ioctl()
658 motion_pixel_onoff_set(&motion_set); in jaguar1_ioctl()
661 if(copy_from_user(&motion_set, argp, sizeof(motion_set))) in jaguar1_ioctl()
663 motion_pixel_onoff_get(&motion_set); in jaguar1_ioctl()
[all …]