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

1234567891011>>

/src/sys/netbt/
H A Dhci_unit.c79 * bluetooth unit functions
86 struct hci_unit *unit; local in function:hci_attach_pcb
96 unit = malloc(sizeof(struct hci_unit), M_BLUETOOTH, M_ZERO | M_WAITOK);
97 KASSERT(unit != NULL);
99 unit->hci_dev = dev;
100 unit->hci_if = hci_if;
101 unit->hci_flags = flags;
103 mutex_init(&unit->hci_devlock, MUTEX_DRIVER, hci_if->ipl);
104 cv_init(&unit->hci_init, "hci_init");
106 MBUFQ_INIT(&unit
123 hci_detach_pcb(struct hci_unit * unit) argument
138 hci_enable(struct hci_unit * unit) argument
212 hci_disable(struct hci_unit * unit) argument
271 struct hci_unit *unit; local in function:hci_unit_lookup
288 hci_num_cmds(struct hci_unit * unit,uint8_t num) argument
304 hci_send_cmd(struct hci_unit * unit,uint16_t opcode,void * buf,uint8_t len) argument
352 struct hci_unit *unit = arg; local in function:hci_intr
448 hci_input_event(struct hci_unit * unit,struct mbuf * m) argument
470 hci_input_acl(struct hci_unit * unit,struct mbuf * m) argument
492 hci_input_sco(struct hci_unit * unit,struct mbuf * m) argument
514 hci_output_cmd(struct hci_unit * unit,struct mbuf * m) argument
537 hci_output_acl(struct hci_unit * unit,struct mbuf * m) argument
550 hci_output_sco(struct hci_unit * unit,struct mbuf * m) argument
563 hci_complete_sco(struct hci_unit * unit,struct mbuf * m) argument
[all...]
H A Dhci_ioctl.c57 struct hci_unit *unit; local in function:hci_dump
64 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
67 device_xname(unit->hci_dev), unit->hci_flags,
68 unit->hci_num_cmd_pkts,
69 unit->hci_num_acl_pkts,
70 unit->hci_num_sco_pkts);
71 TAILQ_FOREACH(link, &unit->hci_links, hl_next) {
138 struct hci_unit *unit; local in function:hci_ioctl_pcb
150 * Get unit inf
[all...]
H A Dhci_event.c68 static void hci_cmd_create_con(struct hci_unit *unit, uint8_t status);
164 hci_event(struct mbuf *m, struct hci_unit *unit) argument
181 device_xname(unit->hci_dev), hci_eventstr(hdr.event));
185 hci_event_command_status(unit, m);
189 hci_event_command_compl(unit, m);
193 hci_event_num_compl_pkts(unit, m);
197 hci_event_inquiry_result(unit, m);
201 hci_event_rssi_result(unit, m);
205 hci_event_extended_result(unit, m);
209 hci_event_con_compl(unit,
250 hci_event_command_status(struct hci_unit * unit,struct mbuf * m) argument
297 hci_event_command_compl(struct hci_unit * unit,struct mbuf * m) argument
380 hci_event_num_compl_pkts(struct hci_unit * unit,struct mbuf * m) argument
456 hci_event_inquiry_result(struct hci_unit * unit,struct mbuf * m) argument
497 hci_event_rssi_result(struct hci_unit * unit,struct mbuf * m) argument
538 hci_event_extended_result(struct hci_unit * unit,struct mbuf * m) argument
572 hci_event_con_compl(struct hci_unit * unit,struct mbuf * m) argument
672 hci_event_discon_compl(struct hci_unit * unit,struct mbuf * m) argument
699 hci_event_con_req(struct hci_unit * unit,struct mbuf * m) argument
749 hci_event_auth_compl(struct hci_unit * unit,struct mbuf * m) argument
791 hci_event_encryption_change(struct hci_unit * unit,struct mbuf * m) argument
845 hci_event_change_con_link_key_compl(struct hci_unit * unit,struct mbuf * m) argument
888 hci_event_read_clock_offset_compl(struct hci_unit * unit,struct mbuf * m) argument
915 hci_cmd_read_bdaddr(struct hci_unit * unit,struct mbuf * m) argument
942 hci_cmd_read_buffer_size(struct hci_unit * unit,struct mbuf * m) argument
974 hci_cmd_read_local_features(struct hci_unit * unit,struct mbuf * m) argument
1085 hci_cmd_read_local_extended_features(struct hci_unit * unit,struct mbuf * m) argument
1138 hci_cmd_read_local_ver(struct hci_unit * unit,struct mbuf * m) argument
1167 hci_cmd_read_local_commands(struct hci_unit * unit,struct mbuf * m) argument
1193 hci_cmd_read_encryption_key_size(struct hci_unit * unit,struct mbuf * m) argument
1247 hci_cmd_reset(struct hci_unit * unit,struct mbuf * m) argument
1306 hci_cmd_create_con(struct hci_unit * unit,uint8_t status) argument
[all...]
H A Dhci_misc.c59 struct hci_unit *unit; local in function:hci_route_lookup
67 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
68 if ((unit->hci_flags & BTF_UP) == 0)
71 TAILQ_FOREACH(link, &unit->hci_links, hl_next) {
84 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
85 if ((unit->hci_flags & BTF_UP) == 0)
88 memo = hci_memo_find(unit, dest);
94 * Last ditch effort, lets use the first unit we find
97 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
98 if ((unit
115 hci_memo_find(struct hci_unit * unit,bdaddr_t * bdaddr) argument
147 hci_memo_new(struct hci_unit * unit,bdaddr_t * bdaddr) argument
[all...]
/src/sys/dev/pci/bktr/
H A Dbktr_mem.c104 bktr_has_stored_addresses(int unit) { argument
106 if ((unit < 0) || (unit >= BKTR_MEM_MAX_DEVICES)) {
107 printf("bktr_mem: Unit number %d invalid\n",unit);
111 return memory_list[unit].addresses_stored;
117 bktr_store_address(int unit, int type, vm_offset_t addr) { argument
119 if ((unit < 0) || (unit >= BKTR_MEM_MAX_DEVICES)) {
121 ,unit,type,addr);
126 case BKTR_MEM_DMA_PROG: memory_list[unit]
150 bktr_retrieve_address(int unit,int type) argument
[all...]
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);
/src/etc/
H A DMAKEDEV.tmpl107 # ttyCZ? Cyclades-Z multiport serial boards. Each "unit"
109 # ttyCY? Cyclom-Y multiport serial boards. Each "unit" makes
874 unit=${i#emcfan}
875 mkdev emcfan$unit c %emcfan_chr% $unit 660
986 unit=${i#usb}
987 usb=usb$unit
988 mkdev usb$unit c %usb_chr% $unit
992 unit
[all...]
/src/etc/etc.evbcf/
H A DMAKEDEV.conf12 unit=${i#ttyF}
13 mkdev ttyF$unit c 14 $(($unit + $dialin )) "" "" $u_uucp
14 mkdev dtyF$unit c 14 $(($unit + $dialout)) "" "" $u_uucp
/src/sys/arch/hp300/stand/common/
H A Dhpib.c77 hpibalive(int unit) argument
79 if (unit >= NHPIB || hpib_softc[unit].sc_alive == 0)
85 hpibid(int unit, int slave) argument
90 if (hpib_softc[unit].sc_type == HPIBC)
91 rv = fhpibrecv(unit, 31, slave, (uint8_t *)&id, 2);
93 rv = nhpibrecv(unit, 31, slave, (uint8_t *)&id, 2);
100 hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt) argument
103 if (hpib_softc[unit].sc_type == HPIBC)
104 return (fhpibsend(unit, slav
109 hpibrecv(int unit,int slave,int sec,uint8_t * buf,int cnt) argument
118 hpibswait(int unit,int slave) argument
137 hpibgo(int unit,int slave,int sec,uint8_t * addr,int count,int flag) argument
[all...]
/src/sys/arch/ews4800mips/stand/common/
H A Dboot_device.c37 * Get boot device and unit number. IPL sets it.
63 boot_device(int *type, int *unit, int *fd_format) argument
70 return tab[i](type, unit);
72 return __nvsram_type_e(type, unit);
76 __nvsram_type_a(int *type, int *unit) argument
80 *unit = 0;
84 __nvsram_type_b(int *type, int *unit) argument
88 *unit = *(uint8_t *)0xba021808;
92 __nvsram_type_c(int *type, int *unit) argument
96 *unit
100 __nvsram_type_d(int * type,int * unit) argument
108 __nvsram_type_e(int * type,int * unit) argument
[all...]
/src/sys/arch/amiga/amiga/
H A Ddevice.h51 #define getsoftc(cdnam, unit) device_lookup_private(&(cdnam), (unit))
/src/usr.bin/make/unit-tests/
H A Ddirective-error.exp3 make: stopped in unit-tests
H A Djobs-error-nested-make.exp5 make: stopped making "nested" in unit-tests
8 make: stopped making "nested" in unit-tests
10 make: stopped making "all" in unit-tests
H A Djobs-error-indirect.exp4 make: stopped making "all" in unit-tests
7 make: stopped making "all" in unit-tests
/src/etc/etc.vax/
H A DMAKEDEV.conf39 ht*) name=ht; unit=${i#ht}; blk=1; chr=5 ;;
40 mt*) name=mt; unit=${i#mt}; blk=15; chr=38;;
41 tm*) name=tm; unit=${i#tm}; blk=5; chr=14;;
42 ts*) name=ts; unit=${i#ts}; blk=6; chr=16;;
43 ut*) name=ut; unit=${i#ut}; blk=10; chr=17;;
45 case $unit in
47 four=$(($unit + 4)) ; eight=$(($unit + 8))
48 twelve=$(($unit + 12)) ; twenty=$(($unit
[all...]
/src/sys/arch/x68k/stand/libsa/
H A Dchdsk.c47 /* unlock current unit */
48 IOCS_B_DRVCHK(drive[sc->unit], 3);
50 IOCS_B_DRVCHK(drive[sc->unit], 1);
58 sc->unit = 0;
62 sc->unit = 1;
70 /* lock new unit */
71 IOCS_B_DRVCHK(drive[sc->unit], 2);
H A Dfdvar.h40 int unit; member in struct:fd_softc
/src/usr.sbin/sysinst/
H A Dsizemultname.c52 set_sizemult(daddr_t unit, uint bps) argument
54 if (unit == 0 || bps == 0)
57 sizemult = unit/bps;
61 else if (unit == MEG)
63 else if (unit == GIG)
73 set_default_sizemult(const char *disk, daddr_t unit, uint bps) argument
81 set_sizemult(unit, bps);
/src/etc/etc.mvme68k/
H A DMAKEDEV.conf14 unit=${i#ttyC}
15 mkdev ttyC$unit c 13 $(($unit + $dialin )) "" "" $u_uucp
16 mkdev dtyC$unit c 13 $(($unit + $dialout)) "" "" $u_uucp
/src/sys/arch/luna68k/stand/boot/
H A Dsio.c95 int unit; local in function:_siointr
97 for (unit = 0; unit < NSIO; unit++)
98 siointr(unit);
102 siointr(int unit) argument
105 struct siodevice *sio = sio_addr[unit];
107 int rr0 = sioreg(REG(unit, RR0), 0);
108 int rr1 = sioreg(REG(unit, RR1), 0);
116 sioreg(REG(unit, WR
158 int unit = cp->cn_dev; local in function:siocninit
167 int c, unit = dev; local in function:siocngetc
180 int unit = dev; local in function:siocnputc
[all...]
H A Ddevopen.c82 int dev, unit, part; local in function:devopen
87 if (make_device(fname, &dev, &unit, &part, file) != 0)
92 devsw[dev].dv_name, unit, part, *file);
95 error = (*dp->dv_open)(f, unit, part);
99 devsw[dev].dv_name, unit, part, *file, strerror(error));
126 int dev, unit, part; local in function:make_device
131 unit = 0;
151 unit = default_unit;
163 /* get mixed controller and unit number */
169 unit
[all...]
/src/sys/arch/landisk/stand/boot/
H A Ddevopen.c39 static int dev2bios(char *devname, unsigned int unit, int *biosdev);
43 dev2bios(char *devname, unsigned int unit, int *biosdev) argument
47 if (unit == 0 || unit == 1) {
48 *biosdev = 0x40 + (unit << 4);
56 bios2dev(int biosdev, char **devname, u_int *unit, u_int sector, u_int *ptnp) argument
60 *unit = (biosdev >> 4) & 1;
93 unsigned int dev, ctlr, unit, partition; local in function:devopen
102 if ((error = parsebootfile(fname, &devname, &unit, &partition,
130 if (dev2bios(devname, unit,
[all...]
/src/sys/dev/marvell/
H A Dgtdevbusvar.h31 gt_devbus_addr(device_t gt, int unit, uint32_t *ldp, uint32_t *hdp) argument
45 if (unit >= __arraycount(obio_info))
49 obio_info[unit].low_decode);
51 obio_info[unit].high_decode);
/src/etc/etc.emips/
H A DMAKEDEV.conf18 name=dz; unit=${i#dz}; chr=16
19 case $unit in
27 warn "bad unit for $name in: $i"
/src/sys/arch/alpha/mcbus/
H A Dmcbusvar.h47 #define MCBUS_GID_FROM_INSTANCE(unit) (7 - unit)

Completed in 10 milliseconds

1234567891011>>