| /netbsd-src/sys/arch/x86/x86/ |
| H A D | x86_autoconf.c | 85 dmatch(const char *func, device_t dv, const char *method) in dmatch() argument 90 method, device_xname(dv)); in dmatch() 94 is_valid_disk(device_t dv) in is_valid_disk() argument 97 if (device_class(dv) != DV_DISK) in is_valid_disk() 100 return (device_is_a(dv, "dk") || in is_valid_disk() 101 device_is_a(dv, "sd") || in is_valid_disk() 102 device_is_a(dv, "wd") || in is_valid_disk() 103 device_is_a(dv, "ld") || in is_valid_disk() 104 device_is_a(dv, "xbd") || in is_valid_disk() 105 device_is_a(dv, "e in is_valid_disk() 117 device_t dv; matchbiosdisks() local 216 match_bootwedge(device_t dv,struct btinfo_bootwedge * biw) match_bootwedge() argument 274 match_bootdisk(device_t dv,struct btinfo_bootdisk * bid) match_bootdisk() argument 339 device_t dv; findroot() local [all...] |
| /netbsd-src/sys/arch/zaurus/zaurus/ |
| H A D | autoconf.c | 52 static int is_valid_disk(device_t dv); 53 static int match_bootdisk(device_t dv, struct btinfo_bootdisk *bid); 73 is_valid_disk(device_t dv) in is_valid_disk() argument 76 if (device_class(dv) != DV_DISK) in is_valid_disk() 79 return (device_is_a(dv, "dk") || in is_valid_disk() 80 device_is_a(dv, "sd") || in is_valid_disk() 81 device_is_a(dv, "wd") || in is_valid_disk() 82 device_is_a(dv, "ld")); in is_valid_disk() 90 match_bootdisk(device_t dv, struct btinfo_bootdisk *bid) in match_bootdisk() argument 97 if (device_is_a(dv, "dk")) in match_bootdisk() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | kern_subr.c | 128 isswap(device_t dv) in isswap() argument 134 if (device_class(dv) != DV_DISK || !device_is_a(dv, "dk")) in isswap() 137 if ((vn = opendisk(dv)) == NULL) in isswap() 147 printf("%s: Get wedge info returned %d\n", device_xname(dv), error); in isswap() 187 #define DEV_USES_PARTITIONS(dv) \ argument 188 (device_class((dv)) == DV_DISK && \ 189 !device_is_a((dv), "dk") && \ 190 !device_is_a((dv), "flash")) 274 setroot_nfs(device_t dv) in setroot_nfs() argument 282 (dv == NULL || device_class(dv) != DV_IFNET)) { in setroot_nfs() [all …]
|
| H A D | kern_pmf.c | 766 pmf_device_recursive_suspend(device_t dv, const pmf_qual_t *qual) in pmf_device_recursive_suspend() argument 777 if (device_parent(curdev) != dv) in pmf_device_recursive_suspend() 786 return rv && pmf_device_suspend(dv, qual); in pmf_device_recursive_suspend() 798 pmf_device_recursive_resume(device_t dv, const pmf_qual_t *qual) in pmf_device_recursive_resume() argument 803 if (device_is_active(dv)) in pmf_device_recursive_resume() 808 parent = device_parent(dv); in pmf_device_recursive_resume() 814 return pmf_device_resume(dv, qual); in pmf_device_recursive_resume() 818 pmf_device_descendants_release(device_t dv, const pmf_qual_t *qual) in pmf_device_descendants_release() argument 826 if (device_parent(curdev) != dv) in pmf_device_descendants_release() 839 pmf_device_descendants_resume(device_t dv, const pmf_qual_t *qual) in pmf_device_descendants_resume() argument [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/runtime/ |
| H A D | ISO_Fortran_binding.c | 146 void *CFI_address (const CFI_cdesc_t *dv, const CFI_index_t subscripts[]) in CFI_address() argument 149 char *base_addr = (char *)dv->base_addr; in CFI_address() 154 if (dv == NULL) in CFI_address() 161 if (dv->base_addr == NULL) in CFI_address() 170 if (dv->rank == 0) in CFI_address() 171 return dv->base_addr; in CFI_address() 178 for (i = 0; i < dv->rank; i++) in CFI_address() 180 CFI_index_t idx = subscripts[i] - dv->dim[i].lower_bound; in CFI_address() 182 && ((dv->dim[i].extent != -1 && idx >= dv->dim[i].extent) in CFI_address() 188 i, i, (int)subscripts[i], (int)dv->dim[i].lower_bound, in CFI_address() [all …]
|
| /netbsd-src/sys/arch/sandpoint/stand/altboot/ |
| H A D | nif.c | 70 struct nifdv *dv; in netif_init() local 79 dv = &lnifdv[n]; in netif_init() 80 if ((*dv->match)(tag, NULL) > 0) in netif_init() 86 pci->drv = dv->priv = (*dv->init)(tag, enaddr); in netif_init() 88 s->io_netif = dv; in netif_init() 91 snprintf(bi_net.devname, sizeof(bi_net.devname), "%s", dv->name); in netif_init() 94 snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), "%s", dv->name); in netif_init() 102 struct nifdv *dv; in netif_shutdown_all() local 105 dv = netdesc.io_netif; in netif_shutdown_all() 106 if (dv != NULL) in netif_shutdown_all() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/runtime/ |
| H A D | ISO_Fortran_binding.c | 156 void *CFI_address (const CFI_cdesc_t *dv, const CFI_index_t subscripts[]) in CFI_address() argument 159 char *base_addr = (char *)dv->base_addr; in CFI_address() 164 if (dv == NULL) in CFI_address() 171 if (dv->base_addr == NULL) in CFI_address() 180 if (dv->rank == 0) in CFI_address() 181 return dv->base_addr; in CFI_address() 188 for (i = 0; i < dv->rank; i++) in CFI_address() 190 CFI_index_t idx = subscripts[i] - dv->dim[i].lower_bound; in CFI_address() 192 && ((dv->dim[i].extent != -1 && idx >= dv->dim[i].extent) in CFI_address() 200 (ptrdiff_t)dv->dim[i].lower_bound, in CFI_address() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/sim/bfin/ |
| H A D | ChangeLog-2021 | 85 * dv-bfin_cec.c: Include sim-signal.h. 134 * dv-bfin_otp.c (bfin_otp_write_page): Shift data1 & data3 by 32-bits. 138 * dv-bfin_otp.c (bfin_otp_write_page): Fix args to 143 * dv-bfin_otp.c (bfin_otp_write_page): Call bfin_otp_write_page_val2. 147 * dv-bfin_cec.c: Include strings.h. 162 * bfin-sim.c, devices.c, dv-bfin_cec.c, dv-bfin_ctimer.c, 163 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c, 164 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c, 165 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gpio.c, dv-bfin_gpio2.c, 166 dv-bfin_gptimer.c, dv-bfin_jtag.c, dv-bfin_mmu.c, dv-bfin_nfc.c, [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A D | ExecutionDomainFix.cpp | 26 DomainValue *dv = Avail.empty() ? new (Allocator.Allocate()) DomainValue in alloc() local 29 dv->addDomain(domain); in alloc() 30 assert(dv->Refs == 0 && "Reference count wasn't cleared"); in alloc() 31 assert(!dv->Next && "Chained DomainValue shouldn't have been recycled"); in alloc() 32 return dv; in alloc() 70 void ExecutionDomainFix::setLiveReg(int rx, DomainValue *dv) { in setLiveReg() argument 74 if (LiveRegs[rx] == dv) in setLiveReg() 78 LiveRegs[rx] = retain(dv); in setLiveReg() 94 if (DomainValue *dv = LiveRegs[rx]) { in force() local 95 if (dv->isCollapsed()) in force() [all …]
|
| /netbsd-src/sys/arch/evbarm/stand/boot2440/ |
| H A D | netif.c | 74 struct nifdv *dv; in netif_match() local 79 dv = &vnifdv[n]; in netif_match() 80 if ((*dv->match)(tag, macaddr) > 0) { in netif_match() 82 snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), "%s", dv->name); in netif_match() 85 snprintf(bi_net.devname, sizeof(bi_net.devname), "%s", dv->name); in netif_match() 99 struct nifdv *dv; in netif_init() local 105 dv = &vnifdv[n]; in netif_init() 111 dv->priv = (*dv->init)(tag, enaddr); in netif_init() 113 s->io_netif = dv; in netif_init() 116 snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), "%s", dv->name); in netif_init() [all …]
|
| /netbsd-src/sys/arch/landisk/landisk/ |
| H A D | autoconf.c | 62 is_valid_disk(device_t dv) in is_valid_disk() argument 66 if (device_class(dv) != DV_DISK) in is_valid_disk() 69 name = device_cfdata(dv)->cf_name; in is_valid_disk() 80 match_bootdisk(device_t dv, struct btinfo_bootdisk *bid) in match_bootdisk() argument 99 bmajor = devsw_name2blk(device_xname(dv), NULL, 0); in match_bootdisk() 107 if (bdevvp(MAKEDISKDEV(bmajor, device_unit(dv), RAW_PART), &tmpvn)) in match_bootdisk() 120 device_xname(dv), error); in match_bootdisk() 132 device_xname(dv), error); in match_bootdisk() 158 device_t dv; in findroot() local 172 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST); in findroot() [all …]
|
| /netbsd-src/sys/ddb/ |
| H A D | db_autoconf.c | 55 db_device_next(struct device *dv) in db_device_next() argument 58 db_read_bytes((db_addr_t)&dv->dv_list.tqe_next, sizeof(dv), in db_device_next() 59 (char *)&dv); in db_device_next() 60 return dv; in db_device_next() 68 struct device *dv; in db_show_all_devices() local 74 for (dv = db_device_first(); dv != NULL; dv = db_device_next(dv)) { in db_show_all_devices() 75 db_read_bytes((db_addr_t)dv, sizeof(buf), (char *)&buf); in db_show_all_devices() 87 db_printf(" %18" PRIxPTR, (uintptr_t)dv); in db_show_all_devices()
|
| /netbsd-src/sys/dev/acpi/ |
| H A D | acpi_bat.c | 299 acpibat_get_sta(device_t dv) in acpibat_get_sta() argument 301 struct acpibat_softc *sc = device_private(dv); in acpibat_get_sta() 307 aprint_error_dev(dv, "failed to evaluate _STA: %s\n", in acpibat_get_sta() 354 acpibat_get_info(device_t dv) in acpibat_get_info() argument 356 struct acpibat_softc *sc = device_private(dv); in acpibat_get_info() 425 acpibat_print_info(dv, elm); in acpibat_get_info() 432 aprint_error_dev(dv, "failed to evaluate _BIF: %s\n", in acpibat_get_info() 442 acpibat_print_info(device_t dv, ACPI_OBJECT *elm) in acpibat_print_info() argument 444 struct acpibat_softc *sc = device_private(dv); in acpibat_print_info() 474 aprint_normal_dev(dv, "%s %s %s battery\n", in acpibat_print_info() [all …]
|
| H A D | acpi_tz.c | 274 device_t dv = opaque; in acpitz_get_status() local 275 struct acpitz_softc *sc = device_private(dv); in acpitz_get_status() 285 "%s: zone refetch forced\n", device_xname(dv))); in acpitz_get_status() 287 acpitz_get_zone(dv, 0); in acpitz_get_status() 290 if (acpitz_get_integer(dv, "_TMP", &tmp) != 0) in acpitz_get_status() 299 if (acpitz_get_fanspeed(dv, &fmin, &fmax, &fcurrent) == 0) { in acpitz_get_status() 312 device_xname(dv), acpitz_celcius_string(sc->sc_zone.tmp))); in acpitz_get_status() 357 aprint_debug_dev(dv, "zone went critical, %s C\n", in acpitz_get_status() 363 aprint_debug_dev(dv, "zone went hot, %s C\n", in acpitz_get_status() 375 "level %d\n", device_xname(dv), active)); in acpitz_get_status() [all …]
|
| H A D | acpi_acad.c | 151 acpiacad_resume(device_t dv, const pmf_qual_t *qual) in acpiacad_resume() argument 154 (void)AcpiOsExecute(OSL_NOTIFY_HANDLER, acpiacad_get_status, dv); in acpiacad_resume() 167 device_t dv = arg; in acpiacad_get_status() local 168 struct acpiacad_softc *sc = device_private(dv); in acpiacad_get_status() 193 aprint_debug_dev(dv, "AC adapter %sconnected\n", in acpiacad_get_status() 207 aprint_debug_dev(dv, "failed to evaluate _PSR: %s\n", in acpiacad_get_status() 220 device_t dv = context; in acpiacad_notify_handler() local 241 (void)AcpiOsExecute(handler, acpiacad_get_status, dv); in acpiacad_notify_handler() 248 aprint_debug_dev(dv, "unknown notify 0x%02X\n", notify); in acpiacad_notify_handler() 253 acpiacad_init_envsys(device_t dv) in acpiacad_init_envsys() argument [all …]
|
| /netbsd-src/sys/arch/arm/arm32/ |
| H A D | cpu.c | 87 cpu_attach(device_t dv, cpuid_t id) in cpu_attach() argument 89 const char * const xname = device_xname(dv); in cpu_attach() 90 const int unit = device_unit(dv); in cpu_attach() 131 ci->ci_dev = dv; in cpu_attach() 132 device_set_private(dv, ci); in cpu_attach() 144 ci->ci_dev = dv; in cpu_attach() 145 device_set_private(dv, ci); in cpu_attach() 200 identify_arm_cpu(dv, ci); in cpu_attach() 205 aprint_normal_dev(dv, "SA-110 with bugged STM^ instruction\n"); in cpu_attach() 213 aprint_normal_dev(dv, "ARM810 cp15=%02x", clock); in cpu_attach() [all …]
|
| /netbsd-src/sys/arch/evbmips/rmixl/ |
| H A D | autoconf.c | 90 device_t dv; in findroot() local 93 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST); dv != NULL; in findroot() 94 dv = deviter_next(&di)) { in findroot() 95 if (device_class(dv) == DV_DISK in findroot() 96 && (device_is_a(dv, "wd") in findroot() 97 || device_is_a(dv, "sd") in findroot() 98 || device_is_a(dv, "ld"))) in findroot() 99 booted_device = dv; in findroot()
|
| /netbsd-src/usr.sbin/fwctl/ |
| H A D | fwdv.c | 96 struct dvdbc *dv; in dvrecv() local 185 if (ciph->fdf.dv.cyc != 0xffff && k == 0) in dvrecv() 186 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc)); in dvrecv() 191 for (dv = (struct dvdbc *)ptr; in dvrecv() 192 (char *)dv < (char *)(ptr + ciph->len); in dvrecv() 193 dv+=6) { in dvrecv() 196 fprintf(stderr, "(%d,%d) ", dv->sct, dv->dseq); in dvrecv() 198 if (dv->sct == DV_SCT_HEADER && dv->dseq == 0) { in dvrecv() 200 lsystem = ciph->fdf.dv.fs; in dvrecv() 207 (dv->payload[0] & DV_DSF_12) == 0) in dvrecv() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | var-tracking.c | 206 dv_is_decl_p (decl_or_value dv) in dv_is_decl_p() argument 208 return !dv || (int) TREE_CODE ((tree) dv) != (int) VALUE; in dv_is_decl_p() 213 dv_is_value_p (decl_or_value dv) in dv_is_value_p() argument 215 return dv && !dv_is_decl_p (dv); in dv_is_value_p() 220 dv_as_decl (decl_or_value dv) in dv_as_decl() argument 222 gcc_checking_assert (dv_is_decl_p (dv)); in dv_as_decl() 223 return (tree) dv; in dv_as_decl() 228 dv_as_value (decl_or_value dv) in dv_as_value() argument 230 gcc_checking_assert (dv_is_value_p (dv)); in dv_as_value() 231 return (rtx)dv; in dv_as_value() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | var-tracking.cc | 205 dv_is_decl_p (decl_or_value dv) in dv_is_decl_p() argument 207 return !dv || (int) TREE_CODE ((tree) dv) != (int) VALUE; in dv_is_decl_p() 212 dv_is_value_p (decl_or_value dv) in dv_is_value_p() argument 214 return dv && !dv_is_decl_p (dv); in dv_is_value_p() 219 dv_as_decl (decl_or_value dv) in dv_as_decl() argument 221 gcc_checking_assert (dv_is_decl_p (dv)); in dv_as_decl() 222 return (tree) dv; in dv_as_decl() 227 dv_as_value (decl_or_value dv) in dv_as_value() argument 229 gcc_checking_assert (dv_is_value_p (dv)); in dv_as_value() 230 return (rtx)dv; in dv_as_value() [all …]
|
| /netbsd-src/sys/arch/aarch64/aarch64/ |
| H A D | cpu.c | 107 cpu_attach(device_t dv, cpuid_t id) in cpu_attach() 110 const int unit = device_unit(dv); in cpu_attach() 132 ci->ci_dev = dv; in cpu_attach() 133 device_set_private(dv, ci); in cpu_attach() 147 ci->ci_dev = dv; in cpu_attach() 148 device_set_private(dv, ci); in cpu_attach() 153 cpu_identify(dv, ci); in cpu_attach() 155 cpu_setup_sysctl(dv, ci); in cpu_attach() 167 cpu_identify1(dv, ci); in cpu_attach() 168 aarch64_printcacheinfo(dv, c in cpu_attach() 106 cpu_attach(device_t dv,cpuid_t id) cpu_attach() argument 189 cpu_rescan(device_t dv,const char * ifattr,const int * locators) cpu_rescan() argument 204 cpu_childdetached(device_t dv,device_t child) cpu_childdetached() argument 579 cpu_setup_sysctl(device_t dv,struct cpu_info * ci) cpu_setup_sysctl() argument 644 cpu_setup_rng(device_t dv,struct cpu_info * ci) cpu_setup_rng() argument 666 cpu_setup_aes(device_t dv,struct cpu_info * ci) cpu_setup_aes() argument 694 cpu_setup_chacha(device_t dv,struct cpu_info * ci) cpu_setup_chacha() argument [all...] |
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/bn/ |
| H A D | bn_div.c | 17 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, 36 if (dv != NULL) 37 BN_zero(dv); 43 if (dv == NULL) 44 dv = BN_CTX_get(ctx); 47 if (D == NULL || dv == NULL || rem == NULL) 61 BN_zero(dv); 62 if (bn_wexpand(dv, 1) == NULL) 64 dv->top = 1; 69 if (!BN_lshift1(dv, dv)) [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bn/ |
| H A D | bn_div.c | 17 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, 36 if (dv != NULL) 37 BN_zero(dv); 43 if (dv == NULL) 44 dv = BN_CTX_get(ctx); 47 if (D == NULL || dv == NULL || rem == NULL) 61 BN_zero(dv); 62 if (bn_wexpand(dv, 1) == NULL) 64 dv->top = 1; 69 if (!BN_lshift1(dv, dv)) [all …]
|
| /netbsd-src/sys/arch/xen/xen/ |
| H A D | xen_machdep.c | 503 is_valid_disk(device_t dv) in is_valid_disk() argument 505 if (device_class(dv) != DV_DISK) in is_valid_disk() 508 return (device_is_a(dv, "dk") || in is_valid_disk() 509 device_is_a(dv, "sd") || in is_valid_disk() 510 device_is_a(dv, "wd") || in is_valid_disk() 511 device_is_a(dv, "ld") || in is_valid_disk() 512 device_is_a(dv, "ed") || in is_valid_disk() 513 device_is_a(dv, "xbd")); in is_valid_disk() 519 device_t dv; in xen_bootconf() local 531 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST); in xen_bootconf() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | deref.c | 143 LDAPDerefVal *dv; in ldap_derefresponse_free() local 148 for ( dv = dr->attrVals; dv; ) { in ldap_derefresponse_free() 149 LDAPDerefVal *dvnext = dv->next; in ldap_derefresponse_free() 150 LDAP_FREE( dv->type ); in ldap_derefresponse_free() 151 ber_bvarray_free( dv->vals ); in ldap_derefresponse_free() 152 LDAP_FREE( dv ); in ldap_derefresponse_free() 153 dv = dvnext; in ldap_derefresponse_free() 218 LDAPDerefVal *dv; in ldap_parse_derefresponse_control() local 220 dv = LDAP_CALLOC( 1, sizeof(LDAPDerefVal) ); in ldap_parse_derefresponse_control() 221 if ( dv == NULL ) { in ldap_parse_derefresponse_control() [all …]
|