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

1234567891011>>

/freebsd-11-stable/sys/dev/nvd/
H A Dnvd.c85 u_int unit; member in struct:nvd_disk
246 printf(NVD_STR"%u: detached\n", ndisk->unit);
370 int unit; local
382 unit = 0;
384 if (tnd->unit > unit)
386 unit = tnd->unit + 1;
388 ndisk->unit = unit;
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Ddevice.h281 int unit = -1; local
284 unit = MINOR(dev->devt);
285 bsddev = devclass_get_device(dev->class->bsdclass, unit);
296 dev->class->kobj.name, unit);
398 int unit = -1; local
404 unit = MINOR(dev->devt);
405 bsddev = devclass_get_device(dev->class->bsdclass, unit);
415 dev->class->kobj.name, unit);
472 int unit; local
474 unit
[all...]
/freebsd-11-stable/sys/dev/dpaa/
H A Dif_dtsec.h60 (struct dtsec_softc *sc, int unit);
62 (struct dtsec_softc *sc, int unit);
/freebsd-11-stable/sys/arm/at91/
H A Dat91var.h52 int unit; member in struct:cpu_devs
165 void at91_add_child(device_t dev, int prio, const char *name, int unit,
H A Dboard_tsc4370.c185 * unit's EUI-64 which gets translated into a MAC-48 for ethernet.
339 * is zero, then we have a unit manufactured during the glitch era, and
402 int unit = 0; local
406 ret = resource_find_match(&anchor, &rName, &unit, "at", "spibus0");
410 ret = resource_int_value(rName, unit, "cs", &cs);
415 rName, unit);
422 rName, unit, cs);
429 rName, unit, cs);
437 chipsel_pins[cs].name, cs, rName, unit);
/freebsd-11-stable/sys/dev/mdio/
H A Dmdio.c102 mdio_hinted_child(device_t dev, const char *name, int unit) argument
105 device_add_child(dev, name, unit);
/freebsd-11-stable/sys/arm/freescale/imx/
H A Dimx_epit.c351 int num_units, rid, unit; local
362 unit = device_get_unit(dev);
364 if (unit < num_units) {
385 if (unit > 0)
387 if (ioaddr != imx6_epit_ioaddr[unit])
390 if (unit > 1)
394 if (ioaddr != imx51_epit_ioaddr[unit])
398 if (ioaddr != imx53_epit_ioaddr[unit])
/freebsd-11-stable/stand/userboot/
H A Duserboot.h132 int (*diskread)(void *arg, int unit, uint64_t offset,
199 int (*diskioctl)(void *arg, int unit, u_long cmd,
/freebsd-11-stable/usr.bin/systat/
H A Dsysput.c62 char unit, *ptr, *start, wrtbuf[width + width + 1]; local
65 unit = 0;
/freebsd-11-stable/sys/dev/ata/chipsets/
H A Data-ite.c131 int devno = (ch->unit << 1) + target;
143 (ch->unit ? (1<<3) : (1<<2)))) {
154 0x56 + (ch->unit << 2) + target,
166 pci_write_config(parent, 0x54 + (ch->unit << 2),
167 max(timings[ch->unit << 1], timings[(ch->unit << 1) + 1]), 1);
H A Data-via.c220 rid = PCIR_BAR(ch->unit);
236 ch->r_io[i].offset = (i - ATA_BMCMD_PORT)+(ch->unit * ATA_BMIOSIZE);
239 if (ch->unit >= 2)
249 ch->r_io[ATA_SSTATUS].offset = (ch->unit << ctlr->chip->cfg1);
251 ch->r_io[ATA_SERROR].offset = 0x04 + (ch->unit << ctlr->chip->cfg1);
253 ch->r_io[ATA_SCONTROL].offset = 0x08 + (ch->unit << ctlr->chip->cfg1);
274 rid = PCIR_BAR(ch->unit);
295 if ((ctlr->chip->cfg2 & VIABAR) && (ch->unit > 1))
320 if ((ctlr->chip->cfg2 & VIABAR) && (ch->unit > 1)) {
348 int devno = (ch->unit <<
[all...]
/freebsd-11-stable/sys/netgraph/bluetooth/hci/
H A Dng_hci_var.h45 #define NG_HCI_ALERT if (unit->debug >= NG_HCI_ALERT_LEVEL) printf
46 #define NG_HCI_ERR if (unit->debug >= NG_HCI_ERR_LEVEL) printf
47 #define NG_HCI_WARN if (unit->debug >= NG_HCI_WARN_LEVEL) printf
48 #define NG_HCI_INFO if (unit->debug >= NG_HCI_INFO_LEVEL) printf
57 __func__, NG_NODE_NAME(unit->node), (s)); \
130 ng_hci_node_state_ep state; /* unit state */
132 bdaddr_t bdaddr; /* unit address */
163 LIST_HEAD(, ng_hci_neighbor) neighbors; /* unit neighbors */
172 ng_hci_unit_p unit; /* pointer back */ member in struct:ng_hci_unit_con
199 * Neighbor is a remote unit tha
[all...]
/freebsd-11-stable/sys/dev/ipmi/
H A Dipmi_isa.c101 int i, unit, val; local
105 unit = device_get_unit(dev);
106 if (resource_string_value(name, unit, "mode", &mode) != 0)
141 if (resource_int_value(name, unit, "port", &val) == 0 && val != 0) {
144 } else if (resource_int_value(name, unit, "maddr", &val) == 0 &&
151 if (resource_int_value(name, unit, "spacing", &val) == 0) {
/freebsd-11-stable/sys/dev/fb/
H A Dfb.c140 vid_init_struct(video_adapter_t *adp, char *name, int type, int unit) argument
145 adp->va_unit = unit;
215 /* find the video card specified by a driver name and a unit number */
217 vid_find_adapter(char *driver, int unit) argument
226 if ((unit != -1) && (adapter[i]->va_unit != unit))
235 vid_allocate(char *driver, int unit, void *id) argument
241 index = vid_find_adapter(driver, unit);
330 int unit;
332 unit
403 fb_attach(int unit, video_adapter_t *adp, struct cdevsw *cdevsw) argument
422 fb_detach(int unit, video_adapter_t *adp, struct cdevsw *cdevsw) argument
[all...]
/freebsd-11-stable/sbin/etherswitchcfg/
H A Detherswitchcfg.c77 int unit; member in struct:cfg
178 p.es_port = cfg->unit;
216 p.es_port = cfg->unit;
235 p.es_port = cfg->unit;
257 p.es_port = cfg->unit;
284 vg.es_vlangroup = cfg->unit;
322 vg.es_vlangroup = cfg->unit;
574 print_port(cfg, cfg->unit);
577 print_vlangroup(cfg, cfg->unit);
630 } else if (sscanf(argv[0], "port%d", &cfg.unit)
[all...]
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_jjy.c151 #define DEVICE "/dev/jjy%d" /* device name and unit */
164 * JJY unit control structure
450 jjy_start ( int unit, struct peer *peer ) argument
461 printf( "refclock_jjy.c : jjy_start : %s mode=%d dev=%s unit=%d\n",
462 ntoa(&peer->srcadr), peer->ttl, DEVICE, unit ) ;
466 /* Allocate memory for the unit structure */
485 snprintf( sDeviceName, sizeof(sDeviceName), DEVICE, unit ) ;
496 rc = jjy_start_tristate_jjy01 ( unit, peer, up ) ;
499 rc = jjy_start_cdex_jst2000 ( unit, peer, up ) ;
502 rc = jjy_start_echokeisokuki_lt2000 ( unit, pee
574 jjy_shutdown( int unit, struct peer *peer ) argument
895 jjy_poll( int unit, struct peer *peer ) argument
981 jjy_timer( int unit, struct peer *peer ) argument
1157 jjy_start_tristate_jjy01( int unit, struct peer *peer, struct jjyunit *up ) argument
1406 jjy_poll_tristate_jjy01( int unit, struct peer *peer ) argument
1480 jjy_start_cdex_jst2000( int unit, struct peer *peer, struct jjyunit *up ) argument
1587 jjy_poll_cdex_jst2000( int unit, struct peer *peer ) argument
1646 jjy_start_echokeisokuki_lt2000( int unit, struct peer *peer, struct jjyunit *up ) argument
1808 jjy_poll_echokeisokuki_lt2000( int unit, struct peer *peer ) argument
1861 jjy_start_citizentic_jjy200( int unit, struct peer *peer, struct jjyunit *up ) argument
1970 jjy_poll_citizentic_jjy200( int unit, struct peer *peer ) argument
2042 jjy_start_tristate_gpsclock01( int unit, struct peer *peer, struct jjyunit *up ) argument
2289 jjy_poll_tristate_gpsclock01( int unit, struct peer *peer ) argument
2363 jjy_start_seiko_tsys_tdc_300( int unit, struct peer *peer, struct jjyunit *up ) argument
2550 jjy_poll_seiko_tsys_tdc_300( int unit, struct peer *peer ) argument
2737 jjy_start_telephone( int unit, struct peer *peer, struct jjyunit *up ) argument
2914 jjy_poll_telephone( int unit, struct peer *peer ) argument
2942 jjy_timer_telephone( int unit, struct peer *peer ) argument
3843 modem_connect( int unit, struct peer *peer ) argument
3862 modem_disconnect( int unit, struct peer *peer ) argument
3938 modem_timer( int unit, struct peer *peer ) argument
[all...]
/freebsd-11-stable/sys/dev/sio/
H A Dsio.c174 bool_t esp; /* is this unit a hayes esp board? */
182 bool_t multiport; /* is this unit part of a multiport device? */
189 int unit; /* unit number */ member in struct:com_s
279 /* table and macro for fast conversion from a unit number to its com struct */
286 #define com_addr(unit) ((struct com_s *) \
287 devclass_get_softc(sio_devclass, unit)) /* XXX */
878 int unit; local
893 unit = device_get_unit(dev);
897 if (unit >
1413 int unit; local
1688 int unit; local
2180 int unit; local
2218 int unit; local
2284 siocnset(struct consdev *cd, int unit) argument
2432 int s, unit; local
[all...]
/freebsd-11-stable/stand/common/
H A Ddisk.c64 char unit; local
67 unit = 'K';
70 unit = 'T';
73 unit = 'G';
76 unit = 'M';
78 sprintf(buf, "%4ld%cB", (long)size, unit);
259 DPRINTF("%s unit %d, slice %d, partition %d => %p",
400 int unit, slice, partition; local
405 unit = slice = partition = -1;
407 unit
[all...]
/freebsd-11-stable/sys/dev/si/
H A Dsi.c275 int unit; local
287 unit = device_get_unit(dev);
290 if (si_numunits < unit + 1)
291 si_numunits = unit + 1;
293 DPRINT((0, DBG_AUTOBOOT, "si%d: siattach\n", unit));
304 DPRINT((0, DBG_AUTOBOOT, "si%d: type: %s paddr: %x maddr: %x\n", unit,
333 printf("si%d: unsupported configuration\n", unit);
342 unit, si3_t225_dsize));
347 unit, si3_t225_bsize, si3_t225_bootloadaddr));
352 unit, si2_z280_dsiz
[all...]
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_lookup.c62 * range for unit is [-1,IPL_LOGMAX]. The -1 is considered to be a valid number
66 * array indexing on the unit, +1 is used to map [-1.IPL_LOGMAX] to
599 int err, unit, num, type, i; local
609 unit = flush.iplf_unit;
610 if ((unit < 0 || unit > IPL_LOGMAX) && (unit != IPLT_ALL)) {
801 /* "key" is a combination of the table type, iterator type and the unit for */
827 /* unit(I) - device for which this is for */
839 ipf_lookup_res_num(softc, unit, typ
[all...]
/freebsd-11-stable/sys/dev/twe/
H A Dtwereg.h186 u_int8_t unit:4; member in struct:__anon11744
201 u_int8_t unit:4; member in struct:__anon11745
206 #define TWE_OP_HOTSWAP_REMOVE 0x00 /* remove assumed-degraded unit */
218 u_int8_t unit:4; member in struct:__anon11746
236 u_int8_t unit:4; member in struct:__anon11747
249 u_int8_t unit:4; member in struct:__anon11748
270 #define TWE_OP_REBUILDUNIT_START 4 /* start rebuild with lowest unit */
282 u_int8_t unit:4; member in struct:__anon11750
303 u_int8_t unit:4; member in struct:__anon11751
368 #define TWE_PARAM_UNITSUMMARY_Status 3 /* array giving unit statu
[all...]
/freebsd-11-stable/sys/dev/wds/
H A Dwd7000.c302 int unit; member in struct:wds
468 wp->unit = device_get_unit(dev);
572 /* initialize the wds_req structures on this unit */
578 /* initialize the memory buffer allocation for this unit */
607 wp->unit, &wp->lock, 1, 1, devq);
713 wp->unit, mask);
729 DBG(DBX "wds%d: freed buffer mask=0x%x\n", wp->unit, mask);
782 DBG(DBX "wds%d: interrupt [\n", wp->unit);
810 DBG(DBX "wds%d: ]\n", wp->unit);
834 DBG(DBX "wds%d: %s stat=0x%x c->stat=0x%x c->venderr=0x%x\n", wp->unit,
1047 int unit = cam_sim_unit(sim); local
1178 int unit = cam_sim_unit(sim); local
1381 int unit; local
[all...]
/freebsd-11-stable/sys/powerpc/pseries/
H A Dphyp_llan.c87 cell_t unit; member in struct:llan_softc
166 OF_getencprop(node, "reg", &sc->unit, sizeof(sc->unit));
287 phyp_hcall(H_FREE_LOGICAL_LAN, sc->unit);
297 err = phyp_hcall(H_REGISTER_LOGICAL_LAN, sc->unit, sc->input_buf_phys,
303 phyp_hcall(H_VIO_SIGNAL, sc->unit, 1); /* Enable interrupts */
357 error = phyp_hcall(H_ADD_LOGICAL_LAN_BUFFER, sc->unit, rx->rx_bufdesc);
376 phyp_hcall(H_VIO_SIGNAL, sc->unit, 0);
387 phyp_hcall(H_ADD_LOGICAL_LAN_BUFFER, sc->unit,
409 phyp_hcall(H_VIO_SIGNAL, sc->unit,
[all...]
/freebsd-11-stable/sys/arm/xscale/ixp425/
H A Davila_ata.c310 int unit = ((struct ata_channel *)device_get_softc(child))->unit; local
312 KASSERT(unit == 0, ("unit %d", unit));
313 sc->sc_intr[unit].cb = function;
314 sc->sc_intr[unit].arg = argument;
324 int unit = ((struct ata_channel *)device_get_softc(child))->unit; local
326 KASSERT(unit
[all...]
/freebsd-11-stable/lib/libcam/
H A Dcamlib.c59 static struct cam_device *cam_lookup_pass(const char *dev_name, int unit,
102 * out the device name and unit number. Some possible device name formats are:
112 * Output: device name, unit number
116 cam_get_device(const char *path, char *dev_name, int devnamelen, int *unit) argument
174 * We should now have just a device name and unit number.
180 "%s: must have both device name and unit number",
205 "%s: unable to find device unit number", __func__);
211 * Attempt to figure out where the device name ends and the unit
227 * Grab the unit number.
229 *unit
254 int unit; local
404 cam_open_spec_device(const char *dev_name, int unit, int flags, struct cam_device *device) argument
417 cam_lookup_pass(const char *dev_name, int unit, int flags, const char *given_path, struct cam_device *device) argument
[all...]

Completed in 314 milliseconds

1234567891011>>