Searched refs:unit (Results 1 - 25 of 613) sorted by relevance

1234567891011>>

/freebsd-9.3-release/contrib/dialog/samples/
H A Dinfobox7 unit="seconds"
18 You have $left $unit to read this..." 10 52
20 test $left = 1 && unit="second"
H A Dinfobox17 unit="seconds"
18 You have $left $unit to read this..." 10 52
20 test $left = 1 && unit="second"
H A Dinfobox27 unit="seconds"
18 You have $left $unit to read this..." 0 0
20 test $left = 1 && unit="second"
H A Dinfobox37 unit="seconds"
19 You have $left $unit to read this..." 0 0
21 test $left = 1 && unit="second"
H A Dinfobox47 unit="seconds"
19 You have $left $unit to read this..." 0 0
21 test $left = 1 && unit="second"
H A Dinfobox511 unit="seconds"
30 You have $left $unit to read this..." 0 0 $last
34 test $left = 1 && unit="second"
H A Dinfobox613 unit="seconds"
32 You have $left $unit to read this..." 0 0 $last
36 test $left = 1 && unit="second"
/freebsd-9.3-release/sys/dev/bktr/
H A Dbktr_mem.h60 int bktr_has_stored_addresses(int unit);
61 void bktr_store_address(int unit, int type, vm_offset_t addr);
62 vm_offset_t bktr_retrieve_address(int unit, int type);
H A Dbktr_mem.c100 bktr_has_stored_addresses(int unit) argument
103 if (unit < 0 || unit >= BKTR_MEM_MAX_DEVICES) {
104 printf("bktr_mem: Unit number %d invalid\n", unit);
108 return memory_list[unit].addresses_stored;
114 bktr_store_address(int unit, int type, vm_offset_t addr) argument
117 if (unit < 0 || unit >= BKTR_MEM_MAX_DEVICES) {
119 unit, type, (void *) addr);
125 memory_list[unit]
154 bktr_retrieve_address(int unit, int type) argument
[all...]
/freebsd-9.3-release/sys/boot/efi/libefi/
H A Dhandles.c36 int unit; member in struct:entry
46 int idx, unit; local
52 for (unit = 0; idx < nentries; idx++, unit++) {
53 entry[idx].handle = handles[unit];
55 entry[idx].unit = unit;
61 efi_find_handle(struct devsw *dev, int unit) argument
68 if (entry[idx].unit != unit)
76 efi_handle_lookup(EFI_HANDLE h, struct devsw **dev, int *unit) argument
[all...]
/freebsd-9.3-release/usr.sbin/mlxcontrol/
H A Dmlxcontrol.h35 void (*func)(int unit, void *arg);
39 extern void mlx_foreach(void (*func)(int unit, void *arg), void *arg);
40 void mlxd_foreach_ctrlr(int unit, void *arg);
41 extern void mlxd_foreach(void (*func)(int unit, void *arg), void *arg);
42 extern int mlxd_find_ctrlr(int unit, int *ctrlr, int *sysdrive);
43 extern void mlx_perform(int unit, void (*func)(int fd, void *arg), void *arg);
45 extern int mlx_enquiry(int unit, struct mlx_enquiry2 *enq);
46 extern int mlx_read_configuration(int unit, struct mlx_core_cfg *cfg);
47 extern int mlx_scsi_inquiry(int unit, int bus, int target, char **vendor, char **device, char **revision);
50 extern char *ctrlrpath(int unit);
[all...]
H A Dutil.c43 /* return path of controller (unit) */
45 ctrlrpath(int unit) argument
49 sprintf(buf, "%s%s", _PATH_DEV, ctrlrname(unit));
53 /* return name of controller (unit) */
55 ctrlrname(int unit) argument
59 sprintf(buf, "mlx%d", unit);
63 /* return path of drive (unit) */
65 drivepath(int unit) argument
69 sprintf(buf, "%s%s", _PATH_DEV, drivename(unit));
73 /* return name of drive (unit) */
75 drivename(int unit) argument
87 int unit; local
98 int unit; local
[all...]
H A Dcommand.c183 status_print(int unit, void *arg) argument
190 if (mlxd_find_ctrlr(unit, &ctrlr, &sysdrive)) {
191 warnx("couldn't get controller/drive for %s", drivepath(unit));
212 if ((fd = open(drivepath(unit), 0)) < 0) {
213 warn("can't open %s", drivepath(unit));
224 printf("%s: online", drivename(unit));
228 printf("%s: critical", drivename(unit));
234 printf("%s: offline", drivename(unit));
240 printf("%s: unknown status 0x%x", drivename(unit), result);
289 controller_print(int unit, voi argument
384 int ch, verbosity = 1, i, unit; local
424 rescan_ctrlr(int unit, void *junk) argument
442 int all = 0, i, ch, unit; local
482 detach_drive(int unit, void *arg) argument
501 int all = 0, i, ch, unit; local
549 int unit, fd, result; local
594 int unit, fd; local
651 int unit, i, ch, fd, cancel = 0; local
[all...]
/freebsd-9.3-release/sys/netgraph/bluetooth/hci/
H A Dng_hci_misc.c62 ng_hci_mtap(ng_hci_unit_p unit, struct mbuf *m0) argument
67 if (unit->raw != NULL && NG_HOOK_IS_VALID(unit->raw)) {
70 NG_SEND_DATA_ONLY(error, unit->raw, m);
75 __func__, NG_NODE_NAME(unit->node), error);
86 ng_hci_unit_p unit = NULL; local
95 unit = (ng_hci_unit_p) NG_NODE_PRIVATE(node);
96 if ((unit->state & NG_HCI_UNIT_READY) != NG_HCI_UNIT_READY)
99 if (hook != unit->acl && hook != unit
132 ng_hci_unit_clean(ng_hci_unit_p unit, int reason) argument
175 ng_hci_new_neighbor(ng_hci_unit_p unit) argument
206 ng_hci_flush_neighbor_cache(ng_hci_unit_p unit) argument
217 ng_hci_get_neighbor(ng_hci_unit_p unit, bdaddr_p bdaddr) argument
255 ng_hci_new_con(ng_hci_unit_p unit, int link_type) argument
332 ng_hci_con_by_handle(ng_hci_unit_p unit, int con_handle) argument
348 ng_hci_con_by_bdaddr(ng_hci_unit_p unit, bdaddr_p bdaddr, int link_type) argument
366 ng_hci_command_timeout(ng_hci_unit_p unit) argument
385 ng_hci_command_untimeout(ng_hci_unit_p unit) argument
[all...]
H A Dng_hci_main.c104 * Create new instance of HCI node (new unit)
110 ng_hci_unit_p unit = NULL; local
112 unit = malloc(sizeof(*unit), M_NETGRAPH_HCI, M_WAITOK | M_ZERO);
114 unit->node = node;
115 unit->debug = NG_HCI_WARN_LEVEL;
117 unit->link_policy_mask = 0xffff; /* Enable all supported modes */
118 unit->packet_mask = 0xffff; /* Enable all packet types */
119 unit->role_switch = 1; /* Enable role switch (if device supports it) */
129 NG_HCI_BUFF_CMD_SET(unit
159 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(node); local
184 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(node); local
213 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
241 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
277 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(node); local
644 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(node); local
688 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
771 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
890 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
1009 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); local
[all...]
H A Dng_hci_ulpi.c65 ng_hci_lp_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument
67 if ((unit->state & NG_HCI_UNIT_READY) != NG_HCI_UNIT_READY) {
69 "%s: %s - unit is not ready, state=%#x\n",
70 __func__, NG_NODE_NAME(unit->node), unit->state);
80 __func__, NG_NODE_NAME(unit->node),
89 return (ng_hci_lp_acl_con_req(unit, item, hook));
91 if (hook != unit->sco) {
94 __func__, NG_NODE_NAME(unit->node), hook);
101 return (ng_hci_lp_sco_con_req(unit, ite
109 ng_hci_lp_acl_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument
309 ng_hci_lp_sco_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument
477 ng_hci_lp_discon_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument
570 ng_hci_unit_p unit = con->unit; local
638 ng_hci_unit_p unit = con->unit; local
682 ng_hci_lp_con_rsp(ng_hci_unit_p unit, item_p item, hook_p hook) argument
878 ng_hci_unit_p unit = con->unit; local
934 ng_hci_lp_qos_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument
1049 ng_hci_unit_p unit = con->unit; local
1104 ng_hci_unit_p unit = con->unit; local
1154 ng_hci_unit_p unit = NULL; local
[all...]
H A Dng_hci_cmds.c85 ng_hci_send_command(ng_hci_unit_p unit) argument
91 if (unit->state & NG_HCI_UNIT_COMMAND_PENDING)
94 /* Check if unit can accept our command */
95 NG_HCI_BUFF_CMD_GET(unit->buffer, free);
100 if (unit->drv == NULL || NG_HOOK_NOT_VALID(unit->drv)) {
103 __func__, NG_NODE_NAME(unit->node), NG_HCI_HOOK_DRV);
105 NG_BT_MBUFQ_DRAIN(&unit->cmdq);
115 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq);
119 ng_hci_mtap(unit, m
158 ng_hci_process_command_complete(ng_hci_unit_p unit, struct mbuf *e) argument
260 ng_hci_process_command_status(ng_hci_unit_p unit, struct mbuf *e) argument
324 complete_command(ng_hci_unit_p unit, int opcode, struct mbuf **cp) argument
384 ng_hci_unit_p unit = NULL; local
427 process_link_control_params(ng_hci_unit_p unit, u_int16_t ocf, struct mbuf *mcp, struct mbuf *mrp) argument
482 process_link_policy_params(ng_hci_unit_p unit, u_int16_t ocf, struct mbuf *mcp, struct mbuf *mrp) argument
551 process_hc_baseband_params(ng_hci_unit_p unit, u_int16_t ocf, struct mbuf *mcp, struct mbuf *mrp) argument
662 process_info_params(ng_hci_unit_p unit, u_int16_t ocf, struct mbuf *mcp, struct mbuf *mrp) argument
740 process_status_params(ng_hci_unit_p unit, u_int16_t ocf, struct mbuf *mcp, struct mbuf *mrp) argument
769 process_testing_params(ng_hci_unit_p unit, u_int16_t ocf, struct mbuf *mcp, struct mbuf *mrp) argument
804 process_link_control_status(ng_hci_unit_p unit, ng_hci_command_status_ep *ep, struct mbuf *mcp) argument
863 process_link_policy_status(ng_hci_unit_p unit, ng_hci_command_status_ep *ep, struct mbuf *mcp) argument
[all...]
H A Dng_hci_evnt.c85 ng_hci_process_event(ng_hci_unit_p unit, struct mbuf *event) argument
99 __func__, NG_NODE_NAME(unit->node), hdr->event, hdr->length);
126 error = inquiry_result(unit, event);
130 error = con_compl(unit, event);
134 error = con_req(unit, event);
138 error = discon_compl(unit, event);
142 error = encryption_change(unit, event);
146 error = read_remote_features_compl(unit, event);
150 error = qos_setup_compl(unit, event);
154 error = ng_hci_process_command_complete(unit, even
211 ng_hci_send_data(ng_hci_unit_p unit) argument
247 send_data_packets(ng_hci_unit_p unit, int link_type, int limit) argument
342 sync_con_queue(ng_hci_unit_p unit, ng_hci_unit_con_p con, int completed) argument
369 inquiry_result(ng_hci_unit_p unit, struct mbuf *event) argument
429 con_compl(ng_hci_unit_p unit, struct mbuf *event) argument
555 con_req(ng_hci_unit_p unit, struct mbuf *event) argument
640 discon_compl(ng_hci_unit_p unit, struct mbuf *event) argument
686 encryption_change(ng_hci_unit_p unit, struct mbuf *event) argument
730 read_remote_features_compl(ng_hci_unit_p unit, struct mbuf *event) argument
782 qos_setup_compl(ng_hci_unit_p unit, struct mbuf *event) argument
824 hardware_error(ng_hci_unit_p unit, struct mbuf *event) argument
837 role_change(ng_hci_unit_p unit, struct mbuf *event) argument
874 num_compl_pkts(ng_hci_unit_p unit, struct mbuf *event) argument
932 mode_change(ng_hci_unit_p unit, struct mbuf *event) argument
973 data_buffer_overflow(ng_hci_unit_p unit, struct mbuf *event) argument
987 read_clock_offset_compl(ng_hci_unit_p unit, struct mbuf *event) argument
1038 qos_violation(ng_hci_unit_p unit, struct mbuf *event) argument
1079 page_scan_mode_change(ng_hci_unit_p unit, struct mbuf *event) argument
1113 page_scan_rep_mode_change(ng_hci_unit_p unit, struct mbuf *event) argument
[all...]
/freebsd-9.3-release/sys/isa/
H A Disahint.c40 isa_hinted_child(device_t parent, const char *name, int unit) argument
48 if (resource_int_value(name, unit, "sensitive", &sensitive) != 0)
56 child = BUS_ADD_CHILD(parent, order, name, unit);
62 resource_int_value(name, unit, "port", &start);
63 resource_int_value(name, unit, "portsize", &count);
69 resource_int_value(name, unit, "maddr", &start);
70 resource_int_value(name, unit, "msize", &count);
74 if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0)
77 if (resource_int_value(name, unit, "drq", &start) == 0 && start >= 0)
80 if (resource_disabled(name, unit))
107 int line, matches, unit; local
[all...]
/freebsd-9.3-release/release/amd64/
H A Dmake-memstick.sh39 unit=$(mdconfig -a -t vnode -f ${2})
44 gpart create -s BSD ${unit}
45 gpart bootcode -b ${1}/boot/boot ${unit}
46 gpart add -t freebsd-ufs ${unit}
47 mdconfig -d -u ${unit}
/freebsd-9.3-release/release/i386/
H A Dmake-memstick.sh39 unit=$(mdconfig -a -t vnode -f ${2})
44 gpart create -s BSD ${unit}
45 gpart bootcode -b ${1}/boot/boot ${unit}
46 gpart add -t freebsd-ufs ${unit}
47 mdconfig -d -u ${unit}
/freebsd-9.3-release/sys/sparc64/sparc64/
H A Dsc_machdep.c87 int unit; local
89 unit = device_get_unit(dev);
91 unit >= SC_MD_MAX)
95 return (sc_probe_unit(unit, device_get_flags(dev) | SC_MD_FLAGS));
107 sc_get_cons_priority(int *unit, int *flags) argument
110 *unit = 0;
123 sc_get_softc(int unit, int flags) argument
127 if (unit < 0 || unit >= SC_MD_MAX)
129 sc = &sc_softcs[unit];
[all...]
/freebsd-9.3-release/release/powerpc/
H A Dmake-memstick.sh58 unit=`mdconfig -a -t vnode -f ${2}`
64 gpart create -s APM ${unit}
65 gpart add -t freebsd-boot -s 800K ${unit}
66 gpart bootcode -p ${1}/boot/boot1.hfs -i 1 ${unit}
67 gpart add -t freebsd-ufs -l FreeBSD_Install ${unit}
69 dd if=${tempfile} of=/dev/${unit}s3 bs=$BLOCKSIZE conv=sync
75 mdconfig -d -u ${unit}
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_gpsvme.c72 /* clock unit control structure */
74 short unit; /* NTP refclock unit number */ member in struct:psc_unit
94 int unit,
102 if (unit < 0 || unit > 1) { /* support units 0 and 1 */
103 msyslog(LOG_ERR, "psc_start: bad unit: %d", unit);
109 snprintf(buf, sizeof(buf), DEVICE, unit); /* dev file name */
110 fd[unit]
93 psc_start( int unit, struct peer *peer ) argument
143 psc_shutdown( int unit, struct peer *peer ) argument
156 psc_poll( int unit, struct peer *peer ) argument
230 check_leap_sec(struct refclockproc *pp, int unit) argument
[all...]
/freebsd-9.3-release/sys/powerpc/powerpc/
H A Dsc_machdep.c46 sc_get_cons_priority(int *unit, int *flags) argument
49 *unit = 0;
61 sc_get_softc(int unit, int flags) argument
65 if (unit < 0)
67 sc = &sc_softcs[unit];
68 sc->unit = unit;

Completed in 176 milliseconds

1234567891011>>