Searched refs:bm (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-11-stable/usr.sbin/pw/
H A Dbitmap.c42 struct bitmap bm; local
45 bm.size = size;
46 bm.map = malloc(szmap);
47 if (bm.map)
48 memset(bm.map, 0, szmap);
49 return bm;
53 bm_dealloc(struct bitmap * bm) argument
55 free(bm->map);
66 bm_setbit(struct bitmap * bm, int pos) argument
71 bm
75 bm_clrbit(struct bitmap * bm, int pos) argument
84 bm_isset(struct bitmap * bm, int pos) argument
93 bm_firstunset(struct bitmap * bm) argument
114 bm_lastset(struct bitmap * bm) argument
[all...]
H A Dbitmap.h44 void bm_dealloc(struct bitmap * bm);
45 void bm_setbit(struct bitmap * bm, int pos);
46 void bm_clrbit(struct bitmap * bm, int pos);
47 int bm_isset(struct bitmap * bm, int pos);
48 int bm_firstunset(struct bitmap * bm);
49 int bm_lastset(struct bitmap * bm);
H A Dpw_group.c175 struct bitmap bm; local
199 bm = bm_alloc(cnf->max_gid - cnf->min_gid + 1);
208 bm_setbit(&bm, grp->gr_gid - cnf->min_gid);
215 gid = (gid_t) (bm_firstunset(&bm) + cnf->min_gid);
217 gid = (gid_t) (bm_lastset(&bm) + 1);
218 if (!bm_isset(&bm, gid))
221 gid = (gid_t) (bm_firstunset(&bm) + cnf->min_gid);
230 bm_dealloc(&bm);
/freebsd-11-stable/crypto/openssl/crypto/bio/
H A Dbss_mem.c152 BUF_MEM *bm; local
154 bm = (BUF_MEM *)b->ptr;
156 ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl;
158 memcpy(out, bm->data, ret);
159 bm->length -= ret;
161 bm->data += ret;
163 memmove(&(bm->data[0]), &(bm->data[ret]), bm
177 BUF_MEM *bm; local
207 BUF_MEM *bm = (BUF_MEM *)b->ptr; local
277 BUF_MEM *bm = (BUF_MEM *)bp->ptr; local
[all...]
/freebsd-11-stable/sys/sparc64/include/
H A Dwatch.h32 vm_paddr_t watch_phys_get(int *bm);
37 vm_offset_t watch_virt_get(int *bm);
/freebsd-11-stable/sys/sparc64/sparc64/
H A Ddb_hwwatch.c45 static void db_watch_print(vm_offset_t wp, int bm);
73 watch_phys_get(int *bm) argument
83 *bm = (lsucr & LSU_PM_MASK) >> LSU_PM_SHIFT;
128 watch_virt_get(int *bm) argument
138 *bm = (lsucr & LSU_VM_MASK) >> LSU_VM_SHIFT;
178 db_watch_print(vm_offset_t wp, int bm) argument
184 if ((bm & (1 << i)) != 0)
187 if (bm == 0)
197 int bm; local
201 pa = watch_phys_get(&bm);
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/string/
H A Dt_bm.c37 #include <bm.h>
41 ATF_TC(bm); variable
42 ATF_TC_HEAD(bm, tc)
44 atf_tc_set_md_var(tc, "descr", "Test bm(3)");
72 ATF_TC_BODY(bm, tc)
100 ATF_TP_ADD_TC(tp, bm);
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/BM/
H A Dfsl_bman.h199 #define bm_isr_status_read(bm) __bm_isr_read(bm, bm_isr_status)
200 #define bm_isr_status_clear(bm, m) __bm_isr_write(bm, bm_isr_status, m)
201 #define bm_isr_enable_read(bm) __bm_isr_read(bm, bm_isr_enable)
202 #define bm_isr_enable_write(bm, v) __bm_isr_write(bm, bm_isr_enable, v)
203 #define bm_isr_disable_read(bm) __bm_isr_read(bm, bm_isr_disabl
[all...]
H A Dbman_low.c87 static __inline__ uint32_t __bm_in(struct bm_addr *bm, void *offset) argument
89 uint32_t *tmp = (uint32_t *)ptr_ADD(bm->addr_ci, offset);
92 static __inline__ void __bm_out(struct bm_addr *bm, void *offset, uint32_t val) argument
94 uint32_t *tmp = (uint32_t *)ptr_ADD(bm->addr_ci, offset);
104 static __inline__ void __bm_cl_touch_ro(struct bm_addr *bm, void *offset) argument
106 dcbt_ro(ptr_ADD(bm->addr_ce, offset));
108 static __inline__ void __bm_cl_touch_rw(struct bm_addr *bm, void *offset) argument
110 dcbt_rw(ptr_ADD(bm->addr_ce, offset));
112 static __inline__ uint32_t __bm_cl_in(struct bm_addr *bm, void *offset) argument
114 uint32_t *tmp = (uint32_t *)ptr_ADD(bm
117 __bm_cl_out(struct bm_addr *bm, void *offset, uint32_t val) argument
123 __bm_cl_invalidate(struct bm_addr *bm, void *offset) argument
[all...]
/freebsd-11-stable/share/man/man4/man4.powerpc/
H A DMakefile9 bm.4 \
/freebsd-11-stable/sys/modules/bm/
H A DMakefile1 # $FreeBSD: stable/11/sys/modules/bm/Makefile 319182 2017-05-30 04:11:12Z ngie $
3 .PATH: ${SRCTOP}/sys/dev/bm
/freebsd-11-stable/usr.bin/tip/libacu/
H A Dcourier.c202 struct baud_msg *bm; local
236 for (bm = baud_msg ; bm->msg ; bm++)
237 if (strcmp(bm->msg,
242 cfsetospeed(&cntrl, bm->baud);
243 cfsetispeed(&cntrl, bm->baud);
H A Dt3000.c217 struct tbaud_msg *bm; local
251 for (bm = tbaud_msg ; bm->msg ; bm++)
252 if (strcmp(bm->msg,
257 cfsetospeed(&cntrl, bm->baud);
258 cfsetispeed(&cntrl, bm->baud);
/freebsd-11-stable/lib/ofed/libibmad/
H A DMakefile12 bm.c \
/freebsd-11-stable/usr.bin/gzip/
H A Dunlz.c196 lz_rd_decode_bit(struct lz_range_decoder *rd, int *bm) argument
199 const uint32_t bound = (rd->range >> BIT_MODEL_TOTAL_BITS) * *bm;
203 *bm += (BIT_MODEL_TOTAL - *bm) >> BIT_MODEL_MOVE_BITS;
209 *bm -= *bm >> BIT_MODEL_MOVE_BITS;
221 lz_rd_decode_tree(struct lz_range_decoder *rd, int *bm, int num_bits) argument
226 symbol = (symbol << 1) | lz_rd_decode_bit(rd, &bm[symbol]);
232 lz_rd_decode_tree_reversed(struct lz_range_decoder *rd, int *bm, int num_bits) argument
234 unsigned symbol = lz_rd_decode_tree(rd, bm, num_bit
246 lz_rd_decode_matched(struct lz_range_decoder *rd, int *bm, int match_byte) argument
446 int *bm = bm_literal[literal_state]; local
[all...]
/freebsd-11-stable/lib/libc/include/isc/
H A Deventlib.h66 #define EV_BYTEMASK_SET(bm, b) \
67 ((bm).mask[EV_BYTEMASK_BYTE(b)] |= EV_BYTEMASK_MASK(b))
68 #define EV_BYTEMASK_CLR(bm, b) \
69 ((bm).mask[EV_BYTEMASK_BYTE(b)] &= ~EV_BYTEMASK_MASK(b))
70 #define EV_BYTEMASK_TST(bm, b) \
71 ((bm).mask[EV_BYTEMASK_BYTE(b)] & EV_BYTEMASK_MASK(b))
/freebsd-11-stable/contrib/gcc/
H A Dlibgcc2.c429 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
432 if (bm <= 0)
435 w.s.low = (UWtype) uu.s.high >> -bm;
439 const UWtype carries = (UWtype) uu.s.high << bm;
457 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
460 if (bm <= 0)
463 w.s.high = (UWtype) uu.s.low << -bm;
467 const UWtype carries = (UWtype) uu.s.low >> bm;
485 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
488 if (bm <
418 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; local
446 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; local
474 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; local
875 UWtype b, bm; local
[all...]
/freebsd-11-stable/contrib/netbsd-tests/include/sys/
H A Dt_bitops.c75 __BITMAP_TYPE(, uint32_t, 65536) bm;
76 __BITMAP_ZERO(&bm);
85 __BITMAP_SET(i, &bm);
88 ATF_REQUIRE(bm._b[i] == 0x55555555);
92 ATF_REQUIRE(!__BITMAP_ISSET(i, &bm));
94 ATF_REQUIRE(__BITMAP_ISSET(i, &bm));
95 __BITMAP_CLR(i, &bm);
99 ATF_REQUIRE(!__BITMAP_ISSET(i, &bm));
/freebsd-11-stable/contrib/bmake/
H A Djob.h176 struct BuildMon bm;
175 struct BuildMon bm; member in struct:Job
H A Dmeta.c675 pbm = &job->bm;
705 pbm = &job->bm;
730 pbm = &job->bm;
759 pbm = &job->bm;
822 pbm = &job->bm;
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-atalk.c378 register u_char bm)
388 if ((bm + 1) & (bm & 0xff)) {
390 for (i = 0; bm; ++i) {
391 if (bm & 1) {
395 bm >>= 1;
399 for (i = 0; bm; ++i)
400 bm >>= 1;
377 atp_bitmap_print(netdissect_options *ndo, register u_char bm) argument
/freebsd-11-stable/contrib/dialog/
H A Dmixedgauge.c117 int bm = limit_y; /* bottom margin */ local
124 bm -= (2 * MARGIN);
130 if (y > bm)
/freebsd-11-stable/lib/libc/resolv/
H A Dres_mkupdate.c350 char bm[MAXPORT/8]; local
369 bm[i] = 0;
376 bm[n/8] |= (0x80>>(n%8));
384 memcpy(cp, bm, maxbm);
/freebsd-11-stable/usr.sbin/bhyvectl/
H A Dbhyvectl.c1667 uint64_t eptp, bm, addr, u64, pteval[4], *pte, info[2]; local
2032 VMCS_EXCEPTION_BITMAP, &bm);
2036 4, &bm);
2038 printf("exception_bitmap[%d]\t%#lx\n", vcpu, bm);
2044 &bm);
2046 printf("io_bitmap_a[%d]\t%#lx\n", vcpu, bm);
2048 &bm);
2050 printf("io_bitmap_b[%d]\t%#lx\n", vcpu, bm);
2053 VMCB_OFF_IO_PERM, 8, &bm);
2055 printf("io_bitmap[%d]\t%#lx\n", vcpu, bm);
[all...]
/freebsd-11-stable/contrib/binutils/binutils/
H A Dresbin.c1677 struct bin_menu bm;
1678 windres_put_16 (wrbfd, bm.sig1, 0);
1679 windres_put_16 (wrbfd, bm.sig2, 0);
1680 set_windres_bfd_content (wrbfd, &bm, off, BIN_MENU_SIZE);
1684 struct bin_menuex bm;
1685 windres_put_16 (wrbfd, bm.sig1, 1);
1686 windres_put_16 (wrbfd, bm.sig2, 4);
1687 windres_put_32 (wrbfd, bm.help, menu->help);
1688 set_windres_bfd_content (wrbfd, &bm, off, BIN_MENUEX_SIZE);
1676 struct bin_menu bm; local
1683 struct bin_menuex bm; local

Completed in 588 milliseconds

12