Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 2 of 2) sorted by relevance

/lib/reed_solomon/
Dtest_rslib.c98 static void free_ws(struct wspace *ws) in free_ws() argument
100 if (!ws) in free_ws()
103 kfree(ws->errlocs); in free_ws()
104 kfree(ws->c); in free_ws()
105 kfree(ws); in free_ws()
111 struct wspace *ws; in alloc_ws() local
114 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_ws()
115 if (!ws) in alloc_ws()
118 ws->c = kmalloc_array(2 * (nn + nroots), in alloc_ws()
120 if (!ws->c) in alloc_ws()
[all …]
/lib/
Dsbitmap.c395 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node()
396 if (!sbq->ws) { in sbitmap_queue_init_node()
403 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node()
404 atomic_set(&sbq->ws[i].wait_cnt, sbq->wake_batch); in sbitmap_queue_init_node()
427 atomic_set(&sbq->ws[i].wait_cnt, 1); in sbitmap_queue_update_wake_batch()
514 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbq_wake_ptr() local
516 if (waitqueue_active(&ws->wait)) { in sbq_wake_ptr()
519 return ws; in sbq_wake_ptr()
530 struct sbq_wait_state *ws; in __sbq_wake_up() local
534 ws = sbq_wake_ptr(sbq); in __sbq_wake_up()
[all …]