Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 248) sorted by relevance

12345678910

/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dccp.c91 static void ccp_init __P((int unit));
92 static void ccp_open __P((int unit));
93 static void ccp_close __P((int unit, char *));
94 static void ccp_lowerup __P((int unit));
96 static void ccp_input __P((int unit, u_char *pkt, int len));
97 static void ccp_protrej __P((int unit));
101 static void ccp_datainput __P((int unit, u_char *pkt, int len));
306 ccp_init(unit) in ccp_init() argument
307 int unit; in ccp_init()
309 fsm *f = &ccp_fsm[unit];
[all …]
H A Dipv6cp.c355 ipv6cp_init(unit) in ipv6cp_init() argument
356 int unit; in ipv6cp_init()
358 fsm *f = &ipv6cp_fsm[unit];
359 ipv6cp_options *wo = &ipv6cp_wantoptions[unit];
360 ipv6cp_options *ao = &ipv6cp_allowoptions[unit];
362 f->unit = unit;
365 fsm_init(&ipv6cp_fsm[unit]);
386 ipv6cp_open(unit) in ipv6cp_open() argument
387 int unit; in ipv6cp_open()
389 fsm_open(&ipv6cp_fsm[unit]);
[all …]
H A Dipcp.c369 ipcp_init(unit) in ipcp_init() argument
370 int unit; in ipcp_init()
372 fsm *f = &ipcp_fsm[unit];
373 ipcp_options *wo = &ipcp_wantoptions[unit];
374 ipcp_options *ao = &ipcp_allowoptions[unit];
376 f->unit = unit;
379 fsm_init(&ipcp_fsm[unit]);
401 proxy_arp_quiet[unit] = 0;
409 ipcp_open(unit) in ipcp_open() argument
410 int unit; in ipcp_open()
[all …]
H A Dauth.c407 link_required(unit) in link_required() argument
408 int unit; in link_required()
418 link_terminated(unit) in link_terminated() argument
419 int unit; in link_terminated()
478 link_down(unit) in link_down() argument
479 int unit; in link_down()
486 update_link_stats(unit);
494 (*protp->lowerdown)(unit);
496 (*protp->close)(unit, "LCP down");
509 link_established(unit) in link_established() argument
[all …]
H A Dchap.c155 ChapInit(unit) in ChapInit() argument
156 int unit; in ChapInit()
158 chap_state *cstate = &chap[unit];
161 cstate->unit = unit;
177 ChapAuthWithPeer(unit, our_name, digest) in ChapAuthWithPeer() argument
178 int unit; in ChapAuthWithPeer()
182 chap_state *cstate = &chap[unit];
207 ChapAuthPeer(unit, our_name, digest) in ChapAuthPeer() argument
208 int unit; in ChapAuthPeer()
212 chap_state *cstate = &chap[unit];
[all …]
H A Dlcp.c500 lcp_init(unit) in lcp_init() argument
501 int unit; in lcp_init()
503 fsm *f = &lcp_fsm[unit];
504 lcp_options *wo = &lcp_wantoptions[unit];
505 lcp_options *ao = &lcp_allowoptions[unit];
507 f->unit = unit;
561 BZERO(xmit_accm[unit], sizeof(xmit_accm[0]));
562 xmit_accm[unit][3] = 0x60000000;
570 lcp_open(unit) in lcp_open() argument
571 int unit; in lcp_open()
[all …]
H A Dupap.c141 upap_init(unit) in upap_init() argument
142 int unit; in upap_init()
144 upap_state *u = &upap[unit];
146 u->us_unit = unit;
168 upap_authwithpeer(unit, user, password) in upap_authwithpeer() argument
169 int unit; in upap_authwithpeer()
172 upap_state *u = &upap[unit];
197 upap_authpeer(unit) in upap_authpeer() argument
198 int unit; in upap_authpeer()
200 upap_state *u = &upap[unit];
[all …]
H A Dcbcp.c55 static void cbcp_init __P((int unit));
56 static void cbcp_lowerup __P((int unit));
57 static void cbcp_input __P((int unit, u_char *pkt, int len));
58 static void cbcp_protrej __P((int unit));
111 cbcp_init(unit) in cbcp_init() argument
112 int unit; in cbcp_init()
116 us = &cbcp[unit];
118 us->us_unit = unit;
124 cbcp_lowerup(unit) in cbcp_lowerup() argument
125 int unit; in cbcp_lowerup()
[all …]
/titanic_44/usr/src/cmd/prctl/
H A Dutils.c107 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 …]
H A Dutils.h118 scale_t *scale, char *unit, int flags);
152 scale_t *scale, char *unit, int flags);
201 scale_t *scale, char *unit, int flags);
210 scale_t *scale, char *unit, int flags);
224 scale_t *scale, char *unit, int flags);
/titanic_44/usr/src/lib/libwrap/
H A Dtli.c89 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 …]
/titanic_44/usr/src/uts/sun4u/io/
H A Dsbd_cpu.c285 int unit; in sbd_cpu_flags() local
287 unit = sbdp_portid_to_cpu_unit(cmp, core); in sbd_cpu_flags()
293 if (SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_cpu_flags()
297 dip = sbp->sb_devlist[NIX(SBD_COMP_CMP)][unit]; in sbd_cpu_flags()
301 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_cpu_flags()
340 int i, rv = 0, unit; in sbd_pre_release_cpu() local
373 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu()
374 if (unit < 0) { in sbd_pre_release_cpu()
386 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_pre_release_cpu()
395 cpuid, unit); in sbd_pre_release_cpu()
[all …]
H A Dsbd_io.c53 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 …]
/titanic_44/usr/src/uts/common/inet/ipf/
H A Dip_log.c551 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 Dip_pool.c294 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 …]
/titanic_44/usr/src/cmd/mandoc/
H A Dout.c50 enum roffscale unit; in a2roffsu() local
90 unit = SCALE_CM; in a2roffsu()
93 unit = SCALE_IN; in a2roffsu()
96 unit = SCALE_PC; in a2roffsu()
99 unit = SCALE_PT; in a2roffsu()
102 unit = SCALE_FS; in a2roffsu()
105 unit = SCALE_VS; in a2roffsu()
108 unit = SCALE_EM; in a2roffsu()
113 unit = SCALE_BU; in a2roffsu()
116 unit = SCALE_BU; in a2roffsu()
[all …]
/titanic_44/usr/src/uts/common/io/
H A Dfdc.c385 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 Dfd.c655 int part, unit; in fd_open() local
661 unit = fd_getdrive(dev, &fjp, &fdp); in fd_open()
698 fjp->fj_ops->fco_select(fjp, unit, 1); in fd_open()
699 if (fjp->fj_ops->fco_getchng(fjp, unit) != 0) { in fd_open()
700 if (fjp->fj_ops->fco_rcseek(fjp, unit, -1, 0)) { in fd_open()
703 fjp->fj_ops->fco_select(fjp, unit, 0); in fd_open()
711 fjp->fj_ops->fco_select(fjp, unit, 0); in fd_open()
718 rval = fdgetlabel(fjp, unit); in fd_open()
719 fjp->fj_ops->fco_select(fjp, unit, 0); in fd_open()
764 fdgetlabel(struct fcu_obj *fjp, int unit) in fdgetlabel() argument
[all …]
/titanic_44/usr/src/cmd/csh/
H A Dsh.print.c189 int unit; in flush() local
196 unit = didfds ? 2 : SHDIAG; in flush()
198 unit = didfds ? 1 : SHOUT; in flush()
201 if (didfds == 0 && ioctl(unit, TIOCLGET, (char *)&lmode) == 0 && in flush()
204 (void) ioctl(unit, TIOCLBIC, (char *)&lmode); in flush()
205 (void) write(unit, "\n", 1); in flush()
208 (void) write(unit, linbuf, linp - linbuf); in flush()
218 int unit; in write_string() local
225 unit = didfds ? 2 : SHDIAG; in write_string()
227 unit = didfds ? 1 : SHOUT; in write_string()
[all …]
/titanic_44/usr/src/uts/intel/io/drm/
H A Dradeon_drv.c154 int unit; in radeon_attach() local
161 unit = ddi_get_instance(dip); in radeon_attach()
162 if (ddi_soft_state_zalloc(radeon_statep, unit) != DDI_SUCCESS) { in radeon_attach()
164 "radeon_attach: alloc softstate failed unit=%d", unit); in radeon_attach()
167 statep = ddi_get_soft_state(radeon_statep, unit); in radeon_attach()
202 (void) ddi_soft_state_free(radeon_statep, unit); in radeon_attach()
211 int unit; in radeon_detach() local
216 unit = ddi_get_instance(dip); in radeon_detach()
217 statep = ddi_get_soft_state(radeon_statep, unit); in radeon_detach()
223 (void) ddi_soft_state_free(radeon_statep, unit); in radeon_detach()
[all …]
/titanic_44/usr/src/grub/grub-0.97/lib/
H A Ddevice.c303 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 …]
/titanic_44/usr/src/uts/sun4u/serengeti/sys/
H A Dsbdp_priv.h90 #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)
/titanic_44/usr/src/cmd/dlstat/
H A Ddlstat.c810 dlstat_unit(char *oarg, char *unit) in dlstat_unit() argument
815 *unit = oarg[0]; in dlstat_unit()
823 map_to_units(char *buf, uint_t bufsize, double num, char unit, in map_to_units() argument
831 if (unit == '\0') { in map_to_units()
839 unit = '\0'; in map_to_units()
842 unit = 'K'; in map_to_units()
845 unit = 'M'; in map_to_units()
848 unit = 'G'; in map_to_units()
851 unit = 'T'; in map_to_units()
856 unit = 'P'; in map_to_units()
[all …]
/titanic_44/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp.c250 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 …]
/titanic_44/usr/src/lib/efcode/fcode_test/
H A Dmisc.fth28 h# 20 buffer: my-unit-str
29 " abcd" my-unit-str pack drop
30 " pack.1" my-unit-str c@ 4 = .passed?
31 " pack.2" my-unit-str 1 + c@ ascii a = .passed?
32 " pack.3" my-unit-str 2 + c@ ascii b = .passed?
33 " pack.4" my-unit-str 3 + c@ ascii c = .passed?
34 " pack.5" my-unit-str 4 + c@ ascii d = .passed?
35 " count.1" my-unit-str count " abcd" $= .passed?
78 " xyzzy" my-unit-str swap move
79 " move.1" my-unit-str " xyzzy" comp 0= .passed?
[all …]

12345678910