Searched defs:unit (Results 1 - 25 of 144) sorted by relevance

123456

/illumos-gate/usr/src/boot/sys/boot/i386/common/
H A Ddrv.h35 unsigned int unit; member in struct:dsk
/illumos-gate/usr/src/cmd/mdb/common/modules/crypto/
H A Dspi.c192 const char *unit = "bits"; local
207 unit = "bytes";
209 unit);
211 unit);
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_dma.c74 size_t unit; local
102 &(esmp->esm_base), &unit, &(esmp->esm_acc_handle));
/illumos-gate/usr/src/cmd/csh/
H A Dsh.print.c189 int unit; local
196 unit = didfds ? 2 : SHDIAG;
198 unit = didfds ? 1 : SHOUT;
201 if (didfds == 0 && ioctl(unit, TIOCLGET, (char *)&lmode) == 0 &&
204 (void) ioctl(unit, TIOCLBIC, (char *)&lmode);
205 (void) write(unit, "\n", 1);
208 (void) write(unit, linbuf, linp - linbuf);
218 int unit; local
225 unit = didfds ? 2 : SHDIAG;
227 unit
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Dhandles.c37 int unit; member in struct:entry
49 int idx, unit; local
55 for (unit = 0; idx < nentries; idx++, unit++) {
56 entry[idx].handle = handles[unit];
58 entry[idx].alias = aliases[unit];
62 entry[idx].unit = unit;
68 efi_find_handle(struct devsw *dev, int unit) argument
75 if (entry[idx].unit !
83 efi_handle_lookup(EFI_HANDLE h, struct devsw **dev, int *unit, uint64_t *extra) argument
102 efi_handle_update_dev(EFI_HANDLE h, struct devsw *dev, int unit, uint64_t guid) argument
[all...]
H A Definet.c330 int unit, ret; local
332 for (unit = 0, h = efi_find_handle(&efinet_dev, 0);
333 h != NULL; h = efi_find_handle(&efinet_dev, ++unit)) {
334 sprintf(line, " %s%d:\n", efinet_dev.dv_name, unit);
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dulimit.c79 int label, unit, nosupport; local
132 unit = shtab_units[tp->type];
144 i *= unit;
201 i += (unit-1);
202 sfprintf(sfstdout,"%I*d\n",sizeof(i),i/unit);
/illumos-gate/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_UNITDAT
235 struct t_unitdata *unit = host->unit; local
252 struct t_unitdata *unit = host->unit; local
335 struct t_unitdata *unit; local
[all...]
/illumos-gate/usr/src/uts/intel/io/drm/
H A Dradeon_drv.c154 int unit; local
161 unit = ddi_get_instance(dip);
162 if (ddi_soft_state_zalloc(radeon_statep, unit) != DDI_SUCCESS) {
164 "radeon_attach: alloc softstate failed unit=%d", unit);
167 statep = ddi_get_soft_state(radeon_statep, unit);
202 (void) ddi_soft_state_free(radeon_statep, unit);
211 int unit; local
216 unit = ddi_get_instance(dip);
217 statep = ddi_get_soft_state(radeon_statep, unit);
235 int unit; local
[all...]
/illumos-gate/usr/src/cmd/mandoc/
H A Dout.h39 enum roffscale unit; member in struct:roffsu
54 do { (p)->unit = SCALE_VS; \
59 do { (p)->unit = SCALE_EN; \
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Ddevicename.c81 * disk<unit>[s<slice>][<partition>]:
89 int i, unit, err; local
122 unit = 0;
125 unit = strtol(np, &cp, 0); /* get unit number if present */
138 idev->d_unit = unit;
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/
H A Ddevicename.c81 * disk<unit>[<partition>]:
92 int i, unit, err; local
125 unit = 0;
128 /* get unit number if present */
129 unit = strtol(np, &cp, 0);
139 idev->d_unit = unit;
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/
H A Ddevicename.c85 * disk<unit>[s<slice>][<partition>]:
93 int i, unit, err; local
126 unit = 0;
129 unit = strtol(np, (char **)&cp, 0); /* get unit number if present */
142 idev->d_unit = unit;
H A Dmain.c207 int unit; local
213 for (unit = 0; unit < userboot_disk_maxunit; unit++) {
214 sprintf(devname, "disk%d:", unit);
/illumos-gate/usr/src/lib/libcmd/common/
H A Dfds.c32 "[u:unit?Write output to \afd\a.]#[fd]"
168 int unit; local
190 unit = 1;
199 unit = opt_info.num;
215 if (unit == 1)
217 else if (fstat(unit, &st) || !(sp = sfnew(NiL, NiL, SF_UNBOUND, unit, SF_WRITE)))
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmultilink.c56 static int owns_unit __P((TDB_DATA pid, int unit));
95 int unit, pppd_pid; local
154 unit = -1;
164 parse_num(rec.dptr, "IFNAME=ppp", &unit);
168 || !owns_unit(pid, unit))
169 unit = -1;
175 if (unit >= 0) {
176 /* attach to existing unit */
177 if (bundle_attach(unit)) {
218 * Check whether the pppd identified by `key' still owns ppp unit `uni
[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)
112 int unit;
116 us = &cbcp[unit];
118 us->us_unit = unit;
124 cbcp_lowerup(unit)
125 int unit;
200 cbcp_protrej(int unit) argument
[all...]
H A Dfsm.h67 int unit; /* Interface unit number */ member in struct:fsm
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c52 int unit; member in struct:deflate_state
67 int unit, int hdrlen, int mru, int debug));
175 z_decomp_init(arg, options, opt_len, unit, hdrlen, mru, debug)
178 int opt_len, unit, hdrlen, mru, debug;
190 state->unit = unit;
250 state->unit, seq, state->seqno);
271 state->unit, r, (state->strm.msg? state->strm.msg: ""));
284 state->unit, olen, state->mru + PPP_HDRLEN);
332 state->unit,
[all...]
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_lookup.c487 int err, unit, num, type; local
496 unit = flush.iplf_unit;
497 if ((unit < 0 || unit > IPL_LOGMAX) && (unit != IPLT_ALL))
566 (void) printf("unit=%d\n", iter.ili_unit);
/illumos-gate/usr/src/uts/common/syscall/
H A Dsysteminfo.c334 int unit; local
357 unit = i_ddi_devi_get_ppa(dip);
358 if (unit < 0) {
360 "illegal unit number %d\n", unit);
364 (void) snprintf(ifname, IFNAMSIZ, "%s%d", name, unit);
/illumos-gate/usr/src/boot/sys/boot/i386/loader/
H A Dmain.c285 * unit number. We will lose if there is more than one disk type
431 int unit; local
437 for (unit = 0; unit < MAXBDDEV; unit++) {
438 if (bd_unit2bios(unit) == -1)
440 sprintf(devname, "disk%d:", unit);
/illumos-gate/usr/src/lib/efcode/pci/
H A Dpci.c237 CHECK_DEPTH(env, 3, "pci:encode-unit");
250 debug_msg(DEBUG_REG_ACCESS, "pci:encode-unit ( %x ) -> %s\n",
258 int lo, hi, unit; local
261 CHECK_DEPTH(env, 2, "pci:decode-unit");
264 throw_from_fclib(env, 1, "pci:decode-unit: '%s'", buf);
266 unit = ((hi & 0x1f) << 11);
267 unit |= ((lo & 0x7) << 8);
268 debug_msg(DEBUG_REG_ACCESS, "pci:decode-unit ( '%s' ) -> 0 0 %x\n",
269 buf, unit);
272 PUSH(DS, unit);
[all...]
/illumos-gate/usr/src/cmd/units/
H A Dunits.c25 struct unit struct
84 int lookup(char *name, struct unit *up, int den, int c);
85 int convr(struct unit *up);
87 void units(struct unit *up);
94 struct unit u1, u2;
153 units(struct unit *up)
155 struct unit *p;
192 convr(struct unit *up)
194 struct unit *p;
243 lookup(char *name, struct unit *u
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppstats/
H A Dpppstats.c103 static int unit; variable
543 if (sscanf(interface, PPP_DRV_NAME "%d", &unit) != 1) {
582 if (strioctl(s, PPPIO_ATTACH, (char *)&unit, sizeof(int), 0) < 0) {
584 progname, unit);

Completed in 1388 milliseconds

123456