Searched refs:res (Results 251 - 275 of 1247) sorted by relevance

<<11121314151617181920>>

/freebsd-9.3-release/contrib/wpa/src/crypto/
H A Dcrypto_libtomcrypt.c308 int idx, res, rc4 = 0; local
344 res = cbc_start(idx, iv, key, key_len, 0, &ctx->u.cbc);
345 if (res != CRYPT_OK) {
347 "failed: %s", error_to_string(res));
359 int res; local
370 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
371 if (res != CRYPT_OK) {
373 "failed: %s", error_to_string(res));
383 int res; local
394 res
424 int res; local
456 int res; local
560 int res; local
621 int res; local
[all...]
/freebsd-9.3-release/sys/dev/exca/
H A Dexca.c247 exca_mem_map(struct exca_softc *sc, int kind, struct resource *res) argument
261 if (rman_get_start(res) >> (EXCA_MEMREG_WIN_SHIFT + 8) != 0) {
268 if (rman_get_start(res) >> EXCA_MEMREG_WIN_SHIFT != 0) {
276 sc->mem[win].memt = rman_get_bustag(res);
277 sc->mem[win].memh = rman_get_bushandle(res);
278 sc->mem[win].addr = rman_get_start(res);
279 sc->mem[win].size = rman_get_end(res) - sc->mem[win].addr + 1;
314 * store a pointer to the res in the mem[x] data structure.
317 exca_mem_findmap(struct exca_softc *sc, struct resource *res) argument
322 if (sc->mem[win].memt == rman_get_bustag(res)
340 exca_mem_set_flags(struct exca_softc *sc, struct resource *res, uint32_t flags) argument
375 exca_mem_unmap_res(struct exca_softc *sc, struct resource *res) argument
393 exca_mem_set_offset(struct exca_softc *sc, struct resource *res, uint32_t cardaddr, uint32_t *deltap) argument
535 exca_io_findmap(struct exca_softc *sc, struct resource *res) argument
550 exca_io_unmap_res(struct exca_softc *sc, struct resource *res) argument
808 exca_activate_resource(struct exca_softc *exca, device_t child, int type, int rid, struct resource *res) argument
834 exca_deactivate_resource(struct exca_softc *exca, device_t child, int type, int rid, struct resource *res) argument
[all...]
/freebsd-9.3-release/contrib/gdb/gdb/
H A Ddcache.c248 int res; local
304 res = do_xfer_memory(memaddr, myaddr, dirty_len, 1,
306 if (res <= 0)
309 memset (&db->state[XFORM(memaddr)], ENTRY_OK, res);
310 memaddr += res;
311 myaddr += res;
312 len -= res;
313 dirty_len -= res;
329 int res; local
363 res
[all...]
/freebsd-9.3-release/lib/librpcsec_gss/
H A Drpcsec_gss_conf.c77 char *res; local
102 res = 0;
131 if (res)
132 *res = number * 40;
134 if (res) {
135 *res += number;
136 res++;
151 if (res) {
154 *res = (number >> bit) & 0x7f;
156 *res |
[all...]
/freebsd-9.3-release/contrib/wpa/wpa_supplicant/
H A Dscan.c126 static void int_array_concat(int **res, const int *a) argument
131 reslen = int_array_len(*res);
134 n = os_realloc(*res, (reslen + alen + 1) * sizeof(int));
136 os_free(*res);
137 *res = NULL;
142 *res = n;
485 static int wpa_scan_get_max_rate(const struct wpa_scan_res *res) argument
491 ie = wpa_scan_get_ie(res, WLAN_EID_SUPP_RATES);
497 ie = wpa_scan_get_ie(res, WLAN_EID_EXT_SUPP_RATES);
507 const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u argument
526 wpa_scan_get_vendor_ie(const struct wpa_scan_res *res, u32 vendor_type) argument
547 wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res, u32 vendor_type) argument
678 wpa_scan_results_free(struct wpa_scan_results *res) argument
[all...]
/freebsd-9.3-release/sys/powerpc/ofw/
H A Dofw_machdep.c271 int i, idx, len, lasz, lmsz, res; local
283 res = OF_getprop(phandle, "ibm,lmb-size", lmb_size, sizeof(lmb_size));
284 if (res == -1)
293 #el Addr DRC-idx res list-idx flags
307 res = OF_getprop(phandle, "ibm,dynamic-memory", &arr,
309 if (res == -1)
354 int i, j, res; local
370 res = parse_ofw_memory(phandle, "reg", &OFmem[msz]);
371 msz += res/sizeof(struct mem_region);
373 res
650 int pci, res; local
684 int pci, pcib, res; local
[all...]
H A Dofw_pci.c68 int type, int rid, struct resource *res);
70 int type, int rid, struct resource *res);
73 struct resource *res);
75 int type, struct resource *res, u_long start,
339 struct resource *res)
341 if (rman_get_flags(res) & RF_ACTIVE) {
342 int error = bus_deactivate_resource(child, type, rid, res);
347 return (rman_release_resource(res));
352 struct resource *res)
360 return (bus_activate_resource(bus, type, rid, res));
338 ofw_pci_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
351 ofw_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
412 ofw_pci_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
429 ofw_pci_adjust_resource(device_t bus, device_t child, int type, struct resource *res, u_long start, u_long end) argument
[all...]
/freebsd-9.3-release/lib/libc/net/
H A Drcmdsh.c67 struct addrinfo hints, *res; local
92 error = getaddrinfo(*ahost, num, &hints, &res);
98 if (res->ai_canonname) {
99 strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1);
103 freeaddrinfo(res);
H A Dgetaddrinfo.c372 const struct addrinfo *hints, struct addrinfo **res)
387 *res = NULL;
585 * - error == 0, non-NULL *res
586 * - error != 0, NULL *res
617 *res = sentinel.ai_next;
629 if (!*res)
1088 struct addrinfo **res)
1113 *res = sentinel.ai_next;
1128 struct addrinfo **res)
1135 *res
371 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument
1087 explore_copy(const struct addrinfo *pai, const struct addrinfo *src0, struct addrinfo **res) argument
1127 explore_null(const struct addrinfo *pai, const char *servname, struct addrinfo **res) argument
1174 explore_numeric(const struct addrinfo *pai, const char *hostname, const char *servname, struct addrinfo **res, const char *canonname) argument
1239 explore_numeric_scope(const struct addrinfo *pai, const char *hostname, const char *servname, struct addrinfo **res) argument
1846 explore_fqdn(const struct addrinfo *pai, const char *hostname, const char *servname, struct addrinfo **res) argument
1913 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, const struct addrinfo *pai, res_state res) argument
2126 addr4sort(struct addrinfo *sentinel, res_state res) argument
2195 res_state res; local
2314 struct addrinfo hints, *res0, *res; local
2420 struct addrinfo hints, *res, *res0; local
2563 res_queryN(const char *name, struct res_target *target, res_state res) argument
2690 res_searchN(const char *name, struct res_target *target, res_state res) argument
2863 res_querydomainN(const char *name, const char *domain, struct res_target *target, res_state res) argument
[all...]
/freebsd-9.3-release/sbin/hastd/
H A Dhast_checksum.c93 checksum_send(const struct hast_resource *res, struct nv *nv, void **datap, argument
99 switch (res->hr_checksum) {
111 PJDLOG_ABORT("Invalid checksum: %d.", res->hr_checksum);
113 nv_add_string(nv, checksum_name(res->hr_checksum), "checksum");
123 checksum_recv(const struct hast_resource *res __unused, struct nv *nv,
/freebsd-9.3-release/contrib/ntp/scripts/lib/NTP/
H A DUtil.pm74 my ($err, $res);
76 ($err, $res) = getaddrinfo($host, '', {socktype => SOCK_RAW});
79 ($err, $res) = getnameinfo($res->{addr}, 0);
82 return $res;
/freebsd-9.3-release/sys/dev/pccbb/
H A Dpccbb.c168 int type, int rid, struct resource *res);
170 device_t child, int type, int rid, struct resource *res);
175 int type, int rid, struct resource *res);
184 cbb_remove_res(struct cbb_softc *sc, struct resource *res) argument
189 if (rle->res == res) {
204 return (rle->res);
209 cbb_insert_res(struct cbb_softc *sc, struct resource *res, int type, argument
221 rle->res = res;
1171 cbb_cardbus_activate_resource(device_t brdev, device_t child, int type, int rid, struct resource *res) argument
1185 cbb_cardbus_deactivate_resource(device_t brdev, device_t child, int type, int rid, struct resource *res) argument
1204 struct resource *res; local
1259 cbb_cardbus_release_resource(device_t brdev, device_t child, int type, int rid, struct resource *res) argument
1343 cbb_pcic_activate_resource(device_t brdev, device_t child, int type, int rid, struct resource *res) argument
1356 cbb_pcic_deactivate_resource(device_t brdev, device_t child, int type, int rid, struct resource *res) argument
1367 struct resource *res = NULL; local
1420 cbb_pcic_release_resource(device_t brdev, device_t child, int type, int rid, struct resource *res) argument
1445 struct resource *res; local
1463 struct resource *res; local
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dsnprintf.c323 #define PARSE_INT_FORMAT(res, arg, unsig) \
325 res = (unsig long long)va_arg(arg, unsig long long); \
327 res = (unsig long)va_arg(arg, unsig long); \
329 res = (unsig long)va_arg(arg, size_t); \
331 res = (unsig short)va_arg(arg, unsig int); \
333 res = (unsig int)va_arg(arg, unsig int)
337 #define PARSE_INT_FORMAT(res, arg, unsig) \
339 res = (unsig long)va_arg(arg, unsig long); \
341 res = (unsig long)va_arg(arg, size_t); \
343 res
[all...]
/freebsd-9.3-release/sys/x86/isa/
H A Disa.c142 bus_addr_t *res, bus_size_t count, u_int flags)
159 if (res[i] != res[i - 1] + 1) {
167 start + res[0], start + res[linear_cnt - 1],
181 if (res[j] != res[j - 1] + 1)
186 start + res[i], start + res[j - 1], j - i, flags);
204 isa_load_resourcev(struct resource *re, bus_addr_t *res, bus_size_ argument
141 isa_alloc_resourcev(device_t child, int type, int *rid, bus_addr_t *res, bus_size_t count, u_int flags) argument
[all...]
/freebsd-9.3-release/lib/libutil/
H A Drealhostname.c132 struct addrinfo hints, *res, *ores; local
140 error = getaddrinfo(buf, NULL, &hints, &res);
145 for (ores = res; ; res = res->ai_next) {
146 if (res == NULL) {
151 sa = res->ai_addr;
/freebsd-9.3-release/sys/dev/mvs/
H A Dmvs.h634 #define ATA_INB(res, offset) \
635 bus_read_1((res), (offset))
636 #define ATA_INW(res, offset) \
637 bus_read_2((res), (offset))
638 #define ATA_INL(res, offset) \
639 bus_read_4((res), (offset))
640 #define ATA_INSW(res, offset, addr, count) \
641 bus_read_multi_2((res), (offset), (addr), (count))
642 #define ATA_INSW_STRM(res, offset, addr, count) \
643 bus_read_multi_stream_2((res), (offse
[all...]
/freebsd-9.3-release/sys/fs/hpfs/
H A Dhpfs_lookup.c68 int error, res; local
87 res = hpfs_cmpfname(hpmp, name, namelen,
89 if (res == 0) {
93 } else if (res < 0)
157 res = hpfs_cmpfname(hpmp, name, namelen,
159 if (res == 0) {
170 } else if (res < 0)
/freebsd-9.3-release/sys/dev/acpica/
H A Dacpi_pcib_acpi.c167 acpi_pcib_producer_handler(ACPI_RESOURCE *res, void *context) argument
175 switch (res->Type) {
183 if (res->Data.Address.ProducerConsumer != ACPI_PRODUCER)
185 switch (res->Type) {
187 min = res->Data.Address16.Minimum;
188 max = res->Data.Address16.Maximum;
189 length = res->Data.Address16.AddressLength;
192 min = res->Data.Address32.Minimum;
193 max = res->Data.Address32.Maximum;
194 length = res
528 struct resource *res; local
[all...]
/freebsd-9.3-release/sys/arm/s3c2xx0/
H A Ds3c24x0.c81 } res[2]; member in struct:__anon5564
229 s3c24x0_teardown_intr(device_t dev, device_t child, struct resource *res, argument
232 return (BUS_TEARDOWN_INTR(device_get_parent(dev), child, res, cookie));
295 struct resource *res = NULL; local
304 if (rle->res)
338 res = rman_reserve_resource(
345 res = rman_reserve_resource(
348 if (res == NULL)
352 rman_set_bustag(res, &s3c2xx0_bs_tag);
353 rman_set_bushandle(res, star
[all...]
/freebsd-9.3-release/sys/dev/fdt/
H A Dfdtbus.c489 struct resource *res; local
536 res = rman_reserve_resource(rm, start, end, count, flags, child);
537 if (res == NULL) {
543 rman_set_rid(res, *rid);
547 rman_set_bustag(res, fdtbus_bs_tag);
548 rman_set_bushandle(res, rman_get_start(res));
552 if (bus_activate_resource(child, type, *rid, res)) {
554 rman_release_resource(res);
558 return (res);
562 fdtbus_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
577 fdtbus_setup_intr(device_t bus, device_t child, struct resource *res, int flags, driver_filter_t *filter, driver_intr_t *ihand, void *arg, void **cookiep) argument
605 fdtbus_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
613 fdtbus_deactivate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
622 fdtbus_teardown_intr(device_t bus, device_t child, struct resource *res, void *cookie) argument
[all...]
/freebsd-9.3-release/sys/dev/sound/isa/
H A Dgusc.c182 struct resource *res, *res2; local
189 res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, base + 0x100,
192 if (res == NULL)
202 port_wr(res, 3, 0x4c);
203 port_wr(res, 5, 0);
206 port_wr(res, 3, 0x4c);
207 port_wr(res, 5, 1);
214 port_wr(res, 3, 0x43); /* Register select */
215 port_wr(res, 4, 0); /* Low addr */
216 port_wr(res,
357 struct resource **res; local
[all...]
/freebsd-9.3-release/bin/pax/
H A Dfile_subs.c135 int res = 0; local
149 res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid);
156 if (!pmode || res)
343 int res; local
361 res = mkdir(arcn->name, file_mode);
363 res = 0;
367 res = mknod(arcn->name, file_mode, arcn->sb.st_rdev);
371 res = mknod(arcn->name, file_mode, arcn->sb.st_rdev);
374 res = mkfifo(arcn->name, file_mode);
385 res
894 int res; local
[all...]
/freebsd-9.3-release/contrib/tcp_wrappers/
H A Dsocket.c175 struct addrinfo hints, *res, *res0 = NULL; local
284 for (res = res0; res; res = res->ai_next) {
285 if (res->ai_family != sin->sa_family)
287 switch (res->ai_family) {
289 rap = (char *)&((struct sockaddr_in *)res->ai_addr)->sin_addr;
294 ((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id) {
297 rap = (char *)&((struct sockaddr_in6 *)res
[all...]
/freebsd-9.3-release/usr.sbin/faithd/
H A Dprefix.c64 struct addrinfo hints, *res = NULL; local
82 if (getaddrinfo(p, "0", &hints, &res))
84 if (res->ai_next || res->ai_addrlen > sizeof(prefix->a))
86 memcpy(&prefix->a, res->ai_addr, res->ai_addrlen);
115 if (res)
116 freeaddrinfo(res);
122 if (res)
123 freeaddrinfo(res);
[all...]
/freebsd-9.3-release/contrib/ntp/sntp/libevent/
H A Dpoll.c127 int res, i, j, nfds; local
171 res = poll(event_set, nfds, msec);
175 if (res == -1) {
184 event_debug(("%s: poll reports %d", __func__, res));
186 if (res == 0 || nfds == 0)
198 res = 0;
204 res |= EV_READ;
206 res |= EV_WRITE;
207 if (res == 0)
210 evmap_io_active_(base, event_set[i].fd, res);
[all...]

Completed in 317 milliseconds

<<11121314151617181920>>