| /netbsd-src/sys/arch/amigappc/amigappc/ |
| H A D | autoconf.c | 246 const struct bdevsw *bdp; in findroot() local 276 bdp = &sd_bdevsw; in findroot() 277 maj = bdevsw_lookup_major(bdp); in findroot() 278 if ((*bdp->d_open)(MAKEDISKDEV(maj, unit, RAW_PART), in findroot() 281 (*bdp->d_close)(MAKEDISKDEV(maj, unit, RAW_PART), in findroot() 326 bdp = NULL; in findroot() 329 bdp = &fd_bdevsw; in findroot() 333 bdp = &sd_bdevsw; in findroot() 337 bdp = &wd_bdevsw; in findroot() 341 bdp = &cd_bdevsw; in findroot() [all …]
|
| /netbsd-src/sys/arch/amiga/amiga/ |
| H A D | autoconf.c | 406 const struct bdevsw *bdp; in findroot() local 436 bdp = &sd_bdevsw; in findroot() 437 maj = bdevsw_lookup_major(bdp); in findroot() 438 if ((*bdp->d_open)(MAKEDISKDEV(maj, unit, RAW_PART), in findroot() 441 (*bdp->d_close)(MAKEDISKDEV(maj, unit, RAW_PART), in findroot() 486 bdp = NULL; in findroot() 489 bdp = &fd_bdevsw; in findroot() 493 bdp = &sd_bdevsw; in findroot() 497 bdp = &wd_bdevsw; in findroot() 501 bdp = &cd_bdevsw; in findroot() [all …]
|
| /netbsd-src/sys/compat/linux32/common/ |
| H A D | linux32_dirent.c | 102 struct dirent *bdp; in linux32_sys_getdents() local 179 bdp = (struct dirent *)inp; in linux32_sys_getdents() 180 reclen = bdp->d_reclen; in linux32_sys_getdents() 185 if (bdp->d_fileno == 0) { in linux32_sys_getdents() 193 linux32_reclen = LINUX_RECLEN(&idb, bdp->d_namlen); in linux32_sys_getdents() 205 idb.d_ino = bdp->d_fileno; in linux32_sys_getdents() 211 idb.d_reclen = (u_short)bdp->d_namlen; in linux32_sys_getdents() 221 size_t dirl = MIN(sizeof(idb.d_name) - 1, bdp->d_namlen + 1); in linux32_sys_getdents() 222 memcpy(idb.d_name, bdp->d_name, dirl); in linux32_sys_getdents() 223 idb.d_name[dirl + 1] = bdp->d_type; in linux32_sys_getdents()
|
| /netbsd-src/sys/arch/shark/ofw/ |
| H A D | ofw.c | 430 get_fw_dhcp_data(struct bootdata *bdp) in get_fw_dhcp_data() argument 435 memset((char *)bdp, 0, sizeof(*bdp)); in get_fw_dhcp_data() 446 if (dhcplen > sizeof(bdp->dhcp_packet)) in get_fw_dhcp_data() 448 OF_getprop(chosen, "bootp-response", &bdp->dhcp_packet, in get_fw_dhcp_data() 449 sizeof(bdp->dhcp_packet)); in get_fw_dhcp_data() 450 SANITY(bdp->dhcp_packet.op == BOOTREPLY, "bogus DHCP packet"); in get_fw_dhcp_data() 455 bdp->ip_address = bdp->dhcp_packet.yiaddr; in get_fw_dhcp_data() 456 ip = ip2dotted(bdp->ip_address); in get_fw_dhcp_data() 457 if (memcmp(bdp->dhcp_packet.options, DHCP_OPTIONS_COOKIE, 4) == 0) in get_fw_dhcp_data() 458 parse_dhcp_options(&bdp->dhcp_packet, in get_fw_dhcp_data() [all …]
|
| /netbsd-src/sys/compat/common/ |
| H A D | vfs_syscalls_12.c | 119 struct dirent *bdp; in compat_12_sys_getdirentries() local 191 bdp = (struct dirent *)inp; in compat_12_sys_getdirentries() 192 reclen = bdp->d_reclen; in compat_12_sys_getdirentries() 197 if (bdp->d_fileno == 0) { in compat_12_sys_getdirentries() 206 if (bdp->d_namlen >= sizeof(idb.d_name)) in compat_12_sys_getdirentries() 209 idb.d_namlen = bdp->d_namlen; in compat_12_sys_getdirentries() 210 old_reclen = _DIRENT_RECLEN(&idb, bdp->d_namlen); in compat_12_sys_getdirentries() 221 idb.d_fileno = (uint32_t)bdp->d_fileno; in compat_12_sys_getdirentries() 223 idb.d_type = (uint8_t)bdp->d_type; in compat_12_sys_getdirentries() 224 (void)memcpy(idb.d_name, bdp->d_name, idb.d_namlen); in compat_12_sys_getdirentries()
|
| H A D | vfs_syscalls_43.c | 336 struct dirent *bdp; in compat_43_sys_getdirentries() local 409 bdp = (struct dirent *)inp; in compat_43_sys_getdirentries() 410 reclen = bdp->d_reclen; in compat_43_sys_getdirentries() 415 if (bdp->d_fileno == 0) { in compat_43_sys_getdirentries() 424 if (bdp->d_namlen >= sizeof(idb.d_name)) in compat_43_sys_getdirentries() 427 idb.d_namlen = bdp->d_namlen; in compat_43_sys_getdirentries() 428 old_reclen = _DIRENT_RECLEN(&idb, bdp->d_namlen); in compat_43_sys_getdirentries() 439 idb.d_fileno = (uint32_t)bdp->d_fileno; in compat_43_sys_getdirentries() 441 idb.d_fileno = (uint32_t)bdp->d_fileno; in compat_43_sys_getdirentries() 442 (void)memcpy(idb.d_name, bdp->d_name, idb.d_namlen); in compat_43_sys_getdirentries()
|
| H A D | vfs_syscalls_30.c | 208 struct dirent *bdp; in compat_30_sys_getdents() local 268 bdp = (struct dirent *)inp; in compat_30_sys_getdents() 269 reclen = bdp->d_reclen; in compat_30_sys_getdents() 270 if (reclen & _DIRENT_ALIGN(bdp)) in compat_30_sys_getdents() 282 if (bdp->d_namlen >= sizeof(idb.d_name)) in compat_30_sys_getdents() 285 idb.d_namlen = bdp->d_namlen; in compat_30_sys_getdents() 297 idb.d_fileno = (u_int32_t)bdp->d_fileno; in compat_30_sys_getdents() 298 idb.d_type = bdp->d_type; in compat_30_sys_getdents() 299 (void)memcpy(idb.d_name, bdp->d_name, idb.d_namlen); in compat_30_sys_getdents()
|
| /netbsd-src/sys/rump/kern/lib/libsys_cygwin/ |
| H A D | rump_cygwin_compat.c | 181 struct dirent *bdp; in rump_cygwin_sys_getdents() local 216 bdp = (struct dirent *)inp; in rump_cygwin_sys_getdents() 217 reclen = bdp->d_reclen; in rump_cygwin_sys_getdents() 220 if (bdp->d_fileno == 0) { in rump_cygwin_sys_getdents() 225 cygwin_reclen = CYGWIN_RECLEN(&idb, bdp->d_namlen); in rump_cygwin_sys_getdents() 231 idb.d_ino = bdp->d_fileno; in rump_cygwin_sys_getdents() 232 idb.d_type = bdp->d_type; in rump_cygwin_sys_getdents() 233 strlcpy(idb.d_name, bdp->d_name, sizeof(idb.d_name)); in rump_cygwin_sys_getdents()
|
| /netbsd-src/sys/arch/atari/dev/ |
| H A D | md_root.c | 151 const struct bdevsw *bdp; in loaddisk() local 155 bdp = bdevsw_lookup(ld_dev); in loaddisk() 156 if (bdp == NULL) in loaddisk() 178 rs.strat = bdp->d_strategy; in loaddisk() 183 if ((error = bdp->d_open(ld_dev, FREAD | FNONBLOCK, 0, lwp)) != 0) { in loaddisk() 187 if (bdp->d_ioctl(ld_dev, DIOCGDINFO, (void *)&dl, FREAD, lwp) == 0) { in loaddisk() 200 bdp->d_close(ld_dev, FREAD | FNONBLOCK, 0, lwp); in loaddisk()
|
| /netbsd-src/sys/rump/kern/lib/libsys_sunos/ |
| H A D | rump_sunos_compat.c | 259 struct dirent *bdp; in rump_sunos_sys_getdents() local 317 bdp = (struct dirent *)inp; in rump_sunos_sys_getdents() 318 reclen = bdp->d_reclen; in rump_sunos_sys_getdents() 328 if (bdp->d_fileno == 0) { in rump_sunos_sys_getdents() 336 sunos_reclen = SUNOS_RECLEN(&idb, bdp->d_namlen); in rump_sunos_sys_getdents() 351 idb.d_fileno = bdp->d_fileno; in rump_sunos_sys_getdents() 354 strlcpy(idb.d_name, bdp->d_name, sizeof(idb.d_name)); in rump_sunos_sys_getdents()
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_file64.c | 403 struct dirent *bdp; in linux_sys_getdents64() local 473 bdp = (struct dirent *)inp; in linux_sys_getdents64() 474 reclen = bdp->d_reclen; in linux_sys_getdents64() 479 if (bdp->d_fileno == 0) { in linux_sys_getdents64() 487 linux_reclen = LINUX_RECLEN(&idb, bdp->d_namlen); in linux_sys_getdents64() 503 idb.d_ino = bdp->d_fileno; in linux_sys_getdents64() 504 idb.d_type = bdp->d_type; in linux_sys_getdents64() 507 memcpy(idb.d_name, bdp->d_name, MIN(sizeof(idb.d_name), in linux_sys_getdents64() 508 bdp->d_namlen + 1)); in linux_sys_getdents64()
|
| /netbsd-src/sys/arch/arm/ti/ |
| H A D | if_cpsw.c | 238 struct cpsw_cpdma_bd * const bdp) in cpsw_get_txdesc() argument 241 uint32_t * const dp = bdp->word; in cpsw_get_txdesc() 242 const bus_size_t c = __arraycount(bdp->word); in cpsw_get_txdesc() 245 CPSWHIST_CALLARGS(sc, i, bdp, 0); in cpsw_get_txdesc() 254 struct cpsw_cpdma_bd * const bdp) in cpsw_set_txdesc() argument 257 uint32_t * const dp = bdp->word; in cpsw_set_txdesc() 258 const bus_size_t c = __arraycount(bdp->word); in cpsw_set_txdesc() 261 CPSWHIST_CALLARGS(sc, i, bdp, 0); in cpsw_set_txdesc() 270 struct cpsw_cpdma_bd * const bdp) in cpsw_get_rxdesc() argument 273 uint32_t * const dp = bdp->word; in cpsw_get_rxdesc() [all …]
|
| /netbsd-src/sys/arch/alpha/alpha/ |
| H A D | disksubr.c | 60 struct dkbad *bdp; in readdisklabel() local 103 if (clp && (bdp = &clp->bad) != NULL && (lp->d_flags & D_BADSECT)) { in readdisklabel() 129 *bdp = *db; in readdisklabel()
|
| /netbsd-src/sys/arch/evbmips/evbmips/ |
| H A D | disksubr.c | 55 struct dkbad *bdp; in readdisklabel() local 108 if (clp && (bdp = &clp->bad) != NULL && (lp->d_flags & D_BADSECT)) { in readdisklabel() 134 *bdp = *db; in readdisklabel()
|
| /netbsd-src/sys/arch/evbppc/evbppc/ |
| H A D | disksubr.c | 65 struct dkbad *bdp; in readdisklabel() local 120 bdp = &osdep->bad; in readdisklabel() 144 *bdp = *db; in readdisklabel()
|
| /netbsd-src/sys/dev/bi/ |
| H A D | if_ni.c | 501 struct ni_bbd *bdp; in nistart() local 534 bdp = &bbd[(data->bufs[0]._index & 0x7fff)]; in nistart() 538 bdp->nb_status = (mtod(m0, uint32_t) & NIBD_OFFSET) | in nistart() 540 bdp->nb_pte = (uint32_t)kvtopte(mtod(m0, void *)); in nistart() 541 bdp->nb_len = m0->m_len; in nistart() 543 data->bufs[i]._len = bdp->nb_len; in nistart() 545 mlen += bdp->nb_len; in nistart() 546 bdp++; in nistart()
|
| H A D | uba_bi.c | 190 bua_purge(struct uba_softc *sc, int bdp) in bua_purge() argument 192 BUA(sc->uh_uba)->bn_dpcsr[bdp] |= BUADPR_PURGE; in bua_purge()
|
| /netbsd-src/sys/arch/vax/uba/ |
| H A D | uba_ubi.c | 164 dw730_purge(struct uba_softc sc, int bdp) in dw730_purge() argument 166 sc->uh_uba->uba_dpr[bdp] |= UBADPR_PURGE | UBADPR_NXM | UBADPR_UCE; in dw730_purge()
|
| H A D | uba_cmi.c | 163 dw750_purge(struct uba_softc sc, int bdp) in dw750_purge() argument 165 sc->uh_uba->uba_dpr[bdp] |= UBADPR_PURGE | UBADPR_NXM | UBADPR_UCE; in dw750_purge()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/bn/ |
| H A D | bn_gf2m.c | 618 BN_ULONG *udp, *bdp, *vdp, *cdp; in BN_GF2m_mod_inv_vartime() local 628 bdp = b->d; in BN_GF2m_mod_inv_vartime() 629 bdp[0] = 1; in BN_GF2m_mod_inv_vartime() 631 bdp[i] = 0; in BN_GF2m_mod_inv_vartime() 648 b0 = bdp[0]; in BN_GF2m_mod_inv_vartime() 655 b1 = bdp[i + 1] ^ (p->d[i + 1] & mask); in BN_GF2m_mod_inv_vartime() 656 bdp[i] = ((b0 >> 1) | (b1 << (BN_BITS2 - 1))) & BN_MASK2; in BN_GF2m_mod_inv_vartime() 660 bdp[i] = b0 >> 1; in BN_GF2m_mod_inv_vartime() 683 bdp = cdp; in BN_GF2m_mod_inv_vartime() 688 bdp[i] ^= cdp[i]; in BN_GF2m_mod_inv_vartime()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/bn/ |
| H A D | bn_gf2m.c | 627 BN_ULONG *udp, *bdp, *vdp, *cdp; in BN_GF2m_mod_inv_vartime() local 637 bdp = b->d; in BN_GF2m_mod_inv_vartime() 638 bdp[0] = 1; in BN_GF2m_mod_inv_vartime() 640 bdp[i] = 0; in BN_GF2m_mod_inv_vartime() 657 b0 = bdp[0]; in BN_GF2m_mod_inv_vartime() 664 b1 = bdp[i + 1] ^ (p->d[i + 1] & mask); in BN_GF2m_mod_inv_vartime() 665 bdp[i] = ((b0 >> 1) | (b1 << (BN_BITS2 - 1))) & BN_MASK2; in BN_GF2m_mod_inv_vartime() 669 bdp[i] = b0 >> 1; in BN_GF2m_mod_inv_vartime() 692 bdp = cdp; in BN_GF2m_mod_inv_vartime() 697 bdp[i] ^= cdp[i]; in BN_GF2m_mod_inv_vartime()
|
| /netbsd-src/sys/arch/vax/boot/boot/ |
| H A D | if_ni.c | 498 struct ni_bbd *bdp; in ni_put() local 507 bdp = &bbd[(data->bufs[0]._index & 0x7fff)]; in ni_put() 508 bdp->nb_status = NIBD_VALID; in ni_put() 509 bdp->nb_len = (len < 64 ? 64 : len); in ni_put() 512 data->bufs[0]._len = bdp->nb_len; in ni_put()
|
| /netbsd-src/sys/compat/sunos/ |
| H A D | sunos_misc.c | 363 struct dirent *bdp; in sunos_sys_getdents() local 421 bdp = (struct dirent *)inp; in sunos_sys_getdents() 422 reclen = bdp->d_reclen; in sunos_sys_getdents() 432 if (bdp->d_fileno == 0) { in sunos_sys_getdents() 441 sunos_reclen = SUNOS_RECLEN(&idb, bdp->d_namlen); in sunos_sys_getdents() 456 idb.d_fileno = bdp->d_fileno; in sunos_sys_getdents() 459 idb.d_namlen = bdp->d_namlen; in sunos_sys_getdents() 460 strlcpy(idb.d_name, bdp->d_name, sizeof(idb.d_name)); in sunos_sys_getdents()
|
| /netbsd-src/sys/compat/sunos32/ |
| H A D | sunos32_misc.c | 551 struct dirent *bdp; in sunos32_sys_getdents() local 610 bdp = (struct dirent *)inp; in sunos32_sys_getdents() 611 reclen = bdp->d_reclen; in sunos32_sys_getdents() 621 if (bdp->d_fileno == 0) { in sunos32_sys_getdents() 630 sunos_reclen = SUNOS32_RECLEN(&idb, bdp->d_namlen); in sunos32_sys_getdents() 645 idb.d_fileno = bdp->d_fileno; in sunos32_sys_getdents() 648 idb.d_namlen = bdp->d_namlen; in sunos32_sys_getdents() 649 strlcpy(idb.d_name, bdp->d_name, sizeof(idb.d_name)); in sunos32_sys_getdents()
|
| /netbsd-src/sys/arch/evbmips/sbmips/ |
| H A D | disksubr.c | 100 struct dkbad *bdp; in readdisklabel() local 225 bdp = &osdep->bad; in readdisklabel() 249 *bdp = *db; in readdisklabel()
|