Searched refs:freelist (Results 1 – 12 of 12) sorted by relevance
/drivers/md/bcache/ |
D | util.h | 250 type *freelist; \ 256 typeof((array)->freelist) _ret = (array)->freelist; \ 259 (array)->freelist = *((typeof((array)->freelist) *) _ret);\ 266 typeof((array)->freelist) _ptr = ptr; \ 268 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \ 269 (array)->freelist = _ptr; \ 274 typeof((array)->freelist) _i; \ 277 (array)->freelist = NULL; \ 285 #define array_freelist_empty(array) ((array)->freelist == NULL)
|
D | writeback.c | 635 if (array_freelist_empty(&buf->freelist)) in refill_full_stripes() 671 if (array_freelist_empty(&buf->freelist)) in refill_dirty()
|
D | btree.c | 2631 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()
|
D | bcache.h | 246 DECLARE_ARRAY_ALLOCATOR(struct keybuf_key, freelist, KEYBUF_NR);
|
/drivers/nvdimm/ |
D | btt.c | 392 arena->freelist[lane].sub = 1 - arena->freelist[lane].sub; in btt_flog_write() 393 if (++(arena->freelist[lane].seq) == 4) in btt_flog_write() 394 arena->freelist[lane].seq = 1; in btt_flog_write() 396 arena->freelist[lane].has_err = 1; in btt_flog_write() 397 arena->freelist[lane].block = ent_lba(le32_to_cpu(ent->old_map)); in btt_flog_write() 509 if (arena->freelist[lane].has_err) { in arena_clear_freelist_error() 511 u32 lba = arena->freelist[lane].block; in arena_clear_freelist_error() 527 arena->freelist[lane].has_err = 0; in arena_clear_freelist_error() 540 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init() 542 if (!arena->freelist) in btt_freelist_init() [all …]
|
D | btt.h | 188 struct free_entry *freelist; member
|
/drivers/iommu/amd/ |
D | iommu.c | 1400 static void free_page_list(struct page *freelist) in free_page_list() argument 1402 while (freelist != NULL) { in free_page_list() 1403 unsigned long p = (unsigned long)page_address(freelist); in free_page_list() 1404 freelist = freelist->freelist; in free_page_list() 1409 static struct page *free_pt_page(unsigned long pt, struct page *freelist) in free_pt_page() argument 1413 p->freelist = freelist; in free_pt_page() 1419 static struct page *free_pt_##LVL (unsigned long __pt, struct page *freelist) \ 1438 freelist = FN(p, freelist); \ 1441 return free_pt_page((unsigned long)pt, freelist); \ 1451 struct page *freelist) in DEFINE_FREE_PT_FN() [all …]
|
/drivers/iommu/intel/ |
D | iommu.c | 1214 struct page *freelist) in dma_pte_list_pagetables() argument 1219 pg->freelist = freelist; in dma_pte_list_pagetables() 1220 freelist = pg; in dma_pte_list_pagetables() 1223 return freelist; in dma_pte_list_pagetables() 1228 freelist = dma_pte_list_pagetables(domain, level - 1, in dma_pte_list_pagetables() 1229 pte, freelist); in dma_pte_list_pagetables() 1233 return freelist; in dma_pte_list_pagetables() 1240 struct page *freelist) in dma_pte_clear_level() argument 1261 freelist = dma_pte_list_pagetables(domain, level - 1, pte, freelist); in dma_pte_clear_level() 1269 freelist = dma_pte_clear_level(domain, level - 1, in dma_pte_clear_level() [all …]
|
/drivers/usb/musb/ |
D | cppi_dma.c | 63 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()
|
D | cppi_dma.h | 95 struct cppi_descriptor *freelist; member
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_device.c | 1035 struct list_head freelist, *temp, *tmp2; in octeon_delete_dispatch_list() local 1037 INIT_LIST_HEAD(&freelist); in octeon_delete_dispatch_list() 1047 list_move_tail(temp, &freelist); in octeon_delete_dispatch_list() 1057 list_for_each_safe(temp, tmp2, &freelist) { in octeon_delete_dispatch_list()
|
/drivers/md/ |
D | dm-writecache.c | 113 struct list_head freelist; member 674 list_add_tail(&e->lru, &wc->freelist); in writecache_add_to_freelist() 712 if (unlikely(list_empty(&wc->freelist))) in writecache_pop_from_freelist() 714 e = container_of(wc->freelist.next, struct wc_entry, lru); in writecache_pop_from_freelist() 755 wc->freelist.next = LIST_POISON1; in writecache_poison_lists() 756 wc->freelist.prev = LIST_POISON2; in writecache_poison_lists() 1002 INIT_LIST_HEAD(&wc->freelist); in writecache_resume()
|