Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 2000) sorted by relevance

12345678910>>...80

/netbsd-src/sys/netbt/
H A Dhci_unit.c86 struct hci_unit *unit; in hci_attach_pcb() local
96 unit = malloc(sizeof(struct hci_unit), M_BLUETOOTH, M_ZERO | M_WAITOK); in hci_attach_pcb()
97 KASSERT(unit != NULL); in hci_attach_pcb()
99 unit->hci_dev = dev; in hci_attach_pcb()
100 unit->hci_if = hci_if; in hci_attach_pcb()
101 unit->hci_flags = flags; in hci_attach_pcb()
103 mutex_init(&unit->hci_devlock, MUTEX_DRIVER, hci_if->ipl); in hci_attach_pcb()
104 cv_init(&unit->hci_init, "hci_init"); in hci_attach_pcb()
106 MBUFQ_INIT(&unit->hci_eventq); in hci_attach_pcb()
107 MBUFQ_INIT(&unit->hci_aclrxq); in hci_attach_pcb()
[all …]
H A Dhci_ioctl.c57 struct hci_unit *unit; in hci_dump() local
64 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) { in hci_dump()
67 device_xname(unit->hci_dev), unit->hci_flags, in hci_dump()
68 unit->hci_num_cmd_pkts, in hci_dump()
69 unit->hci_num_acl_pkts, in hci_dump()
70 unit->hci_num_sco_pkts); in hci_dump()
71 TAILQ_FOREACH(link, &unit->hci_links, hl_next) { in hci_dump()
138 struct hci_unit *unit; in hci_ioctl_pcb() local
153 unit = hci_unit_lookup(&btr->btr_bdaddr); in hci_ioctl_pcb()
154 if (unit == NULL) in hci_ioctl_pcb()
[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) in hci_event() argument
181 device_xname(unit->hci_dev), hci_eventstr(hdr.event)); in hci_event()
185 hci_event_command_status(unit, m); in hci_event()
189 hci_event_command_compl(unit, m); in hci_event()
193 hci_event_num_compl_pkts(unit, m); in hci_event()
197 hci_event_inquiry_result(unit, m); in hci_event()
201 hci_event_rssi_result(unit, m); in hci_event()
205 hci_event_extended_result(unit, m); in hci_event()
209 hci_event_con_compl(unit, m); in hci_event()
[all …]
/netbsd-src/sys/dev/qbus/
H A Dqd.c471 int unit; in qdcninit() local
476 unit = 0; in qdcninit()
481 mapix = QMEMSIZE - (CHUNK * (unit + 1)); in qdcninit()
498 qdflags[unit].config = *(u_short *)qdaddr; in qdcninit()
503 qdbase[unit] = (void *) (qvmem[0]); in qdcninit()
504 qdmap[unit].template = qdbase[unit] + TMPSTART; in qdcninit()
505 qdmap[unit].adder = qdbase[unit] + ADDER; in qdcninit()
506 qdmap[unit].dga = qdbase[unit] + DGA; in qdcninit()
507 qdmap[unit].duart = qdbase[unit] + DUART; in qdcninit()
508 qdmap[unit].memcsr = qdbase[unit] + MEMCSR; in qdcninit()
[all …]
/netbsd-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 + 20))
49 mkdev $name$unit b $blk $unit 660 $g_operator
54 mkdev n$name$unit b $blk $four 660 $g_operator
[all …]
/netbsd-src/sys/dev/pci/bktr/
H A Dbktr_mem.c107 bktr_has_stored_addresses(int unit) { in bktr_has_stored_addresses() argument
109 if ((unit < 0) || (unit >= BKTR_MEM_MAX_DEVICES)) { in bktr_has_stored_addresses()
110 printf("bktr_mem: Unit number %d invalid\n",unit); in bktr_has_stored_addresses()
114 return memory_list[unit].addresses_stored; in bktr_has_stored_addresses()
120 bktr_store_address(int unit, int type, vm_offset_t addr) { in bktr_store_address() argument
122 if ((unit < 0) || (unit >= BKTR_MEM_MAX_DEVICES)) { in bktr_store_address()
124 ,unit,type,addr); in bktr_store_address()
129 case BKTR_MEM_DMA_PROG: memory_list[unit].dma_prog = addr; in bktr_store_address()
130 memory_list[unit].addresses_stored = 1; in bktr_store_address()
132 case BKTR_MEM_ODD_DMA_PROG: memory_list[unit].odd_dma_prog = addr; in bktr_store_address()
[all …]
H A Dbktr_os.c337 unsigned int unit; in bktr_attach() local
345 unit = device_get_unit(dev); in bktr_attach()
348 snprintf(bktr->bktr_xname, sizeof(bktr->bktr_xname), "bktr%d",unit); in bktr_attach()
386 unit, (old_irq & 0xff), (new_irq & 0xff)); in bktr_attach()
430 if (bt848_i2c_attach(unit, bktr, &bktr->i2c_sc)) in bktr_attach()
431 printf("bktr%d: i2c_attach: can't attach\n", unit); in bktr_attach()
446 printf("brooktree%d: PCI bus latency is", unit); in bktr_attach()
449 unit); in bktr_attach()
464 if (common_bktr_attach(bktr, unit, fun, rev) == 0) in bktr_attach()
468 bktr->bktrdev = make_dev(&bktr_cdevsw, unit, in bktr_attach()
[all …]
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_log.c554 ipf_log_items(ipf_main_softc_t *softc, int unit, fr_info_t *fin, in ipf_log_items() argument
571 MUTEX_ENTER(&softl->ipl_mutex[unit]); in ipf_log_items()
572 softl->ipl_counter[unit]++; in ipf_log_items()
577 if ((softl->ipl_used[unit] + len) > softl->ipl_logsize) { in ipf_log_items()
578 softl->ipl_logfail[unit]++; in ipf_log_items()
579 MUTEX_EXIT(&softl->ipl_mutex[unit]); in ipf_log_items()
585 softl->ipl_logfail[unit]++; in ipf_log_items()
586 MUTEX_EXIT(&softl->ipl_mutex[unit]); in ipf_log_items()
590 ipl->ipl_magic = softl->ipl_magic[unit]; in ipf_log_items()
592 ipl->ipl_seqnum = softl->ipl_counter[unit]; in ipf_log_items()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/ocaml/transforms/scalar_opts/
H A Dllvm_scalar_opts.ml10 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
13 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
16 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
19 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
22 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
25 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
28 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
31 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
34 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
37 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
[all …]
H A Dllvm_scalar_opts.mli16 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
21 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
26 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
31 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
36 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
41 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
46 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
51 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
56 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
61 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
[all …]
/netbsd-src/sys/arch/hp300/stand/common/
H A Dif_le.c254 le_mem_summary(int unit) in le_mem_summary() argument
260 printf("le%d: ler1 = %x\n", unit, ler1); in le_mem_summary()
261 printf("le%d: ler2 = %x\n", unit, ler2); in le_mem_summary()
266 printf("le%d: csr0 = %x\n", unit, ler1->ler1_rdp); in le_mem_summary()
268 printf("le%d: csr1 = %x\n", unit, ler1->ler1_rdp); in le_mem_summary()
270 printf("le%d: csr2 = %x\n", unit, ler1->ler1_rdp); in le_mem_summary()
272 printf("le%d: csr3 = %x\n", unit, ler1->ler1_rdp); in le_mem_summary()
274 printf("le%d: ladrf[0] = %x\n", unit, ler2->ler2_ladrf[0]); in le_mem_summary()
275 printf("le%d: ladrf[1] = %x\n", unit, ler2->ler2_ladrf[1]); in le_mem_summary()
276 printf("le%d: ler2_rdra = %x\n", unit, ler2->ler2_rdra); in le_mem_summary()
[all …]
H A Dhpib.c77 hpibalive(int unit) in hpibalive() argument
79 if (unit >= NHPIB || hpib_softc[unit].sc_alive == 0) in hpibalive()
85 hpibid(int unit, int slave) in hpibid() argument
90 if (hpib_softc[unit].sc_type == HPIBC) in hpibid()
91 rv = fhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); in hpibid()
93 rv = nhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); in hpibid()
100 hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt) in hpibsend() argument
103 if (hpib_softc[unit].sc_type == HPIBC) in hpibsend()
104 return (fhpibsend(unit, slave, sec, buf, cnt)); in hpibsend()
105 return nhpibsend(unit, slave, sec, buf, cnt); in hpibsend()
[all …]
H A Dct.c83 ctinit(int ctlr, int unit) in ctinit() argument
85 struct ct_softc *rs = &ct_softc[ctlr][unit]; in ctinit()
88 if (hpibrecv(ctlr, unit, C_QSTAT, &stat, 1) != 1 || stat) in ctinit()
90 if (ctident(ctlr, unit) < 0) in ctinit()
93 ct_ssmc.unit = C_SUNIT(rs->sc_punit); in ctinit()
99 hpibsend(ctlr, unit, C_CMD, (uint8_t *)&ct_ssmc, sizeof(ct_ssmc)); in ctinit()
100 hpibswait(ctlr, unit); in ctinit()
101 hpibrecv(ctlr, unit, C_QSTAT, &stat, 1); in ctinit()
107 ctident(int ctlr, int unit) in ctident() argument
114 id = hpibid(ctlr, unit); in ctident()
[all …]
H A Drd.c121 rdinit(int ctlr, int unit) in rdinit() argument
123 struct rd_softc *rs = &rd_softc[ctlr][unit]; in rdinit()
125 rs->sc_type = rdident(ctlr, unit); in rdinit()
133 rdreset(int ctlr, int unit) in rdreset() argument
143 hpibsend(ctlr, unit, C_CMD, (uint8_t *)&rd_ssmc, sizeof(rd_ssmc)); in rdreset()
144 hpibswait(ctlr, unit); in rdreset()
145 hpibrecv(ctlr, unit, C_QSTAT, &stat, 1); in rdreset()
149 rdident(int ctlr, int unit) in rdident() argument
156 id = hpibid(ctlr, unit); in rdident()
165 rdreset(ctlr, unit); in rdident()
[all …]
/netbsd-src/sys/arch/luna68k/stand/boot/
H A Dsio.c95 int unit; in _siointr() local
97 for (unit = 0; unit < NSIO; unit++) in _siointr()
98 siointr(unit); in _siointr()
102 siointr(int unit) in siointr() argument
105 struct siodevice *sio = sio_addr[unit]; in siointr()
107 int rr0 = sioreg(REG(unit, RR0), 0); in siointr()
108 int rr1 = sioreg(REG(unit, RR1), 0); in siointr()
116 sioreg(REG(unit, WR0), WR0_ERRRST); in siointr()
119 if (unit == 1) { in siointr()
120 int c = kbd_decode(sio_addr[unit]->sio_data); in siointr()
[all …]
/netbsd-src/sys/arch/acorn32/doc/
H A Dmajors+minors62 /dev/ttyv{unit}
63 unit = minor
69 /dev/pty{class}{unit}
70 unit = minor % 16
78 /dev/tty{class}{unit}
79 unit = minor % 16
87 /dev/lp{class}{unit}
88 unit = minor & 0x1f
105 /dev/tty0{unit}
106 unit = minor
[all …]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Ddwarf2.c138 struct comp_unit *unit; member
894 read_indirect_string (struct comp_unit *unit, in read_indirect_string() argument
899 struct dwarf2_debug *stash = unit->stash; in read_indirect_string()
900 struct dwarf2_debug_file *file = unit->file; in read_indirect_string()
903 if (unit->offset_size > (size_t) (buf_end - *ptr)) in read_indirect_string()
909 if (unit->offset_size == 4) in read_indirect_string()
910 offset = read_4_bytes (unit->abfd, ptr, buf_end); in read_indirect_string()
912 offset = read_8_bytes (unit->abfd, ptr, buf_end); in read_indirect_string()
914 if (! read_section (unit->abfd, &stash->debug_sections[debug_str], in read_indirect_string()
928 read_indirect_line_string (struct comp_unit *unit, in read_indirect_line_string() argument
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Ddwarf2.c135 struct comp_unit *unit; member
846 read_indirect_string (struct comp_unit *unit, in read_indirect_string() argument
851 struct dwarf2_debug *stash = unit->stash; in read_indirect_string()
852 struct dwarf2_debug_file *file = unit->file; in read_indirect_string()
855 if (unit->offset_size > (size_t) (buf_end - *ptr)) in read_indirect_string()
861 if (unit->offset_size == 4) in read_indirect_string()
862 offset = read_4_bytes (unit->abfd, ptr, buf_end); in read_indirect_string()
864 offset = read_8_bytes (unit->abfd, ptr, buf_end); in read_indirect_string()
866 if (! read_section (unit->abfd, &stash->debug_sections[debug_str], in read_indirect_string()
880 read_indirect_line_string (struct comp_unit *unit, in read_indirect_line_string() argument
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgfortran/io/
H A Dintrinsics.c39 PREFIX(fgetc) (const int *unit, char *c, gfc_charlen_type c_len) in PREFIX()
42 gfc_unit *u = find_unit (*unit); in PREFIX()
73 (const int *unit, char *c, GFC_INTEGER_ ## kind *st, gfc_charlen_type c_len) \
75 *st = PREFIX(fgetc) (unit, c, c_len); \
77 PREFIX(fgetc) (unit, c, c_len); }
117 PREFIX(fputc) (const int *unit, char *c, in PREFIX()
121 gfc_unit *u = find_unit (*unit); in PREFIX()
146 (const int *unit, char *c, GFC_INTEGER_ ## kind *st, gfc_charlen_type c_len) \
148 *st = PREFIX(fputc) (unit, c, c_len); \
150 PREFIX(fputc) (unit, c, c_len); }
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgfortran/io/
H A Dintrinsics.c39 PREFIX(fgetc) (const int *unit, char *c, gfc_charlen_type c_len) in PREFIX()
42 gfc_unit *u = find_unit (*unit); in PREFIX()
73 (const int *unit, char *c, GFC_INTEGER_ ## kind *st, gfc_charlen_type c_len) \
75 *st = PREFIX(fgetc) (unit, c, c_len); \
77 PREFIX(fgetc) (unit, c, c_len); }
117 PREFIX(fputc) (const int *unit, char *c, in PREFIX()
121 gfc_unit *u = find_unit (*unit); in PREFIX()
146 (const int *unit, char *c, GFC_INTEGER_ ## kind *st, gfc_charlen_type c_len) \
148 *st = PREFIX(fputc) (unit, c, c_len); \
150 PREFIX(fputc) (unit, c, c_len); }
[all …]
/netbsd-src/sys/arch/arm/s3c2xx0/
H A Dsscom_s3c2440.c122 int unit = sa->sa_index; in sscom_match() local
124 if (unit == SSIOCF_INDEX_DEFAULT && found == 0) in sscom_match()
126 return (unit == 0 || unit == 1 || unit == 2); in sscom_match()
152 int unit; in sscom_attach() local
156 unit = (sa->sa_index == SSIOCF_INDEX_DEFAULT) ? 0 : sa->sa_index; in sscom_attach()
157 iobase = s3c2440_uart_config[unit].iobase; in sscom_attach()
161 sc->sc_unit = unit; in sscom_attach()
166 sc->sc_rx_irqno = s3c2440_uart_config[unit].rx_int; in sscom_attach()
167 sc->sc_tx_irqno = s3c2440_uart_config[unit].tx_int; in sscom_attach()
176 s3c24x0_intr_establish(s3c2440_uart_config[unit].tx_int, in sscom_attach()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/cpu/
H A Dfrv.cpu72 (unit u-exec "Execution Unit" ()
108 ; Basic unit for instructions with no latency penalties
109 (unit u-exec "Execution Unit" ()
116 ; Basic integer insn unit
117 (unit u-integer "Integer Unit" ()
124 ; Integer multiplication unit
125 (unit u-imul "Integer Multiplication Unit" ()
132 ; Integer division unit
133 (unit u-idiv "Integer Division Unit" ()
140 ; Branch unit
[all …]
/netbsd-src/external/gpl3/gdb.old/dist/cpu/
H A Dfrv.cpu72 (unit u-exec "Execution Unit" ()
108 ; Basic unit for instructions with no latency penalties
109 (unit u-exec "Execution Unit" ()
116 ; Basic integer insn unit
117 (unit u-integer "Integer Unit" ()
124 ; Integer multiplication unit
125 (unit u-imul "Integer Multiplication Unit" ()
132 ; Integer division unit
133 (unit u-idiv "Integer Division Unit" ()
140 ; Branch unit
[all …]
/netbsd-src/external/gpl3/binutils/dist/cpu/
H A Dfrv.cpu72 (unit u-exec "Execution Unit" ()
108 ; Basic unit for instructions with no latency penalties
109 (unit u-exec "Execution Unit" ()
116 ; Basic integer insn unit
117 (unit u-integer "Integer Unit" ()
124 ; Integer multiplication unit
125 (unit u-imul "Integer Multiplication Unit" ()
132 ; Integer division unit
133 (unit u-idiv "Integer Division Unit" ()
140 ; Branch unit
[all …]
/netbsd-src/sys/arch/ews4800mips/stand/common/
H A Dboot_device.c63 boot_device(int *type, int *unit, int *fd_format) in boot_device() argument
70 return tab[i](type, unit); in boot_device()
72 return __nvsram_type_e(type, unit); in boot_device()
76 __nvsram_type_a(int *type, int *unit) in __nvsram_type_a() argument
80 *unit = 0; in __nvsram_type_a()
84 __nvsram_type_b(int *type, int *unit) in __nvsram_type_b() argument
88 *unit = *(uint8_t *)0xba021808; in __nvsram_type_b()
92 __nvsram_type_c(int *type, int *unit) in __nvsram_type_c() argument
96 *unit = *(uint8_t *)0xbb012088; in __nvsram_type_c()
100 __nvsram_type_d(int *type, int *unit) in __nvsram_type_d() argument
[all …]

12345678910>>...80