Searched refs:unit (Results 251 - 275 of 1264) sorted by relevance

<<11121314151617181920>>

/netbsd-current/sys/arch/ia64/stand/ia64/ski/
H A Ddevicename.c84 * disk<unit>[s<slice>][<partition>]:
93 int i, unit, slice, partition, err; local
123 unit = -1;
127 unit = strtol(np, &cp, 10); /* next comes the unit number */
158 idev->d_kind.skidisk.unit = unit;
167 unit = 0;
170 unit = strtol(np, &cp, 0); /* get unit numbe
[all...]
/netbsd-current/sys/arch/ia64/stand/efi/libefi/
H A Ddevicename.c88 * disk<unit>[s<slice>][<partition>]:
97 int i, unit, slice, partition, err; local
128 unit = -1;
132 unit = strtol(np, &cp, 10); /* next comes the unit number */
163 idev->d_kind.efidisk.unit = unit;
172 unit = 0;
175 unit = strtol(np, &cp, 0); /* get unit numbe
[all...]
/netbsd-current/external/bsd/ntp/dist/util/
H A Dsht.c51 int unit
55 int shmid=shmget (0x4e545030+unit, sizeof (struct shmTime), IPC_CREAT|0777);
72 snprintf (buf, sizeof(buf), "NTP%d", unit);
122 int unit; local
128 printf (" uu use clock unit uu (default: 2)\n");
141 unit = strtoul(argv[1], &argp, 10);
143 unit = 2;
149 p=getShmTime(unit);
/netbsd-current/sys/arch/atari/dev/
H A Dzs.c395 int unit = ZS_UNIT(dev); local
396 int zs = unit >> 1;
402 cs = sc->sc_cs[unit & 1];
408 if ((machineid & ATARI_TT) && !(unit & 1))
492 int unit = ZS_UNIT(dev); local
494 sc = device_lookup_private(&zs_cd, unit >> 1);
495 cs = sc->sc_cs[unit & 1];
521 int unit; local
523 unit = ZS_UNIT(dev);
524 sc = device_lookup_private(&zs_cd, unit >>
537 int unit; local
553 int unit; local
568 int unit; local
724 zsoverrun(int unit, long *ptime, const char *what) argument
860 int unit = ZS_UNIT(dev); local
982 int unit = ZS_UNIT(tp->t_dev); local
1034 int s, unit = ZS_UNIT(tp->t_dev); local
1090 int unit = ZS_UNIT(tp->t_dev); local
1193 zsbaudrate(int unit, int wanted, int *divisor, int *clockmode, int *brgenmode, int *timeconst) argument
[all...]
/netbsd-current/external/gpl3/gcc/dist/libgfortran/runtime/
H A Denviron.c261 int unit; member in struct:__anon1625
268 static int unit_num; /* The last unit number read. */
274 sorted according to unit number. */
281 /* Search for a unit number, using a binary search. The
282 first argument is the unit number to search for. The second argument
284 If the unit number is found, the function returns 1, and the index
286 If the unit number is not found, the function returns 0, and the
290 search_unit (int unit, int *ip) argument
306 if (unit == elist[mid].unit)
434 mark_single(int unit) argument
720 get_unformatted_convert(int unit) argument
[all...]
/netbsd-current/sys/arch/amiga/amiga/
H A Dautoconf.c354 * in preference of boot. However, it does walk unit backwards
405 int i, maj, unit; local
418 for (unit = 0; unit < sd_cd.cd_ndevs; ++unit) {
420 printf("probing for sd%d\n", unit);
422 if (device_lookup(&sd_cd,unit) == NULL)
430 if ((dkp = disk_find(device_xname(device_lookup(&sd_cd, unit)))) == NULL)
438 if ((*bdp->d_open)(MAKEDISKDEV(maj, unit, RAW_PART),
441 (*bdp->d_close)(MAKEDISKDEV(maj, unit, RAW_PAR
[all...]
/netbsd-current/sys/net/
H A Dif_srt.c51 int unit; member in struct:srt_softc
272 srt_clone_create(struct if_clone *cl, int unit) argument
276 if (unit < 0 || unit > SRT_MAXUNIT)
278 if (softcv[unit])
281 sc->unit = unit;
286 if_initname(&sc->intf,cl->ifc_name,unit);
299 softcv[unit] = sc;
316 if (sc->unit <
390 int unit; local
410 int unit; local
[all...]
/netbsd-current/external/bsd/ipf/dist/
H A Dip_pool.c604 int unit, i, err = 0; local
612 unit = op->iplo_unit;
613 if (unit == IPL_LOGALL) {
616 } else if (unit >= 0 && unit <= IPL_LOGMAX) {
617 unit++; /* -1 => 0 */
619 stats.ipls_list[unit] = ipf_pool_exists(softp, unit - 1,
622 stats.ipls_list[unit] = softp->ipf_pool_list[unit];
957 int poolnum, unit; local
1145 int i, num = 0, unit, err; local
[all...]
/netbsd-current/sys/external/bsd/drm/dist/bsd-core/
H A Ddrm_drv.c58 #define DRIVER_SOFTC(unit) \
59 ((struct drm_device *)devclass_get_softc(drm_devclass, unit))
207 int unit, msicount; local
209 unit = device_get_unit(kdev);
221 unit,
225 "dri/card%d", unit);
342 int unit, parent_unit; local
344 unit = device_unit(kdev);
345 if (unit < 0 || unit >
[all...]
/netbsd-current/external/bsd/ntp/dist/ntpd/
H A Drefclock_palisade.c300 int unit,
311 snprintf(gpsdev, sizeof(gpsdev), DEVICE, unit);
320 printf("Palisade(%d) start: open %s failed\n", unit, gpsdev);
325 msyslog(LOG_NOTICE, "Palisade(%d) fd: %d dev: %s", unit, fd,
330 "Palisade(%d) tcgetattr(fd, &tio): %m",unit);
332 printf("Palisade(%d) tcgetattr(fd, &tio)\n",unit);
342 * Allocate and initialize unit structure
353 ,unit);
357 ,unit);
362 ,unit);
299 palisade_start( int unit, struct peer *peer ) argument
444 palisade_shutdown( int unit, struct peer *peer ) argument
1202 palisade_poll( int unit, struct peer *peer ) argument
[all...]
H A Drefclock_hopfser.c66 #define DEVICE "/dev/hopfclock%d" /* device name and unit */
86 * hopfclock unit control structure.
90 short unit; /* NTP refclock unit number */ member in struct:hopfclock_unit
123 int unit,
132 snprintf(gpsdev, sizeof(gpsdev), DEVICE, unit);
140 printf("hopfSerialClock(%d) start: open %s failed\n", unit, gpsdev);
145 msyslog(LOG_NOTICE, "hopfSerialClock(%d) fd: %d dev: %s", unit, fd,
149 * Allocate and initialize unit structure
160 printf("hopfSerialClock(%d) io_addclock\n", unit);
122 hopfserial_start( int unit, struct peer *peer ) argument
187 hopfserial_shutdown( int unit, struct peer *peer ) argument
351 hopfserial_poll( int unit, struct peer *peer ) argument
[all...]
H A Drefclock_pcf.c66 int unit,
77 snprintf(device, sizeof(device), DEVICE, unit);
80 snprintf(device, sizeof(device), OLDDEVICE, unit);
116 int unit,
133 int unit,
211 unit, pp->year, tp->tm_mon + 1, tp->tm_mday, pp->hour,
65 pcf_start( int unit, struct peer *peer ) argument
115 pcf_shutdown( int unit, struct peer *peer ) argument
132 pcf_poll( int unit, struct peer *peer ) argument
/netbsd-current/external/bsd/ppp/dist/pppd/
H A Dupap.c111 upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */
123 * upap_init - Initialize a UPAP unit.
126 upap_init(int unit) argument
128 upap_state *u = &upap[unit];
130 u->us_unit = unit;
150 upap_authwithpeer(int unit, char *user, char *password) argument
152 upap_state *u = &upap[unit];
178 upap_authpeer(int unit) argument
180 upap_state *u = &upap[unit];
240 upap_lowerup(int unit) argument
266 upap_lowerdown(int unit) argument
286 upap_protrej(int unit) argument
306 upap_input(int unit, u_char *inpacket, int l) argument
[all...]
H A Dlcp.c334 lcp_init(int unit) argument
336 fsm *f = &lcp_fsm[unit];
337 lcp_options *wo = &lcp_wantoptions[unit];
338 lcp_options *ao = &lcp_allowoptions[unit];
340 f->unit = unit;
373 lcp_open(int unit) argument
375 fsm *f = &lcp_fsm[unit];
376 lcp_options *wo = &lcp_wantoptions[unit];
391 lcp_close(int unit, cha argument
424 lcp_lowerup(int unit) argument
452 lcp_lowerdown(int unit) argument
483 lcp_input(int unit, u_char *p, int len) argument
590 lcp_protrej(int unit) argument
604 lcp_sprotrej(int unit, u_char *p, int len) argument
2307 lcp_echo_lowerup(int unit) argument
2326 lcp_echo_lowerdown(int unit) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/sim/common/
H A Dhw-base.c52 const char *unit,
56 if (unit == NULL)
66 val = strtoul (unit, &end, 0);
68 if (unit == end)
76 unit = end;
78 if (isspace (*unit) || *unit == '\0')
80 if (*unit != ',')
82 unit++;
303 char unit[102 local
51 generic_hw_unit_decode(struct hw *bus, const char *unit, hw_unit *phys) argument
328 hw_create(struct sim_state *sd, struct hw *parent, const char *family, const char *name, const char *unit, const char *args) argument
[all...]
/netbsd-current/external/gpl3/gdb/dist/sim/common/
H A Dhw-base.c42 const char *unit,
46 if (unit == NULL)
56 val = strtoul (unit, &end, 0);
58 if (unit == end)
66 unit = end;
68 if (isspace (*unit) || *unit == '\0')
70 if (*unit != ',')
72 unit++;
292 char unit[102 local
41 generic_hw_unit_decode(struct hw *bus, const char *unit, hw_unit *phys) argument
314 hw_create(struct sim_state *sd, struct hw *parent, const char *family, const char *name, const char *unit, const char *args) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/sim/ppc/
H A Ddevice_table.c90 const char *unit,
94 if (unit == NULL)
102 val = strtoul(unit, &end, 0);
104 if (unit == end)
112 unit = end;
114 if (isspace(*unit) || *unit == '\0')
116 if (*unit != ',')
118 unit++;
270 const char *unit,
89 generic_device_unit_decode(device *bus, const char *unit, device_unit *phys) argument
269 ignore_device_unit_decode(device *me, const char *unit, device_unit *phys) argument
[all...]
/netbsd-current/external/gpl3/gdb/dist/sim/ppc/
H A Ddevice_table.c87 const char *unit,
91 if (unit == NULL)
99 val = strtoul(unit, &end, 0);
101 if (unit == end)
109 unit = end;
111 if (isspace(*unit) || *unit == '\0')
113 if (*unit != ',')
115 unit++;
267 const char *unit,
86 generic_device_unit_decode(device *bus, const char *unit, device_unit *phys) argument
266 ignore_device_unit_decode(device *me, const char *unit, device_unit *phys) argument
[all...]
/netbsd-current/sys/dev/
H A Dcons.c118 int unit, error; local
120 unit = minor(dev);
121 if (unit > 1)
160 if (cn_devvp[unit] != NULLVP) {
164 if ((error = cdevvp(cndev, &cn_devvp[unit])) != 0) {
168 vn_lock(cn_devvp[unit], LK_EXCLUSIVE | LK_RETRY);
169 error = VOP_OPEN(cn_devvp[unit], flag, kauth_cred_get());
170 VOP_UNLOCK(cn_devvp[unit]);
180 int unit, error; local
182 unit
[all...]
H A Dld.c348 int unit; local
350 unit = DISKUNIT(dev);
351 if ((sc = device_lookup_private(&ld_cd, unit)) == NULL)
376 int unit; local
378 unit = DISKUNIT(dev);
379 sc = device_lookup_private(&ld_cd, unit);
407 int unit, error; local
409 unit = DISKUNIT(dev);
410 sc = device_lookup_private(&ld_cd, unit);
476 int unit; local
543 int unit; local
564 int unit; local
594 int unit; local
720 int unit; local
[all...]
H A Dradio.c106 int unit; local
109 unit = RADIOUNIT(dev);
110 sc = device_lookup_private(&radio_cd, unit);
138 int unit, error; local
140 unit = RADIOUNIT(dev);
141 sc = device_lookup_private(&radio_cd, unit);
/netbsd-current/sys/arch/hp300/dev/
H A Ddma.c338 int unit = dq->dq_chan; local
340 struct dma_channel *dc = &sc->sc_chan[unit];
351 dmatimo[unit] = 0;
387 chan = 1 << unit;
406 dmago(int unit, char *addr, int count, int flags) argument
409 struct dma_channel *dc = &sc->sc_chan[unit];
424 unit, addr, count, flags);
426 dmalword[unit]++;
428 dmaword[unit]++;
430 dmabyte[unit]
549 dmastop(int unit) argument
[all...]
/netbsd-current/sys/dev/ic/
H A Dicp.c426 icp_register_servicecb(struct icp_softc *icp, int unit, argument
430 icp->icp_servicecb[unit] = cb;
434 icp_rescan(struct icp_softc *icp, int unit) argument
448 KASSERT(unit < ICP_MAX_HDRIVES);
450 if (!icp_cmd(icp, ICP_CACHESERVICE, ICP_INFO, unit, 0, 0)) {
452 printf("%s: rescan: unit %d ICP_INFO failed -> 0x%04x\n",
453 device_xname(icp->icp_dv), unit, icp->icp_status);
459 printf("%s: rescan: unit %d has zero size\n",
460 device_xname(icp->icp_dv), unit);
467 if (icp->icp_cdr[unit]
525 int unit; local
566 int unit, openings; local
[all...]
/netbsd-current/sys/arch/vax/boot/boot/
H A Dtmscp.c55 int unit; member in struct:ra_softc
75 tmscpopen(struct open_file *f, int adapt, int ctlr, int unit, int part) argument
89 ra->unit=unit;
118 uda.uda_cmd.mscp_unit=ra->unit;
185 uda.uda_cmd.mscp_unit = ra->unit;
/netbsd-current/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_sumo_smc.c137 static u32 sumo_power_of_4(u32 unit) argument
142 for (i = 0; i < unit; i++)
151 u32 period, unit, timer_value; local
154 unit = (RREG32_RCU(RCU_LCLK_SCALING_CNTL) & LCLK_SCALING_TIMER_PRESCALER_MASK)
157 period = 100 * (xclk / 100 / sumo_power_of_4(unit));
159 timer_value = (period << 16) | (unit << 4);

Completed in 401 milliseconds

<<11121314151617181920>>