Searched refs:unit (Results 176 - 200 of 746) sorted by relevance

1234567891011>>

/freebsd-current/sys/dev/bhnd/bhndb/
H A Dbhndb.h47 int bhndb_attach_bridge(device_t parent, device_t *bhndb, int unit);
86 u_int unit; /**< mapped core's unit */ member in struct:bhndb_regwin::__anon1877::__anon1878
/freebsd-current/sys/i386/include/
H A Dbootinfo.h56 u_int8_t bi_bios_dev; /* bootdev BIOS unit number (bootX -> loader only) */
74 * adaptor (uba, mba, etc), unit number and partition number.
100 #define MAKEBOOTDEV(type, slice, unit, partition) \
102 ((unit) << B_UNITSHIFT) | ((partition) << B_PARTITIONSHIFT) | \
/freebsd-current/sys/x86/bios/
H A Dvpd.c182 char unit[4]; local
199 snprintf(unit, sizeof(unit), "%d", device_get_unit(sc->dev));
209 unit, CTLFLAG_RD, sc->MachineType, 0, NULL);
212 unit, CTLFLAG_RD, sc->MachineModel, 0, NULL);
215 unit, CTLFLAG_RD, sc->BuildID, 0, NULL);
218 unit, CTLFLAG_RD, sc->BoxSerial, 0, NULL);
221 unit, CTLFLAG_RD, sc->PlanarSerial, 0, NULL);
/freebsd-current/sys/powerpc/mambo/
H A Dmambo_disk.c103 char unit; local
126 unit = 'M';
128 unit = 'G';
131 device_printf(dev, "%ju%cB, %d byte sectors\n", mb, unit,
201 u_long unit; local
204 unit = device_get_unit(dev);
231 (u_long)block, (numblocks << 16) | unit);
234 (u_long)block, (numblocks << 16) | unit);
/freebsd-current/contrib/bmake/unit-tests/
H A Dcond-short.exp12 make: stopped in unit-tests
H A Ddirective-undef.exp5 make: stopped in unit-tests
H A Dopt-debug-lint.exp9 make: stopped in unit-tests
H A Dvarmod.exp7 make: stopped in unit-tests
H A Dvar-op-expand.exp6 make: stopped in unit-tests
/freebsd-current/stand/uboot/
H A Dmain.c174 * Parse a device string into type, unit, slice and partition numbers. A
176 * first loadable device, otherwise a returned value of -1 for unit
185 * disk<unit>s<slice> disk0s1
186 * disk<unit>s<slice><partition> disk1s2a
187 * disk<unit>p<partition> disk0p4
194 * <type_name><unit> DEV_TYP_STOR, DEV_TYP_NET
195 * <type_name><unit>: DEV_TYP_STOR, DEV_TYP_NET
196 * <type_name><unit>:<slice> DEV_TYP_STOR
197 * <type_name><unit>:<slice>. DEV_TYP_STOR
198 * <type_name><unit>
205 get_load_device(int *type, int *unit, int *slice, int *partition) argument
371 int open_result, unit; local
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dfmt_scaled.c35 * "Human-readable" output uses 4 digits max, and puts a unit suffix at
211 /* Invalid unit or character */
225 unit_type unit = NONE; local
244 unit = units[i];
268 else if (unit == NONE || number >= 100 || number <= -100) {
276 number, scale_chars[unit]);
279 number, fract, scale_chars[unit]);
/freebsd-current/sys/dev/imcsmb/
H A Dimcsmb_pci.c168 int unit; local
176 for (unit = 0; unit < 2; unit++) {
187 device_set_ivars(child, &imcsmb_regs[unit]);
/freebsd-current/usr.sbin/mpsutil/
H A Dmpsutil.c57 fprintf(stderr, "usage: %s [-u unit] <command> ...\n\n", getprogname());
93 uintmax_t unit; local
109 unit = strtoumax(optarg, &end, 10);
110 if (*end != '\0' || unit == UINTMAX_MAX || unit > INT_MAX)
111 errx(1, "Invalid unit: %s", optarg);
112 mps_unit = unit;
/freebsd-current/stand/userboot/userboot/
H A Dmain.c289 int unit; local
295 for (unit = 0; unit < userboot_disk_maxunit; unit++) {
296 sprintf(devname, "disk%d:", unit);
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_tpro.c30 #define DEVICE "/dev/tpro%d" /* device name and unit */
47 static void tpro_poll (int unit, struct peer *);
68 int unit,
80 snprintf(device, sizeof(device), DEVICE, unit);
88 * Allocate and initialize unit structure
113 int unit,
133 int unit,
67 tpro_start( int unit, struct peer *peer ) argument
112 tpro_shutdown( int unit, struct peer *peer ) argument
132 tpro_poll( int unit, struct peer *peer ) argument
H A Drefclock_tt560.c28 #define DEVICE "/dev/tt560%d" /* device name and unit */
52 static void tt560_poll (int unit, struct peer *);
73 int unit,
86 snprintf(device, sizeof(device), DEVICE, unit);
107 * Allocate and initialize unit structure
137 int unit,
156 int unit,
72 tt560_start( int unit, struct peer *peer ) argument
136 tt560_shutdown( int unit, struct peer *peer ) argument
155 tt560_poll( int unit, struct peer *peer ) argument
H A Drefclock_datum.c122 ** that you can use any id for your unit and I will search for it in a
132 u_int unit; /* id for unit */ member in struct:datum_pts_unit
212 /* RS232 device and set up the data structure for my unit. */
217 int unit,
231 printf("Starting Datum PTS unit %d\n", unit);
245 ** Create the memory for the new unit
248 datum_pts->unit = unit; /* se
216 datum_pts_start( int unit, struct peer *peer ) argument
331 datum_pts_shutdown( int unit, struct peer *peer ) argument
366 datum_pts_poll( int unit, struct peer *peer ) argument
396 datum_pts_control( int unit, const struct refclockstat *in, struct refclockstat *out, struct peer *peer ) argument
459 datum_pts_buginfo( int unit, register struct refclockbug *bug, register struct peer *peer ) argument
[all...]
/freebsd-current/sys/dev/kbd/
H A Dkbdreg.h48 typedef int kbd_probe_t(int unit, void *arg, int flags);
49 typedef int kbd_init_t(int unit, keyboard_t **kbdp, void *arg,
144 int kb_unit; /* unit # */
194 kbdd_probe(keyboard_t *kbd, int unit, void *arg, int flags) argument
197 return ((*kbd->kb_drv->kbdsw->probe)(unit, arg, flags));
201 kbdd_init(keyboard_t *kbd, int unit, keyboard_t **kbdpp, void *arg, int flags) argument
204 return ((*kbd->kb_drv->kbdsw->init)(unit, kbdpp, arg, flags));
341 int unit, int config, int port,
348 int kbd_allocate(char *driver, int unit, void *id,
353 int kbd_find_keyboard(char *driver, int unit);
[all...]
/freebsd-current/usr.sbin/bluetooth/rfcomm_pppd/
H A Drfcomm_pppd.c55 static void exec_ppp (int s, char *unit, char *label);
66 char *label = NULL, *unit = NULL, *ep = NULL; local
134 case 'u': /* PPP -unit option */
140 unit = optarg;
361 * in the foot. Do not pass unit option to the
394 exec_ppp(s, unit, label);
402 * 'ppp -direct -quiet [-unit N] label'. Never returns.
406 exec_ppp(int s, char *unit, char *label) argument
429 if (unit != NULL) {
430 ppp_args[3] = "-unit";
[all...]
/freebsd-current/sys/dev/mvs/
H A Dmvs_pci.c100 int error, unit, i; local
164 for (unit = 0; unit < ctlr->channels; unit++) {
169 device_set_ivars(child, (void *)(intptr_t)unit);
250 int unit = ((struct mvs_channel *)device_get_softc(child))->unit; local
251 int bit = IC_DONE_IRQ << (unit * 2 + unit / 4) ;
394 int unit local
444 int unit = (intptr_t)device_get_ivars(child); local
460 int unit = (intptr_t)device_get_ivars(child); local
[all...]
/freebsd-current/sys/dev/usb/
H A Dusb_pf.c138 int unit; local
143 error = ifc_name2unit(ifname, &unit);
144 if (error || unit < 0)
149 dev = devclass_get_device(dc, unit);
175 int unit; local
179 error = ifc_name2unit(name, &unit);
182 if (unit < 0)
191 error = ifc_alloc_unit(ifc, &unit);
199 ifc_free_unit(ifc, unit);
205 if_initname(ifp, usbusname, unit);
226 int unit; local
[all...]
/freebsd-current/share/examples/drivers/
H A Dmake_pseudo_driver.sh165 #define UNIT(dev) dev2unit(dev) /* assume one minor number per unit */
181 * Macro to check that the unit number is valid
183 * the unit number is pretty much safe.. The exception would be if we
189 if (unit > N${UPPER}) { \
190 printf("%s: bad unit %d\n", __func__, unit); \
194 printf("%s: unit %d not attached\n", __func__, unit); \
208 int unit = UNIT(dev);
209 sc_p scp = sca[unit];
[all...]
/freebsd-current/sys/netpfil/ipfilter/netinet/
H A Dmlfk_ipl.c439 int unit = GET_MINOR(dev); local
442 if (unit < 0 || unit > IPL_LOGMAX)
448 switch (unit)
454 if ((events & (POLLIN | POLLRDNORM)) && ipf_log_canread(&V_ipfmain, unit))
475 selrecord(td, &V_ipfmain.ipf_selwait[unit]);
492 int unit = GET_MINOR(dev); local
495 if (IPL_LOGMAX < unit)
498 switch (unit)
527 int unit local
552 int unit = GET_MINOR(dev); local
[all...]
/freebsd-current/sys/dev/hwpmc/
H A Dhwpmc_dmc620.c109 dmc620_pmc_register(int unit, void *arg, int domain) argument
112 if (unit >= DMC620_UNIT_MAX) {
117 dmc620_pmcs[unit].arg = arg;
118 dmc620_pmcs[unit].domain = domain;
123 dmc620_pmc_unregister(int unit) argument
126 dmc620_pmcs[unit].arg = NULL;
485 /* Set enabled only if unit present. */
506 dmc620_intr(struct trapframe *tf, int class, int unit, int i) argument
513 ri = i + unit * ((class == PMC_CLASS_DMC620_PMU_CD2) ?
554 int i, npmc, unit; local
614 int i, npmc, unit; local
[all...]
/freebsd-current/usr.bin/units/
H A Dunits.c84 static int completereduce(struct unittype * unit);
87 static char *lookupunit(const char *unit);
200 warnx("redefinition of unit '%s' on line %d ignored",
207 warnx("unexpected end of unit on line %d",
236 warnx("memory overflow in unit reduction");
297 warnx("unit reduces to zero");
301 Adds the specified string to the unit.
303 Quantity is 1 if this is a quantity to be converted rather than a pure unit.
470 Looks up the definition for the specified unit.
472 if the specified unit doe
479 lookupunit(const char *unit) argument
642 completereduce(struct unittype * unit) argument
[all...]

Completed in 702 milliseconds

1234567891011>>