Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 25 of 94) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/sys/
H A Dbitmap.h86 #define BT_WIM(bitmap, bitindex) \ argument
87 ((bitmap)[(bitindex) >> BT_ULSHIFT])
95 #define BT_WIM32(bitmap, bitindex) \ argument
96 ((bitmap)[(bitindex) >> BT_ULSHIFT32])
111 #define BT_TEST(bitmap, bitindex) \ argument
113 #define BT_SET(bitmap, bitindex) \ argument
115 #define BT_CLEAR(bitmap, bitindex) \ argument
123 #define BT_TEST32(bitmap, bitindex) \ argument
125 #define BT_SET32(bitmap, bitindex) \ argument
127 #define BT_CLEAR32(bitmap, bitindex) \ argument
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dbitmap.h10 static inline int test_bit(unsigned int nr, unsigned long *bitmap) in test_bit() argument
14 return (bitmap[offset] >> bit) & 1; in test_bit()
17 static inline void set_bit(unsigned int nr, unsigned long *bitmap) in set_bit() argument
21 bitmap[offset] |= 1UL << bit; in set_bit()
24 static inline void clear_bit(unsigned int nr, unsigned long *bitmap) in clear_bit() argument
28 bitmap[offset] &= ~(1UL << bit); in clear_bit()
31 static inline int test_and_set_bit(unsigned int nr, unsigned long *bitmap) in test_and_set_bit() argument
35 unsigned long old = bitmap[offset]; in test_and_set_bit()
37 bitmap[offset] = old | mask; in test_and_set_bit()
45 unsigned long old = bitmap[offset]; in test_and_clear_bit()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_thread.c52 thread->sign.bitmap = 0; in iscsi_thread_create()
86 thread->sign.bitmap |= ISCSI_THREAD_SIGNAL_KILL; in iscsi_thread_destroy()
137 thread->sign.bitmap |= ISCSI_THREAD_SIGNAL_KILL; in iscsi_thread_start()
147 thread->sign.bitmap = 0; in iscsi_thread_start()
192 thread->sign.bitmap |= ISCSI_THREAD_SIGNAL_KILL; in iscsi_thread_stop()
232 thread->sign.bitmap |= ISCSI_THREAD_SIGNAL_KILL; in iscsi_thread_send_kill()
266 thread->sign.bitmap |= ISCSI_THREAD_SIGNAL_WAKEUP; in iscsi_thread_send_wakeup()
288 uint32_t bitmap; in iscsi_thread_check_signals() local
295 bitmap = thread->sign.bitmap; in iscsi_thread_check_signals()
297 return (bitmap); in iscsi_thread_check_signals()
[all …]
/illumos-gate/usr/src/cmd/cdrw/
H A Doptions.c55 msk->bitmap[loc >> 3] |= bitlocation[loc & 7]; in add_option()
70 if (msk->bitmap[i] == specified->bitmap[i]) in compare_options_mask()
72 bmap = msk->bitmap[i] | specified->bitmap[i]; in compare_options_mask()
73 bmap ^= msk->bitmap[i]; in compare_options_mask()
/illumos-gate/usr/src/cmd/sendmail/db/lock/
H A Dlock_deadlock.c69 u_int32_t *bitmap, *deadlock, i, killid, nentries, nlockers; local
99 __dd_debug(dbenv, idmap, bitmap, nlockers);
102 deadlock = __dd_find(bitmap, idmap, nlockers);
139 killid = (deadlock - bitmap) / nentries;
181 __os_free(bitmap, 0);
236 sizeof(u_int32_t) * nentries, &bitmap)) != 0)
240 __os_free(bitmap, sizeof(u_int32_t) * nentries);
334 entryp = bitmap + (nentries * lockerp->dd_id);
382 *bmp = bitmap;
467 __dd_debug(dbenv, idmap, bitmap, nlockers) in __dd_debug() argument
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dbitmap.c51 bt_availbit(const ulong_t *bitmap, size_t nbits) in bt_availbit() argument
64 if (bitmap[wx] != ~0) in bt_availbit()
77 word = bitmap[wx]; in bt_availbit()
117 bt_range(const ulong_t *bitmap, size_t *pos1, size_t *pos2, size_t end_pos) in bt_range() argument
122 if (BT_TEST(bitmap, pos)) in bt_range()
131 if (!BT_TEST(bitmap, pos)) in bt_range()
H A Ddumpsubr.c881 if (BT_TEST(dumpcfg.bitmap, start)) in dump_range_check()
997 if (BT_TEST(dumpcfg.bitmap, bitnum)) in dumpsys_get_maxmem()
1146 if (dumpcfg.bitmap != NULL) in dumphdr_init()
1152 dumpcfg.bitmap = map; in dumphdr_init()
1400 BT_SET(dumpcfg.bitmap, bitnum); in dump_addpage()
1422 BT_SET(dumpcfg.bitmap, bitnum); in dump_page()
2430 HRSTART(ds->perpage, bitmap); in dumpsys_main_task()
2432 if (BT_TEST(dumpcfg.bitmap, bitnum)) in dumpsys_main_task()
2434 HRSTOP(ds->perpage, bitmap); in dumpsys_main_task()
2816 BT_SET(dumpcfg.bitmap, bitnum); in dumpsys()
[all …]
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_txc.c150 uint64_t bitmap; in nxge_txc_tdc_bind() local
173 &bitmap); in nxge_txc_tdc_bind()
175 if (bitmap & (1 << channel)) { in nxge_txc_tdc_bind()
181 bitmap |= (1 << channel); in nxge_txc_tdc_bind()
187 (uint32_t)bitmap)) != NPI_SUCCESS) { in nxge_txc_tdc_bind()
252 uint64_t bitmap; in nxge_txc_tdc_unbind() local
268 &bitmap); in nxge_txc_tdc_unbind()
270 bitmap &= (~(1 << channel)); in nxge_txc_tdc_unbind()
274 (uint32_t)bitmap)) != NPI_SUCCESS) { in nxge_txc_tdc_unbind()
281 if (bitmap) in nxge_txc_tdc_unbind()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/intel/
H A Dvmx_msr.c145 uint8_t *bitmap; in vmx_msr_bitmap_initialize() local
147 bitmap = kmem_alloc(PAGESIZE, KM_SLEEP); in vmx_msr_bitmap_initialize()
148 VERIFY3U((uintptr_t)bitmap & PAGEOFFSET, ==, 0); in vmx_msr_bitmap_initialize()
149 memset(bitmap, 0xff, PAGESIZE); in vmx_msr_bitmap_initialize()
151 vmx->msr_bitmap[i] = bitmap; in vmx_msr_bitmap_initialize()
168 uint8_t *bitmap = vmx->msr_bitmap[vcpuid]; in vmx_msr_bitmap_change_access() local
182 bitmap[byte] &= ~(1 << bit); in vmx_msr_bitmap_change_access()
184 bitmap[byte] |= 1 << bit; in vmx_msr_bitmap_change_access()
189 bitmap[byte] &= ~(1 << bit); in vmx_msr_bitmap_change_access()
191 bitmap[byte] |= 1 << bit; in vmx_msr_bitmap_change_access()
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dcudbg.c56 set_dbg_bitmap(u8 *bitmap, enum CUDBG_DBG_ENTITY_TYPE type) in set_dbg_bitmap() argument
61 bitmap[index] |= (1 << bit); in set_dbg_bitmap()
65 reset_dbg_bitmap(u8 *bitmap, enum CUDBG_DBG_ENTITY_TYPE type) in reset_dbg_bitmap() argument
70 bitmap[index] &= ~(1 << bit); in reset_dbg_bitmap()
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c341 s10_emul_bitmap_t bitmap; in set_zone_emul_bitmap() local
359 bzero(bitmap, sizeof (bitmap)); in set_zone_emul_bitmap()
396 bitmap[(bit_index >> 3)] |= (1 << (bit_index & 0x7)); in set_zone_emul_bitmap()
458 bitmap[(bit_index >> 3)] &= in set_zone_emul_bitmap()
479 if (zone_setattr(zoneid, S10_EMUL_BITMAP, bitmap, sizeof (bitmap)) != 0) in set_zone_emul_bitmap()
/illumos-gate/usr/src/uts/sun4u/pcbe/
H A Dopl_pcbe.c631 uint64_t bitmap = 0; in opl_pcbe_event_coverage() local
637 bitmap |= (1 << i); in opl_pcbe_event_coverage()
640 return (bitmap); in opl_pcbe_event_coverage()
719 uint8_t bitmap = 0; /* for used pic config */ in opl_pcbe_program() local
730 bitmap |= (uint8_t)(1 << tmp->opl_picno); in opl_pcbe_program()
733 if (bitmap == 0) in opl_pcbe_program()
738 if (bitmap & (1 << i)) in opl_pcbe_program()
818 uint8_t bitmap = 0; /* for used pic config */ in opl_pcbe_sample() local
831 bitmap |= (uint8_t)(1 << ctmp->opl_picno); in opl_pcbe_sample()
834 if (bitmap == 0) in opl_pcbe_sample()
[all …]
H A Dus234_pcbe.c740 uint64_t bitmap = 0; in us_pcbe_event_coverage() local
744 bitmap = 0x1; in us_pcbe_event_coverage()
747 bitmap |= 0x2; in us_pcbe_event_coverage()
749 return (bitmap); in us_pcbe_event_coverage()
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_config.c301 _nscd_cfg_bitmap_is_equal(g_info->bitmap, gi->bitmap)) in _nscd_cfg_verify_group_info()
516 g_info.bitmap, gdesc->gi.bitmap)) { in _nscd_cfg_init_stat()
527 g_info.bitmap), in _nscd_cfg_init_stat()
530 gdesc->gi.bitmap)); in _nscd_cfg_init_stat()
1075 bitmap_c = gi->bitmap; in _nscd_cfg_notify_i()
1076 bitmap_addr = &(gi->bitmap); in _nscd_cfg_notify_i()
1892 nscd_cfg_bitmap_t bitmap; in _nscd_cfg_copy_group_data_merge() local
1990 _nscd_cfg_bitmap_set(&gi->bitmap, bitmap); in _nscd_cfg_copy_group_data_merge()
2158 bitmap_in = gi->bitmap; in _nscd_cfg_notify_s()
2159 bitmap_addr = &(gi->bitmap); in _nscd_cfg_notify_s()
[all …]
H A Dnscd_admin.c331 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 0); in _nscd_add_admin_mod()
346 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 3); in _nscd_add_admin_mod()
361 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 5); in _nscd_add_admin_mod()
368 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 6); in _nscd_add_admin_mod()
375 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 7); in _nscd_add_admin_mod()
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_dump.c723 char *bitmap; in cpr_setbit() local
730 bitmap = DESC_TO_MAP(dp, mapflag); in cpr_setbit()
732 if ((clr = isclr(bitmap, rel)) != 0) in cpr_setbit()
733 setbit(bitmap, rel); in cpr_setbit()
748 char *bitmap; in cpr_clrbit() local
755 bitmap = DESC_TO_MAP(dp, mapflag); in cpr_clrbit()
757 if ((set = isset(bitmap, rel)) != 0) in cpr_clrbit()
758 clrbit(bitmap, rel); in cpr_clrbit()
781 char *bitmap; in cpr_isset() local
787 bitmap = DESC_TO_MAP(dp, mapflag); in cpr_isset()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dscn.c464 (*pp)->bitmap = e->bitmap; in scn_list_add()
709 uint32_t bitmap = lcp->data[2].ui; in cb_update_scn_bitmap() local
711 if (bitmap != 0) { in cb_update_scn_bitmap()
720 attr->value.ui = bitmap; in cb_update_scn_bitmap()
1764 (p->bitmap & in scn_trigger1()
1870 uint32_t bitmap in scn_list_load() argument
1886 list->bitmap = bitmap; in scn_list_load()
1960 uint32_t bitmap in add_scn_entry() argument
1973 mgmt = bitmap & ( in add_scn_entry()
1995 lc.data[2].ui = bitmap; in add_scn_entry()
[all …]
/illumos-gate/usr/src/uts/intel/pcbe/
H A Dcore_pcbe.c980 uint64_t bitmap; in core_pcbe_event_coverage() local
985 bitmap = 0; in core_pcbe_event_coverage()
991 bitmap |= (n->supported_counters & in core_pcbe_event_coverage()
996 bitmap |= BITMASK_XBITS(num_gpc); in core_pcbe_event_coverage()
999 bitmap |= 1ULL; in core_pcbe_event_coverage()
1002 bitmap |= BITMASK_XBITS(num_gpc); in core_pcbe_event_coverage()
1005 bitmap |= 1ULL; in core_pcbe_event_coverage()
1008 bitmap |= 1ULL << 1; in core_pcbe_event_coverage()
1017 bitmap |= bitmask; in core_pcbe_event_coverage()
1019 bitmap |= bitmask; in core_pcbe_event_coverage()
[all …]
/illumos-gate/usr/src/common/iscsi/
H A Dutils.c100 prt_bitmap(int bitmap, char *str, char *buf, int size) in prt_bitmap() argument
123 do_put = ((1 << *p) & bitmap); in prt_bitmap()
124 bitmap &= ~(1 << *p); in prt_bitmap()
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dbitmap.c65 char *bitmap; in cb_bitop() local
70 bitmap = (char *)dp->cbd_reg_bitmap; in cb_bitop()
73 setbit(bitmap, rel); in cb_bitop()
75 rval = isset(bitmap, rel); in cb_bitop()
77 rval = isclr(bitmap, rel); in cb_bitop()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/
H A Dosal.txt325 - void OSAL_SET_BIT(u8 bit, unsigned long *bitmap)
326 Set a bit in a bitmap; Logically *bitmap |= (1ULL << bit)
328 - void OSAL_CLEAR_BIT(u8 bit, unsigned long *bitmap)
329 Clears a bit in a bitmap; Logically *bitmap &= ~(1ULL << bit)
331 - bool OSAL_TEST_BIT(u8 bit, unsigned long *bitmap)
332 Tests whether a bit is set in a bitmap.
333 Logically !!(*bitmap & (1ULL << bit))
338 *bitmap &= ~(1ULL << bit)
343 *bitmap ^= (1ULL << bit)
348 (bit < length) && !(*bitmap & (1ULL << bit))
[all …]
/illumos-gate/usr/src/uts/common/xen/public/
H A Dphysdev.h100 XEN_GUEST_HANDLE(uint8) bitmap;
102 uint8_t *bitmap;
/illumos-gate/usr/src/uts/sun4v/pcbe/
H A Dniagara_pcbe.c304 uint64_t bitmap = 0; in ni_pcbe_event_coverage() local
308 bitmap = 0x1; in ni_pcbe_event_coverage()
311 bitmap |= 0x2; in ni_pcbe_event_coverage()
313 return (bitmap); in ni_pcbe_event_coverage()
/illumos-gate/usr/src/uts/common/smbsrv/ndl/
H A Dsecurity.ndl207 * bitmap security_ace_flags
243 * bitmap security_ace_object_flags
298 * bitmap security_descriptor_type
340 * bitmap security_secinfo
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_input.c118 uint8_t bitmap[128]; member
248 memset(sc->vsc_config.u.bitmap, 0, sizeof(sc->vsc_config.u.bitmap)); in pci_vtinput_get_bitmap()
249 if (ioctl(sc->vsc_fd, cmd, sc->vsc_config.u.bitmap) < 0) { in pci_vtinput_get_bitmap()
255 if (sc->vsc_config.u.bitmap[i]) { in pci_vtinput_get_bitmap()

1234