Home
last modified time | relevance | path

Searched refs:freelist (Results 1 – 16 of 16) sorted by relevance

/drivers/iommu/amd/
Dio_pgtable.c77 static void free_page_list(struct page *freelist) in free_page_list() argument
79 while (freelist != NULL) { in free_page_list()
80 unsigned long p = (unsigned long)page_address(freelist); in free_page_list()
82 freelist = freelist->freelist; in free_page_list()
87 static struct page *free_pt_page(unsigned long pt, struct page *freelist) in free_pt_page() argument
91 p->freelist = freelist; in free_pt_page()
97 static struct page *free_pt_##LVL (unsigned long __pt, struct page *freelist) \
116 freelist = FN(p, freelist); \
119 return free_pt_page((unsigned long)pt, freelist); \
129 struct page *freelist) in DEFINE_FREE_PT_FN()
[all …]
/drivers/scsi/elx/efct/
Defct_io.c16 struct list_head freelist; member
33 INIT_LIST_HEAD(&io_pool->freelist); in efct_io_pool_create()
70 list_add_tail(&io->list_entry, &io_pool->freelist); in efct_io_pool_create()
116 if (!list_empty(&io_pool->freelist)) { in efct_io_pool_io_alloc()
117 io = list_first_entry(&io_pool->freelist, struct efct_io, in efct_io_pool_io_alloc()
161 list_add(&io->list_entry, &io_pool->freelist); in efct_io_pool_io_free()
Defct_hw.c2071 INIT_LIST_HEAD(&reqtag_pool->freelist); in efct_hw_reqtag_pool_alloc()
2084 list_add_tail(&wqcb->list_entry, &reqtag_pool->freelist); in efct_hw_reqtag_pool_alloc()
2104 if (!list_empty(&reqtag_pool->freelist)) { in efct_hw_reqtag_alloc()
2105 wqcb = list_first_entry(&reqtag_pool->freelist, in efct_hw_reqtag_alloc()
2134 list_add(&wqcb->list_entry, &hw->wq_reqtag_pool->freelist); in efct_hw_reqtag_free()
Defct_hw.h343 struct list_head freelist; member
/drivers/md/bcache/
Dutil.h248 type *freelist; \
254 typeof((array)->freelist) _ret = (array)->freelist; \
257 (array)->freelist = *((typeof((array)->freelist) *) _ret);\
264 typeof((array)->freelist) _ptr = ptr; \
266 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \
267 (array)->freelist = _ptr; \
272 typeof((array)->freelist) _i; \
275 (array)->freelist = NULL; \
283 #define array_freelist_empty(array) ((array)->freelist == NULL)
Dwriteback.c672 if (array_freelist_empty(&buf->freelist)) in refill_full_stripes()
708 if (array_freelist_empty(&buf->freelist)) in refill_dirty()
Dbtree.c2631 w = array_alloc(&buf->freelist); in refill_keybuf_fn()
2641 array_free(&buf->freelist, w); in refill_keybuf_fn()
2645 if (array_freelist_empty(&buf->freelist)) in refill_keybuf_fn()
2698 array_free(&buf->freelist, w); in __bch_keybuf_del()
2784 array_allocator_init(&buf->freelist); in bch_keybuf_init()
Dbcache.h246 DECLARE_ARRAY_ALLOCATOR(struct keybuf_key, freelist, KEYBUF_NR);
/drivers/nvdimm/
Dbtt.c393 arena->freelist[lane].sub = 1 - arena->freelist[lane].sub; in btt_flog_write()
394 if (++(arena->freelist[lane].seq) == 4) in btt_flog_write()
395 arena->freelist[lane].seq = 1; in btt_flog_write()
397 arena->freelist[lane].has_err = 1; in btt_flog_write()
398 arena->freelist[lane].block = ent_lba(le32_to_cpu(ent->old_map)); in btt_flog_write()
510 if (arena->freelist[lane].has_err) { in arena_clear_freelist_error()
512 u32 lba = arena->freelist[lane].block; in arena_clear_freelist_error()
528 arena->freelist[lane].has_err = 0; in arena_clear_freelist_error()
541 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
543 if (!arena->freelist) in btt_freelist_init()
[all …]
Dbtt.h187 struct free_entry *freelist; member
/drivers/iommu/intel/
Diommu.c1210 struct page *freelist) in dma_pte_list_pagetables() argument
1215 pg->freelist = freelist; in dma_pte_list_pagetables()
1216 freelist = pg; in dma_pte_list_pagetables()
1219 return freelist; in dma_pte_list_pagetables()
1224 freelist = dma_pte_list_pagetables(domain, level - 1, in dma_pte_list_pagetables()
1225 pte, freelist); in dma_pte_list_pagetables()
1229 return freelist; in dma_pte_list_pagetables()
1236 struct page *freelist) in dma_pte_clear_level() argument
1255 freelist = dma_pte_list_pagetables(domain, level - 1, pte, freelist); in dma_pte_clear_level()
1263 freelist = dma_pte_clear_level(domain, level - 1, in dma_pte_clear_level()
[all …]
/drivers/usb/musb/
Dcppi_dma.c63 struct cppi_descriptor *bd = c->freelist; in cppi_bd_alloc()
66 c->freelist = bd->next; in cppi_bd_alloc()
75 bd->next = c->freelist; in cppi_bd_free()
76 c->freelist = bd; in cppi_bd_free()
121 c->freelist = NULL; in cppi_pool_init()
609 bd = tx->freelist; in cppi_next_tx_segment()
664 musb_writel(&tx_ram->tx_head, 0, (u32)tx->freelist->dma); in cppi_next_tx_segment()
Dcppi_dma.h95 struct cppi_descriptor *freelist; member
/drivers/iommu/
Ddma-iommu.c76 struct page *freelist = (struct page *)data; in iommu_dma_entry_dtor() local
78 while (freelist) { in iommu_dma_entry_dtor()
79 unsigned long p = (unsigned long)page_address(freelist); in iommu_dma_entry_dtor()
81 freelist = freelist->freelist; in iommu_dma_entry_dtor()
531 (unsigned long)gather->freelist); in iommu_dma_free_iova()
/drivers/net/ethernet/cavium/liquidio/
Docteon_device.c1034 struct list_head freelist, *temp, *tmp2; in octeon_delete_dispatch_list() local
1036 INIT_LIST_HEAD(&freelist); in octeon_delete_dispatch_list()
1046 list_move_tail(temp, &freelist); in octeon_delete_dispatch_list()
1056 list_for_each_safe(temp, tmp2, &freelist) { in octeon_delete_dispatch_list()
/drivers/md/
Ddm-writecache.c116 struct list_head freelist; member
696 list_add_tail(&e->lru, &wc->freelist); in writecache_add_to_freelist()
734 if (unlikely(list_empty(&wc->freelist))) in writecache_pop_from_freelist()
736 e = container_of(wc->freelist.next, struct wc_entry, lru); in writecache_pop_from_freelist()
777 wc->freelist.next = LIST_POISON1; in writecache_poison_lists()
778 wc->freelist.prev = LIST_POISON2; in writecache_poison_lists()
1024 INIT_LIST_HEAD(&wc->freelist); in writecache_resume()