/src/sys/external/bsd/drm2/include/linux/ |
bitmap.h | 1 /* $NetBSD: bitmap.h,v 1.13 2021/12/19 12:21:30 riastradh Exp $ */ 42 * bitmap_zero(bitmap, nbits) 44 * Zero a bitmap that was allocated to have nbits bits. Yes, this 48 bitmap_zero(unsigned long *bitmap, size_t nbits) 50 const size_t bpl = NBBY * sizeof(*bitmap); 53 memset(bitmap, 0, n * sizeof(*bitmap)); 57 * bitmap_empty(bitmap, nbits) 63 bitmap_empty(const unsigned long *bitmap, size_t nbits) 65 const size_t bpl = NBBY * sizeof(*bitmap); [all...] |
/src/sys/external/bsd/drm2/linux/ |
linux_wait_bit.c | 81 wait_bit_hash(const volatile unsigned long *bitmap, unsigned bit) 84 const volatile unsigned long *word = bitmap + bit/(NBBY*sizeof(*word)); 91 wait_bit_enter(const volatile unsigned long *bitmap, unsigned bit) 93 struct waitbitentry *wbe = &waitbittab[wait_bit_hash(bitmap, bit)].ent; 108 * clear_and_wake_up_bit(bit, bitmap) 110 * Clear the specified bit in the bitmap and wake any waiters in 115 clear_and_wake_up_bit(int bit, volatile unsigned long *bitmap) 119 wbe = wait_bit_enter(bitmap, bit); 120 clear_bit(bit, bitmap); 126 * wait_on_bit(bitmap, bit, flags [all...] |
/src/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
i915_syncmap.c | 67 for_each_set_bit(i, (unsigned long *)&p->bitmap, KSYNCMAP) { 82 for_each_set_bit(i, (unsigned long *)&p->bitmap, KSYNCMAP) { 85 last << 1 | !!(p->bitmap >> (i + 1)), 188 if (hweight32((*sync)->bitmap) != 1) { 189 pr_err("First bitmap does not contain a single entry, found %x (count=%d)!\n", 190 (*sync)->bitmap, hweight32((*sync)->bitmap)); 194 err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); 257 if (hweight32((*sync)->bitmap) != 1) { 259 context, (*sync)->bitmap, hweight32((*sync)->bitmap)) [all...] |
/src/sys/external/bsd/drm2/dist/drm/i915/ |
i915_syncmap.c | 51 * A leaf holds an array of u32 seqno, and has height 0. The bitmap field 81 unsigned int bitmap; member in struct:i915_syncmap 100 BUILD_BUG_ON(KSYNCMAP > BITS_PER_TYPE((*root)->bitmap)); 197 if (!(p->bitmap & BIT(idx))) 214 p->bitmap = 0; 223 p->bitmap |= BIT(idx); 231 p->bitmap |= BIT(idx); 305 GEM_BUG_ON(!(p->parent->bitmap & BIT(idx))); 379 while ((i = ffs(p->bitmap))) { 380 p->bitmap &= ~0u << i [all...] |
/src/sys/external/bsd/drm2/dist/drm/qxl/ |
qxl_image.c | 210 image->u.bitmap.format = SPICE_BITMAP_FMT_1BIT_BE; 213 image->u.bitmap.format = SPICE_BITMAP_FMT_24BIT; 216 image->u.bitmap.format = SPICE_BITMAP_FMT_32BIT; 222 image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN; 223 image->u.bitmap.x = width; 224 image->u.bitmap.y = height; 225 image->u.bitmap.stride = chunk_stride; 226 image->u.bitmap.palette = 0; 227 image->u.bitmap.data = qxl_bo_physical_address(qdev, chunk_bo, 0);
|
/src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
vmwgfx_page_dirty.c | 63 * @bitmap_size: The size of the bitmap in bits. Typically equal to the 66 * @bitmap: A bitmap where each bit represents a page. A set bit means a 77 unsigned long bitmap[0]; member in struct:vmw_bo_dirty 98 offset, &dirty->bitmap[0], 112 offset, &dirty->bitmap[0], 153 &dirty->bitmap[0], 155 bitmap_clear(&dirty->bitmap[0], 0, dirty->bitmap_size); 157 bitmap_set(&dirty->bitmap[0], dirty->start, 204 &dirty->bitmap[0], &dirty->start [all...] |
/src/sys/arch/i386/pci/ |
pci_intr_fixup.c | 89 uint16_t bitmap; member in struct:pciintr_link_map 292 l->bitmap = pir->linkmap[pin].bitmap; 394 } else if (pir->linkmap[pin].bitmap != l->bitmap) { 401 "bad irq bitmap 0x%04x, " 404 link, pir->linkmap[pin].bitmap, l->bitmap); 407 l->bitmap &= pir->linkmap[pin].bitmap; [all...] |
pcibios.h | 53 uint16_t bitmap; member in struct:pcibios_linkmap
|
pcibios.c | 499 pcibios_pir_table[i].linkmap[j].bitmap 500 &= mask->bitmap; 519 printf("\t\tINT%c: link 0x%02x bitmap 0x%04x\n", 522 pcibios_pir_table[i].linkmap[j].bitmap);
|
/src/sys/arch/amiga/dev/ |
grfabs_reg.h | 65 typedef struct bitmap bmap_t; 75 * Bitmap stuff. 106 struct bitmap { struct 110 u_short depth; /* depth of bitmap. */ 114 u_char **plane; /* plane data for bitmap. */ 130 /* Use these macros to find misc. sizes of actual bitmap */ 205 bmap_t *bitmap; /* bitmap. */ member in struct:view 218 #define VDISPLAY_LINE(v, p, l) ((v)->bitmap->plane[(p)] +\ 219 (((v)->bitmap->bytes_per_row + (v)->bitmap->row_mod) * l) [all...] |
grfabs_cc.c | 278 /* bitmap functions */ 301 * each row of the bitmap is long word aligned and made of exactly n 751 v->bitmap = bm; 769 cc_monitor->free_bitmap(v->bitmap); 900 int depth = v->bitmap->depth, i; 909 ddfwidth = ((v->bitmap->bytes_per_row >> 1) - 2) << 2; 986 HIADDR(PREP_DMA_MEM(v->bitmap->plane[i])); 988 LOADDR(PREP_DMA_MEM(v->bitmap->plane[i])); 993 tmp[0].cp.inst.operand = v->bitmap->row_mod; 994 tmp[1].cp.inst.operand = v->bitmap->row_mod [all...] |
/src/sys/dev/hpc/ |
video_subr.c | 44 u_int8_t bitmap; \ 45 bitmap = *(volatile u_int8_t*)addr; \ 47 (bitmap & ~(0x3 << ((3 - (x % 4)) * 2))); \ 51 u_int8_t bitmap; \ 52 bitmap = *(volatile u_int8_t*)addr; \ 54 (bitmap & ~(0xf << ((1 - (x % 2)) * 4))); \
|
/src/sys/arch/ofppc/ofppc/ |
machdep.c | 88 * Scan the device tree for ranges, and return them as bitmap 0..15 91 ranges_bitmap(int node, uint16_t bitmap) 117 bitmap |= 1 << ((addr+j*0x10000000) >> 28); 118 bitmap |= 1 << (addr >> 28); 121 bitmap |= ranges_bitmap(child, bitmap); 124 return bitmap; 131 uint16_t bitmap; local in function:initppc 146 bitmap = ranges_bitmap(node, 0); 154 if (bitmap & (1 << i)) [all...] |
/src/sys/arch/atari/dev/ |
grfabs_reg.h | 64 typedef struct bitmap bmap_t; 73 bmap_t *bitmap; /* bitmap. */ member in struct:view 86 * Bitmap stuff. 88 struct bitmap { struct 91 u_short depth; /* depth of bitmap. */ 92 u_char *plane; /* plane data for bitmap/vga. */
|
ite_et.c | 331 cci->regkva = view->bitmap->regs; 384 ite_default_depth = view->bitmap->depth; 509 cp = (u_short*)v->bitmap->plane; 524 dest = (u_short *)v->bitmap->plane + (sy * ip->cols) + sx; 537 fb = (u_short*)v->bitmap->plane + sy * ip->cols; 591 fb = v->bitmap->plane;
|
grfabs_tt.c | 142 bmap_t *bm = v->bitmap; 190 free_bitmap(v->bitmap); 312 v->bitmap = bm; 318 /* bitmap functions */
|
/src/sys/arch/powerpc/booke/ |
booke_stubs.c | 123 tlb_record_asids(u_long *bitmap, tlb_asid_t asid_max) 125 return (*cpu_md_ops.md_tlb_ops->md_tlb_record_asids)(bitmap, asid_max);
|
/src/sys/arch/ews4800mips/stand/common/ |
cons_fb.c | 179 uint16_t bitmap; local in function:fb_drawfont 188 bitmap = *font_addr++; 189 for (j = 0; j < 12; j++, bitmap <<= 1) 190 fb_addr[j] = bitmap & 0x8000 ? CONS_FG : CONS_BG;
|
/src/share/man/man3/ |
Makefile | 9 assert.3 attribute.3 bitmap.3 bitops.3 bits.3 bitstring.3 \ 285 MLINKS+=bitmap.3 __BITMAP_CLR.3 \ 286 bitmap.3 __BITMAP_ISSET.3 \ 287 bitmap.3 __BITMAP_SET.3 \ 288 bitmap.3 __BITMAP_SIZE.3 \ 289 bitmap.3 __BITMAP_TYPE.3 \ 290 bitmap.3 __BITMAP_ZERO.3
|
/src/sys/external/mit/xen-include-public/dist/xen/include/public/ |
physdev.h | 105 * Set the current VCPU's I/O-port permissions bitmap. 112 XEN_GUEST_HANDLE(uint8) bitmap; 114 uint8_t *bitmap;
|
/src/sys/fs/udf/ |
udf_allocation.c | 165 struct udf_bitmap *bitmap; 183 /* free space to freed or unallocated space bitmap */ 187 /* use unallocated bitmap */ 188 bitmap = &ump->part_unalloc_bits[phys_part]; 191 if (bitmap->bits == NULL) 195 KASSERT(bitmap->bits); 197 bpos = bitmap->bits + lb_num/8; 203 KASSERT(bitmap->bits + lb_num/8 == bpos); 224 /* TODO check space in the metadata bitmap */ 879 udf_bitmap_allocate(struct udf_bitmap *bitmap, int ismetadata 1152 struct udf_bitmap *bitmap; local in function:udf_allocate_space 1302 struct udf_bitmap *bitmap; local in function:udf_free_allocated_space 1465 struct udf_bitmap *bitmap; local in function:udf_trunc_metadatapart [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/ |
os.h | 45 #include <linux/bitmap.h>
|
/src/sys/fs/adosfs/ |
advfsops.c | 267 /* allocate and load bitmap, set free space */ 268 bitmap_sz = ((amp->numblks + 31) / 32) * sizeof(*amp->bitmap); 269 amp->bitmap = kmem_alloc(bitmap_sz, KM_SLEEP); 273 * Don't need the bitmap any more if it's read-only. 275 kmem_free(amp->bitmap, bitmap_sz); 276 amp->bitmap = NULL; 286 if (amp && amp->bitmap) 287 kmem_free(amp->bitmap, bitmap_sz); 317 if (amp->bitmap) { 319 sizeof(*amp->bitmap); [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/ |
nouveau_dmem.c | 68 unsigned long bitmap[BITS_TO_LONGS(DMEM_CHUNK_NPAGES)]; member in struct:nouveau_dmem_chunk 113 clear_bit(idx, chunk->bitmap); 247 bitmap_zero(chunk->bitmap, DMEM_CHUNK_NPAGES); 310 i = find_first_zero_bit(chunk->bitmap, DMEM_CHUNK_NPAGES); 313 set_bit(i, chunk->bitmap); 317 i = find_next_zero_bit(chunk->bitmap,
|
/src/sys/arch/arm/apple/ |
apple_rtkit.c | 127 uint64_t base, bitmap, reply; local in function:rtkit_handle_mgmt 159 bitmap = RTKIT_MGMT_EPMAP_BITMAP(msg->data0); 160 state->epmap |= (bitmap << (base * 32));
|