/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | rt.sh | 128 then unit="$unit $x" 129 else unit="$x $unit" 133 unit="$unit ${dots:1:${#dots}-${#unit}}" 135 then unit="$unit..........." 195 [a-zA-Z]*) unit="$unit $4" ;; 197 unit 231 unit=${unit%.sh} 290 then unit=${unit/' tests'/} 321 then unit="$unit " 323 unit=$unit${1##*/} [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | handles.c | 37 int unit; member 49 int idx, unit; in efi_register_handles() local 55 for (unit = 0; idx < nentries; idx++, unit++) { in efi_register_handles() 56 entry[idx].handle = handles[unit]; in efi_register_handles() 58 entry[idx].alias = aliases[unit]; in efi_register_handles() 62 entry[idx].unit = unit; in efi_register_handles() 68 efi_find_handle(struct devsw *dev, int unit) in efi_find_handle() argument 75 if (entry[idx].unit != unit) in efi_find_handle() 92 if (unit != NULL) in efi_handle_lookup() 93 *unit = entry[idx].unit; in efi_handle_lookup() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | ccp.c | 302 ccp_init(unit) in ccp_init() argument 303 int unit; in ccp_init() 307 f->unit = unit; 339 ccp_open(unit) in ccp_open() argument 340 int unit; in ccp_open() 368 int unit; in ccp_close() 380 int unit; in ccp_lowerup() 390 int unit; in ccp_lowerdown() 400 int unit; in ccp_input() 512 int unit; in ccp_protrej() [all …]
|
H A D | ipv6cp.c | 351 ipv6cp_init(unit) in ipv6cp_init() argument 352 int unit; in ipv6cp_init() 358 f->unit = unit; 382 ipv6cp_open(unit) in ipv6cp_open() argument 383 int unit; in ipv6cp_open() 394 int unit; in ipv6cp_close() 406 int unit; in ipv6cp_lowerup() 417 int unit; in ipv6cp_lowerdown() 428 int unit; in ipv6cp_input() 441 int unit; in ipv6cp_protrej() [all …]
|
H A D | ipcp.c | 362 ipcp_init(unit) in ipcp_init() argument 363 int unit; in ipcp_init() 369 f->unit = unit; 403 int unit; in ipcp_open() 414 int unit; in ipcp_close() 426 int unit; in ipcp_lowerup() 437 int unit; in ipcp_lowerdown() 448 int unit; in ipcp_input() 461 int unit; in ipcp_protrej() 1662 int unit; in ipcp_clear_addrs() [all …]
|
H A D | auth.c | 401 int unit; in link_required() 412 int unit; in link_terminated() 472 int unit; in link_down() 503 int unit; in link_established() 606 int unit; in network_phase() 1012 int unit; in auth_reset() 1061 int unit; in check_passwd() 1429 int unit; in null_login() 1599 int unit; in get_secret() 1670 int unit; in set_allowed_addrs() [all …]
|
H A D | chap.c | 145 ChapInit(unit) in ChapInit() argument 146 int unit; in ChapInit() 151 cstate->unit = unit; 168 int unit; in ChapAuthWithPeer() 198 int unit; in ChapAuthPeer() 289 ChapLowerUp(unit) in ChapLowerUp() argument 290 int unit; in ChapLowerUp() 315 ChapLowerDown(unit) in ChapLowerDown() argument 316 int unit; in ChapLowerDown() 340 int unit; in ChapProtocolReject() [all …]
|
H A D | lcp.c | 493 int unit; in lcp_init() 499 f->unit = unit; 563 int unit; in lcp_open() 582 int unit; in lcp_close() 609 int unit; in lcp_lowerup() 622 ppp_set_xaccm(unit, xmit_accm[unit]); 643 int unit; in lcp_lowerdown() 654 int unit; in lcp_input() 771 int unit; in lcp_protrej() 3151 unit = lt->unit; [all …]
|
H A D | upap.c | 134 upap_init(unit) in upap_init() argument 135 int unit; in upap_init() 162 int unit; in upap_authwithpeer() 190 upap_authpeer(unit) in upap_authpeer() argument 191 int unit; in upap_authpeer() 256 upap_lowerup(unit) in upap_lowerup() argument 257 int unit; in upap_lowerup() 284 int unit; in upap_lowerdown() 305 upap_protrej(unit) in upap_protrej() argument 306 int unit; in upap_protrej() [all …]
|
H A D | cbcp.c | 104 cbcp_init(unit) in cbcp_init() argument 105 int unit; in cbcp_init() 109 us = &cbcp[unit]; 111 us->us_unit = unit; 117 cbcp_lowerup(unit) in cbcp_lowerup() argument 118 int unit; in cbcp_lowerup() 120 cbcp_state *us = &cbcp[unit]; 132 cbcp_input(unit, inpacket, pktlen) in cbcp_input() argument 133 int unit; in cbcp_input() 141 cbcp_state *us = &cbcp[unit]; [all …]
|
/illumos-gate/usr/src/cmd/prctl/ |
H A D | utils.c | 133 if ((unit && *unit != '\0') && in scaledtouint64() 223 if ((unit == NULL || *unit == '\0') && (*endptr != '\0')) in scaledtouint64() 227 if ((unit && *unit != '\0') && in scaledtouint64() 233 if (unit && *unit != '\0') { in scaledtouint64() 241 cmp = strncasecmp(unit, endptr, strlen(unit)); in scaledtouint64() 243 cmp = strncmp(unit, endptr, strlen(unit)); in scaledtouint64() 252 *unitout = unit; in scaledtouint64() 282 if (unit && *unit != '\0') in uint64toscaled() 336 if (unit && *unit != '\0') in uint64toscaled() 354 scale, unit, flags); in scaledtoscaled() [all …]
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | tli.c | 89 if (request->client->unit != 0) { 96 if (request->server->unit != 0) { 119 if (request->client->unit != 0) 121 if (request->server->unit != 0) 160 request->client->unit = client; 176 request->server->unit = server; 235 struct t_unitdata *unit = host->unit; local 238 if (config != 0 && unit != 0 252 struct t_unitdata *unit = host->unit; local 255 if (config != 0 && unit != 0 [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd_cpu.c | 287 int unit; in sbd_cpu_flags() local 376 if (unit < 0) { in sbd_pre_release_cpu() 397 cpuid, unit); in sbd_pre_release_cpu() 438 if (unit < 0) { in sbd_pre_release_cpu() 462 int unit; in sbd_pre_attach_cpu() local 493 if (unit < 0) { in sbd_pre_attach_cpu() 543 int unit; in sbd_post_attach_cpu() local 615 if (unit < 0) { in sbd_post_attach_cpu() 647 int unit; in sbd_pre_detach_cpu() local 694 if (unit < 0) { in sbd_pre_detach_cpu() [all …]
|
H A D | sbd_io.c | 61 ASSERT(sbp->sb_iopath[unit] != NULL); in sbd_attach_io() 63 (void) ddi_pathname(dip, sbp->sb_iopath[unit]); in sbd_attach_io() 97 sbd_init_io_unit(sbd_board_t *sbp, int unit) in sbd_init_io_unit() argument 103 ip = SBD_GET_BOARD_IOUNIT(sbp, unit); in sbd_init_io_unit() 105 if (SBD_DEV_IS_ATTACHED(sbp, SBD_COMP_IO, unit)) { in sbd_init_io_unit() 112 dip = sbp->sb_devlist[NIX(SBD_COMP_IO)][unit]; in sbd_init_io_unit() 125 sbd_disconnect_io(sbd_handle_t *hp, int unit) in sbd_disconnect_io() argument 213 int unit; in sbd_io_status() local 247 unit = isp->is_unit; in sbd_io_status() 249 dstate = SBD_DEVICE_STATE(sbp, SBD_COMP_IO, unit); in sbd_io_status() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_log.c | 552 minor_t unit; in ipflog_read() 565 if (IPL_LOGMAX < unit) 641 ifs->ifs_iplh[unit] = &ifs->ifs_iplt[unit]; 652 ifs->ifs_iplt[unit] = ipl; 653 ifs->ifs_ipll[unit] = ipl; 654 if (ifs->ifs_iplh[unit] == &ifs->ifs_iplt[unit]) { 678 int ipflog_clear(unit, ifs) in ipflog_clear() argument 679 minor_t unit; in ipflog_clear() 692 ifs->ifs_iplh[unit] = &ifs->ifs_iplt[unit]; 693 ifs->ifs_ipll[unit] = NULL; [all …]
|
H A D | ip_pool.c | 294 int unit, i, err = 0; local 300 unit = op->iplo_unit; 304 } else if (unit >= 0 && unit < IPL_LOGSIZE) { 306 stats.ipls_list[unit] = ip_pool_find(unit, 309 stats.ipls_list[unit] = ifs->ifs_ip_pool_list[unit]; 328 int unit; in ip_pool_find() 505 int poolnum, unit; local 555 h->ipo_unit = unit; 664 if (unit != IPLT_ALL && i != unit) 887 int unit; [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fdc.c | 385 int unit; in fdc_bus_ctl() local 525 unit < NFDUN; unit++) { in fdc_attach() 847 int unit; in fdc_detach() local 857 for (unit = 0; unit < NFDUN; unit++) in fdc_detach() 1615 int unit; in fdc_quiesce() local 1625 for (unit = 0; unit < NFDUN; unit++) { in fdc_quiesce() 1669 int unit; in fdcquiesce() local 1693 for (unit = 0; unit < NFDUN; unit++) in fdcquiesce() 2162 int unit; in fdc_exec() local 2447 int unit; in fdrecover() local [all …]
|
H A D | fd.c | 660 int part, unit; in fd_open() local 966 int unit; in fd_close() local 1135 int sctrshft, unit; in fdstart() local 1157 unit = fjp->fj_unit; in fdstart() 1293 int nblks, part, unit; in fd_ioctl() local 1303 unit, cmd, arg)); in fd_ioctl() 1817 unit)); in fd_ioctl() 1829 unit, cmd)); in fd_ioctl() 2066 unit &= 3; in fd_rawioctl() 2204 int unit; in fd_media_watch() local [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.print.c | 187 int unit; in flush() local 194 unit = didfds ? 2 : SHDIAG; in flush() 196 unit = didfds ? 1 : SHOUT; in flush() 199 if (didfds == 0 && ioctl(unit, TIOCLGET, (char *)&lmode) == 0 && in flush() 202 (void) ioctl(unit, TIOCLBIC, (char *)&lmode); in flush() 203 (void) write(unit, "\n", 1); in flush() 206 (void) write(unit, linbuf, linp - linbuf); in flush() 216 int unit; in write_string() local 223 unit = didfds ? 2 : SHDIAG; in write_string() 225 unit = didfds ? 1 : SHOUT; in write_string() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 310 sprintf (name, "/dev/fd%d", unit); in get_floppy_disk_name() 313 sprintf (name, "/dev/fd%d", unit); in get_floppy_disk_name() 317 sprintf (name, "/dev/fd%d", unit); in get_floppy_disk_name() 323 sprintf (name, "/dev/rfd%da", unit); in get_floppy_disk_name() 326 sprintf (name, "/dev/rfd%dc", unit); in get_floppy_disk_name() 329 sprintf (name, "/dev/fd%d", unit); in get_floppy_disk_name() 348 sprintf (name, "/dev/hd%d", unit); in get_ide_disk_name() 360 sprintf (shortname, "wd%d", unit); in get_ide_disk_name() 373 sprintf (name, "/dev/hd%d", unit); in get_ide_disk_name() 391 sprintf (name, "/dev/sd%d", unit); in get_scsi_disk_name() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_lpc.c | 99 int unit, error; in lpc_device_parse() local 153 for (unit = 0; unit < LPC_UART_NUM; unit++) { in lpc_device_parse() 156 lpc_uart_names[unit]); in lpc_device_parse() 276 int unit, error; in lpc_init() local 295 for (unit = 0; unit < LPC_UART_NUM; unit++) { in lpc_init() 296 sc = &lpc_uart_softc[unit]; in lpc_init() 297 name = lpc_uart_names[unit]; in lpc_init() 440 int unit; in pci_lpc_uart_dsdt() local 442 for (unit = 0; unit < LPC_UART_NUM; unit++) { in pci_lpc_uart_dsdt() 443 sc = &lpc_uart_softc[unit]; in pci_lpc_uart_dsdt() [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/ |
H A D | sbdp_priv.h | 90 #define SBDP_SET_CPU_PRESENT(bdp, unit)\ argument 91 ((bdp)->cpus_present |= (1 << (unit))) 93 #define SBDP_IS_CPU_PRESENT(bdp, unit)\ argument 94 (((bdp)->cpus_present & (1 << (unit))) != 0) 99 #define SBDP_SET_CPU_IN_RESET(bdp, unit)\ argument 100 ((bdp)->cpus_in_reset |= (1 << (unit))) 101 #define SBDP_UNSET_CPU_IN_RESET(bdp, unit)\ argument 102 ((bdp)->cpus_in_reset &= ~(1 << (unit))) 103 #define SBDP_IS_CPU_IN_RESET(bdp, unit)\ argument 104 (((bdp)->cpus_in_reset & (1 << (unit))) != 0)
|
/illumos-gate/usr/src/cmd/dlstat/ |
H A D | dlstat.c | 821 *unit = oarg[0]; in dlstat_unit() 837 if (unit == '\0') { in map_to_units() 845 unit = '\0'; in map_to_units() 848 unit = 'K'; in map_to_units() 851 unit = 'M'; in map_to_units() 854 unit = 'G'; in map_to_units() 857 unit = 'T'; in map_to_units() 862 unit = 'P'; in map_to_units() 866 switch (unit) { in map_to_units() 869 unit = '\0'; in map_to_units() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | biosdisk.c | 212 int unit; in bd_get_bdinfo() local 218 unit = 0; in bd_get_bdinfo() 222 unit++; in bd_get_bdinfo() 235 int i, unit; in bd_bios2unit() local 239 unit = 0; in bd_bios2unit() 246 unit++; in bd_bios2unit() 257 int unit; in bd_unit2bios() local 263 unit = 0; in bd_unit2bios() 267 unit++; in bd_unit2bios() 309 for (unit = 0; unit < numfd; unit++) { in fd_init() [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp.c | 250 int unit = -1; in sbdp_get_unit_num() local 283 unit = SG_CPUID_TO_CPU_UNIT(cpuid); in sbdp_get_unit_num() 287 unit = 0; in sbdp_get_unit_num() 323 unit = 0; in sbdp_get_unit_num() 325 unit = 1; in sbdp_get_unit_num() 329 unit = 2; in sbdp_get_unit_num() 331 unit = 3; in sbdp_get_unit_num() 341 return (unit); in sbdp_get_unit_num() 986 if (unit == SBDP_ALL_CPUS) in sbdp_cpu_in_reset() 993 SBDP_SET_CPU_IN_RESET(bdp, unit); in sbdp_cpu_in_reset() [all …]
|