| /freebsd-14.2/usr.sbin/pw/ |
| H A D | bitmap.c | 37 struct bitmap bm; in bm_alloc() local 40 bm.size = size; in bm_alloc() 41 bm.map = malloc(szmap); in bm_alloc() 42 if (bm.map) in bm_alloc() 43 memset(bm.map, 0, szmap); in bm_alloc() 44 return bm; in bm_alloc() 50 free(bm->map); in bm_dealloc() 66 bm->map[pos] |= bmask; in bm_setbit() 75 bm->map[pos] &= ~bmask; in bm_clrbit() 90 int szmap = (bm->size / 8) + !!(bm->size % 8); in bm_firstunset() [all …]
|
| H A D | bitmap.h | 42 void bm_dealloc(struct bitmap * bm); 43 void bm_setbit(struct bitmap * bm, int pos); 44 void bm_clrbit(struct bitmap * bm, int pos); 45 int bm_isset(struct bitmap * bm, int pos); 46 int bm_firstunset(struct bitmap * bm); 47 int bm_lastset(struct bitmap * bm);
|
| /freebsd-14.2/crypto/openssl/crypto/bio/ |
| H A D | bss_mem.c | 198 bm = bbm->buf; in mem_read() 200 ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl; in mem_read() 204 bm->max -= ret; in mem_read() 205 bm->data += ret; in mem_read() 251 bm = bbm->buf; in mem_ctrl() 257 off = (bm->data == bo->data) ? 0 : bm->data - bo->data; in mem_ctrl() 262 bm = bbm->buf; in mem_ctrl() 266 memset(bm->data, 0, bm->max); in mem_ctrl() 350 bm = bbm->buf; in mem_gets() 352 j = bm->length; in mem_gets() [all …]
|
| /freebsd-14.2/sys/contrib/ncsw/Peripherals/BM/ |
| H A D | fsl_bman.h | 199 #define bm_isr_status_read(bm) __bm_isr_read(bm, bm_isr_status) argument 200 #define bm_isr_status_clear(bm, m) __bm_isr_write(bm, bm_isr_status, m) argument 201 #define bm_isr_enable_read(bm) __bm_isr_read(bm, bm_isr_enable) argument 202 #define bm_isr_enable_write(bm, v) __bm_isr_write(bm, bm_isr_enable, v) argument 203 #define bm_isr_disable_read(bm) __bm_isr_read(bm, bm_isr_disable) argument 204 #define bm_isr_disable_write(bm, v) __bm_isr_write(bm, bm_isr_disable, v) argument 205 #define bm_isr_inhibit(bm) __bm_isr_write(bm, bm_isr_inhibit, 1) argument 206 #define bm_isr_uninhibit(bm) __bm_isr_write(bm, bm_isr_inhibit, 0) argument
|
| H A D | bman_low.c | 91 static __inline__ uint32_t __bm_in(struct bm_addr *bm, uintptr_t offset) in __bm_in() argument 93 uint32_t *tmp = (uint32_t *)ptr_ADD(bm->addr_ci, offset); in __bm_in() 98 uint32_t *tmp = (uint32_t *)ptr_ADD(bm->addr_ci, offset); in __bm_out() 108 static __inline__ void __bm_cl_touch_ro(struct bm_addr *bm, uintptr_t offset) in __bm_cl_touch_ro() argument 110 dcbt_ro(ptr_ADD(bm->addr_ce, offset)); in __bm_cl_touch_ro() 112 static __inline__ void __bm_cl_touch_rw(struct bm_addr *bm, uintptr_t offset) in __bm_cl_touch_rw() argument 114 dcbt_rw(ptr_ADD(bm->addr_ce, offset)); in __bm_cl_touch_rw() 116 static __inline__ uint32_t __bm_cl_in(struct bm_addr *bm, uintptr_t offset) in __bm_cl_in() argument 118 uint32_t *tmp = (uint32_t *)ptr_ADD(bm->addr_ce, offset); in __bm_cl_in() 123 uint32_t *tmp = (uint32_t *)ptr_ADD(bm->addr_ce, offset); in __bm_cl_out() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/src/arm/ |
| H A D | armada-xp-openblocks-ax3-4.dts | 114 buffer-manager = <&bm>; 115 bm,pool-long = <0>; 121 buffer-manager = <&bm>; 122 bm,pool-long = <1>; 128 buffer-manager = <&bm>; 129 bm,pool-long = <2>; 135 buffer-manager = <&bm>; 136 bm,pool-long = <3>; 166 bm@c0000 { 171 bm-bppi {
|
| H A D | armada-385-db-ap.dts | 98 buffer-manager = <&bm>; 99 bm,pool-long = <1>; 100 bm,pool-short = <3>; 108 buffer-manager = <&bm>; 109 bm,pool-long = <2>; 110 bm,pool-short = <3>; 129 buffer-manager = <&bm>; 130 bm,pool-long = <0>; 131 bm,pool-short = <3>; 134 bm@c8000 { [all …]
|
| H A D | armada-xp-db.dts | 98 buffer-manager = <&bm>; 99 bm,pool-long = <0>; 105 buffer-manager = <&bm>; 106 bm,pool-long = <1>; 112 buffer-manager = <&bm>; 113 bm,pool-long = <2>; 119 buffer-manager = <&bm>; 120 bm,pool-long = <3>; 123 bm@c0000 { 178 bm-bppi {
|
| H A D | armada-xp-gp.dts | 124 buffer-manager = <&bm>; 125 bm,pool-long = <0>; 131 buffer-manager = <&bm>; 132 bm,pool-long = <1>; 138 buffer-manager = <&bm>; 139 bm,pool-long = <2>; 145 buffer-manager = <&bm>; 146 bm,pool-long = <3>; 159 bm@c0000 { 175 bm-bppi {
|
| H A D | armada-388-db.dts | 59 buffer-manager = <&bm>; 60 bm,pool-long = <2>; 61 bm,pool-short = <3>; 72 buffer-manager = <&bm>; 73 bm,pool-long = <0>; 74 bm,pool-short = <1>; 95 bm@c8000 { 122 bm-bppi {
|
| H A D | armada-385-linksys.dtsi | 91 &bm { 102 buffer-manager = <&bm>; 103 bm,pool-long = <0>; 104 bm,pool-short = <1>; 114 buffer-manager = <&bm>; 115 bm,pool-long = <2>; 116 bm,pool-short = <3>;
|
| H A D | armada-xp-linksys-mamba.dts | 68 buffer-manager = <&bm>; 69 bm,pool-long = <0>; 70 bm,pool-short = <1>; 82 buffer-manager = <&bm>; 83 bm,pool-long = <2>; 84 bm,pool-short = <3>; 165 bm@c8000 { 170 bm-bppi {
|
| H A D | armada-38x-solidrun-microsom.dtsi | 35 &bm { 49 buffer-manager = <&bm>; 50 bm,pool-long = <0>; 51 bm,pool-short = <1>;
|
| /freebsd-14.2/sys/netlink/route/ |
| H A D | route_var.h | 84 const struct nlattr_bmask *bm, struct nl_pstate *npt); 89 const struct nlattr_bmask *bm, struct nl_pstate *npt) in nl_modify_ifp_generic() argument 91 return (_nl_modify_ifp_generic(ifp, lattrs, bm, npt)); in nl_modify_ifp_generic() 102 const struct nlattr_bmask *bm, struct nl_pstate *npt); 108 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt); 110 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt);
|
| /freebsd-14.2/contrib/file/magic/Magdir/ |
| H A D | bm | 3 # $File: bm,v 1.2 2021/03/14 16:56:51 christos Exp $ 4 # bm: file(1) magic for "Birtual Machine", cf. https://github.com/tsoding/bm 6 0 string bm\001\244 Birtual Machine
|
| /freebsd-14.2/usr.bin/gzip/ |
| H A D | unlz.c | 194 lz_rd_decode_bit(struct lz_range_decoder *rd, int *bm) in lz_rd_decode_bit() argument 197 const uint32_t bound = (rd->range >> BIT_MODEL_TOTAL_BITS) * *bm; in lz_rd_decode_bit() 201 *bm += (BIT_MODEL_TOTAL - *bm) >> BIT_MODEL_MOVE_BITS; in lz_rd_decode_bit() 207 *bm -= *bm >> BIT_MODEL_MOVE_BITS; in lz_rd_decode_bit() 224 symbol = (symbol << 1) | lz_rd_decode_bit(rd, &bm[symbol]); in lz_rd_decode_tree() 232 unsigned symbol = lz_rd_decode_tree(rd, bm, num_bits); in lz_rd_decode_tree_reversed() 251 &bm[symbol + (match_bit << 8) + 0x100]); in lz_rd_decode_matched() 256 lz_rd_decode_bit(rd, &bm[symbol]); in lz_rd_decode_matched() 444 int *bm = bm_literal[literal_state]; in lz_decode_member() local 446 lz_put(lz, lz_rd_decode_tree(rd, bm, 8)); in lz_decode_member() [all …]
|
| /freebsd-14.2/contrib/arm-optimized-routines/math/test/rtest/ |
| H A D | semi.c | 133 uint32 am[2], bm[2]; in test_fmod() local 176 test_frexp(b, bm, (uint32 *)&bex); in test_fmod() 178 bm[0] &= 0xFFFFF, bm[0] |= 0x100000; in test_fmod() 181 if (am[0] > bm[0] || (am[0] == bm[0] && am[1] >= bm[1])) { in test_fmod() 182 am[1] -= bm[1]; in test_fmod() 183 am[0] = am[0] - bm[0] - (am[1] > ~bm[1]); in test_fmod() 207 uint32 am, bm; in test_fmodf() local 245 test_frexpf(b, &bm, (uint32 *)&bex); in test_fmodf() 247 bm &= 0x7FFFFF, bm |= 0x800000; in test_fmodf() 250 if (am >= bm) { in test_fmodf() [all …]
|
| /freebsd-14.2/contrib/netbsd-tests/lib/libc/string/ |
| H A D | t_bm.c | 41 ATF_TC(bm); 42 ATF_TC_HEAD(bm, tc) in ATF_TC_HEAD() argument 72 ATF_TC_BODY(bm, tc) in ATF_TC_BODY() argument 100 ATF_TP_ADD_TC(tp, bm); in ATF_TP_ADD_TCS()
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/net/ |
| H A D | marvell-armada-370-neta.txt | 28 Documentation/devicetree/bindings/net/marvell-neta-bm.txt 29 - bm,pool-long: ID of a pool, that will accept all packets of a size 33 - bm,pool-short: ID of a pool, that will be used for accepting 47 buffer-manager = <&bm>; 48 bm,pool-long = <0>; 49 bm,pool-short = <1>;
|
| H A D | marvell-neta-bm.txt | 5 - compatible: should be "marvell,armada-380-neta-bm". 29 bm: bm@c8000 { 30 compatible = "marvell,armada-380-neta-bm"; 40 bm_bppi: bm-bppi {
|
| /freebsd-14.2/usr.bin/tip/libacu/ |
| H A D | t3000.c | 217 struct tbaud_msg *bm; in t3000_connect() local 251 for (bm = tbaud_msg ; bm->msg ; bm++) in t3000_connect() 252 if (strcmp(bm->msg, in t3000_connect() 257 cfsetospeed(&cntrl, bm->baud); in t3000_connect() 258 cfsetispeed(&cntrl, bm->baud); in t3000_connect()
|
| H A D | courier.c | 202 struct baud_msg *bm; in cour_connect() local 236 for (bm = baud_msg ; bm->msg ; bm++) in cour_connect() 237 if (strcmp(bm->msg, in cour_connect() 242 cfsetospeed(&cntrl, bm->baud); in cour_connect() 243 cfsetispeed(&cntrl, bm->baud); in cour_connect()
|
| /freebsd-14.2/lib/libc/include/isc/ |
| H A D | eventlib.h | 68 #define EV_BYTEMASK_SET(bm, b) \ argument 69 ((bm).mask[EV_BYTEMASK_BYTE(b)] |= EV_BYTEMASK_MASK(b)) 70 #define EV_BYTEMASK_CLR(bm, b) \ argument 71 ((bm).mask[EV_BYTEMASK_BYTE(b)] &= ~EV_BYTEMASK_MASK(b)) 72 #define EV_BYTEMASK_TST(bm, b) \ argument 73 ((bm).mask[EV_BYTEMASK_BYTE(b)] & EV_BYTEMASK_MASK(b))
|
| /freebsd-14.2/contrib/netbsd-tests/include/sys/ |
| H A D | t_bitops.c | 75 __BITMAP_TYPE(, uint32_t, 65536) bm; in ATF_TC_BODY() 76 __BITMAP_ZERO(&bm); in ATF_TC_BODY() 85 __BITMAP_SET(i, &bm); in ATF_TC_BODY() 88 ATF_REQUIRE(bm._b[i] == 0x55555555); in ATF_TC_BODY() 92 ATF_REQUIRE(!__BITMAP_ISSET(i, &bm)); in ATF_TC_BODY() 94 ATF_REQUIRE(__BITMAP_ISSET(i, &bm)); in ATF_TC_BODY() 95 __BITMAP_CLR(i, &bm); in ATF_TC_BODY() 99 ATF_REQUIRE(!__BITMAP_ISSET(i, &bm)); in ATF_TC_BODY()
|
| /freebsd-14.2/lib/libkvm/ |
| H A D | kvm_private.c | 765 bm->map = calloc(bitmapsize, sizeof *bm->map); in _kvm_bitmap_init() 766 if (bm->map == NULL) in _kvm_bitmap_init() 768 bm->size = bitmapsize; in _kvm_bitmap_init() 773 _kvm_bitmap_set(struct kvm_bitmap *bm, u_long bm_index) in _kvm_bitmap_set() argument 775 uint8_t *byte = &bm->map[bm_index / 8]; in _kvm_bitmap_set() 777 if (bm_index / 8 < bm->size) in _kvm_bitmap_set() 782 _kvm_bitmap_next(struct kvm_bitmap *bm, u_long *idx) in _kvm_bitmap_next() argument 784 u_long first_invalid = bm->size * CHAR_BIT; in _kvm_bitmap_next() 794 if ((bm->map[*idx / CHAR_BIT] & mask) != 0) in _kvm_bitmap_next() 802 _kvm_bitmap_deinit(struct kvm_bitmap *bm) in _kvm_bitmap_deinit() argument [all …]
|