Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 3 of 3) sorted by relevance

/kernel/dma/
Dswiotlb.c310 mem->slots[i].list = IO_TLB_SEGSIZE - io_tlb_offset(i); in swiotlb_init_io_tlb_mem()
311 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_mem()
312 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_mem()
395 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap()
396 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap()
397 if (!mem->slots) { in swiotlb_init_remap()
485 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late()
486 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late()
487 if (!mem->slots) in swiotlb_init_late()
521 slots_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), mem->nslabs)); in swiotlb_exit()
[all …]
/kernel/events/
Dhw_breakpoint_test.c15 #define TEST_REQUIRES_BP_SLOTS(test, slots) \ argument
17 if ((slots) > get_test_bp_slots()) { \
18 kunit_skip((test), "Requires breakpoint slots: %d > %d", slots, \
57 static int slots; in get_test_bp_slots() local
59 if (!slots) in get_test_bp_slots()
60 slots = hw_breakpoint_slots(TYPE_DATA); in get_test_bp_slots()
62 return slots; in get_test_bp_slots()
/kernel/
Dkprobes.c98 #define KPROBE_INSN_PAGE_SIZE(slots) \ argument
100 (sizeof(char) * (slots)))