Searched refs:unit (Results 201 - 225 of 744) sorted by relevance

1234567891011>>

/freebsd-11-stable/stand/i386/libfirewire/
H A Dfirewire.c63 struct crom_chunk unit; member in struct:crom_src_buf
304 bzero(&buf->unit, sizeof(struct crom_chunk));
306 crom_add_chunk(src, root, &buf->unit, CROM_UDIR);
307 crom_add_entry(&buf->unit, CSRKEY_SPEC, CSRVAL_VENDOR_PRIVATE);
308 crom_add_simple_text(src, &buf->unit, &buf->spec, "FreeBSD");
309 crom_add_entry(&buf->unit, CSRKEY_VER, DCONS_CSR_VAL_VER);
310 crom_add_simple_text(src, &buf->unit, &buf->ver, "dcons");
311 crom_add_entry(&buf->unit, DCONS_CSR_KEY_HI, ADDR_HI(dcons_paddr));
312 crom_add_entry(&buf->unit, DCONS_CSR_KEY_LO, ADDR_LO(dcons_paddr));
/freebsd-11-stable/sbin/mdmfs/
H A Dmdmfs.c76 static int unit; /* The unit we're working with. */ variable
335 unit = -1;
340 errx(1, "bad device unit: %s", unitstr);
341 unit = ul;
418 * Attach a memory disk with a known unit.
440 mdname, unit);
446 * Attach a memory disk with an unknown unit; use autounit.
453 char linebuf[12]; /* 32-bit unit (10) + '\n' (1) + '\0' (1) */
478 /* Receive the unit numbe
[all...]
/freebsd-11-stable/sys/dev/ata/chipsets/
H A Data-fsl.c99 int unit; local
126 unit = 0;
127 child = device_add_child(dev, "ata", ((unit == 0) && ctrl->legacy) ?
128 unit : devclass_find_free_unit(ata_devclass, 2));
132 device_set_ivars(child, (void *)(intptr_t)unit);
H A Data-acerlabs.c224 int unit01 = (ch->unit & 1), unit10 = (ch->unit & 2);
247 ch->r_io[i].offset = (i - ATA_BMCMD_PORT)+(ch->unit * ATA_BMIOSIZE);
279 ~(0x04 << ch->unit), 1);
282 (0x04 << ch->unit), 1);
297 int devno = (ch->unit << 1) + target;
310 pci_read_config(parent, 0x4a, 1) & (1 << ch->unit)) {
339 pci_write_config(parent, 0x58 + (ch->unit << 2),
/freebsd-11-stable/sys/mips/atheros/
H A Dqca953x_chip.c184 qca953x_chip_set_mii_speed(uint32_t unit, uint32_t speed) argument
192 qca953x_chip_set_pll_ge(int unit, int speed, uint32_t pll) argument
194 switch (unit) {
202 printf("%s: invalid PLL set for arge unit: %d\n",
203 __func__, unit);
297 qca953x_chip_set_mii_if(uint32_t unit, uint32_t mii_mode) argument
H A Dqca955x_chip.c185 qca955x_chip_set_mii_speed(uint32_t unit, uint32_t speed) argument
193 qca955x_chip_set_pll_ge(int unit, int speed, uint32_t pll) argument
195 switch (unit) {
203 printf("%s: invalid PLL set for arge unit: %d\n",
204 __func__, unit);
291 qca955x_chip_set_mii_if(uint32_t unit, uint32_t mii_mode) argument
H A Dar91xx_chip.c117 ar91xx_chip_set_pll_ge(int unit, int speed, uint32_t pll) argument
120 switch (unit) {
132 printf("%s: invalid PLL set for arge unit: %d\n",
133 __func__, unit);
/freebsd-11-stable/crypto/openssh/
H A Dprogressmeter.c79 static const char unit[] = " KMGT"; variable
93 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++)
102 unit[i],
111 for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++)
115 unit[i],
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_zyfer.c81 #define DEVICE "/dev/zyfer%d" /* device name and unit */
127 int unit,
140 snprintf(device, sizeof(device), DEVICE, unit);
145 msyslog(LOG_NOTICE, "zyfer(%d) fd: %d dev <%s>", unit, fd, device);
148 * Allocate and initialize unit structure
183 int unit,
325 int unit,
126 zyfer_start( int unit, struct peer *peer ) argument
182 zyfer_shutdown( int unit, struct peer *peer ) argument
324 zyfer_poll( int unit, struct peer *peer ) argument
H A Dntp_refclock.c52 * In addition, there may be a driver-specific unit structure used for
58 * pointer to the unit structure, if used. The peer structure is
60 * 127.127.t.u, where t is the clock type and u the unit.
233 int unit; local
246 unit = REFCLOCKUNIT(&peer->srcadr);
265 peer->refclkunit = (u_char)unit;
292 if (!((refclock_conf[clktype]->clock_start)(unit, peer))) {
310 int unit; local
320 unit = peer->refclkunit;
322 (refclock_conf[clktype]->clock_shutdown)(unit, pee
337 int unit; local
362 int unit; local
1181 int unit; local
1296 int unit; local
[all...]
H A Drefclock_wwvb.c115 #define DEVICE "/dev/wwvb%d" /* device name and unit */
128 * WWVB unit control structure
179 int unit,
191 snprintf(device, sizeof(device), DEVICE, unit);
197 * Allocate and initialize unit structure
228 int unit,
451 int unit,
498 int unit,
559 int unit,
178 wwvb_start( int unit, struct peer *peer ) argument
227 wwvb_shutdown( int unit, struct peer *peer ) argument
450 wwvb_timer( int unit, struct peer *peer ) argument
497 wwvb_poll( int unit, struct peer *peer ) argument
558 wwvb_control( int unit, const struct refclockstat *in_st, struct refclockstat *out_st, struct peer *peer ) argument
H A Drefclock_arc.c183 server 127.127.27.0 # ARCRON MSF radio clock unit 0.
222 6) Sleeping *before* each character sent to the unit to allow required
260 accuracy; maybe could be done via fudge factor or unit number.
380 #define DEVICE "/dev/arc%d" /* Device name and unit. */
487 * ARC unit control structure
493 int quality; /* Quality of reception 0--5 for unit. */
507 /* The flag `possible_leap' is set non-zero when any MSF unit
626 int unit,
639 msyslog(LOG_NOTICE, "MSF_ARCRON %s: opening unit %d",
640 arc_version, unit);
625 arc_start( int unit, struct peer *peer ) argument
775 arc_shutdown( int unit, struct peer *peer ) argument
1459 request_time( int unit, struct peer *peer ) argument
1486 arc_poll( int unit, struct peer *peer ) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_utility.cpp94 char const *frequency // I: Float number and unit: MHz, GHz, or TGz.
98 char *unit = NULL; local
104 value = strtod(frequency, &unit);
107 if (strcmp(unit, "MHz") == 0) {
109 } else if (strcmp(unit, "GHz") == 0) {
111 } else if (strcmp(unit, "THz") == 0) {
113 } else { // Wrong unit.
/freebsd-11-stable/sys/dev/sound/midi/
H A Dsequencer.c138 int unit; member in struct:seq_softc
297 static int seq_fetch_mid(struct seq_softc *scp, int unit, kobj_t *md);
497 SEQ_DEBUG(2, printf("seq_processevent midi unit not found %d\n",
566 scp->mapper = midimapper_addseq(scp, &scp->unit, &scp->mapper_cookie);
571 MIDIMKMINOR(scp->unit, SND_DEV_SEQ, 0), UID_ROOT,
572 GID_WHEEL, 0666, "sequencer%d", scp->unit);
575 MIDIMKMINOR(scp->unit, SND_DEV_MUSIC, 0), UID_ROOT,
576 GID_WHEEL, 0666, "music%d", scp->unit);
587 "sequencer %02d", scp->unit);
594 SEQ_DEBUG(2, printf("sequencer %d created scp %p\n", scp->unit, sc
628 seq_delunit(int unit) argument
728 seq_fetch_mid(struct seq_softc *scp, int unit, kobj_t *md) argument
[all...]
/freebsd-11-stable/sys/sys/
H A Dttydevsw.h49 typedef int tsw_cioctl_t(struct tty *tp, int unit, u_long cmd, caddr_t data,
142 ttydevsw_cioctl(struct tty *tp, int unit, u_long cmd, caddr_t data, argument
149 return (tp->t_devsw->tsw_cioctl(tp, unit, cmd, data, td));
/freebsd-11-stable/sys/geom/
H A Dgeom_ccd.c132 int sc_unit; /* logical unit number */
702 int *unit, *ileave, *nprovider; local
712 unit = gctl_get_paraml(req, "unit", sizeof (*unit));
713 if (unit == NULL) {
714 gctl_error(req, "unit parameter not given");
728 /* Check for duplicate unit */
731 if (sc != NULL && sc->sc_unit == *unit) {
732 gctl_error(req, "Unit %d already configured", *unit);
852 int i, unit, *up; local
[all...]
/freebsd-11-stable/sys/dev/spibus/
H A Dofw_spibus.c60 const char *name, int unit);
140 ofw_spibus_add_child(device_t dev, u_int order, const char *name, int unit) argument
145 child = device_add_child_ordered(dev, order, name, unit);
/freebsd-11-stable/sys/arm/xscale/pxa/
H A Dpxa_smi.c317 pxa_smi_add_device(device_t dev, const char *name, int unit) argument
328 child = device_add_child(dev, name, unit);
339 resource_int_value(name, unit, "mem", &start);
340 resource_int_value(name, unit, "size", &count);
349 resource_int_value(name, unit, "irq", &start);
354 if (resource_disabled(name, unit))
/freebsd-11-stable/sys/dev/ppbus/
H A Dpps.c112 int error, i, unit, rid = 0; local
137 unit = device_get_unit(ppbus);
138 d = make_dev(&pps_cdevsw, unit,
139 UID_ROOT, GID_WHEEL, 0600, PPS_NAME "%d", unit);
190 d = make_dev(&pps_cdevsw, unit + 0x10000 * i,
191 UID_ROOT, GID_WHEEL, 0600, PPS_NAME "%db%d", unit, i - 1);
/freebsd-11-stable/sys/netgraph/
H A Dng_device.c95 int unit; member in struct:ngd_private
102 /* unit number allocator entity */
168 /* Allocate unit number */
169 priv->unit = alloc_unr(ngd_unit);
180 priv->ngddev = make_dev(&ngd_cdevsw, priv->unit, UID_ROOT,
181 GID_WHEEL, 0600, NG_DEVICE_DEVNAME "%d", priv->unit);
186 free_unr(ngd_unit, priv->unit);
306 free_unr(ngd_unit, priv->unit);
/freebsd-11-stable/sys/x86/x86/
H A Dlegacy.c75 int unit);
180 legacy_add_child(device_t bus, u_int order, const char *name, int unit) argument
193 child = device_add_child_ordered(bus, order, name, unit);
259 int unit);
320 cpu_add_child(device_t bus, u_int order, const char *name, int unit) argument
333 child = device_add_child_ordered(bus, order, name, unit);
/freebsd-11-stable/sys/isa/
H A Dvga_isa.c125 #define VGA_SOFTC(unit) \
126 ((vga_softc_t *)devclass_get_softc(isavga_devclass, unit))
190 int unit; local
194 unit = device_get_unit(dev);
204 error = vga_attach_unit(unit, sc, device_get_flags(dev));
210 error = fb_attach(VGA_MKMINOR(unit), sc->adp, &isavga_cdevsw);
/freebsd-11-stable/sbin/ggate/shared/
H A Dggate.c202 g_gate_destroy(int unit, int force) argument
207 ggio.gctl_unit = unit;
365 g_gate_list(int unit, int verbose) argument
381 if (unit >= 0) {
383 unit);
386 if (unit != -1 && strcmp(gp->lg_name, name) != 0)
/freebsd-11-stable/contrib/ntp/libntp/
H A Daudio.c111 * /etc/ntp.audio# where # is the unit number
112 * /etc/ntp.audio.# where # is the unit number
130 int unit,
138 snprintf(device, sizeof(device), "%s%d", INIT_FILE, unit);
142 unit);
229 int unit /* device unit (0-3) */
253 snprintf(actl_dev, sizeof(actl_dev), ACTL_DEV, unit);
255 audio_config_read(unit, &actl, &dname);
129 audio_config_read( int unit, const char **c_dev, const char **i_dev ) argument
/freebsd-11-stable/lib/libcam/
H A Dcamlib.h90 * name and unit number
111 u_int32_t sim_unit_number; /* Controller unit number */
132 int unit, int flags,
148 int devnamelen, int *unit);

Completed in 308 milliseconds

1234567891011>>