/third_party/backends/backend/ |
H A D | kvs20xx.c | 79 static SANE_Device **devlist = NULL; variable 85 if (devlist) in sane_exit() 88 for (i = 0; devlist[i]; i++) in sane_exit() 90 free ((void *) devlist[i]->name); in sane_exit() 91 free ((void *) devlist[i]); in sane_exit() 93 free ((void *) devlist); in sane_exit() 94 devlist = NULL; in sane_exit() 102 if (devlist) in attach() 104 for (; devlist[i]; i++); in attach() 105 devlist in attach() [all...] |
H A D | kvs40xx.c | 175 static SANE_Device **devlist = NULL; variable 181 if (devlist) in sane_exit() 184 for (i = 0; devlist[i]; i++) in sane_exit() 186 free ((void *) devlist[i]); in sane_exit() 188 free ((void *) devlist); in sane_exit() 189 devlist = NULL; in sane_exit() 200 if (devlist) in attach() 202 for (; devlist[i]; i++); in attach() 203 devlist = realloc (devlist, sizeo in attach() [all...] |
H A D | hpljm1005.c | 180 static SANE_Device **devlist = NULL; variable 410 if (devlist) in sane_exit() 413 for (i = 0; devlist[i]; i++) in sane_exit() 414 free (devlist[i]); in sane_exit() 415 free (devlist); in sane_exit() 416 devlist = NULL; in sane_exit() 460 if (devlist) in sane_get_devices() 462 for (i = 0; devlist[i]; i++) in sane_get_devices() 463 free (devlist[i]); in sane_get_devices() 464 free (devlist); in sane_get_devices() [all...] |
H A D | hp.c | 300 const SANE_Device ** devlist; member 775 const SANE_Device **devlist; in hp_update_devlist() local 780 if (global.devlist) in hp_update_devlist() 781 sanei_hp_free(global.devlist); in hp_update_devlist() 786 if (!(devlist = sanei_hp_alloc((count + 1) * sizeof(*devlist)))) in hp_update_devlist() 789 global.devlist = devlist; in hp_update_devlist() 792 *devlist++ = sanei_hp_device_sanedevice(devp->dev); in hp_update_devlist() 793 *devlist in hp_update_devlist() [all...] |
H A D | net.c | 118 static const SANE_Device **devlist; variable 961 devlist = NULL; 1170 if (devlist) 1172 for (i = 0; devlist[i]; ++i) 1174 if (devlist[i]->vendor) 1175 free ((void *) devlist[i]->vendor); 1176 if (devlist[i]->model) 1177 free ((void *) devlist[i]->model); 1178 if (devlist[i]->type) 1179 free ((void *) devlist[ [all...] |
H A D | sm3600.c | 408 static const SANE_Device ** devlist = 0; /* only pseudo-statical */ variable 426 if (devlist) free(devlist); in sane_exit() 427 devlist=NULL; in sane_exit() 437 if (devlist) free (devlist); in sane_get_devices() 439 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 440 if (!devlist) in sane_get_devices() 445 devlist[ in sane_get_devices() [all...] |
H A D | canon630u.c | 85 static const SANE_Device **devlist = NULL; variable 778 if (devlist) in sane_exit() 779 free (devlist); in sane_exit() 792 if (devlist) in sane_get_devices() 793 free (devlist); in sane_get_devices() 795 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 796 if (!devlist) in sane_get_devices() 802 devlist[i++] = &dev->sane; in sane_get_devices() 804 devlist[ in sane_get_devices() [all...] |
H A D | umax1220u.c | 87 static const SANE_Device **devlist = NULL; variable 650 if (devlist) in sane_exit() 651 free (devlist); in sane_exit() 663 if (devlist) in sane_get_devices() 664 free (devlist); in sane_get_devices() 666 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 667 if (!devlist) in sane_get_devices() 673 devlist[i++] = &dev->sane; in sane_get_devices() 675 devlist[ in sane_get_devices() [all...] |
H A D | umax_pp.c | 108 static Umax_PP_Descriptor *devlist = NULL; variable 229 if (strcmp (devlist[i].ppdevice, devname) == 0) in umax_pp_attach() 234 if (strcmp (devlist[i].port, devname) == 0) in umax_pp_attach() 302 memcpy (dev + 1, devlist, sizeof (Umax_PP_Descriptor) * (num_devices)); in umax_pp_attach() 303 free (devlist); in umax_pp_attach() 306 devlist = dev; in umax_pp_attach() 992 free (devlist[i].port); in sane_exit() 993 free ((void *) devlist[i].sane.name); in sane_exit() 994 free ((void *) devlist[i].sane.model); in sane_exit() 995 free ((void *) devlist[ in sane_exit() [all...] |
H A D | dll.c | 274 static SANE_Device **devlist = NULL; variable 1086 if (NULL != devlist) in sane_exit() 1089 while (devlist[i]) in sane_exit() 1090 free (devlist[i++]); in sane_exit() 1091 free (devlist); in sane_exit() 1093 devlist = NULL; in sane_exit() 1119 if (devlist) \ in sane_get_devices() 1120 devlist = realloc (devlist, devlist_size * sizeof (devlist[ in sane_get_devices() [all...] |
H A D | as6e.c | 71 static const SANE_Device **devlist = 0; variable 541 if (devlist) in sane_exit() 542 free (devlist); in sane_exit() 665 static const SANE_Device **devlist = 0; in sane_get_devices() local 669 if (devlist) in sane_get_devices() 670 free (devlist); in sane_get_devices() 671 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 672 if (!devlist) in sane_get_devices() 676 devlist[ in sane_get_devices() [all...] |
H A D | sm3840.c | 76 static const SANE_Device **devlist = 0; variable 541 if (devlist) in sane_exit() 542 free (devlist); in sane_exit() 603 static const SANE_Device **devlist = 0; in sane_get_devices() local 623 if (devlist) in sane_get_devices() 624 free (devlist); in sane_get_devices() 625 devlist = calloc ((num_devices + 1) * sizeof (devlist[0]), 1); in sane_get_devices() 626 if (!devlist) in sane_get_devices() 630 devlist[ in sane_get_devices() [all...] |
H A D | p5.c | 89 static const SANE_Device **devlist = 0; variable 217 /* free existing devlist first */ in sane_get_devices() 218 if (devlist) in sane_get_devices() 220 for (i = 0; devlist[i] != NULL; i++) in sane_get_devices() 221 free ((void *)devlist[i]); in sane_get_devices() 222 free (devlist); in sane_get_devices() 223 devlist = NULL; in sane_get_devices() 236 devlist = malloc (sizeof (devlist[0])); in sane_get_devices() 237 if (!devlist) in sane_get_devices() [all...] |
H A D | canon_lide70.c | 147 static const SANE_Device **devlist = NULL; variable 284 if (devlist) in sane_exit() 285 free (devlist); in sane_exit() 298 if (devlist) in sane_get_devices() 299 free (devlist); in sane_get_devices() 301 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 302 if (!devlist) in sane_get_devices() 308 devlist[i++] = &dev->sane; in sane_get_devices() 310 devlist[ in sane_get_devices() [all...] |
H A D | pint.c | 617 static const SANE_Device **devlist = 0; in sane_get_devices() local 621 if (devlist) in sane_get_devices() 622 free (devlist); in sane_get_devices() 624 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 625 if (!devlist) in sane_get_devices() 630 devlist[i++] = &dev->sane; in sane_get_devices() 631 devlist[i++] = 0; in sane_get_devices() 633 *device_list = devlist; in sane_get_devices()
|
H A D | pieusb.c | 133 static const SANE_Device **devlist = NULL; variable 280 if (devlist) { in sane_exit() 281 free (devlist); in sane_exit() 282 devlist = NULL; in sane_exit() 306 if (devlist) { in sane_get_devices() 307 free (devlist); in sane_get_devices() 309 devlist = malloc ((i + 1) * sizeof (devlist[0])); in sane_get_devices() 310 if (!devlist) { in sane_get_devices() 315 devlist[ in sane_get_devices() [all...] |
H A D | v4l.c | 87 static const SANE_Device **devlist = NULL; variable 486 if (NULL != devlist) in sane_exit() 488 free (devlist); in sane_exit() 489 devlist = NULL; in sane_exit() 502 if (devlist) in sane_get_devices() 503 free (devlist); in sane_get_devices() 505 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 506 if (!devlist) in sane_get_devices() 511 devlist[ in sane_get_devices() [all...] |
H A D | dmc.c | 74 static SANE_Device const **devlist = NULL; variable 874 if (devlist) in sane_exit() 875 free (devlist); in sane_exit() 896 if (devlist) free(devlist); in sane_get_devices() 897 devlist = malloc((NumDevices+1) * sizeof(devlist[0])); in sane_get_devices() 898 if (!devlist) return SANE_STATUS_NO_MEM; in sane_get_devices() 901 devlist[i++] = &dev->sane; in sane_get_devices() 903 devlist[ in sane_get_devices() [all...] |
H A D | abaton.c | 83 static const SANE_Device **devlist = 0; variable 908 if (devlist) in sane_exit() 909 free (devlist); in sane_exit() 920 if (devlist) in sane_get_devices() 921 free (devlist); in sane_get_devices() 923 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 924 if (!devlist) in sane_get_devices() 929 devlist[i++] = &dev->sane; in sane_get_devices() 930 devlist[ in sane_get_devices() [all...] |
H A D | s9036.c | 48 static const SANE_Device **devlist = NULL; variable 875 if (devlist) in sane_exit() 876 free (devlist); in sane_exit() 887 if (devlist) in sane_get_devices() 888 free (devlist); in sane_get_devices() 890 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 891 if (!devlist) in sane_get_devices() 895 devlist[i++] = &dev->sane; in sane_get_devices() 896 devlist[ in sane_get_devices() [all...] |
H A D | ricoh.c | 73 static const SANE_Device **devlist = NULL; variable 542 if (devlist) in sane_exit() 543 free (devlist); in sane_exit() 558 if (devlist) in sane_get_devices() 559 free (devlist); in sane_get_devices() 560 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 561 if (!devlist) in sane_get_devices() 566 devlist[i++] = &dev->sane; in sane_get_devices() 567 devlist[ in sane_get_devices() [all...] |
H A D | mustek_usb2.c | 78 static const SANE_Device **devlist = 0; variable 2029 if (devlist != NULL) in sane_exit() 2031 free (devlist); in sane_exit() 2032 devlist = NULL; in sane_exit() 2035 devlist = NULL; in sane_exit() 2046 if (devlist != NULL) in sane_get_devices() 2048 free (devlist); in sane_get_devices() 2049 devlist = NULL; in sane_get_devices() 2052 devlist = malloc ((num_devices + 1) * sizeof (devlist[ in sane_get_devices() [all...] |
H A D | canon_pp.c | 458 static const SANE_Device **devlist; in sane_get_devices() local 466 DBG(1, "sane_get_devices: ERROR: devlist pointer is NULL!"); in sane_get_devices() 470 if (devlist != NULL) in sane_get_devices() 473 *dl = devlist; in sane_get_devices() 476 devlist = malloc((num_devices + 1) * sizeof(*devlist)); in sane_get_devices() 477 if (devlist == NULL) in sane_get_devices() 485 devlist[i] = &(dev->hw); in sane_get_devices() 490 devlist[i] = NULL; in sane_get_devices() 492 *dl = devlist; in sane_get_devices() [all...] |
H A D | ibm.c | 602 static const SANE_Device **devlist = 0; in sane_get_devices() local 607 if (devlist) in sane_get_devices() 608 free (devlist); in sane_get_devices() 609 devlist = malloc ((num_devices + 1) * sizeof (devlist[0])); in sane_get_devices() 610 if (!devlist) in sane_get_devices() 615 devlist[i++] = &dev->sane; in sane_get_devices() 616 devlist[i++] = 0; in sane_get_devices() 618 *device_list = devlist; in sane_get_devices()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | device.c | 663 hd_t *hd, *devlist, *partlist = NULL; in ntfs_device_get_geo() local 675 devlist = hd_list(hddata, hw_disk, 1, NULL); in ntfs_device_get_geo() 676 if (!devlist) { in ntfs_device_get_geo() 685 for (hd = devlist; hd; hd = hd->next) { in ntfs_device_get_geo() 747 hd_free_hd_list(devlist); in ntfs_device_get_geo()
|