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

12

/freebsd-10.3-release/usr.sbin/pw/
H A Dbitmap.c40 struct bitmap bm; local
43 bm.size = size;
44 bm.map = malloc(szmap);
45 if (bm.map)
46 memset(bm.map, 0, szmap);
47 return bm;
51 bm_dealloc(struct bitmap * bm) argument
53 free(bm->map);
64 bm_setbit(struct bitmap * bm, int pos) argument
69 bm
73 bm_clrbit(struct bitmap * bm, int pos) argument
82 bm_isset(struct bitmap * bm, int pos) argument
91 bm_firstunset(struct bitmap * bm) argument
112 bm_lastset(struct bitmap * bm) argument
[all...]
H A Dbitmap.h42 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);
H A Dpw_group.c173 struct bitmap bm; local
197 bm = bm_alloc(cnf->max_gid - cnf->min_gid + 1);
206 bm_setbit(&bm, grp->gr_gid - cnf->min_gid);
213 gid = (gid_t) (bm_firstunset(&bm) + cnf->min_gid);
215 gid = (gid_t) (bm_lastset(&bm) + 1);
216 if (!bm_isset(&bm, gid))
219 gid = (gid_t) (bm_firstunset(&bm) + cnf->min_gid);
228 bm_dealloc(&bm);
H A Dpw_user.c330 struct bitmap bm; local
354 bm = bm_alloc(cnf->max_uid - cnf->min_uid + 1);
362 bm_setbit(&bm, pwd->pw_uid - cnf->min_uid);
368 if (cnf->reuse_uids || (uid = (uid_t) (bm_lastset(&bm) + cnf->min_uid + 1)) > cnf->max_uid)
369 uid = (uid_t) (bm_firstunset(&bm) + cnf->min_uid);
376 bm_dealloc(&bm);
/freebsd-10.3-release/crypto/openssl/crypto/bio/
H A Dbss_mem.c150 BUF_MEM *bm; local
152 bm = (BUF_MEM *)b->ptr;
154 ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl;
156 memcpy(out, bm->data, ret);
157 bm->length -= ret;
159 bm->data += ret;
161 memmove(&(bm->data[0]), &(bm->data[ret]), bm
175 BUF_MEM *bm; local
203 BUF_MEM *bm = (BUF_MEM *)b->ptr; local
273 BUF_MEM *bm = (BUF_MEM *)bp->ptr; local
[all...]
/freebsd-10.3-release/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-10.3-release/share/man/man4/man4.powerpc/
H A DMakefile7 bm.4 \
/freebsd-10.3-release/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-10.3-release/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-10.3-release/sys/modules/bm/
H A DMakefile1 # $FreeBSD: releng/10.3/sys/modules/bm/Makefile 179645 2008-06-07 22:58:32Z marcel $
3 .PATH: ${.CURDIR}/../../dev/bm
/freebsd-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/contrib/tcpdump/
H A Dprint-atalk.c352 atp_bitmap_print(register u_char bm) argument
362 if ((bm + 1) & (bm & 0xff)) {
364 for (i = 0; bm; ++i) {
365 if (bm & 1) {
369 bm >>= 1;
373 for (i = 0; bm; ++i)
374 bm >>= 1;
/freebsd-10.3-release/contrib/bmake/
H A Djob.h176 struct BuildMon bm;
175 struct BuildMon bm; member in struct:Job
H A Dmeta.c640 pbm = &job->bm;
670 pbm = &job->bm;
695 pbm = &job->bm;
724 pbm = &job->bm;
776 pbm = &job->bm;
/freebsd-10.3-release/contrib/dialog/
H A Dmixedgauge.c117 int bm = limit_y; /* bottom margin */ local
124 bm -= (2 * MARGIN);
130 if (y > bm)
/freebsd-10.3-release/sys/dev/mlx5/mlx5_core/
H A Dmlx5_flow_table.c364 void *bm; local
373 bm = kcalloc(BITS_TO_LONGS(ft_size), sizeof(uintptr_t), GFP_KERNEL);
376 ft->bitmap = bm;
406 kfree(bm);
/freebsd-10.3-release/usr.sbin/bhyvectl/
H A Dbhyvectl.c1610 uint64_t eptp, bm, addr, u64, pteval[4], *pte, info[2]; local
1957 VMCS_EXCEPTION_BITMAP, &bm);
1961 4, &bm);
1963 printf("exception_bitmap[%d]\t%#lx\n", vcpu, bm);
1969 &bm);
1971 printf("io_bitmap_a[%d]\t%#lx\n", vcpu, bm);
1973 &bm);
1975 printf("io_bitmap_b[%d]\t%#lx\n", vcpu, bm);
1978 VMCB_OFF_IO_PERM, 8, &bm);
1980 printf("io_bitmap[%d]\t%#lx\n", vcpu, bm);
[all...]
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddsl_bookmark.c366 zfs_bookmark_phys_t bm; local
377 error = dsl_dataset_bmark_lookup(ds, shortname, &bm);
/freebsd-10.3-release/lib/libc/resolv/
H A Dres_mkupdate.c351 char bm[MAXPORT/8]; local
370 bm[i] = 0;
377 bm[n/8] |= (0x80>>(n%8));
385 memcpy(cp, bm, maxbm);
/freebsd-10.3-release/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
/freebsd-10.3-release/sys/dev/bm/
H A Dif_bm.c39 __FBSDID("$FreeBSD: releng/10.3/sys/dev/bm/if_bm.c 243857 2012-12-04 09:32:43Z glebius $");
73 MODULE_DEPEND(bm, ether, 1, 1, 1);
74 MODULE_DEPEND(bm, miibus, 1, 1, 1);
147 "bm",
154 DRIVER_MODULE(bm, macio, bm_macio_driver, bm_devclass, 0, 0);
155 DRIVER_MODULE(miibus, bm, miibus_driver, miibus_devclass, 0, 0);

Completed in 210 milliseconds

12