/freebsd-9.3-release/sbin/geom/misc/ |
H A D | subr.c | 104 * media). But when users enter a value with a SI unit, they really 111 * o When no SI unit is specified the value is in sectors. 112 * o With an SI unit the value is in bytes. 124 off_t number, mult, unit; local 136 unit = sectorsize; 161 unit = 1; /* bytes */ 168 unit = sectorsize; /* sector */ 171 unit = 1; /* bytes */ 180 if ((OFF_MAX / unit) < mult || (OFF_MAX / mult / unit) < numbe [all...] |
/freebsd-9.3-release/sys/cam/ |
H A D | cam_sim.c | 63 const char *sim_name, void *softc, u_int32_t unit, 83 sim->unit_number = unit; 62 cam_sim_alloc(sim_action_func sim_action, sim_poll_func sim_poll, const char *sim_name, void *softc, u_int32_t unit, struct mtx *mtx, int max_dev_transactions, int max_tagged_dev_transactions, struct cam_devq *queue) argument
|
/freebsd-9.3-release/sys/dev/ata/chipsets/ |
H A D | ata-acerlabs.c | 232 int unit01 = (ch->unit & 1), unit10 = (ch->unit & 2); 255 ch->r_io[i].offset = (i - ATA_BMCMD_PORT)+(ch->unit * ATA_BMIOSIZE); 287 ~(0x04 << ch->unit), 1); 290 (0x04 << ch->unit), 1); 305 int devno = (ch->unit << 1) + target; 318 pci_read_config(parent, 0x4a, 1) & (1 << ch->unit)) { 347 pci_write_config(parent, 0x58 + (ch->unit << 2),
|
/freebsd-9.3-release/sys/dev/rp/ |
H A D | rp_isa.c | 146 int unit; local 163 unit = device_get_unit(dev); 164 if (unit >= 4) { 165 device_printf(dev, "rpprobe: unit number %d invalid.\n", unit); 168 device_printf(dev, "probing for RocketPort(ISA) unit %d.\n", unit); 213 device_printf(dev, "board%d init failed.\n", unit); 235 int unit; local 241 unit [all...] |
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | refclock_arc.c | 183 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-9.3-release/sys/dev/wl/ |
H A D | if_wl.c | 239 short unit; member in struct:wl_softc 381 * input : address device is mapped to, and unit # being checked 483 int unit; local 504 unit = device_get_unit(device); 507 printf("wlattach: base %x, unit %d\n", base, unit); 511 sc->unit = unit; 801 printf("wl%d: entered wlinit()\n",sc->unit); 819 printf("wl%d init(): trouble resetting board.\n", sc->unit); 1476 int unit = sc->unit; local [all...] |
/freebsd-9.3-release/sys/dev/fb/ |
H A D | fbreg.h | 106 typedef int vi_probe_t(int unit, video_adapter_t **adpp, void *arg, int flags); 107 typedef int vi_init_t(int unit, video_adapter_t *adp, int flags); 191 #define vidd_probe(unit, adpp, arg, flags) \ 192 (*vidsw[(adp)->va_index]->probe)((unit), (adpp), (arg), (flags)) 193 #define vidd_init(unit, adp, flags) \ 194 (*vidsw[(adp)->va_index]->init)((unit), (adp), (flags)) 282 int unit); 285 int vid_allocate(char *driver, int unit, void *id); 287 int vid_find_adapter(char *driver, int unit); 297 int fb_attach(int unit, video_adapter_ [all...] |
/freebsd-9.3-release/sys/dev/firewire/ |
H A D | fwdev.c | 187 int unit = DEV2UNIT(dev); local 194 sc = devclass_get_softc(firewire_devclass, unit); 213 int unit = DEV2UNIT(dev); local 218 "fw%d.%d", unit, sub); 928 int unit; local 930 unit = device_get_unit(sc->fc->bdev); 931 sc->dev = make_dev(&firewire_cdevsw, MAKEMINOR(0, unit, 0), 933 "fw%d.%d", unit, 0); 935 MAKEMINOR(FWMEM_FLAG, unit, 0), 937 "fwmem%d.%d", unit, 969 int i, unit = 0, sub = 0; local [all...] |
/freebsd-9.3-release/sys/sys/ |
H A D | bus.h | 106 * is to manage the allocation of unit numbers for device instances 109 * two devclasses with the same name. This ensures that unique unit 113 * pci, pccard) should all use the same devclass to ensure that unit 308 int unit); 423 device_t device_add_child(device_t dev, const char *name, int unit); 425 const char *name, int unit); 434 int unit); 469 int device_set_unit(device_t dev, int unit); /* XXX DONT USE XXX */ 483 device_t devclass_get_device(devclass_t dc, int unit); 484 void *devclass_get_softc(devclass_t dc, int unit); [all...] |
/freebsd-9.3-release/sys/dev/twe/ |
H A D | twe.c | 65 static int twe_add_unit(struct twe_softc *sc, int unit); 66 static int twe_del_unit(struct twe_softc *sc, int unit); 203 twe_add_unit(struct twe_softc *sc, int unit) argument 212 if (unit < 0 || unit > TWE_MAX_UNITS) 226 dr = &sc->twe_drive[unit]; 228 if (!(drives->data[unit] & TWE_PARAM_UNITSTATUS_Online)) { 234 table = TWE_PARAM_UNITINFO + unit; 238 twe_printf(sc, "error fetching capacity for unit %d\n", unit); 287 twe_del_unit(struct twe_softc *sc, int unit) argument 480 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks) argument [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | subr_bus.c | 88 device_t *devices; /* array of devices indexed by unit */ 120 int unit; /**< current unit number */ member in struct:device 121 char* nameunit; /**< name+unit e.g. foodev0 */ 129 #define DF_WILDCARD 0x04 /* unit was originally wildcard */ 1312 * @brief Find a device given a unit number 1315 * @param unit the unit number to search for 1317 * @returns the device with the given unit number or @c 1321 devclass_get_device(devclass_t dc, int unit) argument 1339 devclass_get_softc(devclass_t dc, int unit) argument 1476 devclass_find_free_unit(devclass_t dc, int unit) argument 1542 int unit = *unitp; local 1549 &unit); local 1694 make_device(device_t parent, const char *name, int unit) argument 1782 device_add_child(device_t dev, const char *name, int unit) argument 1808 device_add_child_ordered(device_t dev, u_int order, const char *name, int unit) argument 1934 device_find_child(device_t dev, const char *classname, int unit) argument 2891 device_set_unit(device_t dev, int unit) argument 3420 bus_generic_add_child(device_t dev, u_int order, const char *name, int unit) argument [all...] |
/freebsd-9.3-release/libexec/bootpd/ |
H A D | getether.c | 202 int unit = -1; /* which unit to attach */ 212 unit = *p - '0'; 225 * to tell the driver which unit (board, port) we want. 229 if (unit >= 0) { 233 dlp->attach_req.dl_ppa = unit; 261 } /* unit >= 0 */ 199 int unit = -1; /* which unit to attach */ local
|
/freebsd-9.3-release/sys/arm/at91/ |
H A D | at91rm9200.c | 139 at91_add_child(device_t dev, int prio, const char *name, int unit, argument 145 kid = device_add_child_ordered(dev, prio, name, unit); 147 printf("Can't add child %s%d ordered\n", name, unit); 180 at91_add_child(dev, i, walker->name, walker->unit,
|
H A D | at91sam9g20.c | 132 at91_add_child(device_t dev, int prio, const char *name, int unit, argument 138 kid = device_add_child_ordered(dev, prio, name, unit); 140 printf("Can't add child %s%d ordered\n", name, unit); 173 at91_add_child(dev, i, walker->name, walker->unit,
|
/freebsd-9.3-release/sys/boot/efi/libefi/ |
H A D | efinet.c | 303 int unit; local 305 for (unit = 0, h = efi_find_handle(&efinet_dev, 0); 306 h != NULL; h = efi_find_handle(&efinet_dev, ++unit)) { 307 sprintf(line, " %s%d:\n", efinet_dev.dv_name, unit);
|
H A D | efipart.c | 111 u_int unit; local 113 for (unit = 0, h = efi_find_handle(&efipart_dev, 0); 114 h != NULL; h = efi_find_handle(&efipart_dev, ++unit)) { 115 sprintf(line, " %s%d:", efipart_dev.dv_name, unit);
|
/freebsd-9.3-release/sys/dev/acpica/ |
H A D | acpiio.h | 95 int unit; /* Device unit or ACPI_BATTERY_ALL_UNITS. */ member in union:acpi_battery_ioctl_arg
|
/freebsd-9.3-release/sys/dev/ath/ath_hal/ |
H A D | ah_soc.h | 88 int unit; /* unit number [0, 1] */ member in struct:ar531x_config
|
/freebsd-9.3-release/sys/dev/atkbdc/ |
H A D | atkbdc_ebus.c | 180 int children, error, rid, unit; local 183 unit = device_get_unit(dev); 193 sc = atkbdc_get_softc(unit); 229 error = atkbdc_attach_unit(unit, sc, sc->port0, sc->port1);
|
/freebsd-9.3-release/sys/dev/ppbus/ |
H A D | pcfclock.c | 133 int unit; local 135 unit = device_get_unit(dev); 138 sc->cdev = make_dev(&pcfclock_cdevsw, unit, 139 UID_ROOT, GID_WHEEL, 0400, PCFCLOCK_NAME "%d", unit);
|
/freebsd-9.3-release/sys/dev/syscons/ |
H A D | syscons.c | 175 static int sc_allocate_keyboard(sc_softc_t *sc, int unit); 176 static int scvidprobe(int unit, int flags, int cons); 177 static int sckbdprobe(int unit, int flags, int cons); 181 static void scinit(int unit, int flags); 183 static void scterm(int unit, int flags); 264 sc_probe_unit(int unit, int flags) argument 266 if (!scvidprobe(unit, flags, FALSE)) { 268 printf("%s%d: no video adapter found.\n", SC_DRIVER_NAME, unit); 273 sckbdprobe(unit, flags, FALSE); 280 scvidprobe(int unit, in argument 296 sckbdprobe(int unit, int flags, int cons) argument 367 sc_set_vesa_mode(scr_stat *scp, sc_softc_t *sc, int unit) argument 484 sc_attach_unit(int unit, int flags) argument 617 int unit = scdevtounit(tp); local 1583 int unit; local 1605 int unit; local 2806 scinit(int unit, int flags) argument 3029 scterm(int unit, int flags) argument 3896 sc_allocate_keyboard(sc_softc_t *sc, int unit) argument [all...] |
/freebsd-9.3-release/sys/net/ |
H A D | if_clone.h | 54 int ifc_maxunit; /* (c) Maximum unit number */ 82 int ifc_name2unit(const char *name, int *unit);
|
/freebsd-9.3-release/sys/powerpc/powermac/ |
H A D | ata_macio.c | 196 ch->unit = 0; 331 sc->udmaconf[request->unit] | sc->wdmaconf[request->unit] 332 | sc->pioconf[request->unit]);
|
/freebsd-9.3-release/usr.bin/bmake/unit-tests/ |
H A D | Makefile | 24 srcdir= ${SRCTOP}/contrib/bmake/unit-tests 94 # and replace anything after 'stopped in' with unit-tests 101 -e '/stopped/s, /.*, unit-tests,' \
|
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | tun.c | 97 sprintf(ifr.ifr_name, "tun%d", bundle->unit);
|