Lines Matching refs:s
6 int pcpu_freelist_init(struct pcpu_freelist *s) in pcpu_freelist_init() argument
10 s->freelist = alloc_percpu(struct pcpu_freelist_head); in pcpu_freelist_init()
11 if (!s->freelist) in pcpu_freelist_init()
15 struct pcpu_freelist_head *head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_init()
23 void pcpu_freelist_destroy(struct pcpu_freelist *s) in pcpu_freelist_destroy() argument
25 free_percpu(s->freelist); in pcpu_freelist_destroy()
37 void __pcpu_freelist_push(struct pcpu_freelist *s, in __pcpu_freelist_push() argument
40 struct pcpu_freelist_head *head = this_cpu_ptr(s->freelist); in __pcpu_freelist_push()
45 void pcpu_freelist_push(struct pcpu_freelist *s, in pcpu_freelist_push() argument
51 __pcpu_freelist_push(s, node); in pcpu_freelist_push()
55 void pcpu_freelist_populate(struct pcpu_freelist *s, void *buf, u32 elem_size, in pcpu_freelist_populate() argument
72 head = per_cpu_ptr(s->freelist, cpu); in pcpu_freelist_populate()
84 struct pcpu_freelist_node *__pcpu_freelist_pop(struct pcpu_freelist *s) in __pcpu_freelist_pop() argument
92 head = per_cpu_ptr(s->freelist, cpu); in __pcpu_freelist_pop()
109 struct pcpu_freelist_node *pcpu_freelist_pop(struct pcpu_freelist *s) in pcpu_freelist_pop() argument
115 ret = __pcpu_freelist_pop(s); in pcpu_freelist_pop()