Lines Matching full:chunk

14 	union lower_chunk *chunk;  in get_lower_chunk()  local
21 chunk = pid_list->lower_list; in get_lower_chunk()
22 pid_list->lower_list = chunk->next; in get_lower_chunk()
25 chunk->next = NULL; in get_lower_chunk()
33 return chunk; in get_lower_chunk()
38 union upper_chunk *chunk; in get_upper_chunk() local
45 chunk = pid_list->upper_list; in get_upper_chunk()
46 pid_list->upper_list = chunk->next; in get_upper_chunk()
49 chunk->next = NULL; in get_upper_chunk()
57 return chunk; in get_upper_chunk()
61 union lower_chunk *chunk) in put_lower_chunk() argument
65 chunk->next = pid_list->lower_list; in put_lower_chunk()
66 pid_list->lower_list = chunk; in put_lower_chunk()
71 union upper_chunk *chunk) in put_upper_chunk() argument
75 chunk->next = pid_list->upper_list; in put_upper_chunk()
76 pid_list->upper_list = chunk; in put_upper_chunk()
80 static inline bool upper_empty(union upper_chunk *chunk) in upper_empty() argument
83 * If chunk->data has no lower chunks, it will be the same in upper_empty()
88 int bit = find_first_bit((unsigned long *)chunk->data, in upper_empty()
89 sizeof(chunk->data) * 8); in upper_empty()
90 return bit >= sizeof(chunk->data) * 8; in upper_empty()
355 union upper_chunk *chunk; in pid_list_refill_irq() local
357 chunk = kzalloc(sizeof(*chunk), GFP_NOWAIT); in pid_list_refill_irq()
358 if (!chunk) in pid_list_refill_irq()
360 *upper_next = chunk; in pid_list_refill_irq()
361 upper_next = &chunk->next; in pid_list_refill_irq()
366 union lower_chunk *chunk; in pid_list_refill_irq() local
368 chunk = kzalloc(sizeof(*chunk), GFP_NOWAIT); in pid_list_refill_irq()
369 if (!chunk) in pid_list_refill_irq()
371 *lower_next = chunk; in pid_list_refill_irq()
372 lower_next = &chunk->next; in pid_list_refill_irq()
428 union upper_chunk *chunk; in trace_pid_list_alloc() local
430 chunk = kzalloc(sizeof(*chunk), GFP_KERNEL); in trace_pid_list_alloc()
431 if (!chunk) in trace_pid_list_alloc()
433 chunk->next = pid_list->upper_list; in trace_pid_list_alloc()
434 pid_list->upper_list = chunk; in trace_pid_list_alloc()
439 union lower_chunk *chunk; in trace_pid_list_alloc() local
441 chunk = kzalloc(sizeof(*chunk), GFP_KERNEL); in trace_pid_list_alloc()
442 if (!chunk) in trace_pid_list_alloc()
444 chunk->next = pid_list->lower_list; in trace_pid_list_alloc()
445 pid_list->lower_list = chunk; in trace_pid_list_alloc()
470 union lower_chunk *chunk; in trace_pid_list_free() local
472 chunk = pid_list->lower_list; in trace_pid_list_free()
474 kfree(chunk); in trace_pid_list_free()
478 union upper_chunk *chunk; in trace_pid_list_free() local
480 chunk = pid_list->upper_list; in trace_pid_list_free()
482 kfree(chunk); in trace_pid_list_free()