Lines Matching refs:unit

503 	 * Split the device name into a device type name and a unit number;
504 * chop off the unit number, so "dname" is just a device type name.
546 * table for the specified device type name and unit number.
565 * Get the unit number, and a pointer to the end of the device
573 * Make a copy of the device pathname, and then remove the unit
579 /* Try device without unit number */
587 /* Try again with unit number */
613 /* XXX Assume unit zero */
967 * Split a device name into a device type name and a unit number;
968 * return the a pointer to the beginning of the unit number, which
969 * is the end of the device type name, and set "*unitp" to the unit
979 long unit;
986 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
991 /* Digits at end of string are unit number */
996 unit = strtol(cp, &eos, 10);
998 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
1001 if (errno == ERANGE || unit > INT_MAX) {
1002 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
1006 if (unit < 0) {
1007 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
1011 *unitp = (int)unit;
1235 * unit numbers.
1241 * the PPA is just the unit number.
1243 return ("Specified PPA (device unit) was invalid");
1283 return ("Previous data unit could not be delivered");
1612 get_dlpi_ppa(register int fd, register const char *device, register int unit,
1707 * name for the device that comes before the unit number,
1720 ip->dl_instance_num == unit)
1746 * device number of a device with the name "/dev/<dev><unit>",
1749 snprintf(dname, sizeof(dname), "/dev/%s%d", device, unit);
1761 ip->dl_instance_num == unit)
1769 "can't find /dev/dlpi PPA for %s%d", device, unit);
1774 "%s%d: hardware state: DOWN\n", device, unit);
1799 get_dlpi_ppa(register int fd, register const char *ifname, register int unit,
1842 if (strcmp(if_name, ifname) == 0 && ifnet.if_unit == unit)