Home
last modified time | relevance | path

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

12

/arch/powerpc/sysdev/
Dmsi_bitmap.c27 offset = bitmap_find_free_region(bmp->bitmap, bmp->irq_count, order); in msi_bitmap_alloc_hwirqs()
46 bitmap_release_region(bmp->bitmap, offset, order); in msi_bitmap_free_hwirqs()
57 bitmap_allocate_region(bmp->bitmap, hwirq, 0); in msi_bitmap_reserve_hwirq()
93 bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count)); in msi_bitmap_reserve_dt_hwirqs()
101 bitmap_release_region(bmp->bitmap, *p + j, 0); in msi_bitmap_reserve_dt_hwirqs()
120 bmp->bitmap = zalloc_maybe_bootmem(size, GFP_KERNEL); in msi_bitmap_alloc()
121 if (!bmp->bitmap) { in msi_bitmap_alloc()
138 bmp->bitmap = NULL; in msi_bitmap_free()
158 check(0 == bitmap_find_free_region(bmp.bitmap, size, in test_basics()
160 bitmap_release_region(bmp.bitmap, 0, get_count_order(size)); in test_basics()
[all …]
Dppc4xx_msi.c53 struct msi_bitmap bitmap; member
64 err = msi_bitmap_alloc(&msi_data->bitmap, NR_MSI_IRQS, in ppc4xx_msi_init_allocator()
69 err = msi_bitmap_reserve_dt_hwirqs(&msi_data->bitmap); in ppc4xx_msi_init_allocator()
71 msi_bitmap_free(&msi_data->bitmap); in ppc4xx_msi_init_allocator()
87 int_no = msi_bitmap_alloc_hwirqs(&msi_data->bitmap, 1); in ppc4xx_setup_msi_irqs()
97 msi_bitmap_free_hwirqs(&msi_data->bitmap, int_no, 1); in ppc4xx_setup_msi_irqs()
124 msi_bitmap_free_hwirqs(&msi_data->bitmap, in ppc4xx_teardown_msi_irqs()
203 if (msi->bitmap.bitmap) in ppc4xx_of_msi_remove()
204 msi_bitmap_free(&msi->bitmap); in ppc4xx_of_msi_remove()
Dfsl_msi.c85 rc = msi_bitmap_alloc(&msi_data->bitmap, NR_MSI_IRQS, in fsl_msi_init_allocator()
90 rc = msi_bitmap_reserve_dt_hwirqs(&msi_data->bitmap); in fsl_msi_init_allocator()
92 msi_bitmap_free(&msi_data->bitmap); in fsl_msi_init_allocator()
117 msi_bitmap_free_hwirqs(&msi_data->bitmap, in fsl_teardown_msi_irqs()
196 hwirq = msi_bitmap_alloc_hwirqs(&msi_data->bitmap, 1); in fsl_setup_msi_irqs()
211 msi_bitmap_free_hwirqs(&msi_data->bitmap, hwirq, 1); in fsl_setup_msi_irqs()
324 if (msi->bitmap.bitmap) in fsl_of_msi_remove()
325 msi_bitmap_free(&msi->bitmap); in fsl_of_msi_remove()
Dfsl_msi.h38 struct msi_bitmap bitmap; member
Dmpic_msi.c25 if (!mpic->msi_bitmap.bitmap) in mpic_msi_reserve_hwirq()
/arch/x86/kernel/
Dioport.c40 unsigned long *bitmap = kmalloc(IO_BITMAP_BYTES, GFP_KERNEL); in sys_ioperm() local
42 if (!bitmap) in sys_ioperm()
45 memset(bitmap, 0xff, IO_BITMAP_BYTES); in sys_ioperm()
46 t->io_bitmap_ptr = bitmap; in sys_ioperm()
Dvm86_32.c434 static inline int is_revectored(int nr, struct revectored_struct *bitmap) in is_revectored() argument
438 :"m" (*bitmap), "r" (nr)); in is_revectored()
/arch/ia64/include/asm/
Dmmu_context.h40 unsigned long *bitmap; /* bitmap size is max_ctx+1 */ member
92 ia64_ctx.next = find_next_zero_bit(ia64_ctx.bitmap, in get_mmu_context()
94 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, in get_mmu_context()
100 __set_bit(context, ia64_ctx.bitmap); in get_mmu_context()
/arch/powerpc/platforms/wsp/
Dics.c37 unsigned long *bitmap; member
405 bitmap_allocate_region(wsp_ics->bitmap, hw_irq - wsp_ics->hwirq_start, 0); in wsp_ics_map()
471 offset = bitmap_find_free_region(ics->bitmap, ics->count, order); in wsp_ics_alloc_irq()
489 bitmap_release_region(ics->bitmap, irq, 0); in wsp_ics_free_irq()
503 ics->bitmap = kzalloc(size, GFP_KERNEL); in wsp_ics_bitmap_setup()
504 if (!ics->bitmap) { in wsp_ics_bitmap_setup()
526 bitmap_fill(ics->bitmap, ics->count); in wsp_ics_bitmap_setup()
542 bitmap_release_region(ics->bitmap, in wsp_ics_bitmap_setup()
547 bitmap_allocate_region(ics->bitmap, ics->lsi_base, in wsp_ics_bitmap_setup()
/arch/powerpc/include/asm/
Dmsi_bitmap.h19 unsigned long *bitmap; member
/arch/um/drivers/
Dubd_kern.c124 unsigned long *bitmap; member
157 .bitmap = NULL, \
727 vfree(ubd_dev->cow.bitmap); in ubd_close_dev()
728 ubd_dev->cow.bitmap = NULL; in ubd_close_dev()
771 ubd_dev->cow.bitmap = vmalloc(ubd_dev->cow.bitmap_len); in ubd_open_dev()
772 if(ubd_dev->cow.bitmap == NULL){ in ubd_open_dev()
778 err = read_cow_bitmap(ubd_dev->fd, ubd_dev->cow.bitmap, in ubd_open_dev()
1153 __u64 *cow_offset, unsigned long *bitmap, in cowify_bitmap() argument
1163 if(ubd_test_bit(sector + i, (unsigned char *) bitmap)) in cowify_bitmap()
1167 ubd_set_bit(sector + i, (unsigned char *) bitmap); in cowify_bitmap()
[all …]
/arch/mips/lasat/
Dpicvue.h29 int pvc_program_cg(int charnum, u8 bitmap[BM_SIZE]);
Dpicvue.c149 int pvc_program_cg(int charnum, u8 bitmap[BM_SIZE]) in pvc_program_cg()
161 pvc_write(bitmap[i], MODE_DATA); in pvc_program_cg()
/arch/mn10300/unit-asb2305/
Dpci-asb2305.h52 u16 bitmap; /* Available IRQs */ member
/arch/mips/dec/prom/
Dmemory.c73 if (bm->bitmap[i] == 0xff) in rex_setup_memory_region()
/arch/ia64/mm/
Dtlb.c62 ia64_ctx.bitmap = alloc_bootmem((ia64_ctx.max_ctx+1)>>3); in mmu_context_init()
77 ia64_ctx.bitmap[i] ^= flush_bit; in wrap_mmu_context()
81 ia64_ctx.next = find_next_zero_bit(ia64_ctx.bitmap, in wrap_mmu_context()
83 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, in wrap_mmu_context()
/arch/x86/kvm/
Dlapic.c85 static inline int apic_test_and_set_vector(int vec, void *bitmap) in apic_test_and_set_vector() argument
87 return test_and_set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_test_and_set_vector()
90 static inline int apic_test_and_clear_vector(int vec, void *bitmap) in apic_test_and_clear_vector() argument
92 return test_and_clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_test_and_clear_vector()
95 static inline void apic_set_vector(int vec, void *bitmap) in apic_set_vector() argument
97 set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_set_vector()
100 static inline void apic_clear_vector(int vec, void *bitmap) in apic_clear_vector() argument
102 clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_clear_vector()
194 static int find_highest_vector(void *bitmap) in find_highest_vector() argument
196 u32 *word = bitmap; in find_highest_vector()
/arch/sparc/mm/
Diommu.c63 unsigned long *bitmap; in sbus_iommu_init() local
108 bitmap = kmalloc(IOMMU_NPTES>>3, GFP_KERNEL); in sbus_iommu_init()
109 if (!bitmap) { in sbus_iommu_init()
114 bit_map_init(&iommu->usemap, bitmap, IOMMU_NPTES); in sbus_iommu_init()
/arch/unicore32/mm/
Dinit.c139 phys_addr_t bitmap; in uc32_bootmem_init() local
147 bitmap = memblock_alloc_base(boot_pages << PAGE_SHIFT, L1_CACHE_BYTES, in uc32_bootmem_init()
156 init_bootmem_node(pgdat, __phys_to_pfn(bitmap), start_pfn, end_pfn); in uc32_bootmem_init()
/arch/mips/include/asm/dec/
Dprom.h82 unsigned char bitmap[0]; member
/arch/s390/kernel/
DMakefile23 obj-y := bitmap.o traps.o time.o process.o base.o early.o setup.o vtime.o \
/arch/x86/include/asm/
Dpci_x86.h65 u16 bitmap; /* Available IRQs */ member
/arch/powerpc/platforms/cell/spufs/
Dsched.c53 DECLARE_BITMAP(bitmap, MAX_PRIO);
510 set_bit(ctx->prio, spu_prio->bitmap); in __spu_add_to_rq()
533 clear_bit(prio, spu_prio->bitmap); in __spu_del_from_rq()
843 best = find_first_bit(spu_prio->bitmap, prio); in grab_runnable_context()
1124 __clear_bit(i, spu_prio->bitmap); in spu_sched_init()
/arch/arm/mm/
Dinit.c159 phys_addr_t bitmap; in arm_bootmem_init() local
167 bitmap = memblock_alloc_base(boot_pages << PAGE_SHIFT, L1_CACHE_BYTES, in arm_bootmem_init()
176 init_bootmem_node(pgdat, __phys_to_pfn(bitmap), start_pfn, end_pfn); in arm_bootmem_init()
/arch/frv/kernel/
Dhead-uc-fr451.S71 sethi.p %hi(32768),gr4 ; allow for a maximal allocator bitmap

12