Home
last modified time | relevance | path

Searched refs:oa (Results 1 – 25 of 255) sorted by relevance

1234567891011

/netbsd-src/sys/arch/arm/gemini/
H A Dgemini_obio.c237 struct obio_attach_args oa; in obio_search() local
243 oa.obio_iot = &nobyteacc_bs_tag; in obio_search()
251 oa.obio_iot = &gemini_bs_tag; in obio_search()
255 oa.obio_iot = &gemini_a2x_bs_tag; in obio_search()
259 oa.obio_iot = &gemini_a4x_bs_tag; in obio_search()
267 oa.obio_dmat = sc->sc_dmat; in obio_search()
268 oa.obio_addr = cf->cf_loc[OBIOCF_ADDR]; in obio_search()
269 oa.obio_size = cf->cf_loc[OBIOCF_SIZE]; in obio_search()
270 oa.obio_intr = cf->cf_loc[OBIOCF_INTR]; in obio_search()
271 oa.obio_intrbase = cf->cf_loc[OBIOCF_INTRBASE]; in obio_search()
[all …]
H A Dgemini_gpio.c331 struct obio_attach_args *oa = aux; in gpio_match() local
333 if (oa->obio_addr == GEMINI_GPIO0_BASE in gpio_match()
334 || oa->obio_addr == GEMINI_GPIO1_BASE in gpio_match()
335 || oa->obio_addr == GEMINI_GPIO2_BASE) in gpio_match()
344 struct obio_attach_args * const oa = aux; in gpio_attach() local
348 if (oa->obio_intr == OBIOCF_INTR_DEFAULT) in gpio_attach()
351 if (oa->obio_size == OBIOCF_SIZE_DEFAULT) in gpio_attach()
352 oa->obio_size = GEMINI_GPIO_SIZE; in gpio_attach()
355 gpio->gpio_memt = oa->obio_iot; in gpio_attach()
356 error = bus_space_map(oa->obio_iot, oa->obio_addr, oa->obio_size, in gpio_attach()
[all …]
/netbsd-src/lib/libc/rpc/
H A Drpc_callmsg.c72 struct opaque_auth *oa; in __weak_alias() local
101 oa = &cmsg->rm_call.cb_cred; in __weak_alias()
102 IXDR_PUT_ENUM(buf, oa->oa_flavor); in __weak_alias()
103 IXDR_PUT_INT32(buf, oa->oa_length); in __weak_alias()
104 if (oa->oa_length) { in __weak_alias()
105 memmove(buf, oa->oa_base, oa->oa_length); in __weak_alias()
106 buf += RNDUP(oa->oa_length) / sizeof (int32_t); in __weak_alias()
108 oa = &cmsg->rm_call.cb_verf; in __weak_alias()
109 IXDR_PUT_ENUM(buf, oa->oa_flavor); in __weak_alias()
110 IXDR_PUT_INT32(buf, oa->oa_length); in __weak_alias()
[all …]
/netbsd-src/sys/arch/evbppc/ev64260/
H A Dcom_obio.c106 struct obio_attach_args *oa = aux; in com_obio_match() local
110 if (oa->oa_offset == OBIOCF_OFFSET_DEFAULT || in com_obio_match()
111 oa->oa_size == OBIOCF_SIZE_DEFAULT) in com_obio_match()
114 if (com_is_console(oa->oa_memt, oa->oa_offset, NULL)) { in com_obio_match()
117 if (bus_space_map(oa->oa_memt, oa->oa_offset, in com_obio_match()
118 oa->oa_size, 0, &ioh)) in com_obio_match()
120 rv = comprobe1(oa->oa_memt, ioh); in com_obio_match()
121 bus_space_unmap(oa->oa_memt, ioh, oa->oa_size); in com_obio_match()
132 struct obio_attach_args *oa = aux; in com_obio_attach() local
138 if (!com_is_console(oa->oa_memt, oa->oa_offset, &ioh) && in com_obio_attach()
[all …]
/netbsd-src/sys/arch/mips/adm5120/
H A Dadm5120_obio.c131 obio_attach_args_create(struct obio_attach_args *oa, const struct obiodev *od, in obio_attach_args_create() argument
134 oa->oba_name = od->od_name; in obio_attach_args_create()
135 oa->oba_addr = od->od_addr; in obio_attach_args_create()
136 oa->oba_irq = od->od_irq; in obio_attach_args_create()
137 oa->oba_dt = dmat; in obio_attach_args_create()
138 oa->oba_st = st; in obio_attach_args_create()
139 oa->oba_gpio = gpio; in obio_attach_args_create()
140 oa->oba_gpio_mask = od->od_gpio_mask; in obio_attach_args_create()
147 struct obio_attach_args oa; in obio_attach() local
158 obio_attach_args_create(&oa, od, ma->ma_gpio, ma->ma_dmat, in obio_attach()
[all …]
/netbsd-src/sys/arch/landisk/dev/
H A Dwdc_obio.c71 struct obio_attach_args *oa = aux; in wdc_obio_probe() local
76 if (oa->oa_nio < 1) in wdc_obio_probe()
78 if (oa->oa_nirq < 1) in wdc_obio_probe()
81 if (oa->oa_io[0].or_addr == IOBASEUNK) in wdc_obio_probe()
83 if (oa->oa_irq[0].or_irq == IRQUNK) in wdc_obio_probe()
86 wdr.cmd_iot = oa->oa_iot; in wdc_obio_probe()
87 if (bus_space_map(wdr.cmd_iot, oa->oa_io[0].or_addr, in wdc_obio_probe()
99 wdr.ctl_iot = oa->oa_iot; in wdc_obio_probe()
101 oa->oa_io[0].or_addr + WDC_OBIO_AUXREG_OFFSET, in wdc_obio_probe()
108 oa->oa_nio = 1; in wdc_obio_probe()
[all …]
H A Dobio.c119 struct obio_attach_args oa; in obio_search() local
123 oa.oa_iot = sc->sc_iot; in obio_search()
124 oa.oa_memt = sc->sc_memt; in obio_search()
134 oa.oa_io = res_io; in obio_search()
135 oa.oa_nio = 1; in obio_search()
137 oa.oa_iomem = res_mem; in obio_search()
138 oa.oa_niomem = 1; in obio_search()
140 oa.oa_irq = res_irq; in obio_search()
141 oa.oa_nirq = 1; in obio_search()
144 if (config_probe(parent, cf, &oa)) { in obio_search()
[all …]
H A Dpwrsw_obio.c72 struct obio_attach_args *oa = aux; in pwrsw_obio_probe() local
77 oa->oa_nio = 0; in pwrsw_obio_probe()
78 oa->oa_niomem = 0; in pwrsw_obio_probe()
79 oa->oa_nirq = 1; in pwrsw_obio_probe()
80 oa->oa_irq[0].or_irq = LANDISK_INTR_PWRSW; in pwrsw_obio_probe()
/netbsd-src/sys/arch/sgimips/ioc/
H A Dif_le_oioc.c139 struct oioc_attach_args *oa = aux; in le_match() local
144 if (strcmp(oa->oa_name, cf->cf_name) == 0) in le_match()
155 struct oioc_attach_args *oa = aux; in le_attach() local
163 lesc->sc_st = oa->oa_st; in le_attach()
171 if ((error = bus_space_subregion(oa->oa_st, oa->oa_sh, OIOC_LANCE_RDP, in le_attach()
177 if ((error = bus_space_subregion(oa->oa_st, oa->oa_sh, OIOC_LANCE_RAP, in le_attach()
183 if ((error = bus_space_subregion(oa->oa_st, oa->oa_sh, in le_attach()
215 if (cpu_intr_establish(oa->oa_irq, IPL_NET, am7990_intr, sc) == NULL) { in le_attach()
216 aprint_error(": failed to establish interrupt %d\n",oa->oa_irq); in le_attach()
241 bus_space_unmap(oa->oa_st, oa->oa_sh, lesc->sc_maph); in le_attach()
[all …]
H A Doioc.c143 struct oioc_attach_args oa; in oioc_attach() local
145 oa.oa_name = oioc_devices[i].od_name; in oioc_attach()
146 oa.oa_irq = oioc_devices[i].od_irq; in oioc_attach()
147 oa.oa_burst_dma = sc->sc_burst_dma; in oioc_attach()
148 oa.oa_st = normal_memt; in oioc_attach()
149 oa.oa_sh = sc->sc_ioh; in oioc_attach()
150 oa.oa_dmat = &sgimips_default_bus_dma_tag; in oioc_attach()
151 config_found(self, &oa, oioc_print, CFARGS_NONE); in oioc_attach()
158 struct oioc_attach_args *oa = aux; in oioc_print() local
161 printf("%s at %s", oa->oa_name, pnp); in oioc_print()
H A Doiocsc.c112 struct oioc_attach_args *oa = aux; in oiocsc_match() local
114 if (strcmp(oa->oa_name, cf->cf_name) == 0) in oiocsc_match()
128 struct oioc_attach_args *oa = aux; in oiocsc_attach() local
132 sc->sc_regt = oa->oa_st; in oiocsc_attach()
133 osc->sc_st = oa->oa_st; in oiocsc_attach()
134 osc->sc_sh = oa->oa_sh; in oiocsc_attach()
135 osc->sc_dmat = oa->oa_dmat; in oiocsc_attach()
137 if ((err = bus_space_subregion(oa->oa_st, oa->oa_sh, OIOC_WD33C93_ASR, in oiocsc_attach()
143 if ((err = bus_space_subregion(oa->oa_st, oa->oa_sh, OIOC_WD33C93_DATA, in oiocsc_attach()
170 sc->sc_dmamode = (oa->oa_burst_dma) ? in oiocsc_attach()
[all …]
/netbsd-src/sys/dev/marvell/
H A Dobio.c148 struct obio_attach_args *oa = aux; in obio_cfprint() local
151 aprint_normal("%s at %s", oa->oa_name, pnp); in obio_cfprint()
152 aprint_normal(" addr %#x size %#x", oa->oa_offset, oa->oa_size); in obio_cfprint()
153 if (oa->oa_irq != OBIOCF_IRQ_DEFAULT) in obio_cfprint()
154 aprint_normal(" irq %d", oa->oa_irq); in obio_cfprint()
165 struct obio_attach_args oa; in obio_cfsearch() local
167 oa.oa_name = cf->cf_name; in obio_cfsearch()
168 oa.oa_memt = sc->sc_iot; in obio_cfsearch()
169 oa.oa_offset = cf->cf_loc[OBIOCF_OFFSET]; in obio_cfsearch()
170 oa.oa_size = cf->cf_loc[OBIOCF_SIZE]; in obio_cfsearch()
[all …]
/netbsd-src/sys/arch/evbmips/alchemy/
H A Dobio.c79 struct obio_attach_args oa; in obio_attach() local
88 oa.oba_name = od->od_name; in obio_attach()
89 oa.oba_addr = od->od_addr; in obio_attach()
90 oa.oba_irq = od->od_irq; in obio_attach()
91 config_found(self, &oa, obio_print, in obio_attach()
100 struct obio_attach_args *oa = aux; in obio_submatch() local
103 cf->cf_loc[OBIOCF_ADDR] != oa->oba_addr) in obio_submatch()
112 struct obio_attach_args *oa = aux; in obio_print() local
115 aprint_normal("%s at %s", oa->oba_name, pnp); in obio_print()
116 if (oa->oba_addr != OBIOCF_ADDR_DEFAULT) in obio_print()
[all …]
/netbsd-src/sys/arch/mips/rmi/
H A Drmixl_gpio.c189 struct obio_attach_args *oa = aux; in gpio_match() local
191 if (oa->obio_addr == RMIXL_IO_DEV_GPIO) /* XXX XLS */ in gpio_match()
200 struct obio_attach_args * const oa = aux; in gpio_attach() local
206 if (oa->obio_intr == OBIOCF_INTR_DEFAULT) in gpio_attach()
209 if (oa->obio_size == OBIOCF_SIZE_DEFAULT) in gpio_attach()
210 oa->obio_size = 0x1000; in gpio_attach()
212 gpio->gpio_memt = oa->obio_eb_bst; in gpio_attach()
213 error = bus_space_map(oa->obio_eb_bst, oa->obio_addr, oa->obio_size, in gpio_attach()
219 oa->obio_size, oa->obio_addr, error); in gpio_attach()
224 if (oa->obio_intr != OBIOCF_INTR_DEFAULT) { in gpio_attach()
[all …]
/netbsd-src/sys/arch/mac68k/obio/
H A Dobio.c79 struct obio_attach_args *oa = (struct obio_attach_args *)args; in obio_print() local
81 if (oa->oa_addr != (-1)) in obio_print()
82 aprint_normal(" addr %x", oa->oa_addr); in obio_print()
91 struct obio_attach_args oa; in obio_search() local
93 oa.oa_addr = cf->cf_loc[OBIOCF_ADDR]; in obio_search()
94 oa.oa_tag = mba->mba_bst; in obio_search()
95 oa.oa_dmat = mba->mba_dmat; in obio_search()
97 if (config_probe(parent, cf, &oa)) in obio_search()
98 config_attach(parent, cf, &oa, obio_print, CFARGS_NONE); in obio_search()
H A Dgrf_obio.c101 struct obio_attach_args *oa = (struct obio_attach_args *)aux; in grfiv_match() local
113 if (bus_space_map(oa->oa_tag, base, 0x40, 0, &bsh)) in grfiv_match()
117 bus_space_write_1(oa->oa_tag, bsh, 0x18, 0x1); in grfiv_match()
119 bus_space_unmap(oa->oa_tag, bsh, 0x40); in grfiv_match()
139 if (bus_space_map(oa->oa_tag, base, 0x20, 0, &bsh)) in grfiv_match()
142 if (mac68k_bus_space_probe(oa->oa_tag, bsh, 0x1c, 4) == 0) { in grfiv_match()
143 bus_space_unmap(oa->oa_tag, bsh, 0x20); in grfiv_match()
147 bus_space_unmap(oa->oa_tag, bsh, 0x20); in grfiv_match()
149 if (bus_space_map(oa->oa_tag, base + 0x100, 0x20, 0, &bsh)) in grfiv_match()
152 if (mac68k_bus_space_probe(oa->oa_tag, bsh, 0x04, 4) == 0) { in grfiv_match()
[all …]
H A Dasc.c143 struct obio_attach_args *oa = (struct obio_attach_args *)aux; in ascmatch() local
149 if (oa->oa_addr != (-1)) in ascmatch()
150 addr = (bus_addr_t)oa->oa_addr; in ascmatch()
158 if (bus_space_map(oa->oa_tag, addr, MAC68K_ASC_LEN, 0, &bsh)) in ascmatch()
161 if (mac68k_bus_space_probe(oa->oa_tag, bsh, 0, 1)) { in ascmatch()
168 ver = bus_space_read_1(oa->oa_tag, bsh, 0x800); in ascmatch()
177 bus_space_unmap(oa->oa_tag, bsh, MAC68K_ASC_LEN); in ascmatch()
186 struct obio_attach_args *oa = (struct obio_attach_args *)aux; in ascattach() local
191 sc->sc_tag = oa->oa_tag; in ascattach()
192 if (oa in ascattach()
[all...]
H A Dwdc_obio.c89 struct obio_attach_args *oa = (struct obio_attach_args *) aux; in wdc_obio_match() local
101 wdr->cmd_iot = wdr->ctl_iot = oa->oa_tag; in wdc_obio_match()
138 struct obio_attach_args *oa = aux; in wdc_obio_attach() local
145 oa->oa_addr = IDEBase; in wdc_obio_attach()
146 wdr->cmd_iot = wdr->ctl_iot = oa->oa_tag; in wdc_obio_attach()
148 if (bus_space_map(wdr->cmd_iot, oa->oa_addr, WDC_OBIO_REG_NPORTS, 0, in wdc_obio_attach()
171 wdc_obio_isr_tag = oa->oa_tag; in wdc_obio_attach()
173 if (bus_space_map(wdc_obio_isr_tag, oa->oa_addr + WDC_OBIO_ISR_OFFSET, in wdc_obio_attach()
H A Dif_sn_obio.c71 struct obio_attach_args *oa = aux; in sn_obio_match() local
78 if (bus_space_map(oa->oa_tag, in sn_obio_match()
82 if (mac68k_bus_space_probe(oa->oa_tag, bsh, 0, 4)) in sn_obio_match()
85 bus_space_unmap(oa->oa_tag, bsh, SONIC_NREGS * 4); in sn_obio_match()
97 struct obio_attach_args *oa = aux; in sn_obio_attach() local
102 sc->sc_st = oa->oa_tag; in sn_obio_attach()
103 sc->sc_dmat = oa->oa_dmat; in sn_obio_attach()
H A Dif_mc_obio.c81 struct obio_attach_args *oa = aux; in mc_obio_match() local
88 if (bus_space_map(oa->oa_tag, MACE_REG_BASE, MC_REGSIZE, 0, &bsh)) in mc_obio_match()
96 if (mac68k_bus_space_probe(oa->oa_tag, bsh, 0, 1)) { in mc_obio_match()
98 oa->oa_tag, bsh, MACE_REG(MACE_CHIPIDL)) == 0x40) && in mc_obio_match()
100 oa->oa_tag, bsh, MACE_REG(MACE_CHIPIDH)) & 0xf) == 9)) in mc_obio_match()
104 bus_space_unmap(oa->oa_tag, bsh, MC_REGSIZE); in mc_obio_match()
112 struct obio_attach_args *oa = (struct obio_attach_args *)aux; in mc_obio_attach() local
118 sc->sc_regt = oa->oa_tag; in mc_obio_attach()
136 sc->sc_dmat = oa->oa_dmat; in mc_obio_attach()
/netbsd-src/external/bsd/libfido2/dist/src/
H A Dtypes.c22 fido_opt_array_free(fido_opt_array_t *oa) in fido_opt_array_free() argument
24 for (size_t i = 0; i < oa->len; i++) in fido_opt_array_free()
25 free(oa->name[i]); in fido_opt_array_free()
27 free(oa->name); in fido_opt_array_free()
28 free(oa->value); in fido_opt_array_free()
29 oa->name = NULL; in fido_opt_array_free()
30 oa->value = NULL; in fido_opt_array_free()
31 oa->len = 0; in fido_opt_array_free()
/netbsd-src/share/examples/disktab/
H A Ddisktab48 :pa#5760:oa#0:ba#4096:fa#512:ta=4.2BSD:\
56 :pa#20160:oa#416304:ta=4.2BSD:ba#4096:fa#512: \
64 :pa#46500:oa#46500:ta=4.2BSD:ba#4096:fa#512: \
73 :pa#49600:oa#49600:ta=4.2BSD:ba#4096:fa#512: \
83 :pa#60480:oa#50400:ta=4.2BSD:\
91 :pa#1298432:oa#0:ta=4.2BSD:ba#4096:fa#512:\
100 :pa#111600:oa#0:ba#8192:fa#1024:ta=4.2BSD:\
108 :pa#3616272:oa#0:ta=4.2BSD:ba#16384:fa#2048:\
116 :pa#2034000:oa#0:ta=4.2BSD:ba#8192:fa#1024:\
130 :pa#60264:oa#0:ba#8192:fa#2048:ta=4.2BSD:\
[all …]
/netbsd-src/etc/etc.vax/
H A Ddisktab29 :pa#15884:oa#0:ba#8192:fa#1024:\
40 :pa#15884:oa#0:ba#8192:fa#1024:\
52 :pa#15884:oa#0:ba#8192:fa#1024:\
63 :pa#15884:oa#0:ba#8192:fa#1024:\
74 :pa#15884:oa#0:ba#8192:fa#1024:\
85 :pa#15884:oa#0:ba#8192:fa#1024:\
99 :pa#15884:oa#0:ba#8192:fa#1024:\
111 :pa#15884:oa#0:ba#8192:fa#1024:\
122 :pa#15884:oa#0:ba#8192:fa#1024:\
134 :pa#15884:oa#0:ba#8192:fa#1024:\
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/
H A DMakefile237 oa/i915_oa_hsw.o \
238 oa/i915_oa_bdw.o \
239 oa/i915_oa_chv.o \
240 oa/i915_oa_sklgt2.o \
241 oa/i915_oa_sklgt3.o \
242 oa/i915_oa_sklgt4.o \
243 oa/i915_oa_bxt.o \
244 oa/i915_oa_kblgt2.o \
245 oa/i915_oa_kblgt3.o \
246 oa/i915_oa_glk.o \
[all …]
/netbsd-src/sys/dev/onewire/
H A Donewire.c181 struct onewire_attach_args *oa = aux; in onewire_print() local
187 famname = onewire_famname(ONEWIRE_ROM_FAMILY_TYPE(oa->oa_rom)); in onewire_print()
190 (uint)ONEWIRE_ROM_FAMILY_TYPE(oa->oa_rom)); in onewire_print()
193 aprint_normal(" sn %012" PRIx64, ONEWIRE_ROM_SN(oa->oa_rom)); in onewire_print()
396 struct onewire_attach_args oa; in onewire_scan() local
526 memset(&oa, 0, sizeof(oa)); in onewire_scan()
527 oa.oa_onewire = sc; in onewire_scan()
528 oa.oa_rom = d->d_rom; in onewire_scan()
532 d->d_dev = config_found(sc->sc_dev, &oa, onewire_print, in onewire_scan()

1234567891011