| /netbsd-src/external/bsd/wpa/dist/src/utils/ |
| H A D | bitfield.c | 23 struct bitfield *bf; in bitfield_alloc() local 25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); in bitfield_alloc() 26 if (bf == NULL) in bitfield_alloc() 28 bf->bits = (u8 *) (bf + 1); in bitfield_alloc() 29 bf->max_bits = max_bits; in bitfield_alloc() 30 return bf; in bitfield_alloc() 34 void bitfield_free(struct bitfield *bf) in bitfield_free() argument 36 os_free(bf); in bitfield_free() 40 void bitfield_set(struct bitfield *bf, size_t bit) in bitfield_set() argument 42 if (bit >= bf->max_bits) in bitfield_set() [all …]
|
| H A D | bitfield.h | 15 void bitfield_free(struct bitfield *bf); 16 void bitfield_set(struct bitfield *bf, size_t bit); 17 void bitfield_clear(struct bitfield *bf, size_t bit); 18 int bitfield_is_set(struct bitfield *bf, size_t bit); 19 int bitfield_get_first_zero(struct bitfield *bf);
|
| /netbsd-src/sys/miscfs/procfs/ |
| H A D | procfs_linux.c | 162 char *bf; in procfs_domeminfo() 167 bf = malloc(LBFSZ, M_TEMP, M_WAITOK); in procfs_domeminfo() 180 len = snprintf(bf, LBFSZ, in procfs_domeminfo() 211 error = uiomove_frombuf(bf, len, uio); 213 free(bf, M_TEMP); 225 char *bf; in procfs_dodevices() 231 bf = malloc(LBFSZ, M_TEMP, M_WAITOK); in procfs_dodevices() 233 offset += snprintf(&bf[offset], LBFSZ - offset, "Character devices:\n"); in procfs_dodevices() 243 offset += snprintf(&bf[offset], LBFSZ - offset, in procfs_dodevices() 251 offset += snprintf(&bf[offse in procfs_dodevices() 157 char *bf; procfs_domeminfo() local 220 char *bf; procfs_dodevices() local 280 char *bf; procfs_docpustat() local 357 char *bf; procfs_doloadavg() local 395 char *bf; procfs_do_pid_statm() local 449 char *bf; procfs_do_pid_stat() local 552 char *bf = NULL; procfs_docpuinfo() local 576 char *bf; procfs_douptime() local 632 char *bf, *mtab = NULL; procfs_domounts() local 678 char *bf; procfs_doversion() local 773 char *bf; procfs_dosysvipc_msg() local 820 char *bf; procfs_dosysvipc_sem() local 863 char *bf; procfs_dosysvipc_shm() local 910 char *bf; print_uint() local [all...] |
| /netbsd-src/usr.sbin/fstyp/ |
| H A D | ntfs.c | 138 struct ntfs_bootfile *bf; in fstyp_ntfs() local 148 bf = read_buf(fp, 0, 512); in fstyp_ntfs() 149 if (bf == NULL || strncmp((char*)bf->bf_sysid, "NTFS ", 8) != 0) in fstyp_ntfs() 154 mftrecsz = bf->bf_mftrecsz; in fstyp_ntfs() 155 recsize = mftrecsz > 0 ? (size_t)(mftrecsz * bf->bf_bps * bf->bf_spc) in fstyp_ntfs() 158 voloff = (off_t)((off_t)bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in fstyp_ntfs() 181 free(bf); in fstyp_ntfs() 187 free(bf); in fstyp_ntfs()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | ath.c | 266 static void ath_printrxbuf(struct ath_buf *bf, int); 267 static void ath_printtxbuf(struct ath_buf *bf, int); 1260 struct ath_buf *bf; in ath_txfrag_cleanup() local 1264 while ((bf = STAILQ_FIRST(frags)) != NULL) { in ath_txfrag_cleanup() 1266 STAILQ_INSERT_TAIL(&sc->sc_txbuf, bf, bf_list); in ath_txfrag_cleanup() 1282 struct ath_buf *bf; in ath_txfrag_setup() local 1286 bf = STAILQ_FIRST(&sc->sc_txbuf); in ath_txfrag_setup() 1287 if (bf == NULL) { /* out of buffers, cleanup */ in ath_txfrag_setup() 1296 STAILQ_INSERT_TAIL(frags, bf, bf_list); in ath_txfrag_setup() 1310 struct ath_buf *bf; in ath_start() local [all …]
|
| H A D | arn5008.c | 496 struct athn_tx_buf *bf; in ar5008_tx_alloc() local 528 bf = &sc->sc_txpool[i]; in ar5008_tx_alloc() 532 &bf->bf_map); in ar5008_tx_alloc() 539 bf->bf_descs = in ar5008_tx_alloc() 541 bf->bf_daddr = sc->sc_map->dm_segs[0].ds_addr + in ar5008_tx_alloc() 544 SIMPLEQ_INSERT_TAIL(&sc->sc_txbufs, bf, bf_list); in ar5008_tx_alloc() 555 struct athn_tx_buf *bf; in ar5008_tx_free() local 559 bf = &sc->sc_txpool[i]; in ar5008_tx_free() 561 if (bf->bf_map != NULL) in ar5008_tx_free() 562 bus_dmamap_destroy(sc->sc_dmat, bf->bf_map); in ar5008_tx_free() [all …]
|
| H A D | arn9003.c | 631 struct athn_tx_buf *bf; in ar9003_tx_alloc() local 689 bf = &sc->sc_txpool[i]; in ar9003_tx_alloc() 693 &bf->bf_map); in ar9003_tx_alloc() 700 bf->bf_descs = &((struct ar_tx_desc *)sc->sc_descs)[i]; in ar9003_tx_alloc() 701 bf->bf_daddr = sc->sc_map->dm_segs[0].ds_addr + in ar9003_tx_alloc() 704 SIMPLEQ_INSERT_TAIL(&sc->sc_txbufs, bf, bf_list); in ar9003_tx_alloc() 715 struct athn_tx_buf *bf; in ar9003_tx_free() local 719 bf = &sc->sc_txpool[i]; in ar9003_tx_free() 721 if (bf->bf_map != NULL) in ar9003_tx_free() 722 bus_dmamap_destroy(sc->sc_dmat, bf->bf_map); in ar9003_tx_free() [all …]
|
| H A D | wdc.c | 1907 wdc_datain_pio(struct ata_channel *chp, int flags, void *bf, size_t len) in wdc_datain_pio() argument 1912 if ((uintptr_t)bf & 1) in wdc_datain_pio() 1914 if ((flags & ATA_DRIVE_CAP32) && ((uintptr_t)bf & 3)) in wdc_datain_pio() 1921 wdr->data32ioh, 0, bf, len >> 2); in wdc_datain_pio() 1922 bf = (char *)bf + (len & ~3); in wdc_datain_pio() 1927 wdr->cmd_iohs[wd_data], 0, bf, len >> 1); in wdc_datain_pio() 1928 bf = (char *)bf + (len & ~1); in wdc_datain_pio() 1934 wdr->data32ioh, 0, bf, len >> 2); in wdc_datain_pio() 1935 bf = (char *)bf + (len & ~3); in wdc_datain_pio() 1940 wdr->cmd_iohs[wd_data], 0, bf, len >> 1); in wdc_datain_pio() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/sh/ |
| H A D | testutils.inc | 58 bf mfail 60 bf mfail 62 bf mfail 64 bf mfail 66 bf mfail 68 bf mfail 70 bf mfail 72 bf mfail 74 bf mfail 76 bf mfail [all …]
|
| H A D | fcmpeq.s | 22 bf .L1 29 bf .L2 37 bf .L3 77 bf .L11 86 bf .L12 98 bf .L13
|
| H A D | fcmpgt.s | 15 bf .L0 29 bf .L2 37 bf .L3 69 bf .L10 87 bf .L12 99 bf .L13
|
| /netbsd-src/external/bsd/file/dist/src/ |
| H A D | encoding.c | 471 looks_ucs16(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, in looks_ucs16() argument 481 if (bf[0] == 0xff && bf[1] == 0xfe) in looks_ucs16() 483 else if (bf[0] == 0xfe && bf[1] == 0xff) in looks_ucs16() 496 bf[i + 1] | (CAST(file_unichar_t, bf[i]) << 8)); in looks_ucs16() 499 bf[i] | (CAST(file_unichar_t, bf[i + 1]) << 8)); in looks_ucs16() 531 looks_ucs32(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, in looks_ucs32() argument 540 if (bf[0] == 0xff && bf[1] == 0xfe && bf[2] == 0 && bf[3] == 0) in looks_ucs32() 542 else if (bf[0] == 0 && bf[1] == 0 && bf[2] == 0xfe && bf[3] == 0xff) in looks_ucs32() 553 ubf[(*ulen)++] = CAST(file_unichar_t, bf[i + 3]) in looks_ucs32() 554 | (CAST(file_unichar_t, bf[i + 2]) << 8) in looks_ucs32() [all …]
|
| /netbsd-src/common/lib/libc/arch/sh3/string/ |
| H A D | memcpy.S | 64 bf/s bcopy_overlap 71 bf/s word_align 90 bf/s 1f 103 bf/s no_align_delay 120 bf/s no_align_delay 137 bf/s no_align_delay 157 bf/s 1b 177 bf/s ov_word_align 196 bf/s 1f 209 bf/s ov_no_align_delay [all …]
|
| /netbsd-src/sys/compat/common/ |
| H A D | sysv_ipc_50.c | 91 void *bf = NULL; in sysctl_kern_sysvipc50() local 152 bf = malloc(uimin(tsize, buflen), M_TEMP, M_WAITOK | M_ZERO); in sysctl_kern_sysvipc50() 157 msgsi = (struct msg_sysctl_info50 *)bf; in sysctl_kern_sysvipc50() 163 semsi = (struct sem_sysctl_info50 *)bf; in sysctl_kern_sysvipc50() 169 shmsi = (struct shm_sysctl_info50 *)bf; in sysctl_kern_sysvipc50() 207 error = copyout(bf, start, *sizep); in sysctl_kern_sysvipc50() 211 if (bf) in sysctl_kern_sysvipc50() 212 free(bf, M_TEMP); in sysctl_kern_sysvipc50()
|
| /netbsd-src/external/bsd/libbind/dist/irs/ |
| H A D | lcl_pw.c | 172 char bf[sizeof(pvt->pw_keynum) + 1]; in pw_next() local 178 bf[0] = _PW_KEYBYNUM; in pw_next() 179 memcpy(bf + 1, (char *)&pvt->pw_keynum, sizeof(pvt->pw_keynum)); in pw_next() 180 key.data = (u_char *)bf; in pw_next() 190 char bf[UT_NAMESIZE + 1]; in pw_byname() local 195 bf[0] = _PW_KEYBYNAME; in pw_byname() 197 memcpy(bf + 1, name, MIN(len, UT_NAMESIZE)); in pw_byname() 198 key.data = (u_char *)bf; in pw_byname() 211 char bf[sizeof(keyuid) + 1]; in pw_byuid() local 216 bf[0] = _PW_KEYBYUID; in pw_byuid() [all …]
|
| /netbsd-src/external/gpl2/lvm2/dist/lib/format_text/ |
| H A D | archive.c | 94 struct archive_file *bf = NULL; in _insert_archive_file() local 102 dm_list_iterate_items(bf, head) { in _insert_archive_file() 103 if (b->index > bf->index) { in _insert_archive_file() 104 dm_list_add(&bf->list, &b->list); in _insert_archive_file() 109 dm_list_add_h(&bf->list, &b->list); in _insert_archive_file() 194 struct archive_file *bf; in _remove_expired() local 207 dm_list_iterate_back_items(bf, archives) { in _remove_expired() 209 if (stat(bf->path, &sb)) { in _remove_expired() 210 log_sys_error("stat", bf->path); in _remove_expired() 217 log_very_verbose("Expiring archive %s", bf->path); in _remove_expired() [all …]
|
| /netbsd-src/sys/sys/ |
| H A D | hash.h | 52 hash32_buf(const void *bf, size_t len, uint32_t hash) in hash32_buf() argument 54 const uint8_t *s = (const uint8_t *)bf; in hash32_buf() 73 hash32_str(const void *bf, uint32_t hash) in hash32_str() argument 75 const uint8_t *s = (const uint8_t *)bf; in hash32_str() 91 hash32_strn(const void *bf, size_t len, uint32_t hash) in hash32_strn() argument 93 const uint8_t *s = (const uint8_t *)bf; in hash32_strn()
|
| /netbsd-src/external/gpl3/gcc/dist/libgcc/config/mcore/ |
| H A D | lib1funcs.S | 92 bf 2f 95 bf 1b // if sentinel falls out of quotient, stop 127 bf 2f 130 bf 1b // if sentinel falls out of quotient, stop 178 bf 2f 181 bf 1b // if sentinel falls out of quotient, stop 186 bf 3f 220 bf 2f 223 bf 1b // if sentinel falls out of quotient, stop 226 bf 3f
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/mcore/ |
| H A D | lib1funcs.S | 92 bf 2f 95 bf 1b // if sentinel falls out of quotient, stop 127 bf 2f 130 bf 1b // if sentinel falls out of quotient, stop 178 bf 2f 181 bf 1b // if sentinel falls out of quotient, stop 186 bf 3f 220 bf 2f 223 bf 1b // if sentinel falls out of quotient, stop 226 bf 3f
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/ |
| H A D | nouveau_nvkm_core_enum.c | 47 nvkm_snprintbf(char *data, int size, const struct nvkm_bitfield *bf, u32 value) in nvkm_snprintbf() argument 50 while (size >= 1 && bf->name) { in nvkm_snprintbf() 51 if (value & bf->mask) { in nvkm_snprintbf() 53 space ? " " : "", bf->name); in nvkm_snprintbf() 58 bf++; in nvkm_snprintbf()
|
| /netbsd-src/external/bsd/pdisk/dist/ |
| H A D | bitfield.c | 74 bitfield_set(uint32_t *bf, int base, int length, uint32_t value) in bitfield_set() argument 86 *bf = (*bf & ~(m << s)) | (t << s); in bitfield_set() 92 bitfield_get(uint32_t bf, int base, int length) in bitfield_get() argument 101 return ((bf >> s) & m); in bitfield_get()
|
| /netbsd-src/etc/etc.vax/ |
| H A D | disktab | 34 :pf#10080:of#121440:bf#8192:ff#1024:\ 45 :pf#86176:of#414048:bf#8192:ff#1024:\ 57 :pf#219296:of#121220:bf#8192:ff#1024:\ 68 :pf#120466:of#121954:bf#8192:ff#1024:\ 79 :pf#50424:of#121220:bf#8192:ff#1024:\ 90 :pf#308600:of#699200:bf#8192:ff#1024:\ 104 :pf#377440:of#700160:bf#8192:ff#1024:\ 116 :pf#141600:of#121600:bf#8192:ff#1024:\ 127 :pf#109408:of#414720:bf#8192:ff#1024:\ 139 :pf#109248:of#698880:bf#8192:ff#1024:\ [all …]
|
| /netbsd-src/external/gpl2/gmake/dist/ |
| H A D | strcache.c | 192 int bf = sp->bytesfree; in strcache_print_stats() local 193 int sz = (sp->end - sp->buffer) + bf; in strcache_print_stats() 202 totfree += bf; in strcache_print_stats() 203 maxfree = (bf > maxfree ? bf : maxfree); in strcache_print_stats() 204 minfree = (bf < minfree ? bf : minfree); in strcache_print_stats()
|
| /netbsd-src/sys/kern/ |
| H A D | subr_iostat.c | 345 char bf[IOSTATNAMELEN + 1]; in iostati_getnames() local 370 memset(bf, 0, sizeof(bf)); in iostati_getnames() 372 strncpy(bf, stats->io_name, sizeof(bf)); in iostati_getnames() 377 bf[0] = ' '; in iostati_getnames() 378 strncpy(bf + 1, stats->io_name, in iostati_getnames() 379 sizeof(bf) - 1); in iostati_getnames() 381 bf[IOSTATNAMELEN] = '\0'; in iostati_getnames() 382 slen = strlen(bf); in iostati_getnames() 386 error = copyout(bf, where, slen + 1); in iostati_getnames()
|
| /netbsd-src/sys/arch/arm/arm32/ |
| H A D | stubs.c | 127 char bf[dbtob(1)]; in cpu_dump() local 139 memset(bf, 0, sizeof bf); in cpu_dump() 140 segp = (kcore_seg_t *)bf; in cpu_dump() 141 cpuhdrp = (cpu_kcore_hdr_t *)&bf[ALIGN(sizeof(*segp))]; in cpu_dump() 142 memsegp = (phys_ram_seg_t *)&bf[ ALIGN(sizeof(*segp)) + in cpu_dump() 168 return dump(dumpdev, dumplo, bf, dbtob(1)); in cpu_dump()
|