Home
last modified time | relevance | path

Searched refs:ea (Results 1 – 25 of 147) sorted by relevance

123456

/openbsd-src/sys/arch/sparc64/dev/
H A Dcom_ebus.c86 struct ebus_attach_args *ea = aux; in com_ebus_match() local
90 if (strcmp(ea->ea_name, com_names[i]) == 0) in com_ebus_match()
93 if (strcmp(ea->ea_name, "serial") == 0) { in com_ebus_match()
101 if ((i = OF_getproplen(ea->ea_node, "compatible")) && in com_ebus_match()
102 OF_getprop(ea->ea_node, "compatible", compat, in com_ebus_match()
122 struct ebus_attach_args *ea = aux; in com_ebus_attach() local
127 sc->sc_iobase = EBUS_PADDR_FROM_REG(&ea->ea_regs[0]); in com_ebus_attach()
139 if (ea->ea_nvaddrs) { in com_ebus_attach()
140 if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0, in com_ebus_attach()
145 sc->sc_iot = ea->ea_memtag; in com_ebus_attach()
[all …]
H A Dpcfiic_ebus.c63 struct ebus_attach_args *ea = aux; in pcfiic_ebus_match() local
66 if (strcmp(ea->ea_name, "SUNW,envctrl") == 0 || in pcfiic_ebus_match()
67 strcmp(ea->ea_name, "SUNW,envctrltwo") == 0) in pcfiic_ebus_match()
70 if (strcmp(ea->ea_name, "i2c") != 0) in pcfiic_ebus_match()
73 if (OF_getprop(ea->ea_node, "compatible", compat, sizeof(compat)) == -1) in pcfiic_ebus_match()
90 struct ebus_attach_args *ea = aux; in pcfiic_ebus_attach() local
96 if (ea->ea_nregs < 1 || ea->ea_nregs > 2) { in pcfiic_ebus_attach()
97 printf(": expected 1 or 2 registers, got %d\n", ea->ea_nregs); in pcfiic_ebus_attach()
101 if (OF_getprop(ea->ea_node, "compatible", compat, sizeof(compat)) > 0 && in pcfiic_ebus_attach()
117 if (OF_getprop(ea->ea_node, "own-address", &addr, sizeof(addr)) == -1) { in pcfiic_ebus_attach()
[all …]
H A Debus.c227 struct ebus_attach_args *ea) in ebus_setup_attach_args() argument
231 bzero(ea, sizeof(struct ebus_attach_args)); in ebus_setup_attach_args()
232 rv = getprop(node, "name", 1, &n, (void **)&ea->ea_name); in ebus_setup_attach_args()
235 ea->ea_name[n] = '\0'; in ebus_setup_attach_args()
237 ea->ea_node = node; in ebus_setup_attach_args()
238 ea->ea_memtag = sc->sc_memtag; in ebus_setup_attach_args()
239 ea->ea_iotag = sc->sc_iotag; in ebus_setup_attach_args()
240 ea->ea_dmatag = sc->sc_dmatag; in ebus_setup_attach_args()
242 rv = getprop(node, "reg", sizeof(struct ebus_regs), &ea->ea_nregs, in ebus_setup_attach_args()
243 (void **)&ea->ea_regs); in ebus_setup_attach_args()
[all …]
H A Dpower.c76 struct ebus_attach_args *ea = aux; in power_match() local
78 if (strcmp(ea->ea_name, "power") == 0) in power_match()
87 struct ebus_attach_args *ea = aux; in power_attach() local
89 if (ea->ea_nregs < 1) { in power_attach()
95 if (ea->ea_nvaddrs) { in power_attach()
96 if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0, in power_attach()
101 sc->sc_iot = ea->ea_memtag; in power_attach()
102 } else if (ebus_bus_map(ea->ea_iotag, 0, in power_attach()
103 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in power_attach()
104 ea->ea_regs[0].size, 0, 0, &sc->sc_ioh) == 0) { in power_attach()
[all …]
H A Dlpt_ebus.c61 struct ebus_attach_args *ea = aux; in lpt_ebus_match() local
63 if (!strcmp(ea->ea_name, "ecpp") || in lpt_ebus_match()
64 !strcmp(ea->ea_name, "parallel")) in lpt_ebus_match()
73 struct ebus_attach_args *ea = aux; in lpt_ebus_attach() local
76 if (ebus_bus_map(ea->ea_memtag, 0, in lpt_ebus_attach()
77 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, in lpt_ebus_attach()
79 sc->sc_lpt.sc_iot = ea->ea_memtag; in lpt_ebus_attach()
80 } else if (ebus_bus_map(ea->ea_iotag, 0, in lpt_ebus_attach()
81 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, in lpt_ebus_attach()
83 sc->sc_lpt.sc_iot = ea->ea_iotag; in lpt_ebus_attach()
[all …]
H A Dpmc.c67 struct ebus_attach_args *ea = aux; in pmc_match() local
69 if (strcmp("pmc", ea->ea_name) == 0) in pmc_match()
78 struct ebus_attach_args *ea = aux; in pmc_attach() local
81 if (ea->ea_nvaddrs) { in pmc_attach()
82 if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0, in pmc_attach()
87 sc->sc_iot = ea->ea_memtag; in pmc_attach()
88 } else if (ebus_bus_map(ea->ea_iotag, 0, in pmc_attach()
89 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in pmc_attach()
90 ea->ea_regs[0].size, 0, 0, &sc->sc_ioh) == 0) { in pmc_attach()
91 sc->sc_iot = ea->ea_iotag; in pmc_attach()
[all …]
H A Dbbc.c73 struct ebus_attach_args *ea = aux; in bbc_match() local
75 if (strcmp("bbc", ea->ea_name) == 0) in bbc_match()
84 struct ebus_attach_args *ea = aux; in bbc_attach() local
87 if (ea->ea_nvaddrs) { in bbc_attach()
88 if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0, in bbc_attach()
93 sc->sc_iot = ea->ea_memtag; in bbc_attach()
94 } else if (ebus_bus_map(ea->ea_iotag, 0, in bbc_attach()
95 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in bbc_attach()
96 ea->ea_regs[0].size, 0, 0, &sc->sc_ioh) == 0) { in bbc_attach()
97 sc->sc_iot = ea->ea_iotag; in bbc_attach()
[all …]
H A Dpckbc_ebus.c77 struct ebus_attach_args *ea = aux; in pckbc_ebus_match() local
79 if (strcmp(ea->ea_name, "8042") == 0) in pckbc_ebus_match()
89 struct ebus_attach_args *ea = aux; in pckbc_ebus_attach() local
94 sc->sc_node = ea->ea_node; in pckbc_ebus_attach()
98 if (ea->ea_nvaddrs && bus_space_map(ea->ea_iotag, ea->ea_vaddrs[0], 0, in pckbc_ebus_attach()
100 sc->sc_iot = ea->ea_iotag; in pckbc_ebus_attach()
101 } else if (ebus_bus_map(ea->ea_iotag, 0, in pckbc_ebus_attach()
102 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, in pckbc_ebus_attach()
104 sc->sc_iot = ea->ea_iotag; in pckbc_ebus_attach()
105 } else if (ebus_bus_map(ea->ea_memtag, 0, in pckbc_ebus_attach()
[all …]
H A Dwbsd_ebus.c48 struct ebus_attach_args *ea = aux; in wbsd_ebus_match() local
50 if (strcmp(ea->ea_name, "TAD,wb-sdcard") == 0) in wbsd_ebus_match()
60 struct ebus_attach_args *ea = aux; in wbsd_ebus_attach() local
62 if (ebus_bus_map(ea->ea_iotag, 0, in wbsd_ebus_attach()
63 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in wbsd_ebus_attach()
64 ea->ea_regs[0].size, 0, 0, &sc->wb_ioh) == 0) { in wbsd_ebus_attach()
65 sc->wb_iot = ea->ea_iotag; in wbsd_ebus_attach()
66 } else if (ebus_bus_map(ea->ea_memtag, 0, in wbsd_ebus_attach()
67 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in wbsd_ebus_attach()
68 ea->ea_regs[0].size, 0, 0, &sc->wb_ioh) == 0) { in wbsd_ebus_attach()
[all …]
H A Dcomms_ebus.c160 struct ebus_attach_args *ea = aux; in comms_match() local
164 if (strcmp(ea->ea_name, comms_names[i]) == 0) in comms_match()
165 return comms_ismouse(ea->ea_node); in comms_match()
167 if (strcmp(ea->ea_name, "serial") == 0) { in comms_match()
170 if ((i = OF_getproplen(ea->ea_node, "compatible")) && in comms_match()
171 OF_getprop(ea->ea_node, "compatible", compat, in comms_match()
175 return comms_ismouse(ea->ea_node); in comms_match()
185 struct ebus_attach_args *ea = aux; in comms_attach() local
187 sc->sc_iot = ea->ea_memtag; in comms_attach()
201 if (ea->ea_nvaddrs && bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0, in comms_attach()
[all …]
H A Dppm.c74 struct ebus_attach_args *ea = aux; in ppm_match() local
76 if (strcmp(ea->ea_name, "ppm")) in ppm_match()
85 struct ebus_attach_args *ea = aux; in ppm_attach() local
88 sc->sc_iot = ea->ea_memtag; in ppm_attach()
90 if (ea->ea_nregs < 4) { in ppm_attach()
97 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, in ppm_attach()
105 EBUS_PADDR_FROM_REG(&ea->ea_regs[1]), ea->ea_regs[1].size, in ppm_attach()
113 EBUS_PADDR_FROM_REG(&ea->ea_regs[2]), ea->ea_regs[2].size, in ppm_attach()
120 EBUS_PADDR_FROM_REG(&ea->ea_regs[3]), ea->ea_regs[3].size, in ppm_attach()
H A Dled.c85 struct ebus_attach_args *ea = aux; in led_match() local
88 if (strcmp("env-monitor", ea->ea_name) != 0) in led_match()
91 str = getpropstring(ea->ea_node, "compatible"); in led_match()
102 struct ebus_attach_args *ea = aux; in led_attach() local
105 if (ebus_bus_map(ea->ea_iotag, 0, in led_attach()
106 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in led_attach()
107 ea->ea_regs[0].size, 0, 0, &sc->sc_ioh) == 0) { in led_attach()
108 sc->sc_iot = ea->ea_iotag; in led_attach()
109 } else if (ebus_bus_map(ea->ea_memtag, 0, in led_attach()
110 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), in led_attach()
[all …]
H A Dcomkbd_ebus.c136 struct ebus_attach_args *ea = aux; in comkbd_match() local
140 if (strcmp(ea->ea_name, comkbd_names[i]) == 0) in comkbd_match()
141 return (comkbd_iskbd(ea->ea_node)); in comkbd_match()
143 if (strcmp(ea->ea_name, "serial") == 0) { in comkbd_match()
146 if ((i = OF_getproplen(ea->ea_node, "compatible")) && in comkbd_match()
147 OF_getprop(ea->ea_node, "compatible", compat, in comkbd_match()
151 return (comkbd_iskbd(ea->ea_node)); in comkbd_match()
162 struct ebus_attach_args *ea = aux; in comkbd_attach() local
169 sc->sc_iot = ea->ea_memtag; in comkbd_attach()
179 console = (ea->ea_node == OF_instance_to_package(OF_stdin())); in comkbd_attach()
[all …]
H A Dauxio.c78 struct ebus_attach_args *ea = aux; in auxio_ebus_match() local
80 return (strcmp(AUXIO_ROM_NAME, ea->ea_name) == 0); in auxio_ebus_match()
87 struct ebus_attach_args *ea = aux; in auxio_ebus_attach() local
89 if (ea->ea_nregs < 1 || ea->ea_nvaddrs < 1) { in auxio_ebus_attach()
94 sc->sc_tag = ea->ea_memtag; in auxio_ebus_attach()
96 if (ea->ea_nregs != 5 || ea->ea_nvaddrs != 5) { in auxio_ebus_attach()
98 ea->ea_nregs); in auxio_ebus_attach()
102 if (bus_space_map(sc->sc_tag, ea->ea_vaddrs[2], in auxio_ebus_attach()
108 if (bus_space_map(sc->sc_tag, ea->ea_vaddrs[3], in auxio_ebus_attach()
114 if (bus_space_map(sc->sc_tag, ea->ea_vaddrs[4], in auxio_ebus_attach()
[all …]
H A Dbeeper.c87 struct ebus_attach_args *ea = aux; in beeper_match() local
89 if (strcmp(ea->ea_name, "beeper") == 0) in beeper_match()
98 struct ebus_attach_args *ea = aux; in beeper_attach() local
100 sc->sc_iot = ea->ea_memtag; in beeper_attach()
103 if (ea->ea_nvaddrs) { in beeper_attach()
104 if (bus_space_map(sc->sc_iot, ea->ea_vaddrs[0], 0, in beeper_attach()
110 EBUS_PADDR_FROM_REG(&ea->ea_regs[0]), ea->ea_regs[0].size, 0, 0, in beeper_attach()
/openbsd-src/sys/dev/eisa/
H A Deisa.c84 register struct eisa_attach_args *ea = aux; in eisaprint() local
88 eisa_devinfo(ea->ea_idstring, devinfo, sizeof devinfo); in eisaprint()
91 printf(" slot %d", ea->ea_slot); in eisaprint()
99 struct eisa_attach_args *ea = aux; in eisasubmatch() local
102 cf->eisacf_slot != ea->ea_slot) in eisasubmatch()
130 struct eisa_attach_args ea; in eisaattach() local
135 ea.ea_dmat = eba->eba_dmat; in eisaattach()
136 ea.ea_iot = iot; in eisaattach()
137 ea.ea_memt = memt; in eisaattach()
138 ea.ea_ec = ec; in eisaattach()
[all …]
H A Dif_ep_eisa.c87 struct eisa_attach_args *ea = aux; in ep_eisa_match() local
90 if (strcmp(ea->ea_idstring, "TCM5090") && in ep_eisa_match()
91 strcmp(ea->ea_idstring, "TCM5091") && in ep_eisa_match()
92 strcmp(ea->ea_idstring, "TCM5092") && in ep_eisa_match()
93 strcmp(ea->ea_idstring, "TCM5093") && in ep_eisa_match()
94 strcmp(ea->ea_idstring, "TCM5094") && in ep_eisa_match()
95 strcmp(ea->ea_idstring, "TCM5095") && in ep_eisa_match()
96 strcmp(ea->ea_idstring, "TCM5098") && in ep_eisa_match()
97 strcmp(ea->ea_idstring, "TCM5920") && in ep_eisa_match()
98 strcmp(ea->ea_idstring, "TCM5970") && in ep_eisa_match()
[all …]
H A Dahc_eisa.c106 struct eisa_attach_args *ea = aux; in ahc_eisa_match() local
107 bus_space_tag_t iot = ea->ea_iot; in ahc_eisa_match()
112 if (strcmp(ea->ea_idstring, "ADP7770") && in ahc_eisa_match()
113 strcmp(ea->ea_idstring, "ADP7771") in ahc_eisa_match()
115 && strcmp(ea->ea_idstring, "ADP7756") /* not EISA, but VL */ in ahc_eisa_match()
116 && strcmp(ea->ea_idstring, "ADP7757") /* not EISA, but VL */ in ahc_eisa_match()
121 if (bus_space_map(iot, EISA_SLOT_ADDR(ea->ea_slot) + in ahc_eisa_match()
136 struct eisa_attach_args *ea = aux; in ahc_eisa_attach() local
137 bus_space_tag_t iot = ea->ea_iot; in ahc_eisa_attach()
140 eisa_chipset_tag_t ec = ea->ea_ec; in ahc_eisa_attach()
[all …]
/openbsd-src/sys/netinet/
H A Dif_ether.c261 struct ether_arp *ea; in arprequest() local
266 m->m_len = sizeof(*ea); in arprequest()
267 m->m_pkthdr.len = sizeof(*ea); in arprequest()
270 m_align(m, sizeof(*ea)); in arprequest()
271 ea = mtod(m, struct ether_arp *); in arprequest()
273 memset(ea, 0, sizeof(*ea)); in arprequest()
276 ea->arp_hrd = htons(ARPHRD_ETHER); in arprequest()
277 ea->arp_pro = htons(ETHERTYPE_IP); in arprequest()
278 ea in arprequest()
296 struct ether_arp *ea; arpreply() local
554 struct ether_arp *ea; in_arpinput() local
644 arpcache(struct ifnet * ifp,struct ether_arp * ea,struct rtentry * rt) arpcache() argument
914 struct ether_arp *ea; revarprequest() local
[all...]
/openbsd-src/lib/libm/src/ld80/
H A De_hypotl.c53 u_int32_t j,k,ea,eb; in hypotl() local
55 GET_LDOUBLE_EXP(ea,x); in hypotl()
56 ea &= 0x7fff; in hypotl()
59 if(eb > ea) {a=y;b=x;j=ea; ea=eb;eb=j;} else {a=x;b=y;} in hypotl()
60 SET_LDOUBLE_EXP(a,ea); /* a <- |a| */ in hypotl()
62 if((ea-eb)>0x46) {return a+b;} /* x/y > 2**70 */ in hypotl()
64 if(ea > 0x5f3f) { /* a>2**8000 */ in hypotl()
65 if(ea == 0x7fff) { /* Inf or NaN */ in hypotl()
75 ea -= 0x2580; eb -= 0x2580; k += 9600; in hypotl()
76 SET_LDOUBLE_EXP(a,ea); in hypotl()
[all …]
/openbsd-src/sys/arch/amd64/stand/efiboot/
H A Dmemprobe.c86 mem_delete(long long sa, long long ea) in mem_delete() argument
95 if ((sa - sp) <= PAGE_SIZE && (ep - ea) <= PAGE_SIZE) { in mem_delete()
100 } else if (sa <= sp && sp < ea) { in mem_delete()
101 p->addr = ea; in mem_delete()
102 p->size = ep - ea; in mem_delete()
104 } else if (sa < ep && ep <= ea) { in mem_delete()
107 } else if (sp < sa && ea < ep) { in mem_delete()
112 p[1].addr = ea; in mem_delete()
113 p[1].size = ep - ea; in mem_delete()
123 mem_add(long long sa, long long ea) in mem_add() argument
[all …]
/openbsd-src/sys/arch/i386/stand/libsa/
H A Dmemprobe.c353 mem_delete(long long sa, long long ea) in mem_delete() argument
362 if ((sa - sp) <= PAGE_SIZE && (ep - ea) <= PAGE_SIZE) { in mem_delete()
367 } else if (sa <= sp && sp < ea) { in mem_delete()
368 p->addr = ea; in mem_delete()
369 p->size = ep - ea; in mem_delete()
371 } else if (sa < ep && ep <= ea) { in mem_delete()
374 } else if (sp < sa && ea < ep) { in mem_delete()
379 p[1].addr = ea; in mem_delete()
380 p[1].size = ep - ea; in mem_delete()
390 mem_add(long long sa, long long ea) in mem_add() argument
[all...]
/openbsd-src/sys/arch/amd64/stand/libsa/
H A Dmemprobe.c359 mem_delete(long long sa, long long ea) in mem_delete() argument
368 if ((sa - sp) <= PAGE_SIZE && (ep - ea) <= PAGE_SIZE) { in mem_delete()
373 } else if (sa <= sp && sp < ea) { in mem_delete()
374 p->addr = ea; in mem_delete()
375 p->size = ep - ea; in mem_delete()
377 } else if (sa < ep && ep <= ea) { in mem_delete()
380 } else if (sp < sa && ea < ep) { in mem_delete()
385 p[1].addr = ea; in mem_delete()
386 p[1].size = ep - ea; in mem_delete()
396 mem_add(long long sa, long long ea) in mem_add() argument
[all...]
/openbsd-src/usr.bin/mandoc/
H A Ddba_array.c33 int32_t ea; /* Entries allocated. */ member
42 dba_array_new(int32_t ea, int flags) in dba_array_new() argument
46 assert(ea > 0); in dba_array_new()
48 array->ep = mandoc_reallocarray(NULL, ea, sizeof(*array->ep)); in dba_array_new()
49 array->em = mandoc_reallocarray(NULL, ea, sizeof(*array->em)); in dba_array_new()
50 array->ea = ea; in dba_array_new()
78 assert(ie < array->ea); in dba_array_set()
91 if (array->eu == array->ea) { in dba_array_add()
94 2, sizeof(*array->ep) * array->ea); in dba_array_add()
96 2, sizeof(*array->em) * array->ea); in dba_array_add()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gas/doc/
H A Dc-h8500.texi176 ea @r{@code{rn}, @code{@@rn}, @code{@@(d:8, rn)}, @code{@@(d:16, rn)},}
198 ldc[.b] ea,crb bcc[.w] pcrel16
199 ldc[.w] ea,sr bcc[.b] pcrel8
201 add[:g] sz ea,rd bhs[.b] pcrel8
202 adds sz ea,rd bcs[.w] pcrel16
203 addx sz ea,rd bcs[.b] pcrel8
204 and sz ea,rd blo[.w] pcrel16
223 bgt[.w] pcrel16 movfpe[.b] ea,rd
225 ble[.w] pcrel16 mulxu sz ea,rd
226 ble[.b] pcrel8 neg sz ea
[all …]

123456