/third_party/backends/backend/ |
H A D | mustek_usb_high.c | 722 usb_high_scan_init (Mustek_Usb_Device * dev) in usb_high_scan_init() argument 728 dev->init_bytes_per_strip = 8 * 1024; in usb_high_scan_init() 729 dev->adjust_length_300 = 2560; in usb_high_scan_init() 730 dev->adjust_length_600 = 5120; in usb_high_scan_init() 731 dev->init_min_expose_time = 4992; in usb_high_scan_init() 732 dev->init_skips_per_row_300 = 56; /* this value must be times of 6 */ in usb_high_scan_init() 733 dev->init_skips_per_row_600 = 72; /* this value must be times of 6 */ in usb_high_scan_init() 734 dev->init_j_lines = 154; in usb_high_scan_init() 735 dev->init_k_lines = 16; in usb_high_scan_init() 736 dev in usb_high_scan_init() 850 usb_high_scan_exit(Mustek_Usb_Device * dev) usb_high_scan_exit() argument 868 usb_high_scan_prepare(Mustek_Usb_Device * dev) usb_high_scan_prepare() argument 894 usb_high_scan_clearup(Mustek_Usb_Device * dev) usb_high_scan_clearup() argument 917 usb_high_scan_turn_power(Mustek_Usb_Device * dev, SANE_Bool is_on) usb_high_scan_turn_power() argument 955 usb_high_scan_back_home(Mustek_Usb_Device * dev) usb_high_scan_back_home() argument 975 usb_high_scan_set_threshold(Mustek_Usb_Device * dev, SANE_Byte threshold) usb_high_scan_set_threshold() argument 986 usb_high_scan_embed_gamma(Mustek_Usb_Device * dev, SANE_Word * gamma_table) usb_high_scan_embed_gamma() argument 1002 usb_high_scan_reset(Mustek_Usb_Device * dev) usb_high_scan_reset() argument 1033 usb_high_scan_wait_carriage_home(Mustek_Usb_Device * dev) usb_high_scan_wait_carriage_home() argument 1061 usb_high_scan_hardware_calibration(Mustek_Usb_Device * dev) usb_high_scan_hardware_calibration() argument 1171 usb_high_scan_line_calibration(Mustek_Usb_Device * dev) usb_high_scan_line_calibration() argument 1206 usb_high_scan_prepare_scan(Mustek_Usb_Device * dev) usb_high_scan_prepare_scan() argument 1246 usb_high_scan_suggest_parameters(Mustek_Usb_Device * dev, SANE_Word dpi, SANE_Word x, SANE_Word y, SANE_Word width, SANE_Word height, Colormode color_mode) usb_high_scan_suggest_parameters() argument 1287 usb_high_scan_detect_sensor(Mustek_Usb_Device * dev) usb_high_scan_detect_sensor() argument 1426 usb_high_scan_setup_scan(Mustek_Usb_Device * dev, Colormode color_mode, SANE_Word x_dpi, SANE_Word y_dpi, SANE_Bool is_invert, SANE_Word x, SANE_Word y, SANE_Word width) usb_high_scan_setup_scan() argument 1524 usb_high_scan_get_rows(Mustek_Usb_Device * dev, SANE_Byte * block, SANE_Word rows, SANE_Bool is_order_invert) usb_high_scan_get_rows() argument 1551 usb_high_scan_stop_scan(Mustek_Usb_Device * dev) usb_high_scan_stop_scan() argument 1601 usb_high_scan_init_asic(Mustek_Usb_Device * dev, Sensor_Type sensor) usb_high_scan_init_asic() argument 1692 usb_high_scan_evaluate_max_level(Mustek_Usb_Device * dev, SANE_Word sample_lines, SANE_Int sample_length, SANE_Byte * ret_max_level) usb_high_scan_evaluate_max_level() argument 1726 usb_high_scan_bssc_power_delay(Mustek_Usb_Device * dev, Powerdelay_Function set_power_delay, Signal_State * signal_state, SANE_Byte * target, SANE_Byte max, SANE_Byte min, SANE_Byte threshold, SANE_Int length) usb_high_scan_bssc_power_delay() argument 1799 usb_high_scan_adjust_rgb_600_power_delay(Mustek_Usb_Device * dev) usb_high_scan_adjust_rgb_600_power_delay() argument 1864 usb_high_scan_adjust_mono_600_power_delay(Mustek_Usb_Device * dev) usb_high_scan_adjust_mono_600_power_delay() argument 1911 usb_high_scan_adjust_mono_600_exposure(Mustek_Usb_Device * dev) usb_high_scan_adjust_mono_600_exposure() argument 1968 usb_high_scan_adjust_rgb_300_power_delay(Mustek_Usb_Device * dev) usb_high_scan_adjust_rgb_300_power_delay() argument 2034 usb_high_scan_adjust_mono_300_power_delay(Mustek_Usb_Device * dev) usb_high_scan_adjust_mono_300_power_delay() argument 2081 usb_high_scan_evaluate_pixel_rate(Mustek_Usb_Device * dev) usb_high_scan_evaluate_pixel_rate() argument 2093 usb_high_scan_calibration_rgb_24(Mustek_Usb_Device * dev) usb_high_scan_calibration_rgb_24() argument 2242 usb_high_scan_calibration_mono_8(Mustek_Usb_Device * dev) usb_high_scan_calibration_mono_8() argument 2306 usb_high_scan_step_forward(Mustek_Usb_Device * dev, SANE_Int step_count) usb_high_scan_step_forward() argument 2333 usb_high_scan_safe_forward(Mustek_Usb_Device * dev, SANE_Int step_count) usb_high_scan_safe_forward() argument 2354 usb_high_scan_calculate_max_rgb_600_expose(Mustek_Usb_Device * dev, SANE_Byte * ideal_red_pd, SANE_Byte * ideal_green_pd, SANE_Byte * ideal_blue_pd) usb_high_scan_calculate_max_rgb_600_expose() argument 2392 usb_high_scan_calculate_max_mono_600_expose(Mustek_Usb_Device * dev, SANE_Byte * ideal_red_pd, SANE_Byte * ideal_green_pd, SANE_Byte * ideal_blue_pd) usb_high_scan_calculate_max_mono_600_expose() argument 2433 usb_high_scan_calculate_max_rgb_300_expose(Mustek_Usb_Device * dev, SANE_Byte * ideal_red_pd, SANE_Byte * ideal_green_pd, SANE_Byte * ideal_blue_pd) usb_high_scan_calculate_max_rgb_300_expose() argument 2478 usb_high_scan_calculate_max_mono_300_expose(Mustek_Usb_Device * dev, SANE_Byte * ideal_red_pd, SANE_Byte * ideal_green_pd, SANE_Byte * ideal_blue_pd) usb_high_scan_calculate_max_mono_300_expose() argument 2528 usb_high_scan_prepare_rgb_signal_600_dpi(Mustek_Usb_Device * dev) usb_high_scan_prepare_rgb_signal_600_dpi() argument 2556 usb_high_scan_prepare_mono_signal_600_dpi(Mustek_Usb_Device * dev) usb_high_scan_prepare_mono_signal_600_dpi() argument 2584 usb_high_scan_prepare_rgb_signal_300_dpi(Mustek_Usb_Device * dev) usb_high_scan_prepare_rgb_signal_300_dpi() argument 2613 usb_high_scan_prepare_mono_signal_300_dpi(Mustek_Usb_Device * dev) usb_high_scan_prepare_mono_signal_300_dpi() argument 2642 usb_high_scan_prepare_rgb_24(Mustek_Usb_Device * dev) usb_high_scan_prepare_rgb_24() argument 2655 usb_high_scan_prepare_mono_8(Mustek_Usb_Device * dev) usb_high_scan_prepare_mono_8() argument 2668 usb_high_scan_get_rgb_24_bit_line(Mustek_Usb_Device * dev, SANE_Byte * line, SANE_Bool is_order_invert) usb_high_scan_get_rgb_24_bit_line() argument 2697 usb_high_scan_get_mono_8_bit_line(Mustek_Usb_Device * dev, SANE_Byte * line, SANE_Bool is_order_invert) usb_high_scan_get_mono_8_bit_line() argument 2714 usb_high_scan_backtrack_rgb_24(Mustek_Usb_Device * dev) usb_high_scan_backtrack_rgb_24() argument 2721 usb_high_scan_backtrack_mono_8(Mustek_Usb_Device * dev) usb_high_scan_backtrack_mono_8() argument [all...] |
H A D | xerox_mfp.c | 99 * Decode jpeg from `infilename` into dev->decData of dev->decDataSize size. 101 static int decompress(struct device __sane_unused__ *dev, in decompress() argument 138 dev->decDataSize = bmp_size; in decompress() 146 buffer[0] = dev->decData + \ in decompress() 159 /* copy from decoded jpeg image (dev->decData) into user's buffer (pDest) */ 161 static int copy_decompress_data(struct device *dev, unsigned char *pDest, int maxlen, int *destLen) in copy_decompress_data() argument 167 if (!dev->decDataSize) in copy_decompress_data() 169 data_size = dev->decDataSize - dev in copy_decompress_data() 185 decompress_tempfile(struct device *dev) decompress_tempfile() argument 192 dump_to_tmp_file(struct device *dev) dump_to_tmp_file() argument 207 isSupportedDevice(struct device __sane_unused__ *dev) isSupportedDevice() argument 228 isJPEGEnabled(struct device __sane_unused__ *dev) isJPEGEnabled() argument 233 dbg_dump(struct device *dev) dbg_dump() argument 255 dev_command(struct device *dev, SANE_Byte *cmd, size_t reqlen) dev_command() argument 343 dev_cmd(struct device *dev, SANE_Byte command) dev_cmd() argument 351 dev_stop(struct device *dev) dev_stop() argument 374 ret_cancel(struct device *dev, SANE_Status ret) ret_cancel() argument 384 cancelled(struct device *dev) cancelled() argument 393 dev_cmd_wait(struct device *dev, int cmd) dev_cmd_wait() argument 447 resolv_inq_dpi(struct device *dev) resolv_inq_dpi() argument 523 reset_options(struct device *dev) reset_options() argument 546 init_options(struct device *dev) init_options() argument 657 set_parameters(struct device *dev) set_parameters() argument 706 fix_window(struct device *dev) fix_window() argument 778 dev_set_window(struct device *dev) dev_set_window() argument 824 dev_inquiry(struct device *dev) dev_inquiry() argument 896 struct device *dev = h; sane_get_option_descriptor() local 908 struct device *dev = h; sane_control_option() local 964 dev_free(struct device *dev) dev_free() argument 991 struct device *dev; free_devices() local 1014 struct device *dev; list_one_device() local 1080 struct device *dev; sane_exit() local 1093 struct device *dev; sane_get_devices() local 1133 struct device *dev = h; sane_close() local 1145 struct device *dev; sane_open() local 1175 struct device *dev = h; sane_get_parameters() local 1187 dev_acquire(struct device *dev) dev_acquire() argument 1230 fill_slack(struct device *dev, SANE_Byte *buf, int maxlen) fill_slack() argument 1243 copy_plain_trim(struct device *dev, SANE_Byte *buf, int maxlen, int *olenp) copy_plain_trim() argument 1266 copy_mix_bands_trim(struct device *dev, SANE_Byte *buf, int maxlen, int *olenp) copy_mix_bands_trim() argument 1307 struct device *dev = h; sane_read() local 1455 struct device *dev = h; sane_start() local 1541 struct device *dev = h; sane_set_io_mode() local 1561 struct device *dev = h; sane_cancel() local [all...] |
H A D | teco3.c | 255 Teco_Scanner *dev; in teco_init() local 260 dev = malloc (sizeof (Teco_Scanner)); in teco_init() 261 if (dev == NULL) in teco_init() 266 memset (dev, 0, sizeof (Teco_Scanner)); in teco_init() 269 dev->buffer_size = 64 * 1024; in teco_init() 270 dev->buffer = malloc (dev->buffer_size); in teco_init() 271 if (dev->buffer == NULL) in teco_init() 273 free (dev); in teco_init() 277 dev in teco_init() 286 teco_close(Teco_Scanner * dev) teco_close() argument 301 teco_free(Teco_Scanner * dev) teco_free() argument 338 teco_identify_scanner(Teco_Scanner * dev) teco_identify_scanner() argument 462 teco_set_window(Teco_Scanner * dev) teco_set_window() argument 551 teco_reset_window(Teco_Scanner * dev) teco_reset_window() argument 570 get_filled_data_length(Teco_Scanner * dev, size_t * to_read) get_filled_data_length() argument 650 teco_scan(Teco_Scanner * dev) teco_scan() argument 668 teco_vendor_spec(Teco_Scanner * dev) teco_vendor_spec() argument 706 teco_send_gamma(Teco_Scanner * dev) teco_send_gamma() argument 778 Teco_Scanner *dev; attach_scanner() local 858 attach_one(const char *dev) attach_one() argument 866 teco_init_options(Teco_Scanner * dev) teco_init_options() argument 1069 teco_wait_scanner(Teco_Scanner * dev) teco_wait_scanner() argument 1105 teco_query_sense(Teco_Scanner * dev) teco_query_sense() argument 1150 teco_adjust_raster(Teco_Scanner * dev, size_t size_in) teco_adjust_raster() argument 1281 teco_fill_image(Teco_Scanner * dev) teco_fill_image() argument 1407 teco_copy_raw_to_frontend(Teco_Scanner * dev, SANE_Byte * buf, size_t * len) teco_copy_raw_to_frontend() argument 1468 do_cancel(Teco_Scanner * dev) do_cancel() argument 1539 Teco_Scanner *dev; sane_get_devices() local 1566 Teco_Scanner *dev; sane_open() local 1628 Teco_Scanner *dev = handle; sane_get_option_descriptor() local 1646 Teco_Scanner *dev = handle; sane_control_option() local 1862 Teco_Scanner *dev = handle; sane_get_parameters() local 1974 Teco_Scanner *dev = handle; sane_start() local 2089 Teco_Scanner *dev = handle; sane_read() local 2155 Teco_Scanner *dev = handle; sane_set_io_mode() local 2191 Teco_Scanner *dev = handle; sane_cancel() local 2203 Teco_Scanner *dev = handle; sane_close() local [all...] |
H A D | u12-image.c | 72 static SANE_Bool fnReadToDriver( U12_Device *dev ) in fnReadToDriver() 74 dev->regs.RD_ModeControl = _ModeFifoBSel; in fnReadToDriver() 75 u12io_ReadMonoData( dev, dev->scan.BufPut.blue.bp, in fnReadToDriver() 76 dev->DataInf.dwAsicBytesPerPlane ); in fnReadToDriver() 78 dev->regs.RD_ModeControl = _ModeFifoGSel; in fnReadToDriver() 79 u12io_ReadMonoData( dev, dev->scan.BufPut.green.bp, in fnReadToDriver() 80 dev->DataInf.dwAsicBytesPerPlane ); in fnReadToDriver() 82 if( dev in fnReadToDriver() 186 fnDataDirect( U12_Device *dev, void *src, void *dest, u_long len ) fnDataDirect() argument 194 fnColorDirect( U12_Device *dev, void *pb, void *img, u_long len ) fnColorDirect() argument 214 fnColor42( U12_Device *dev, void *pb, void *img, u_long len ) fnColor42() argument 235 u12image_SetupScanStateVariables( U12_Device *dev, u_long index ) u12image_SetupScanStateVariables() argument 308 u12image_GetPhysDPI( U12_Device *dev, ImgDef *img, SANE_Bool fDpiX ) u12image_GetPhysDPI() argument 329 u12image_GetImageInfo( U12_Device *dev, ImgDef *image ) u12image_GetImageInfo() argument 421 imageSetupScanSettings( U12_Device *dev, ImgDef *img ) imageSetupScanSettings() argument 477 u12image_SetupScanSettings( U12_Device *dev, ImgDef *img ) u12image_SetupScanSettings() argument 688 u12image_DataIsReady( U12_Device *dev, void* buf ) u12image_DataIsReady() argument 732 u12image_ReadOneImageLine( U12_Device *dev, void* buf ) u12image_ReadOneImageLine() argument 844 u12image_ScaleX( U12_Device *dev, SANE_Byte *ib, SANE_Byte *ob ) u12image_ScaleX() argument [all...] |
H A D | sceptre.c | 170 Sceptre_Scanner *dev; in sceptre_init() local 175 dev = malloc (sizeof (Sceptre_Scanner)); in sceptre_init() 176 if (dev == NULL) in sceptre_init() 181 memset (dev, 0, sizeof (Sceptre_Scanner)); in sceptre_init() 184 dev->buffer_size = 64 * 1024; in sceptre_init() 185 dev->buffer = malloc (dev->buffer_size); in sceptre_init() 186 if (dev->buffer == NULL) in sceptre_init() 188 free (dev); in sceptre_init() 192 dev in sceptre_init() 201 sceptre_close(Sceptre_Scanner * dev) sceptre_close() argument 216 sceptre_free(Sceptre_Scanner * dev) sceptre_free() argument 253 sceptre_identify_scanner(Sceptre_Scanner * dev) sceptre_identify_scanner() argument 317 sceptre_get_status(Sceptre_Scanner * dev, size_t * data_left) sceptre_get_status() argument 382 sceptre_adjust_raster(Sceptre_Scanner * dev, size_t size_in) sceptre_adjust_raster() argument 532 Sceptre_Scanner *dev; attach_scanner() local 637 attach_one(const char *dev) attach_one() argument 645 sceptre_init_options(Sceptre_Scanner * dev) sceptre_init_options() argument 843 sceptre_wait_scanner(Sceptre_Scanner * dev) sceptre_wait_scanner() argument 894 sceptre_do_diag(Sceptre_Scanner * dev) sceptre_do_diag() argument 940 sceptre_set_mode(Sceptre_Scanner * dev) sceptre_set_mode() argument 960 sceptre_scan(Sceptre_Scanner * dev) sceptre_scan() argument 978 sceptre_set_window(Sceptre_Scanner * dev) sceptre_set_window() argument 1053 sceptre_fill_image(Sceptre_Scanner * dev) sceptre_fill_image() argument 1169 sceptre_copy_raw_to_frontend(Sceptre_Scanner * dev, SANE_Byte * buf, size_t * len) sceptre_copy_raw_to_frontend() argument 1188 do_cancel(Sceptre_Scanner * dev) do_cancel() argument 1250 sceptre_send_gamma(Sceptre_Scanner * dev) sceptre_send_gamma() argument 1356 Sceptre_Scanner *dev; sane_get_devices() local 1383 Sceptre_Scanner *dev; sane_open() local 1440 Sceptre_Scanner *dev = handle; sane_get_option_descriptor() local 1458 Sceptre_Scanner *dev = handle; sane_control_option() local 1644 Sceptre_Scanner *dev = handle; sane_get_parameters() local 1821 Sceptre_Scanner *dev = handle; sane_start() local 1929 Sceptre_Scanner *dev = handle; sane_read() local 1994 Sceptre_Scanner *dev = handle; sane_set_io_mode() local 2030 Sceptre_Scanner *dev = handle; sane_cancel() local 2042 Sceptre_Scanner *dev = handle; sane_close() local [all...] |
H A D | teco1.c | 315 Teco_Scanner *dev; in teco_init() local 320 dev = malloc (sizeof (Teco_Scanner)); in teco_init() 321 if (dev == NULL) in teco_init() 326 memset (dev, 0, sizeof (Teco_Scanner)); in teco_init() 329 dev->buffer_size = 64 * 1024; in teco_init() 330 dev->buffer = malloc (dev->buffer_size); in teco_init() 331 if (dev->buffer == NULL) in teco_init() 333 free (dev); in teco_init() 338 dev in teco_init() 356 teco_close(Teco_Scanner * dev) teco_close() argument 371 teco_free(Teco_Scanner * dev) teco_free() argument 408 teco_identify_scanner(Teco_Scanner * dev) teco_identify_scanner() argument 526 teco_get_inquiry_82(Teco_Scanner * dev) teco_get_inquiry_82() argument 616 teco_mode_select(Teco_Scanner * dev) teco_mode_select() argument 642 teco_set_window(Teco_Scanner * dev) teco_set_window() argument 724 get_filled_data_length(Teco_Scanner * dev, size_t * to_read) get_filled_data_length() argument 794 teco_scan(Teco_Scanner * dev) teco_scan() argument 857 teco_send_gamma(Teco_Scanner * dev) teco_send_gamma() argument 953 Teco_Scanner *dev; attach_scanner() local 1033 attach_one(const char *dev) attach_one() argument 1041 teco_init_options(Teco_Scanner * dev) teco_init_options() argument 1244 teco_wait_scanner(Teco_Scanner * dev) teco_wait_scanner() argument 1278 teco_fill_image(Teco_Scanner * dev) teco_fill_image() argument 1395 teco_copy_raw_to_frontend(Teco_Scanner * dev, SANE_Byte * buf, size_t * len) teco_copy_raw_to_frontend() argument 1434 do_cancel(Teco_Scanner * dev) do_cancel() argument 1517 Teco_Scanner *dev; sane_get_devices() local 1544 Teco_Scanner *dev; sane_open() local 1614 Teco_Scanner *dev = handle; sane_get_option_descriptor() local 1632 Teco_Scanner *dev = handle; sane_control_option() local 1848 Teco_Scanner *dev = handle; sane_get_parameters() local 1950 Teco_Scanner *dev = handle; sane_start() local 2097 Teco_Scanner *dev = handle; sane_read() local 2163 Teco_Scanner *dev = handle; sane_set_io_mode() local 2199 Teco_Scanner *dev = handle; sane_cancel() local 2211 Teco_Scanner *dev = handle; sane_close() local [all...] |
H A D | gt68xx_low.c | 64 * @param dev Pointer to the device object (GT68xx_Device). 67 #define CHECK_DEV_NOT_NULL(dev, func_name) \ 70 if (!(dev)) \ 80 * @param dev Pointer to the device object (GT68xx_Device). 83 #define CHECK_DEV_OPEN(dev, func_name) \ 86 CHECK_DEV_NOT_NULL ((dev), (func_name)); \ 87 if ((dev)->fd == -1) \ 90 ((void *) dev)); \ 98 * @param dev Pointer to the device (GT68xx_Device). 101 #define CHECK_DEV_ACTIVE(dev, func_nam 147 GT68xx_Device *dev; gt68xx_device_new() local 188 gt68xx_device_free(GT68xx_Device * dev) gt68xx_device_free() argument 228 gt68xx_device_identify(GT68xx_Device * dev) gt68xx_device_identify() argument 262 gt68xx_device_open(GT68xx_Device * dev, const char *dev_name) gt68xx_device_open() argument 295 gt68xx_device_close(GT68xx_Device * dev) gt68xx_device_close() argument 312 gt68xx_device_is_configured(GT68xx_Device * dev) gt68xx_device_is_configured() argument 321 gt68xx_device_set_model(GT68xx_Device * dev, GT68xx_Model * model) gt68xx_device_set_model() argument 355 gt68xx_device_activate(GT68xx_Device * dev) gt68xx_device_activate() argument 394 gt68xx_device_deactivate(GT68xx_Device * dev) gt68xx_device_deactivate() argument 422 gt68xx_device_memory_write(GT68xx_Device * dev, SANE_Word addr, SANE_Word size, SANE_Byte * data) gt68xx_device_memory_write() argument 445 gt68xx_device_memory_read(GT68xx_Device * dev, SANE_Word addr, SANE_Word size, SANE_Byte * data) gt68xx_device_memory_read() argument 469 gt68xx_device_generic_req(GT68xx_Device * dev, SANE_Byte request_type, SANE_Word request, SANE_Word cmd_value, SANE_Word cmd_index, SANE_Word res_value, SANE_Word res_index, GT68xx_Packet cmd, GT68xx_Packet res, size_t res_size) gt68xx_device_generic_req() argument 506 gt68xx_device_req(GT68xx_Device * dev, GT68xx_Packet cmd, GT68xx_Packet res) gt68xx_device_req() argument 520 gt68xx_device_small_req(GT68xx_Device * dev, GT68xx_Packet cmd, GT68xx_Packet res) gt68xx_device_small_req() argument 540 gt68xx_device_download_firmware(GT68xx_Device * dev, SANE_Byte * data, SANE_Word size) gt68xx_device_download_firmware() argument 551 gt68xx_device_get_power_status(GT68xx_Device * dev, SANE_Bool * power_ok) gt68xx_device_get_power_status() argument 561 gt68xx_device_get_ta_status(GT68xx_Device * dev, SANE_Bool * ta_attached) gt68xx_device_get_ta_status() argument 571 gt68xx_device_lamp_control(GT68xx_Device * dev, SANE_Bool fb_lamp, SANE_Bool ta_lamp) gt68xx_device_lamp_control() argument 582 gt68xx_device_is_moving(GT68xx_Device * dev, SANE_Bool * moving) gt68xx_device_is_moving() argument 605 gt68xx_device_carriage_home(GT68xx_Device * dev) gt68xx_device_carriage_home() argument 615 gt68xx_device_paperfeed(GT68xx_Device * dev) gt68xx_device_paperfeed() argument 625 gt68xx_device_start_scan(GT68xx_Device * dev) gt68xx_device_start_scan() argument 642 gt68xx_device_read_scanned_data(GT68xx_Device * dev, SANE_Bool * ready) gt68xx_device_read_scanned_data() argument 652 gt68xx_device_setup_scan(GT68xx_Device * dev, GT68xx_Scan_Request * request, GT68xx_Scan_Action action, GT68xx_Scan_Parameters * params) gt68xx_device_setup_scan() argument 666 gt68xx_device_set_afe(GT68xx_Device * dev, GT68xx_AFE_Parameters * params) gt68xx_device_set_afe() argument 676 gt68xx_device_set_exposure_time(GT68xx_Device * dev, GT68xx_Exposure_Parameters * params) gt68xx_device_set_exposure_time() argument 687 gt68xx_device_stop_scan(GT68xx_Device * dev) gt68xx_device_stop_scan() argument 704 gt68xx_device_read_raw(GT68xx_Device * dev, SANE_Byte * buffer, size_t * size) gt68xx_device_read_raw() argument 722 gt68xx_device_set_read_buffer_size(GT68xx_Device * dev, size_t buffer_size) gt68xx_device_set_read_buffer_size() argument 744 gt68xx_device_read_prepare(GT68xx_Device * dev, size_t expected_count, SANE_Bool final_scan) gt68xx_device_read_prepare() argument 785 gt68xx_reader_process(GT68xx_Device * dev) gt68xx_reader_process() argument 828 gt68xx_device_read_start_fork(GT68xx_Device * dev) gt68xx_device_read_start_fork() argument 880 gt68xx_device_read_start(GT68xx_Device * dev) gt68xx_device_read_start() argument 892 gt68xx_device_read(GT68xx_Device * dev, SANE_Byte * buffer, size_t * size) gt68xx_device_read() argument 973 gt68xx_device_read_finish(GT68xx_Device * dev) gt68xx_device_read_finish() argument 1031 gt68xx_device_get_id(GT68xx_Device * dev) gt68xx_device_get_id() argument 1041 gt68xx_device_fix_descriptor(GT68xx_Device * dev) gt68xx_device_fix_descriptor() argument [all...] |
H A D | u12-hw.c | 78 static void u12hw_SelectLampSource( U12_Device *dev ) in u12hw_SelectLampSource() 80 dev->regs.RD_ScanControl &= (~_SCAN_LAMPS_ON); in u12hw_SelectLampSource() 82 if( dev->DataInf.dwScanFlag & (_SCANDEF_TPA)) { in u12hw_SelectLampSource() 83 dev->regs.RD_ScanControl |= _SCAN_TPALAMP_ON; in u12hw_SelectLampSource() 85 dev->regs.RD_ScanControl |= _SCAN_NORMALLAMP_ON; in u12hw_SelectLampSource() 91 static void u12hw_PutToIdleMode( U12_Device *dev ) in u12hw_PutToIdleMode() 94 u12io_DataToRegs( dev, (SANE_Byte*)u12CcdStop, _STOP_LEN ); in u12hw_PutToIdleMode() 99 static void u12hw_ProgramCCD( U12_Device *dev ) in u12hw_ProgramCCD() 104 (u_long)dev->CCDRegs, in u12hw_ProgramCCD() 105 ((u_long)dev in u12hw_ProgramCCD() 118 u12hw_ButtonSetup( U12_Device *dev, SANE_Byte numButtons ) u12hw_ButtonSetup() argument 220 u12hw_InitAsic( U12_Device *dev, SANE_Bool shading ) global() argument [all...] |
H A D | stv680.c | 126 {176, 144, 0, 1, 2}, /* QCIF selected by dev->CIF */ 128 {160, 120, 0, 1, 2}, /* QSIF ,, dev->VGA */ 244 Stv680_Vidcam *dev; in stv680_init() local 249 dev = malloc (sizeof (Stv680_Vidcam)); in stv680_init() 250 if (dev == NULL) in stv680_init() 254 memset (dev, 0, sizeof (Stv680_Vidcam)); in stv680_init() 257 dev->windoww_size = 0x20; in stv680_init() 258 dev->windoww = malloc (dev->windoww_size); in stv680_init() 259 if (dev in stv680_init() 283 stv680_init_2(Stv680_Vidcam * dev) stv680_init_2() argument 342 stv680_close(Stv680_Vidcam * dev) stv680_close() argument 359 stv680_free(Stv680_Vidcam * dev) stv680_free() argument 409 stv680_set_config(Stv680_Vidcam * dev, int configuration, int interface, int alternate) stv680_set_config() argument 451 stv680_reset_vidcam(Stv680_Vidcam * dev) stv680_reset_vidcam() argument 524 stv680_identify_vidcam(Stv680_Vidcam * dev) stv680_identify_vidcam() argument 716 stv680_vidcam_init(Stv680_Vidcam * dev) stv680_vidcam_init() argument 864 Stv680_Vidcam *dev; attach_vidcam() local 990 attach_one(const char *dev) attach_one() argument 1000 stv680_init_options(Stv680_Vidcam * dev) stv680_init_options() argument 1113 stv680_fill_image(Stv680_Vidcam * dev) stv680_fill_image() argument 1245 stv680_bayer_unshuffle(Stv680_Vidcam * dev, SANE_Byte * buf, size_t * size) stv680_bayer_unshuffle() argument 1582 Stv680_Vidcam *dev; sane_get_devices() local 1611 Stv680_Vidcam *dev; sane_open() local 1663 Stv680_Vidcam *dev = handle; sane_get_option_descriptor() local 1681 Stv680_Vidcam *dev = handle; sane_control_option() local 1845 Stv680_Vidcam *dev = handle; sane_get_parameters() local 1941 Stv680_Vidcam *dev = handle; sane_start() local 1986 Stv680_Vidcam *dev = handle; sane_read() local 2101 Stv680_Vidcam *dev = handle; sane_cancel() local 2122 Stv680_Vidcam *dev = handle; sane_close() local [all...] |
H A D | matsushita.c | 527 matsushita_read_document_size (Matsushita_Scanner * dev) in matsushita_read_document_size() argument 538 status = sanei_scsi_cmd2 (dev->sfd, cdb.data, cdb.len, in matsushita_read_document_size() 539 NULL, 0, dev->buffer, &size); in matsushita_read_document_size() 548 hexdump (DBG_info2, "document size", dev->buffer, 16); in matsushita_read_document_size() 552 assert (dev->params.lines == B32TOI (&dev->buffer[4])); in matsushita_read_document_size() 553 assert (dev->params.pixels_per_line == B32TOI (&dev->buffer[0])); in matsushita_read_document_size() 566 Matsushita_Scanner *dev; in matsushita_init() local 571 dev in matsushita_init() 607 matsushita_close(Matsushita_Scanner * dev) matsushita_close() argument 622 matsushita_free(Matsushita_Scanner * dev) matsushita_free() argument 661 matsushita_identify_scanner(Matsushita_Scanner * dev) matsushita_identify_scanner() argument 742 matsushita_build_paper_sizes(Matsushita_Scanner * dev) matsushita_build_paper_sizes() argument 951 matsushita_check_next_page(Matsushita_Scanner * dev) matsushita_check_next_page() argument 973 Matsushita_Scanner *dev; attach_scanner() local 1050 attach_one(const char *dev) attach_one() argument 1058 matsushita_init_options(Matsushita_Scanner * dev) matsushita_init_options() argument 1320 matsushita_wait_scanner(Matsushita_Scanner * dev) matsushita_wait_scanner() argument 1354 matsushita_reset_window(Matsushita_Scanner * dev) matsushita_reset_window() argument 1372 matsushita_set_window(Matsushita_Scanner * dev, int side) matsushita_set_window() argument 1507 matsushita_fill_image(Matsushita_Scanner * dev) matsushita_fill_image() argument 1660 matsushita_copy_raw_to_frontend(Matsushita_Scanner * dev, SANE_Byte * buf, size_t * len) matsushita_copy_raw_to_frontend() argument 1678 do_cancel(Matsushita_Scanner * dev) do_cancel() argument 1752 Matsushita_Scanner *dev; sane_get_devices() local 1779 Matsushita_Scanner *dev; sane_open() local 1834 Matsushita_Scanner *dev = handle; sane_get_option_descriptor() local 1852 Matsushita_Scanner *dev = handle; sane_control_option() local 2166 Matsushita_Scanner *dev = handle; sane_get_parameters() local 2236 Matsushita_Scanner *dev = handle; sane_start() local 2350 Matsushita_Scanner *dev = handle; sane_read() local 2415 Matsushita_Scanner *dev = handle; sane_set_io_mode() local 2448 Matsushita_Scanner *dev = handle; sane_cancel() local 2460 Matsushita_Scanner *dev = handle; sane_close() local [all...] |
H A D | lexmark_low.c | 4 (C) 2006-2013 Stéphane Voltz <stef.dev@free.fr> 75 static SANE_Bool low_is_home_line (Lexmark_Device * dev, 80 Lexmark_Device * dev); 81 static void low_rewind (Lexmark_Device * dev, SANE_Byte * regs); 85 static SANE_Status low_simple_scan (Lexmark_Device * dev, 98 SANE_Byte * regs, Lexmark_Device * dev); 101 static SANE_Status read_buffer_init (Lexmark_Device * dev, int bytesperline); 389 lexmark_low_wake_up (Lexmark_Device * dev) 398 if (rts88xx_write_reg (dev->devnum, regs[i], values + i) != 459 sanei_lexmark_low_init (Lexmark_Device * dev) in sanei_lexmark_low_init() argument 840 sanei_lexmark_low_destroy(Lexmark_Device * dev) sanei_lexmark_low_destroy() argument 1035 low_simple_scan(Lexmark_Device * dev, SANE_Byte * regs, int xoffset, int pixels, int yoffset, int lines, SANE_Byte ** data) low_simple_scan() argument 1150 sanei_lexmark_low_open_device(Lexmark_Device * dev) sanei_lexmark_low_open_device() argument 1242 sanei_lexmark_low_close_device(Lexmark_Device * dev) sanei_lexmark_low_close_device() argument 1304 low_is_home_line(Lexmark_Device * dev, unsigned char *buffer) low_is_home_line() argument 1464 sanei_lexmark_low_move_fwd(SANE_Int distance, Lexmark_Device * dev, SANE_Byte * regs) sanei_lexmark_low_move_fwd() argument 1648 sanei_lexmark_low_search_home_fwd(Lexmark_Device * dev) sanei_lexmark_low_search_home_fwd() argument 1946 sanei_lexmark_low_search_home_bwd(Lexmark_Device * dev) sanei_lexmark_low_search_home_bwd() argument 2310 low_get_start_loc(SANE_Int resolution, SANE_Int * vert_start, SANE_Int * hor_start, SANE_Int offset, Lexmark_Device * dev) low_get_start_loc() argument 2401 low_set_scan_area(SANE_Int res, SANE_Int tlx, SANE_Int tly, SANE_Int brx, SANE_Int bry, SANE_Int offset, SANE_Bool half_step, SANE_Byte * regs, Lexmark_Device * dev) low_set_scan_area() argument 2457 sanei_lexmark_low_find_start_line(Lexmark_Device * dev) sanei_lexmark_low_find_start_line() argument 2864 sanei_lexmark_low_set_scan_regs(Lexmark_Device * dev, SANE_Int resolution, SANE_Int offset, SANE_Bool calibrated) sanei_lexmark_low_set_scan_regs() argument 4819 sanei_lexmark_low_start_scan(Lexmark_Device * dev) sanei_lexmark_low_start_scan() argument 4913 sanei_lexmark_low_read_scan_data(SANE_Byte * data, SANE_Int size, Lexmark_Device * dev) sanei_lexmark_low_read_scan_data() argument 5101 low_rewind(Lexmark_Device * dev, SANE_Byte * regs) low_rewind() argument 5199 read_buffer_init(Lexmark_Device * dev, int bytesperline) read_buffer_init() argument 5523 sanei_lexmark_low_offset_calibration(Lexmark_Device * dev) sanei_lexmark_low_offset_calibration() argument 5665 sanei_lexmark_low_gain_calibration(Lexmark_Device * dev) sanei_lexmark_low_gain_calibration() argument 5761 sanei_lexmark_low_shading_calibration(Lexmark_Device * dev) sanei_lexmark_low_shading_calibration() argument 5962 sanei_lexmark_low_calibration(Lexmark_Device * dev) sanei_lexmark_low_calibration() argument 6028 sanei_lexmark_low_assign_sensor(Lexmark_Device * dev) sanei_lexmark_low_assign_sensor() argument 6053 sanei_lexmark_low_assign_model(Lexmark_Device * dev, SANE_String_Const devname, SANE_Int vendor, SANE_Int product, SANE_Byte mainboard) sanei_lexmark_low_assign_model() argument [all...] |
H A D | umax_pp.c | 2 Copyright (C) 2001-2012 Stéphane Voltz <stef.dev@free.fr> 185 #define UMAX_PP_DEFAULT_PORT "/dev/parport0" 191 * or the device name used by ppdev on linux systems (/dev/parport0 ) 198 Umax_PP_Descriptor *dev; in umax_pp_attach() local 289 dev = malloc (sizeof (Umax_PP_Descriptor) * (num_devices + 1)); in umax_pp_attach() 291 if (dev == NULL) in umax_pp_attach() 298 memset (dev, 0, sizeof (Umax_PP_Descriptor) * (num_devices + 1)); in umax_pp_attach() 302 memcpy (dev + 1, devlist, sizeof (Umax_PP_Descriptor) * (num_devices)); in umax_pp_attach() 306 devlist = dev; in umax_pp_attach() 312 dev in umax_pp_attach() 498 init_options(Umax_PP_Device * dev) init_options() argument 978 Umax_PP_Device *dev; sane_exit() local 1059 Umax_PP_Device *dev; sane_open() local 1245 Umax_PP_Device *prev, *dev; sane_close() local 1314 Umax_PP_Device *dev = handle; sane_get_option_descriptor() local 1333 Umax_PP_Device *dev = handle; sane_control_option() local 1837 Umax_PP_Device *dev = handle; sane_get_parameters() local 1997 Umax_PP_Device *dev = handle; sane_start() local 2167 Umax_PP_Device *dev = handle; sane_read() local 2339 Umax_PP_Device *dev = handle; sane_cancel() local [all...] |
H A D | hpljm1005.c | 170 do_cancel(struct device_s *dev); 190 update_img_size (struct device_s *dev) in update_img_size() argument 196 if (dev->status == STATUS_SCANNING) in update_img_size() 198 dev->height = -1; in update_img_size() 202 dx = dev->optionw[X2_OFFSET] - dev->optionw[X1_OFFSET]; in update_img_size() 203 dy = dev->optionw[Y2_OFFSET] - dev->optionw[Y1_OFFSET]; in update_img_size() 205 switch (dev->optionw[RES_OFFSET]) in update_img_size() 208 dev in update_img_size() 261 struct device_s *dev; attach() local 499 struct device_s *dev; sane_open() local 548 struct device_s *dev = (struct device_s *) h; sane_close() local 566 struct device_s *dev = (struct device_s *) h; sane_get_option_descriptor() local 576 struct device_s *dev = (struct device_s *) h; getvalue() local 592 struct device_s *dev = (struct device_s *) h; setvalue() local 714 struct device_s *dev = (struct device_s *) h; sane_get_parameters() local 735 send_pkt(int command, int data_size, struct device_s *dev) send_pkt() argument 752 wait_ack(struct device_s *dev, int *s) wait_ack() argument 771 send_conf(struct device_s *dev) send_conf() argument 825 get_data(struct device_s *dev) get_data() argument 941 struct device_s *dev = (struct device_s *) h; sane_start() local 992 do_cancel(struct device_s *dev) do_cancel() argument 1015 struct device_s *dev = (struct device_s *) h; sane_read() local 1076 struct device_s *dev = (struct device_s *) h; sane_cancel() local [all...] |
H A D | leo.c | 242 Leo_Scanner *dev; in leo_init() local 247 dev = malloc (sizeof (Leo_Scanner)); in leo_init() 248 if (dev == NULL) in leo_init() 253 memset (dev, 0, sizeof (Leo_Scanner)); in leo_init() 256 dev->buffer_size = 64 * 1024; in leo_init() 257 dev->buffer = malloc (dev->buffer_size); in leo_init() 258 if (dev->buffer == NULL) in leo_init() 260 free (dev); in leo_init() 265 dev in leo_init() 283 leo_close(Leo_Scanner * dev) leo_close() argument 298 leo_free(Leo_Scanner * dev) leo_free() argument 336 leo_identify_scanner(Leo_Scanner * dev) leo_identify_scanner() argument 490 leo_set_window(Leo_Scanner * dev) leo_set_window() argument 557 leo_get_scan_size(Leo_Scanner * dev) leo_get_scan_size() argument 614 get_filled_data_length(Leo_Scanner * dev, size_t * to_read) get_filled_data_length() argument 650 leo_scan(Leo_Scanner * dev) leo_scan() argument 670 Leo_Scanner *dev; attach_scanner() local 747 attach_one(const char *dev) attach_one() argument 755 leo_init_options(Leo_Scanner * dev) leo_init_options() argument 949 leo_wait_scanner(Leo_Scanner * dev) leo_wait_scanner() argument 983 leo_fill_image(Leo_Scanner * dev) leo_fill_image() argument 1099 leo_copy_raw_to_frontend(Leo_Scanner * dev, SANE_Byte * buf, size_t * len) leo_copy_raw_to_frontend() argument 1117 do_cancel(Leo_Scanner * dev) do_cancel() argument 1181 leo_send_gamma(Leo_Scanner * dev) leo_send_gamma() argument 1247 leo_send_halftone_pattern(Leo_Scanner * dev) leo_send_halftone_pattern() argument 1339 Leo_Scanner *dev; sane_get_devices() local 1366 Leo_Scanner *dev; sane_open() local 1424 Leo_Scanner *dev = handle; sane_get_option_descriptor() local 1442 Leo_Scanner *dev = handle; sane_control_option() local 1668 Leo_Scanner *dev = handle; sane_get_parameters() local 1760 Leo_Scanner *dev = handle; sane_start() local 1848 Leo_Scanner *dev = handle; sane_read() local 1914 Leo_Scanner *dev = handle; sane_set_io_mode() local 1950 Leo_Scanner *dev = handle; sane_cancel() local 1962 Leo_Scanner *dev = handle; sane_close() local [all...] |
H A D | teco2.c | 60 update 2005/07/29. Removed using teco_request_sense (dev) routine for VM3564 544 Teco_Scanner *dev; in teco_init() local 549 dev = malloc (sizeof (Teco_Scanner)); in teco_init() 550 if (dev == NULL) in teco_init() 555 memset (dev, 0, sizeof (Teco_Scanner)); in teco_init() 558 dev->buffer_size = 64 * 1024; in teco_init() 559 dev->buffer = malloc (dev->buffer_size); in teco_init() 560 if (dev->buffer == NULL) in teco_init() 562 free (dev); in teco_init() 575 teco_close(Teco_Scanner * dev) teco_close() argument 590 teco_free(Teco_Scanner * dev) teco_free() argument 625 teco_identify_scanner(Teco_Scanner * dev) teco_identify_scanner() argument 803 teco_set_window(Teco_Scanner * dev) teco_set_window() argument 912 teco_reset_window(Teco_Scanner * dev) teco_reset_window() argument 936 teco_get_scan_size(Teco_Scanner * dev) teco_get_scan_size() argument 1067 teco_wait_for_data(Teco_Scanner * dev) teco_wait_for_data() argument 1145 teco_do_calibration(Teco_Scanner * dev) teco_do_calibration() argument 1518 teco_request_sense(Teco_Scanner * dev) teco_request_sense() argument 1551 teco_send_gamma(Teco_Scanner * dev) teco_send_gamma() argument 1624 teco_send_vendor_06(Teco_Scanner * dev) teco_send_vendor_06() argument 1657 teco_scan(Teco_Scanner * dev) teco_scan() argument 1735 Teco_Scanner *dev; attach_scanner() local 1848 attach_one(const char *dev) attach_one() argument 1856 teco_init_options(Teco_Scanner * dev) teco_init_options() argument 2100 teco_wait_scanner(Teco_Scanner * dev) teco_wait_scanner() argument 2166 teco_adjust_raster(Teco_Scanner * dev, size_t size_in) teco_adjust_raster() argument 2348 teco_fill_image(Teco_Scanner * dev) teco_fill_image() argument 2448 teco_copy_raw_to_frontend(Teco_Scanner * dev, SANE_Byte * buf, size_t * len) teco_copy_raw_to_frontend() argument 2487 do_cancel(Teco_Scanner * dev) do_cancel() argument 2560 Teco_Scanner *dev; sane_get_devices() local 2587 Teco_Scanner *dev; sane_open() local 2649 Teco_Scanner *dev = handle; sane_get_option_descriptor() local 2667 Teco_Scanner *dev = handle; sane_control_option() local 2981 Teco_Scanner *dev = handle; sane_get_parameters() local 3132 Teco_Scanner *dev = handle; sane_start() local 3282 Teco_Scanner *dev = handle; sane_read() local 3351 Teco_Scanner *dev = handle; sane_set_io_mode() local 3387 Teco_Scanner *dev = handle; sane_cancel() local 3399 Teco_Scanner *dev = handle; sane_close() local [all...] |
H A D | mustek_pp_cis.c | 259 #define M1015_DISPLAY_REGS(dev, msg) Mustek_PP_1015_display_regs(dev, msg) 262 #define M1015_DISPLAY_REGS(dev, msg) 339 Mustek_PP_1015_display_regs(Mustek_PP_CIS_dev * dev, const char* info) in Mustek_PP_1015_display_regs() argument 379 Mustek_PP_1015_show_val (dev->CIS.regs.in_regs[0]), in Mustek_PP_1015_display_regs() 380 Mustek_PP_1015_show_val (dev->CIS.regs.in_regs[1]), in Mustek_PP_1015_display_regs() 381 Mustek_PP_1015_show_val (dev->CIS.regs.in_regs[2]), in Mustek_PP_1015_display_regs() 382 Mustek_PP_1015_show_val (dev->CIS.regs.in_regs[3]), in Mustek_PP_1015_display_regs() 383 Mustek_PP_1015_show_val (dev->CIS.regs.out_regs[0][0]), in Mustek_PP_1015_display_regs() 384 Mustek_PP_1015_show_val (dev in Mustek_PP_1015_display_regs() 429 Mustek_PP_1015_read_reg(Mustek_PP_CIS_dev * dev, Mustek_PP_1015R_reg reg) Mustek_PP_1015_read_reg() argument 458 Mustek_PP_1015_wait_bit(Mustek_PP_CIS_dev * dev, Mustek_PP_1015R_reg reg, Mustek_PP_1015R_bit bit, SANE_Bool on, unsigned period) Mustek_PP_1015_wait_bit() argument 553 Mustek_PP_1015_write_reg(Mustek_PP_CIS_dev * dev, Mustek_PP_1015W_reg reg, SANE_Byte val) Mustek_PP_1015_write_reg() argument 587 Mustek_PP_1015_write_reg2(Mustek_PP_CIS_dev * dev, Mustek_PP_1015W_reg reg, SANE_Byte val1, SANE_Byte val2) Mustek_PP_1015_write_reg2() argument 625 Mustek_PP_1015_write_reg3(Mustek_PP_CIS_dev * dev, Mustek_PP_1015W_reg reg, SANE_Byte val1, SANE_Byte val2, SANE_Byte val3) Mustek_PP_1015_write_reg3() argument 659 Mustek_PP_1015_write_reg_start(Mustek_PP_CIS_dev * dev, Mustek_PP_1015W_reg reg) Mustek_PP_1015_write_reg_start() argument 680 Mustek_PP_1015_write_reg_val(Mustek_PP_CIS_dev * dev, SANE_Byte val) Mustek_PP_1015_write_reg_val() argument 703 Mustek_PP_1015_write_reg_stop(Mustek_PP_CIS_dev * dev) Mustek_PP_1015_write_reg_stop() argument 727 Mustek_PP_1015_send_command(Mustek_PP_CIS_dev * dev, SANE_Byte command) Mustek_PP_1015_send_command() argument 748 max2hw_hres(Mustek_PP_CIS_dev *dev, int dist) max2hw_hres() argument 755 max2hw_vres(Mustek_PP_CIS_dev *dev, int dist) max2hw_vres() argument 762 max2cis_hres(Mustek_PP_CIS_dev *dev, int dist) max2cis_hres() argument 768 cis2max_res(Mustek_PP_CIS_dev *dev, int dist) cis2max_res() argument 775 hw2max_vres(Mustek_PP_CIS_dev *dev, int dist) hw2max_vres() argument 785 cis_get_bank_count(Mustek_PP_CIS_dev *dev) cis_get_bank_count() argument 795 cis_set_sti(Mustek_PP_CIS_dev *dev) cis_set_sti() argument 806 cis_wait_bank_change(Mustek_PP_CIS_dev * dev, int bankcount) cis_wait_bank_change() argument 859 cis_set_dpi_value(Mustek_PP_CIS_dev * dev) cis_set_dpi_value() argument 924 cis_set_ccd_channel(Mustek_PP_CIS_dev * dev) cis_set_ccd_channel() argument 956 cis_config_ccd(Mustek_PP_CIS_dev * dev) cis_config_ccd() argument 1091 cis_wait_motor_stable(Mustek_PP_CIS_dev * dev) cis_wait_motor_stable() argument 1109 cis_motor_forward(Mustek_PP_CIS_dev * dev) cis_motor_forward() argument 1160 cis_move_motor(Mustek_PP_CIS_dev * dev, SANE_Int steps) cis_move_motor() argument 1246 cis_set_et_pd_sti(Mustek_PP_CIS_dev * dev) cis_set_et_pd_sti() argument 1261 cis_wait_next_channel(Mustek_PP_CIS_dev * dev) cis_wait_next_channel() argument 1296 cis_wait_read_ready(Mustek_PP_CIS_dev * dev) cis_wait_read_ready() argument 1330 cis_read_line_low_level(Mustek_PP_CIS_dev * dev, SANE_Byte * buf, SANE_Int pixel, SANE_Byte * calib_low, SANE_Byte * calib_hi, SANE_Int * gamma) cis_read_line_low_level() argument 1496 cis_read_line(Mustek_PP_CIS_dev * dev, SANE_Byte* buf, SANE_Int pixel, SANE_Bool raw) cis_read_line() argument 1524 cis_get_next_line(Mustek_PP_CIS_dev * dev, SANE_Byte * buf) cis_get_next_line() argument 1574 cis_get_grayscale_line(Mustek_PP_CIS_dev * dev, SANE_Byte * buf) cis_get_grayscale_line() argument 1580 cis_get_lineart_line(Mustek_PP_CIS_dev * dev, SANE_Byte * buf) cis_get_lineart_line() argument 1593 cis_get_color_line(Mustek_PP_CIS_dev * dev, SANE_Byte * buf) cis_get_color_line() argument 1603 cis_save_state(Mustek_PP_CIS_dev * dev) cis_save_state() argument 1612 cis_restore_state(Mustek_PP_CIS_dev * dev) cis_restore_state() argument 1635 cis_maximize_dynamic_range(Mustek_PP_CIS_dev * dev) cis_maximize_dynamic_range() argument 1769 cis_measure_extremes(Mustek_PP_CIS_dev * dev, SANE_Byte* calib[3], SANE_Int pixels, SANE_Int first, SANE_Int last) cis_measure_extremes() argument 1829 cis_normalize_ranges(Mustek_PP_CIS_dev * dev) cis_normalize_ranges() argument 1907 cis_measure_delay(Mustek_PP_CIS_dev * dev) cis_measure_delay() argument 2009 cis_motor_control(Mustek_PP_CIS_dev * dev, u_char control) cis_motor_control() argument 2016 cis_return_home(Mustek_PP_CIS_dev * dev, SANE_Bool nowait) cis_return_home() argument 2038 cis_reset_device(Mustek_PP_CIS_dev * dev) cis_reset_device() argument 2059 cis_calibrate(Mustek_PP_CIS_dev * dev) cis_calibrate() argument 2369 Mustek_pp_Handle *dev = hndl; cis_drv_setup() local 2412 Mustek_pp_Handle *dev = hndl; cis_drv_config() local 2517 Mustek_pp_Handle *dev = hndl; cis_drv_close() local 2539 Mustek_pp_Handle *dev = hndl; cis_drv_start() local 2787 Mustek_pp_Handle *dev = hndl; cis_drv_read() local 2813 Mustek_pp_Handle *dev = hndl; cis_drv_stop() local [all...] |
H A D | u12-shading.c | 72 u12shading_DownloadShadingTable( U12_Device *dev, SANE_Byte *buf, u_long len ) in u12shading_DownloadShadingTable() argument 80 u12io_DataToRegister( dev, REG_MODECONTROL, _ModeShadingMem ); in u12shading_DownloadShadingTable() 81 u12io_DataToRegister( dev, REG_MEMORYLO, 0 ); in u12shading_DownloadShadingTable() 82 u12io_DataToRegister( dev, REG_MEMORYHI, 0 ); in u12shading_DownloadShadingTable() 85 u12io_DataToRegister( dev, REG_SCANCONTROL, in u12shading_DownloadShadingTable() 86 (SANE_Byte)(dev->regs.RD_ScanControl | _SCAN_12BITMODE)); in u12shading_DownloadShadingTable() 88 u12io_MoveDataToScanner( dev, buf, len ); in u12shading_DownloadShadingTable() 94 dev->regs.RD_RedDarkOff = dev->shade.DarkOffset.Colors.Red; in u12shading_DownloadShadingTable() 95 dev in u12shading_DownloadShadingTable() 458 u12shading_GainOffsetToDAC( U12_Device *dev, SANE_Byte ch, SANE_Byte reg, SANE_Byte d ) u12shading_GainOffsetToDAC() argument 469 u12shading_FillToDAC( U12_Device *dev, RGBByteDef *regs, ColorByte *data ) u12shading_FillToDAC() argument 511 u12shading_AdjustGain( U12_Device *dev, u_long color, SANE_Byte hilight ) u12shading_AdjustGain() argument 639 u12shading_SumDarks( U12_Device *dev, u_short *data ) u12shading_SumDarks() argument 760 u12shading_DownloadMapTable( U12_Device *dev, SANE_Byte *buf ) u12shading_DownloadMapTable() argument [all...] |
H A D | u12-if.c | 94 static SANE_Status u12_initDev( U12_Device *dev, int handle, int vendor ) in u12_initDev() argument 106 dev->sane.vendor = u12Vendors[i].desc; in u12_initDev() 107 DBG( _DBG_INFO, "Vendor adjusted to: >%s<\n", dev->sane.vendor ); in u12_initDev() 111 dev->fd = handle; in u12_initDev() 113 dev->adj.upNormal = 0; in u12_initDev() 114 dev->adj.upNegative = 20; in u12_initDev() 115 dev->adj.upPositive = -30; in u12_initDev() 116 dev->adj.leftNormal = 51; in u12_initDev() 119 if( !(u12io_DataFromRegister( dev, REG_STATUS ) & _FLAG_PAPER)) { in u12_initDev() 121 u12motor_PositionModuleToHome( dev ); in u12_initDev() 539 u12if_readLine( U12_Device *dev, SANE_Byte *line_buffer ) u12if_readLine() argument [all...] |
/third_party/libinput/test/ |
H A D | test-touchpad-buttons.c | 37 struct litest_device *dev = litest_current_device(); in START_TEST() local 38 struct libinput *li = dev->libinput; in START_TEST() 40 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT)) in START_TEST() 45 litest_button_click(dev, BTN_LEFT, true); in START_TEST() 50 litest_button_click(dev, BTN_LEFT, false); in START_TEST() 60 struct litest_device *dev = litest_current_device(); in START_TEST() local 61 struct libinput_device *device = dev->libinput_device; in START_TEST() 87 struct litest_device *dev = litest_current_device(); in START_TEST() local 88 struct libinput_device *device = dev->libinput_device; in START_TEST() 114 struct litest_device *dev in START_TEST() local 144 struct litest_device *dev = litest_current_device(); START_TEST() local 169 struct litest_device *dev = litest_current_device(); START_TEST() local 198 struct litest_device *dev = litest_current_device(); START_TEST() local 218 struct litest_device *dev = litest_current_device(); START_TEST() local 245 struct litest_device *dev = litest_current_device(); START_TEST() local 279 struct litest_device *dev = litest_current_device(); START_TEST() local 318 struct litest_device *dev = litest_current_device(); START_TEST() local 349 struct litest_device *dev = litest_current_device(); START_TEST() local 381 struct litest_device *dev = litest_current_device(); START_TEST() local 417 struct litest_device *dev = litest_current_device(); START_TEST() local 476 struct litest_device *dev = litest_current_device(); START_TEST() local 509 struct litest_device *dev = litest_current_device(); START_TEST() local 547 struct litest_device *dev = litest_current_device(); START_TEST() local 614 struct litest_device *dev = litest_current_device(); START_TEST() local 657 struct litest_device *dev = litest_current_device(); START_TEST() local 702 struct litest_device *dev = litest_current_device(); START_TEST() local 743 struct litest_device *dev = litest_current_device(); START_TEST() local 785 struct litest_device *dev = litest_current_device(); START_TEST() local 815 struct litest_device *dev = litest_current_device(); START_TEST() local 845 struct litest_device *dev = litest_current_device(); START_TEST() local 868 struct litest_device *dev = litest_current_device(); START_TEST() local 893 struct litest_device *dev = litest_current_device(); START_TEST() local 920 struct litest_device *dev = litest_current_device(); START_TEST() local 949 struct litest_device *dev = litest_current_device(); START_TEST() local 1038 struct litest_device *dev = litest_current_device(); START_TEST() local 1059 struct litest_device *dev = litest_current_device(); START_TEST() local 1080 struct litest_device *dev = litest_current_device(); START_TEST() local 1114 struct litest_device *dev = litest_current_device(); START_TEST() local 1168 struct litest_device *dev = litest_current_device(); START_TEST() local 1197 struct litest_device *dev = litest_current_device(); START_TEST() local 1226 struct litest_device *dev = litest_current_device(); START_TEST() local 1255 struct litest_device *dev = litest_current_device(); START_TEST() local 1297 struct litest_device *dev = litest_current_device(); START_TEST() local 1339 struct litest_device *dev = litest_current_device(); START_TEST() local 1415 struct litest_device *dev = litest_current_device(); START_TEST() local 1510 struct litest_device *dev = litest_current_device(); START_TEST() local 1546 struct litest_device *dev = litest_current_device(); START_TEST() local 1582 struct litest_device *dev = litest_current_device(); START_TEST() local 1613 struct litest_device *dev = litest_current_device(); START_TEST() local 1641 struct litest_device *dev = litest_current_device(); START_TEST() local 1669 struct litest_device *dev = litest_current_device(); START_TEST() local 1697 struct litest_device *dev = litest_current_device(); START_TEST() local 1731 struct litest_device *dev = litest_current_device(); START_TEST() local 1767 struct litest_device *dev = litest_current_device(); START_TEST() local 1810 struct litest_device *dev = litest_current_device(); START_TEST() local 1858 struct litest_device *dev = litest_current_device(); START_TEST() local 1890 struct litest_device *dev = litest_current_device(); START_TEST() local 1923 struct litest_device *dev = litest_current_device(); START_TEST() local 1954 struct litest_device *dev = litest_current_device(); START_TEST() local 1985 struct litest_device *dev = litest_current_device(); START_TEST() local 2033 struct litest_device *dev = litest_current_device(); START_TEST() local [all...] |
H A D | test-touchpad-tap.c | 37 struct litest_device *dev = litest_current_device(); in START_TEST() local 38 struct libinput *li = dev->libinput; in START_TEST() 40 litest_enable_tap(dev->libinput_device); in START_TEST() 41 litest_disable_hold_gestures(dev->libinput_device); in START_TEST() 44 litest_touch_down(dev, 0, 50, 50); in START_TEST() 45 litest_touch_up(dev, 0); in START_TEST() 61 struct litest_device *dev = litest_current_device(); in START_TEST() local 62 struct libinput *li = dev->libinput; in START_TEST() 71 if (nfingers > litest_slot_count(dev)) in START_TEST() 73 if (nfingers2 > litest_slot_count(dev)) in START_TEST() 201 struct litest_device *dev = litest_current_device(); START_TEST() local 291 struct litest_device *dev = litest_current_device(); START_TEST() local 400 struct litest_device *dev = litest_current_device(); START_TEST() local 517 struct litest_device *dev = litest_current_device(); START_TEST() local 619 struct litest_device *dev = litest_current_device(); START_TEST() local 708 struct litest_device *dev = litest_current_device(); START_TEST() local 823 struct litest_device *dev = litest_current_device(); START_TEST() local 915 struct litest_device *dev = litest_current_device(); START_TEST() local 1030 struct litest_device *dev = litest_current_device(); START_TEST() local 1157 struct litest_device *dev = litest_current_device(); START_TEST() local 1240 struct litest_device *dev = litest_current_device(); START_TEST() local 1321 struct litest_device *dev = litest_current_device(); START_TEST() local 1428 struct litest_device *dev = litest_current_device(); START_TEST() local 1513 struct litest_device *dev = litest_current_device(); START_TEST() local 1592 struct litest_device *dev = litest_current_device(); START_TEST() local 1670 struct litest_device *dev = litest_current_device(); START_TEST() local 1750 struct litest_device *dev = litest_current_device(); START_TEST() local 1835 struct litest_device *dev = litest_current_device(); START_TEST() local 1934 struct litest_device *dev = litest_current_device(); START_TEST() local 2020 struct litest_device *dev = litest_current_device(); START_TEST() local 2111 struct litest_device *dev = litest_current_device(); START_TEST() local 2207 struct litest_device *dev = litest_current_device(); START_TEST() local 2262 struct litest_device *dev = litest_current_device(); START_TEST() local 2317 struct litest_device *dev = litest_current_device(); START_TEST() local 2349 struct litest_device *dev = litest_current_device(); START_TEST() local 2371 struct litest_device *dev = litest_current_device(); START_TEST() local 2393 struct litest_device *dev = litest_current_device(); START_TEST() local 2424 struct litest_device *dev = litest_current_device(); START_TEST() local 2456 struct litest_device *dev = litest_current_device(); START_TEST() local 2491 struct litest_device *dev = litest_current_device(); START_TEST() local 2522 struct litest_device *dev = litest_current_device(); START_TEST() local 2554 struct litest_device *dev = litest_current_device(); START_TEST() local 2578 struct litest_device *dev = litest_current_device(); START_TEST() local 2604 struct litest_device *dev = litest_current_device(); START_TEST() local 2636 struct litest_device *dev = litest_current_device(); START_TEST() local 2711 struct litest_device *dev = litest_current_device(); START_TEST() local 2794 struct litest_device *dev = litest_current_device(); START_TEST() local 2861 struct litest_device *dev = litest_current_device(); START_TEST() local 2916 struct litest_device *dev = litest_current_device(); START_TEST() local 2954 struct litest_device *dev = litest_current_device(); START_TEST() local 3015 struct litest_device *dev = litest_current_device(); START_TEST() local 3067 struct litest_device *dev = litest_current_device(); START_TEST() local 3118 struct litest_device *dev = litest_current_device(); START_TEST() local 3169 struct litest_device *dev = litest_current_device(); START_TEST() local 3223 struct litest_device *dev = litest_current_device(); START_TEST() local 3316 struct litest_device *dev = litest_current_device(); START_TEST() local 3352 struct litest_device *dev = litest_current_device(); START_TEST() local 3385 struct litest_device *dev = litest_current_device(); START_TEST() local 3421 struct litest_device *dev = litest_current_device(); START_TEST() local 3492 struct litest_device *dev = litest_current_device(); START_TEST() local 3527 struct litest_device *dev = litest_current_device(); START_TEST() local 3566 struct litest_device *dev = litest_current_device(); START_TEST() local 3597 struct litest_device *dev = litest_current_device(); START_TEST() local 3605 struct litest_device *dev = litest_current_device(); START_TEST() local 3621 struct litest_device *dev = litest_current_device(); START_TEST() local 3634 struct litest_device *dev = litest_current_device(); START_TEST() local 3647 struct litest_device *dev = litest_current_device(); START_TEST() local 3658 struct litest_device *dev = litest_current_device(); START_TEST() local 3671 struct litest_device *dev = litest_current_device(); START_TEST() local 3691 struct litest_device *dev = litest_current_device(); START_TEST() local 3720 struct litest_device *dev = litest_current_device(); START_TEST() local 3745 struct litest_device *dev = litest_current_device(); START_TEST() local 3759 struct litest_device *dev = litest_current_device(); START_TEST() local 3796 struct litest_device *dev = litest_current_device(); START_TEST() local 3809 struct litest_device *dev = litest_current_device(); START_TEST() local 3822 struct litest_device *dev = litest_current_device(); START_TEST() local 3833 struct litest_device *dev = litest_current_device(); START_TEST() local 3851 struct litest_device *dev = litest_current_device(); START_TEST() local 3881 struct litest_device *dev = litest_current_device(); START_TEST() local 3953 struct litest_device *dev = litest_current_device(); START_TEST() local 4030 struct litest_device *dev = litest_current_device(); START_TEST() local 4124 struct litest_device *dev = litest_current_device(); START_TEST() local 4153 struct litest_device *dev = litest_current_device(); START_TEST() local 4177 touchpad_has_palm_pressure(struct litest_device *dev) touchpad_has_palm_pressure() argument 4193 struct litest_device *dev = litest_current_device(); START_TEST() local 4220 struct litest_device *dev = litest_current_device(); START_TEST() local 4248 struct litest_device *dev = litest_current_device(); START_TEST() local 4279 struct litest_device *dev = litest_current_device(); START_TEST() local 4310 struct litest_device *dev = litest_current_device(); START_TEST() local 4392 struct litest_device *dev = litest_current_device(); START_TEST() local 4474 struct litest_device *dev = litest_current_device(); START_TEST() local 4605 struct litest_device *dev = litest_current_device(); START_TEST() local 4688 struct litest_device *dev = litest_current_device(); START_TEST() local 4780 struct litest_device *dev = litest_current_device(); START_TEST() local 4821 struct litest_device *dev = litest_current_device(); START_TEST() local 4866 struct litest_device *dev = litest_current_device(); START_TEST() local 4913 struct litest_device *dev = litest_current_device(); START_TEST() local 4965 struct litest_device *dev = litest_current_device(); START_TEST() local 5005 struct litest_device *dev = litest_current_device(); START_TEST() local 5084 struct litest_device *dev = litest_current_device(); START_TEST() local 5170 struct litest_device *dev = litest_current_device(); START_TEST() local 5255 struct litest_device *dev = litest_current_device(); START_TEST() local 5371 struct litest_device *dev = litest_current_device(); START_TEST() local 5467 struct litest_device *dev = litest_current_device(); START_TEST() local 5517 struct litest_device *dev = litest_current_device(); START_TEST() local 5562 struct litest_device *dev = litest_current_device(); START_TEST() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_dev_attr.c | 16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument 21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer() 35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer() 40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument 45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name() 59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name() 64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument 69 len = dev in wps_build_model_number() 88 wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) wps_build_serial_number() argument 112 wps_build_primary_dev_type(struct wps_device_data *dev, struct wpabuf *msg) wps_build_primary_dev_type() argument 122 wps_build_secondary_dev_type(struct wps_device_data *dev, struct wpabuf *msg) wps_build_secondary_dev_type() argument 138 wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg, unsigned int num_req_dev_types, const u8 *req_dev_types) wps_build_req_dev_type() argument 158 wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg) wps_build_dev_name() argument 182 wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg) wps_build_device_attrs() argument 195 wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg) wps_build_os_version() argument 205 wps_build_vendor_ext_m1(struct wps_device_data *dev, struct wpabuf *msg) wps_build_vendor_ext_m1() argument 219 wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg, u8 rf_band) wps_build_rf_bands() argument 226 wps_build_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg) wps_build_vendor_ext() argument 245 wps_build_application_ext(struct wps_device_data *dev, struct wpabuf *msg) wps_build_application_ext() argument 260 wps_process_manufacturer(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_manufacturer() argument 279 wps_process_model_name(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_model_name() argument 298 wps_process_model_number(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_model_number() argument 317 wps_process_serial_number(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_serial_number() argument 336 wps_process_dev_name(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_dev_name() argument 355 wps_process_primary_dev_type(struct wps_device_data *dev, const u8 *dev_type) wps_process_primary_dev_type() argument 376 wps_process_device_attrs(struct wps_device_data *dev, struct wps_parse_attr *attr) wps_process_device_attrs() argument 394 wps_process_os_version(struct wps_device_data *dev, const u8 *ver) wps_process_os_version() argument 408 wps_process_vendor_ext_m1(struct wps_device_data *dev, const u8 ext) wps_process_vendor_ext_m1() argument 416 wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands) wps_process_rf_bands() argument 430 wps_device_data_free(struct wps_device_data *dev) wps_device_data_free() argument [all...] |
/third_party/backends/backend/genesys/ |
H A D | gl846.cpp | 3 Copyright (C) 2012-2013 Stéphane Voltz <stef.dev@free.fr> 52 * @param dev device structure holding register set to initialize 55 gl846_init_registers (Genesys_Device * dev) in gl846_init_registers() argument 59 dev->reg.clear(); in gl846_init_registers() 61 dev->reg.init_reg(0x01, 0x60); in gl846_init_registers() 62 if (dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_7400 || in gl846_init_registers() 63 dev->model->model_id == ModelId::PLUSTEK_OPTICFILM_8200I) in gl846_init_registers() 65 dev->reg.init_reg(0x01, 0x22); in gl846_init_registers() 67 dev->reg.init_reg(0x02, 0x38); in gl846_init_registers() 68 dev in gl846_init_registers() 287 gl846_set_adi_fe(Genesys_Device* dev, std::uint8_t set) gl846_set_adi_fe() argument 317 set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set) const set_fe() argument 338 gl846_init_motor_regs_scan(Genesys_Device* dev, const Genesys_Sensor& sensor, const ScanSession& session, Genesys_Register_Set* reg, const MotorProfile& motor_profile, unsigned int scan_exposure_time, unsigned scan_yres, unsigned int scan_lines, unsigned int scan_dummy, unsigned int feed_steps, ScanFlag flags) gl846_init_motor_regs_scan() argument 514 gl846_init_optical_regs_scan(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg, unsigned int exposure_time, const ScanSession& session) gl846_init_optical_regs_scan() argument 619 init_regs_for_scan_session(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg, const ScanSession& session) const init_regs_for_scan_session() argument 667 calculate_scan_session(const Genesys_Device* dev, const Genesys_Sensor& sensor, const Genesys_Settings& settings) const calculate_scan_session() argument 734 save_power(Genesys_Device* dev, bool enable) const save_power() argument 740 set_powersaving(Genesys_Device* dev, int delay ) const set_powersaving() argument 747 begin_scan(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg, bool start_motor) const begin_scan() argument 771 end_scan(Genesys_Device* dev, Genesys_Register_Set* reg, bool check_stop) const end_scan() argument 787 move_back_home(Genesys_Device* dev, bool wait_until_home) const move_back_home() argument 793 init_regs_for_shading(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs) const init_regs_for_shading() argument 864 send_shading_data(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t* data, int size) const send_shading_data() argument 926 led_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs) const led_calibration() argument 935 gl846_init_gpio(Genesys_Device* dev) gl846_init_gpio() argument 947 gl846_init_memory_layout(Genesys_Device* dev) gl846_init_memory_layout() argument 960 asic_boot(Genesys_Device* dev, bool cold) const asic_boot() argument 1065 offset_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs) const offset_calibration() argument 1071 coarse_gain_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs, int dpi) const coarse_gain_calibration() argument 1083 init_regs_for_warmup(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* regs) const init_regs_for_warmup() argument 1092 send_gamma_table(Genesys_Device* dev, const Genesys_Sensor& sensor) const send_gamma_table() argument [all...] |
H A D | gl842.cpp | 3 Copyright (C) 2010-2013 Stéphane Voltz <stef.dev@free.fr> 34 static void gl842_init_registers(Genesys_Device& dev) in gl842_init_registers() argument 42 dev.reg.clear(); in gl842_init_registers() 44 if (dev.model->model_id == ModelId::PLUSTEK_OPTICFILM_7200) { in gl842_init_registers() 45 dev.reg.init_reg(0x01, 0x00); in gl842_init_registers() 46 dev.reg.init_reg(0x02, 0x78); in gl842_init_registers() 47 dev.reg.init_reg(0x03, 0xbf); in gl842_init_registers() 48 dev.reg.init_reg(0x04, 0x22); in gl842_init_registers() 49 dev.reg.init_reg(0x05, 0x48); in gl842_init_registers() 51 dev in gl842_init_registers() 226 set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set) const set_fe() argument 267 gl842_init_motor_regs_scan(Genesys_Device* dev, const Genesys_Sensor& sensor, const ScanSession& session, Genesys_Register_Set* reg, const MotorProfile& motor_profile, unsigned int exposure, unsigned scan_yres, unsigned int scan_lines, unsigned int scan_dummy, unsigned int feed_steps, ScanFlag flags) gl842_init_motor_regs_scan() argument 410 gl842_init_optical_regs_scan(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg, unsigned int exposure, const ScanSession& session) gl842_init_optical_regs_scan() argument 528 init_regs_for_scan_session(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg, const ScanSession& session) const init_regs_for_scan_session() argument 575 calculate_scan_session(const Genesys_Device* dev, const Genesys_Sensor& sensor, const Genesys_Settings& settings) const calculate_scan_session() argument 638 save_power(Genesys_Device* dev, bool enable) const save_power() argument 644 set_powersaving(Genesys_Device* dev, int delay ) const set_powersaving() argument 671 begin_scan(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg, bool start_motor) const begin_scan() argument 737 end_scan(Genesys_Device* dev, Genesys_Register_Set* reg, bool check_stop) const end_scan() argument 751 move_back_home(Genesys_Device* dev, bool wait_until_home) const move_back_home() argument 756 init_regs_for_shading(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs) const init_regs_for_shading() argument 836 send_gamma_table(Genesys_Device* dev, const Genesys_Sensor& sensor) const send_gamma_table() argument 864 led_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs) const led_calibration() argument 870 offset_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs) const offset_calibration() argument 876 coarse_gain_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set& regs, int dpi) const coarse_gain_calibration() argument 882 init_regs_for_warmup(Genesys_Device* dev, const Genesys_Sensor& sensor, Genesys_Register_Set* reg) const init_regs_for_warmup() argument 932 gl842_init_gpio(Genesys_Device* dev) gl842_init_gpio() argument 941 asic_boot(Genesys_Device* dev, bool cold) const asic_boot() argument 1009 send_shading_data(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t* data, int size) const send_shading_data() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_vblank.c | 156 static bool drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe, ktime_t *tvblank, bool in_vblank_irq); 168 static void store_vblank(struct drm_device *dev, unsigned int pipe, u32 vblank_count_inc, ktime_t t_vblank, u32 last) in store_vblank() argument 170 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in store_vblank() 172 assert_spin_locked(&dev->vblank_time_lock); in store_vblank() 182 static u32 drm_max_vblank_count(struct drm_device *dev, unsigned int pipe) in drm_max_vblank_count() argument 184 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_max_vblank_count() 186 return vblank->max_vblank_count ?: dev->max_vblank_count; in drm_max_vblank_count() 193 static u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe) in drm_vblank_no_hw_counter() argument 195 drm_WARN_ON_ONCE(dev, drm_max_vblank_count(dev, pip in drm_vblank_no_hw_counter() 199 _get_vblank_counter(struct drm_device *dev, unsigned int pipe) _get_vblank_counter() argument 227 drm_reset_vblank_timestamp(struct drm_device *dev, unsigned int pipe) drm_reset_vblank_timestamp() argument 275 drm_update_vblank_count(struct drm_device *dev, unsigned int pipe, bool in_vblank_irq) drm_update_vblank_count() argument 368 drm_vblank_count(struct drm_device *dev, unsigned int pipe) drm_vblank_count() argument 404 struct drm_device *dev = crtc->dev; drm_crtc_accurate_vblank_count() local 423 _disable_vblank(struct drm_device *dev, unsigned int pipe) _disable_vblank() argument 446 drm_vblank_disable_and_save(struct drm_device *dev, unsigned int pipe) drm_vblank_disable_and_save() argument 486 struct drm_device *dev = vblank->dev; vblank_disable_fn() local 498 drm_vblank_init_release(struct drm_device *dev, void *ptr) drm_vblank_init_release() argument 520 drm_vblank_init(struct drm_device *dev, unsigned int num_crtcs) drm_vblank_init() argument 575 drm_dev_has_vblank(const struct drm_device *dev) drm_dev_has_vblank() argument 608 struct drm_device *dev = crtc->dev; drm_calc_timestamping_constants() local 691 struct drm_device *dev = crtc->dev; drm_crtc_vblank_helper_get_vblank_timestamp_internal() local 849 drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe, ktime_t *tvblank, bool in_vblank_irq) drm_get_last_vbltimestamp() argument 915 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe, ktime_t *vblanktime) drm_vblank_count_and_time() argument 960 send_vblank_event(struct drm_device *dev, struct drm_pending_vblank_event *e, u64 seq, ktime_t now) send_vblank_event() argument 1035 struct drm_device *dev = crtc->dev; drm_crtc_arm_vblank_event() local 1059 struct drm_device *dev = crtc->dev; drm_crtc_send_vblank_event() local 1076 _enable_vblank(struct drm_device *dev, unsigned int pipe) _enable_vblank() argument 1095 drm_vblank_enable(struct drm_device *dev, unsigned int pipe) drm_vblank_enable() argument 1132 drm_vblank_get(struct drm_device *dev, unsigned int pipe) drm_vblank_get() argument 1177 drm_vblank_put(struct drm_device *dev, unsigned int pipe) drm_vblank_put() argument 1225 drm_wait_one_vblank(struct drm_device *dev, unsigned int pipe) drm_wait_one_vblank() argument 1277 struct drm_device *dev = crtc->dev; drm_crtc_vblank_off() local 1360 struct drm_device *dev = crtc->dev; drm_crtc_vblank_reset() local 1399 struct drm_device *dev = crtc->dev; drm_crtc_set_max_vblank_count() local 1422 struct drm_device *dev = crtc->dev; drm_crtc_vblank_on() local 1465 drm_vblank_restore(struct drm_device *dev, unsigned int pipe) drm_vblank_restore() argument 1518 drm_legacy_vblank_pre_modeset(struct drm_device *dev, unsigned int pipe) drm_legacy_vblank_pre_modeset() argument 1546 drm_legacy_vblank_post_modeset(struct drm_device *dev, unsigned int pipe) drm_legacy_vblank_post_modeset() argument 1572 drm_legacy_modeset_ctl_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_legacy_modeset_ctl_ioctl() argument 1606 drm_queue_vblank_event(struct drm_device *dev, unsigned int pipe, u64 req_seq, union drm_wait_vblank *vblwait, struct drm_file *file_priv) drm_queue_vblank_event() argument 1707 drm_wait_vblank_reply(struct drm_device *dev, unsigned int pipe, struct drm_wait_vblank_reply *reply) drm_wait_vblank_reply() argument 1723 drm_wait_vblank_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_wait_vblank_ioctl() argument 1856 drm_handle_vblank_events(struct drm_device *dev, unsigned int pipe) drm_handle_vblank_events() argument 1901 drm_handle_vblank(struct drm_device *dev, unsigned int pipe) drm_handle_vblank() argument 1990 drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_crtc_get_sequence_ioctl() argument 2047 drm_crtc_queue_sequence_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) drm_crtc_queue_sequence_ioctl() argument [all...] |
/third_party/NuttX/drivers/pipes/ |
H A D | pipe_common.c | 96 static void pipecommon_pollnotify(struct pipe_dev_s *dev, in pipecommon_pollnotify() argument 104 notify_poll_with_key(&dev->wq, eventset); in pipecommon_pollnotify() 117 struct pipe_dev_s *dev = NULL; in pipecommon_allocdev() local 127 dev = (struct pipe_dev_s *)malloc(sizeof(struct pipe_dev_s)); in pipecommon_allocdev() 128 if (dev) in pipecommon_allocdev() 132 (void)memset_s(dev, sizeof(struct pipe_dev_s), 0, sizeof(struct pipe_dev_s)); in pipecommon_allocdev() 133 ret = strcpy_s(dev->name, sizeof(dev->name), name); in pipecommon_allocdev() 136 free(dev); in pipecommon_allocdev() 139 sem_init(&dev in pipecommon_allocdev() 157 pipecommon_freedev(struct pipe_dev_s *dev) pipecommon_freedev() argument 172 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; pipecommon_open() local 281 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; pipecommon_close() local 379 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; pipecommon_read() local 540 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; pipecommon_write() local 701 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; pipecommon_poll() local 787 struct pipe_dev_s *dev = NULL; pipecommon_unlink() local [all...] |