Lines Matching defs:name
183 # include <signal.h> /* Only used for signal name for KillDomainServer */
631 /* query adapter name */
939 DBG (1, "sanei_scsi_open: device name %s is not valid\n", dev);
960 DBG (1, "sanei_scsi_open: device name `%s´ is not valid: %s\n",
1009 DBG (2, "Domain Server Common area name is '%s'\n", CommonAreaPath);
1098 DBG (2, "Mapping server's data block, name is '%s'\n", com->open_path);
1165 DBG (1, "sanei_scsi_open: device name `%s´ is not valid: %s\n",
1210 DBG (1, "sanei_scsi_open: device name %s is not valid\n", dev);
1227 DBG (1, "sanei_scsi_open: device name %s is not valid\n", dev);
1247 the device name refers to a scsi _bus_, not an individual scsi
1248 device. Hence, SANE has to fudge with the device name so we
1250 last character in the device name as the target index. 'a' is
2492 numbers (i.e. <host,bus,id,lun>) with a sg device file name
2529 lx_mk_devicename (int guess_devnum, char *name, size_t name_len)
2540 snprintf (name, name_len, "%s%c", dnp->prefix,
2543 snprintf (name, name_len, "%s%d", dnp->prefix, guess_devnum);
2546 dev_fd = rsm_open_device (name, O_RDWR | O_NONBLOCK);
2549 dev_fd = open (name, O_RDWR | O_NONBLOCK);
2602 static int /* Returns 1 if match with 'name' set, else 0 */
2604 lx_scan_sg (int exclude_devnum, char *name, size_t name_len,
2621 if ((dev_fd = lx_mk_devicename (k, name, name_len)) >= 0)
2639 lx_chk_devicename (int guess_devnum, char *name, size_t name_len,
2651 lx_mk_devicename (guess_devnum, name, name_len)) >= 0)
2654 snprintf (name, name_len, DEVFS_MSK, host, channel, id, lun);
2655 dev_fd = open (name, O_RDWR | O_NONBLOCK);
2660 DBG (1, "lx_chk_devicename: matched device(devfs): %s\n", name);
2667 if ((dev_fd = lx_mk_devicename (guess_devnum, name, name_len)) < -1)
2668 { /* no candidate sg device file name found, try /dev/sg0,1 */
2669 if ((dev_fd = lx_mk_devicename (0, name, name_len)) < -1)
2671 if ((dev_fd = lx_mk_devicename (1, name, name_len)) < -1)
2681 DBG (1, "lx_chk_devicename: matched device(direct): %s\n", name);
2687 if (lx_scan_sg (guess_devnum, name, name_len, host, channel, id, lun))
2689 DBG (1, "lx_chk_devicename: matched device(scan): %s\n", name);
2696 static void /* calls 'attach' function pointer with sg device file name iff match */
2726 const char *name;
2826 if (strncmp (string, param[i].name, param[i].name_len) == 0)
2829 /* Make sure that we don't read the next parameter name
2835 c1 = strstr (string, param[j].name);
2937 void /* calls 'attach' function pointer with sg device file name iff match */
3004 /* Extract bus, channel, id, lun from directory name b:c:i:l */
4079 get_devicename (int bus, int target, int lun, char *name, size_t name_len)
4081 snprintf (name, name_len, "b%dt%dl%d", bus, target, lun);
4082 DBG (1, "OS/2 searched device is %s\n", name);
4102 const char *name;
4206 if (strncmp (string, param[i].name, param[i].name_len) == 0)
4504 char dev_name[128]; /* SCSI device name */
4507 char vendor[9], /* Vendor name */
4508 model[17]; /* Model/product name */
4553 DBG (1, "sanei_scsi_find_devices: device name is \"%s\".\n",
6029 /* Create device name from the SCSITaskUserClient GUID */