Searched refs:unit (Results 101 - 125 of 613) sorted by relevance

1234567891011>>

/freebsd-9.3-release/usr.sbin/bluetooth/rfcomm_pppd/
H A Drfcomm_pppd.c54 static void exec_ppp (int s, char *unit, char *label);
65 char *label = NULL, *unit = NULL, *ep = NULL; local
133 case 'u': /* PPP -unit option */
139 unit = optarg;
360 * in the foot. Do not pass unit option to the
393 exec_ppp(s, unit, label);
401 * 'ppp -direct -quiet [-unit N] label'. Never returns.
405 exec_ppp(int s, char *unit, char *label) argument
428 if (unit != NULL) {
429 ppp_args[3] = "-unit";
[all...]
/freebsd-9.3-release/contrib/ntp/ntpd/
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-9.3-release/sys/dev/mvs/
H A Dmvs_pci.c102 int error, unit, i; local
165 for (unit = 0; unit < ctlr->channels; unit++) {
170 device_set_ivars(child, (void *)(intptr_t)unit);
251 int unit = ((struct mvs_channel *)device_get_softc(child))->unit; local
252 int bit = IC_DONE_IRQ << (unit * 2 + unit / 4) ;
394 int unit local
445 int unit = (intptr_t)device_get_ivars(child); local
461 int unit = (intptr_t)device_get_ivars(child); local
[all...]
/freebsd-9.3-release/share/examples/drivers/
H A Dmake_pseudo_driver.sh171 #define UNIT(dev) dev2unit(dev) /* assume one minor number per unit */
187 * Macro to check that the unit number is valid
189 * the unit number is pretty much safe.. The exception would be if we
195 if (unit > N${UPPER}) { \
196 printf("%s: bad unit %d\n", __func__, unit); \
200 printf("%s: unit %d not attached\n", __func__, unit); \
214 int unit = UNIT(dev);
215 sc_p scp = sca[unit];
[all...]
/freebsd-9.3-release/usr.bin/units/
H A Dunits.c87 char *lookupunit(const char *unit);
92 int completereduce(struct unittype * unit);
190 warnx("redefinition of unit '%s' on line %d ignored",
197 warnx("unexpected end of unit on line %d",
226 warnx("memory overflow in unit reduction");
287 warnx("unit reduces to zero");
291 Adds the specified string to the unit.
293 Quantity is 1 if this is a quantity to be converted rather than a pure unit.
454 Looks up the definition for the specified unit.
456 if the specified unit doe
463 lookupunit(const char *unit) argument
625 completereduce(struct unittype * unit) argument
[all...]
/freebsd-9.3-release/etc/rc.d/
H A Dbluetooth243 # Obtain unit number from device.
244 unit=`expr ${dev} : 'uart\([0-9]\{1,\}\)'`
245 if [ -z "${unit}" ]; then
246 err 1 "Unable to get uart unit number: ${dev}"
249 ${hcseriald} -f /dev/cuau${unit} -n ${dev}
261 # Obtain unit number from device.
262 unit=`expr ${dev} : 'btccc\([0-9]\{1,\}\)'`
263 if [ -z "${unit}" ]; then
264 err 1 "Unable to get bt3c unit number: ${dev}"
272 # Obtain unit numbe
[all...]
/freebsd-9.3-release/sys/boot/common/
H A Dbcache.c128 write_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, argument
161 read_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, argument
227 bcache_strategy(void *devdata, int unit, int rw, daddr_t blk, size_t size, argument
235 if(bcache_unit != unit) {
237 bcache_unit = unit;
249 return read_strategy(devdata, unit, rw, blk, size, buf, rsize);
251 return write_strategy(devdata, unit, rw, blk, size, buf, rsize);
/freebsd-9.3-release/sys/dev/ata/chipsets/
H A Data-acard.c176 ATA_LOCKING(dev, ATA_LF_WHICH) != ch->unit)
204 int devno = (ch->unit << 1) + target;
228 int devno = (ch->unit << 1) + target;
270 serial->locked_ch = ch->unit;
271 if (serial->locked_ch != ch->unit)
272 serial->restart_ch = ch->unit;
276 if (serial->locked_ch == ch->unit) {
/freebsd-9.3-release/sys/dev/si/
H A Dsi_isa.c51 int unit; local
58 unit = device_get_unit(dev);
72 unit, maddr, paddr));
109 unit, (*(maddr+SIJETIDBASE))));
113 unit, (*(maddr+SIJETIDBASE+2))));
118 unit, (*(maddr+SIUNIQID))));
166 unit, type));
/freebsd-9.3-release/sys/boot/i386/libfirewire/
H A Dfirewire.c62 struct crom_chunk unit; member in struct:crom_src_buf
292 bzero(&buf->unit, sizeof(struct crom_chunk));
294 crom_add_chunk(src, root, &buf->unit, CROM_UDIR);
295 crom_add_entry(&buf->unit, CSRKEY_SPEC, CSRVAL_VENDOR_PRIVATE);
296 crom_add_simple_text(src, &buf->unit, &buf->spec, "FreeBSD");
297 crom_add_entry(&buf->unit, CSRKEY_VER, DCONS_CSR_VAL_VER);
298 crom_add_simple_text(src, &buf->unit, &buf->ver, "dcons");
299 crom_add_entry(&buf->unit, DCONS_CSR_KEY_HI, ADDR_HI(dcons_paddr));
300 crom_add_entry(&buf->unit, DCONS_CSR_KEY_LO, ADDR_LO(dcons_paddr));
/freebsd-9.3-release/sys/dev/atkbdc/
H A Datkbdc_isa.c51 int unit);
191 int unit; local
195 unit = device_get_unit(dev);
205 sc = atkbdc_get_softc(unit);
232 error = atkbdc_attach_unit(unit, sc, sc->port0, sc->port1);
249 atkbdc_isa_add_child(device_t bus, u_int order, const char *name, int unit) argument
262 child = device_add_child_ordered(bus, order, name, unit);
279 if (resource_int_value(name, unit, "irq", &t) != 0)
288 if (resource_disabled(name, unit))
H A Datkbdcreg.h221 atkbdc_softc_t *atkbdc_get_softc(int unit);
222 int atkbdc_probe_unit(int unit, struct resource *port0, struct resource *port1);
223 int atkbdc_attach_unit(int unit, atkbdc_softc_t *sc, struct resource *port0,
227 KBDC atkbdc_open(int unit);
/freebsd-9.3-release/sys/arm/xscale/i8134x/
H A Dobio.c99 int unit = device_get_unit(child); local
104 if (unit == 0)
114 if (unit == 0) {
/freebsd-9.3-release/sys/geom/gate/
H A Dg_gate.c273 g_gate_hold(int unit, const char *name) argument
278 if (unit >= 0 && unit < g_gate_maxunits)
279 sc = g_gate_units[unit];
280 else if (unit == G_GATE_NAME_GIVEN) {
282 for (unit = 0; unit < g_gate_maxunits; unit++) {
283 if (g_gate_units[unit] == NULL)
286 g_gate_units[unit]
313 g_gate_getunit(int unit, int *errorp) argument
438 int error = 0, unit; local
[all...]
/freebsd-9.3-release/usr.sbin/mlxcontrol/
H A Dconfig.c59 int unit = 0; /* XXX */ local
63 if (mlx_read_configuration(unit, &conf.cc_cfg)) {
64 printf("mlx%d: error submitting READ CONFIGURATION\n", unit);
/freebsd-9.3-release/contrib/ntp/util/
H A Daudio-pcm.c83 int unit = 0; /* device unit (0-3) */ local
97 snprintf(ai_dev, sizeof(ai_dev), AI_DEV, unit);
98 snprintf(ac_dev, sizeof(ac_dev), AC_DEV, unit);
/freebsd-9.3-release/contrib/dtc/
H A Ddtc.c62 const char *unit; local
66 unit = strchr(tree->name, '@');
67 if (unit)
68 tree->basenamelen = unit - tree->name;
/freebsd-9.3-release/games/number/
H A Dnumber.c80 static int unit(int, char *);
168 rval = len > 0 ? unit(len, line) : 0;
176 if (unit(flen, fraction)) {
191 unit(int len, char *p) function
/freebsd-9.3-release/sys/arm/at91/
H A Dat91var.h53 int unit; member in struct:cpu_devs
/freebsd-9.3-release/sys/boot/i386/libi386/
H A Dbiosdisk.c71 * List of BIOS devices, translation from disk unit number to
72 * BIOS unit number.
76 int bd_unit; /* BIOS unit number */
124 * Translate between BIOS device numbers and our private unit numbers.
133 DEBUG("bd unit %d is BIOS device 0x%x", i, bdinfo[i].bd_unit);
141 bd_unit2bios(int unit) argument
144 if ((unit >= 0) && (unit < nbdinfo))
145 return (bdinfo[unit].bd_unit);
155 int base, unit, nf local
643 int i, unit; local
[all...]
/freebsd-9.3-release/sys/boot/i386/loader/
H A Dhelp.i38629 # Tset Sroot_disk_unit DForce the root disk unit number.
33 If the code which detects the disk unit number for the root disk is
35 gaps in the sequence (eg. no primary slave), the unit number can be
/freebsd-9.3-release/sys/boot/pc98/loader/
H A Dhelp.pc9829 # Tset Sroot_disk_unit DForce the root disk unit number.
33 If the code which detects the disk unit number for the root disk is
35 gaps in the sequence (eg. no primary slave), the unit number can be
/freebsd-9.3-release/sys/boot/powerpc/ps3/
H A Ddevicename.c83 * disk<unit>[<partition>]:
93 int i, unit, pnum, ptype, err; local
118 unit = -1;
122 /* next comes the unit number */
123 unit = strtol(np, &cp, 10);
151 idev->d_unit = unit;
/freebsd-9.3-release/sys/dev/bktr/
H A Dbktr_os.h51 vm_offset_t get_bktr_mem( int unit, unsigned size );
/freebsd-9.3-release/sys/dev/cardbus/
H A Dcardbus_device.c113 int unit; local
117 unit = device_get_unit(sc->sc_dev);
119 "cardbus%d.%d.cis", unit, devi->pci.cfg.func);
121 make_dev_alias(devi->sc_cisdev, "cardbus%d.cis", unit);

Completed in 173 milliseconds

1234567891011>>