/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | rt.sh | 92 then print -r -n -- "$unit" 121 function unit function 126 if [[ " $x " != *' '$unit' '* && " $unit " != *' '$x' '* ]] 128 then unit="$unit $x" 129 else unit="$x $unit" 133 unit="$unit ${dots:1:${#dots}-${#unit}}" 135 then unit="$unit..........." 138 then print -r -n -- "$unit" 193 unit=${3##*/} 195 [a-zA-Z]*) unit="$unit $4" ;; [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() 83 efi_handle_lookup(EFI_HANDLE h, struct devsw **dev, int *unit, uint64_t *extra) in efi_handle_lookup() argument 92 if (unit != NULL) in efi_handle_lookup() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | ccp.c | 87 static void ccp_init __P((int unit)); 88 static void ccp_open __P((int unit)); 89 static void ccp_close __P((int unit, char *)); 90 static void ccp_lowerup __P((int unit)); 92 static void ccp_input __P((int unit, u_char *pkt, int len)); 93 static void ccp_protrej __P((int unit)); 97 static void ccp_datainput __P((int unit, u_char *pkt, int len)); 302 ccp_init(unit) in ccp_init() argument 303 int unit; in ccp_init() 305 fsm *f = &ccp_fsm[unit]; [all …]
|
H A D | ipv6cp.c | 351 ipv6cp_init(unit) in ipv6cp_init() argument 352 int unit; in ipv6cp_init() 354 fsm *f = &ipv6cp_fsm[unit]; 355 ipv6cp_options *wo = &ipv6cp_wantoptions[unit]; 356 ipv6cp_options *ao = &ipv6cp_allowoptions[unit]; 358 f->unit = unit; 361 fsm_init(&ipv6cp_fsm[unit]); 382 ipv6cp_open(unit) in ipv6cp_open() argument 383 int unit; in ipv6cp_open() 385 fsm_open(&ipv6cp_fsm[unit]); [all …]
|
H A D | ipcp.c | 362 ipcp_init(unit) in ipcp_init() argument 363 int unit; in ipcp_init() 365 fsm *f = &ipcp_fsm[unit]; 366 ipcp_options *wo = &ipcp_wantoptions[unit]; 367 ipcp_options *ao = &ipcp_allowoptions[unit]; 369 f->unit = unit; 372 fsm_init(&ipcp_fsm[unit]); 394 proxy_arp_quiet[unit] = 0; 402 ipcp_open(unit) in ipcp_open() argument 403 int unit; in ipcp_open() [all …]
|
H A D | auth.c | 404 link_required(unit) in link_required() argument 405 int unit; in link_required() 415 link_terminated(unit) in link_terminated() argument 416 int unit; in link_terminated() 475 link_down(unit) in link_down() argument 476 int unit; in link_down() 483 update_link_stats(unit); 491 (*protp->lowerdown)(unit); 493 (*protp->close)(unit, "LCP down"); 506 link_established(unit) in link_established() argument [all …]
|
H A D | chap.c | 145 ChapInit(unit) in ChapInit() argument 146 int unit; in ChapInit() 148 chap_state *cstate = &chap[unit]; 151 cstate->unit = unit; 167 ChapAuthWithPeer(unit, our_name, digest) in ChapAuthWithPeer() argument 168 int unit; in ChapAuthWithPeer() 172 chap_state *cstate = &chap[unit]; 197 ChapAuthPeer(unit, our_name, digest) in ChapAuthPeer() argument 198 int unit; in ChapAuthPeer() 202 chap_state *cstate = &chap[unit]; [all …]
|
H A D | lcp.c | 492 lcp_init(unit) in lcp_init() argument 493 int unit; in lcp_init() 495 fsm *f = &lcp_fsm[unit]; 496 lcp_options *wo = &lcp_wantoptions[unit]; 497 lcp_options *ao = &lcp_allowoptions[unit]; 499 f->unit = unit; 553 BZERO(xmit_accm[unit], sizeof(xmit_accm[0])); 554 xmit_accm[unit][3] = 0x60000000; 562 lcp_open(unit) in lcp_open() argument 563 int unit; in lcp_open() [all …]
|
H A D | upap.c | 134 upap_init(unit) in upap_init() argument 135 int unit; in upap_init() 137 upap_state *u = &upap[unit]; 139 u->us_unit = unit; 161 upap_authwithpeer(unit, user, password) in upap_authwithpeer() argument 162 int unit; in upap_authwithpeer() 165 upap_state *u = &upap[unit]; 190 upap_authpeer(unit) in upap_authpeer() argument 191 int unit; in upap_authpeer() 193 upap_state *u = &upap[unit]; [all …]
|
H A D | cbcp.c | 48 static void cbcp_init __P((int unit)); 49 static void cbcp_lowerup __P((int unit)); 50 static void cbcp_input __P((int unit, u_char *pkt, int len)); 51 static void cbcp_protrej __P((int unit)); 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() [all …]
|
/illumos-gate/usr/src/cmd/prctl/ |
H A D | utils.c | 107 scale_t *scale, char *unit, int flags) { in scaledtouint64() argument 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() 248 if (*(endptr + strlen(unit)) != '\0') in scaledtouint64() 252 *unitout = unit; in scaledtouint64() 261 scale_t *scale, char *unit, int flags) { in uint64toscaled() argument [all …]
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | tli.c | 89 if (request->client->unit != 0) { 90 memcpy(&client, request->client->unit->addr.buf, 92 request->client->unit->addr.buf)); 96 if (request->server->unit != 0) { 97 memcpy(&server, request->server->unit->addr.buf, 99 request->server->unit->addr.buf)); 119 if (request->client->unit != 0) 120 t_free((char *) request->client->unit, T_UNITDATA); 121 if (request->server->unit != 0) 122 t_free((char *) request->server->unit, T_UNITDATA); [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd_cpu.c | 287 int unit; in sbd_cpu_flags() local 289 unit = sbdp_portid_to_cpu_unit(cmp, core); in sbd_cpu_flags() 295 if (SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_cpu_flags() 299 dip = sbp->sb_devlist[NIX(SBD_COMP_CMP)][unit]; in sbd_cpu_flags() 303 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_cpu_flags() 342 int i, rv = 0, unit; in sbd_pre_release_cpu() local 375 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu() 376 if (unit < 0) { in sbd_pre_release_cpu() 388 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_pre_release_cpu() 397 cpuid, unit); in sbd_pre_release_cpu() [all …]
|
H A D | sbd_io.c | 53 sbd_attach_io(sbd_handle_t *hp, sbderror_t *ep, dev_info_t *dip, int unit) in sbd_attach_io() argument 61 ASSERT(sbp->sb_iopath[unit] != NULL); in sbd_attach_io() 63 (void) ddi_pathname(dip, sbp->sb_iopath[unit]); in sbd_attach_io() 72 sbd_detach_io(sbd_handle_t *hp, sbderror_t *ep, dev_info_t *dip, int unit) in sbd_detach_io() argument 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() 107 } else if (SBD_DEV_IS_PRESENT(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() 120 SBD_DEVICE_TRANSITION(sbp, SBD_COMP_IO, unit, new_state); in sbd_init_io_unit() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_log.c | 551 int ipflog_read(unit, uio, ifs) in ipflog_read() argument 552 minor_t unit; in ipflog_read() 565 if (IPL_LOGMAX < unit) 580 while (ifs->ifs_iplt[unit] == NULL) { 607 l = get_sleep_lock(&ifs->ifs_iplh[unit]); 608 error = sleep(&ifs->ifs_iplh[unit], PZERO+1); 612 error = mpsleep(&ifs->ifs_iplh[unit], PSUSP|PCATCH, "iplread", 0, 617 error = SLEEP(&ifs->ifs_iplh[unit], "ipl sleep"); 631 for (copied = 0; ((ipl = ifs->ifs_iplt[unit]) != NULL); copied += dlen) { 638 ifs->ifs_iplt[unit] = ipl->ipl_next; [all …]
|
H A D | ip_pool.c | 294 int unit, i, err = 0; local 300 unit = op->iplo_unit; 301 if (unit == IPL_LOGALL) { 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]; 327 void *ip_pool_find(unit, name, ifs) in ip_pool_find() argument 328 int unit; in ip_pool_find() 334 for (p = ifs->ifs_ip_pool_list[unit]; p != NULL; p = p->ipo_next) 505 int poolnum, unit; local [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fdc.c | 385 int unit; in fdc_bus_ctl() local 392 len = sizeof (unit); in fdc_bus_ctl() 394 DDI_PROP_DONTPASS, "unit", (caddr_t)&unit, &len) in fdc_bus_ctl() 396 cntlr != FDCTLR(unit) || in fdc_bus_ctl() 397 (fcp->c_unit[FDUNIT(unit)])->fj_dip) in fdc_bus_ctl() 400 (void) sprintf(name, "%d,%d", cntlr, FDUNIT(unit)); in fdc_bus_ctl() 403 fjp = fcp->c_unit[FDUNIT(unit)]; in fdc_bus_ctl() 404 fjp->fj_unit = unit; in fdc_bus_ctl() 494 int cntlr_num, ctlr, unit; in fdc_attach() local 524 for (unit = 0, fjp = (struct fcu_obj *)(fcp+1); in fdc_attach() [all …]
|
H A D | fd.c | 660 int part, unit; in fd_open() local 666 unit = fd_getdrive(dev, &fjp, &fdp); in fd_open() 703 fjp->fj_ops->fco_select(fjp, unit, 1); in fd_open() 704 if (fjp->fj_ops->fco_getchng(fjp, unit) != 0) { in fd_open() 705 if (fjp->fj_ops->fco_rcseek(fjp, unit, -1, 0)) { in fd_open() 708 fjp->fj_ops->fco_select(fjp, unit, 0); in fd_open() 716 fjp->fj_ops->fco_select(fjp, unit, 0); in fd_open() 723 rval = fdgetlabel(fjp, unit); in fd_open() 724 fjp->fj_ops->fco_select(fjp, unit, 0); in fd_open() 769 fdgetlabel(struct fcu_obj *fjp, int unit) in fdgetlabel() argument [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 | 303 get_floppy_disk_name (char *name, int unit) in get_floppy_disk_name() argument 308 sprintf (name, "/dev/floppy/%d", unit); in get_floppy_disk_name() 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() 319 sprintf (name, "/dev/rfd%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() 332 sprintf (name, "/dev/rdiskette%d", unit); in get_floppy_disk_name() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/amd64/ |
H A D | pci_lpc.c | 98 int unit, error; in lpc_device_parse() local 152 for (unit = 0; unit < LPC_UART_NUM; unit++) { in lpc_device_parse() 153 if (strcasecmp(lpcdev, lpc_uart_names[unit]) == 0) { in lpc_device_parse() 155 lpc_uart_names[unit]); in lpc_device_parse() 276 int unit, error; in lpc_init() local 279 for (unit = 0; unit < LPC_UART_NUM; unit++) { in lpc_init() 280 sc = &lpc_uart_softc[unit]; in lpc_init() 281 name = lpc_uart_names[unit]; in lpc_init() 283 if (uart_legacy_alloc(unit, &sc->iobase, &sc->irq) != 0) { in lpc_init() 425 int unit; in pci_lpc_uart_dsdt() local [all …]
|
/illumos-gate/usr/src/cmd/dlstat/ |
H A D | dlstat.c | 816 dlstat_unit(char *oarg, char *unit) in dlstat_unit() argument 821 *unit = oarg[0]; in dlstat_unit() 829 map_to_units(char *buf, uint_t bufsize, double num, char unit, in map_to_units() argument 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() [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() 220 if (unit == dev->d_unit) in bd_get_bdinfo() 222 unit++; in bd_get_bdinfo() 235 int i, unit; in bd_bios2unit() local 239 unit = 0; in bd_bios2unit() 242 DPRINTF("bd unit %d is BIOS device 0x%x", unit, in bd_bios2unit() 244 return (unit); in bd_bios2unit() 246 unit++; in bd_bios2unit() 257 int unit; in bd_unit2bios() local [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/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() 333 SBDP_DBG_MISC("unit is %d\n", unit); in sbdp_get_unit_num() 341 return (unit); in sbdp_get_unit_num() 963 sbdp_cpu_in_reset(int node, int bd, int unit, int reset) in sbdp_cpu_in_reset() argument [all …]
|