/freebsd/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() 48 bm_dealloc(struct bitmap * bm) in bm_dealloc() argument 50 free(bm->map); in bm_dealloc() 61 bm_setbit(struct bitmap * bm, int pos) in bm_setbit() argument 66 bm->map[pos] |= bmask; in bm_setbit() [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/crypto/openssl/crypto/bio/ |
H A D | bss_mem.c | 195 BUF_MEM *bm = bbm->readp; in mem_read() local 198 bm = bbm->buf; in mem_read() 200 ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl; in mem_read() 202 memcpy(out, bm->data, ret); in mem_read() 203 bm->length -= ret; in mem_read() 204 bm->max -= ret; in mem_read() 205 bm->data += ret; in mem_read() 206 } else if (bm->length == 0) { in mem_read() 247 BUF_MEM *bm, *bo; /* bio_mem, bio_other */ in mem_ctrl() local 251 bm = bbm->buf; in mem_ctrl() [all …]
|
/freebsd/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() 96 static __inline__ void __bm_out(struct bm_addr *bm, uintptr_t offset, uint32_t val) in __bm_out() argument 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() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/marvell/ |
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-385-clearfog-gtr.dtsi | 291 &bm { 305 buffer-manager = <&bm>; 306 bm,pool-long = <0>; 307 bm,pool-short = <1>; 313 bm,pool-long = <2>; 314 bm,pool-short = <1>; 315 buffer-manager = <&bm>; 328 bm,pool-long = <3>; 329 bm,pool-short = <1>; 330 buffer-manager = <&bm>;
|
/freebsd/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/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() 219 lz_rd_decode_tree(struct lz_range_decoder *rd, int *bm, int num_bits) in lz_rd_decode_tree() argument 224 symbol = (symbol << 1) | lz_rd_decode_bit(rd, &bm[symbol]); in lz_rd_decode_tree() 230 lz_rd_decode_tree_reversed(struct lz_range_decoder *rd, int *bm, int num_bits) in lz_rd_decode_tree_reversed() argument 232 unsigned symbol = lz_rd_decode_tree(rd, bm, num_bits); in lz_rd_decode_tree_reversed() 244 lz_rd_decode_matched(struct lz_range_decoder *rd, int *bm, int match_byte) in lz_rd_decode_matched() argument 251 &bm[symbol + (match_bit << 8) + 0x100]); in lz_rd_decode_matched() [all …]
|
/freebsd/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/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/usr.bin/tip/libacu/ |
H A D | courier.c | 194 struct baud_msg *bm; in cour_connect() local 228 for (bm = baud_msg ; bm->msg ; bm++) in cour_connect() 229 if (strcmp(bm->msg, in cour_connect() 234 cfsetospeed(&cntrl, bm->baud); in cour_connect() 235 cfsetispeed(&cntrl, bm->baud); in cour_connect()
|
H A D | t3000.c | 209 struct tbaud_msg *bm; in t3000_connect() local 243 for (bm = tbaud_msg ; bm->msg ; bm++) in t3000_connect() 244 if (strcmp(bm->msg, in t3000_connect() 249 cfsetospeed(&cntrl, bm->baud); in t3000_connect() 250 cfsetispeed(&cntrl, bm->baud); in t3000_connect()
|
/freebsd/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/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/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/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/lib/libkvm/ |
H A D | kvm_private.c | 760 _kvm_bitmap_init(struct kvm_bitmap *bm, u_long bitmapsize, u_long *idx) in _kvm_bitmap_init() argument 764 bm->map = calloc(bitmapsize, sizeof *bm->map); in _kvm_bitmap_init() 765 if (bm->map == NULL) in _kvm_bitmap_init() 767 bm->size = bitmapsize; in _kvm_bitmap_init() 772 _kvm_bitmap_set(struct kvm_bitmap *bm, u_long bm_index) in _kvm_bitmap_set() argument 774 uint8_t *byte = &bm->map[bm_index / 8]; in _kvm_bitmap_set() 776 if (bm_index / 8 < bm->size) in _kvm_bitmap_set() 781 _kvm_bitmap_next(struct kvm_bitmap *bm, u_long *idx) in _kvm_bitmap_next() argument 783 u_long first_invalid = bm->size * CHAR_BIT; in _kvm_bitmap_next() 793 if ((bm->map[*idx / CHAR_BIT] & mask) != 0) in _kvm_bitmap_next() [all …]
|