Home
last modified time | relevance | path

Searched refs:nr_notes (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/kernel/
H A Dwatch_queue.c115 note = find_first_bit(wqueue->notes_bitmap, wqueue->nr_notes); in post_one_notification()
116 if (note >= wqueue->nr_notes) in post_one_notification()
238 long watch_queue_set_size(struct pipe_inode_info *pipe, unsigned int nr_notes) in watch_queue_set_size() argument
251 if (nr_notes < 1 || in watch_queue_set_size()
252 nr_notes > 512) /* TODO: choose a better hard limit */ in watch_queue_set_size()
255 nr_pages = (nr_notes + WATCH_QUEUE_NOTES_PER_PAGE - 1); in watch_queue_set_size()
267 nr_notes = nr_pages * WATCH_QUEUE_NOTES_PER_PAGE; in watch_queue_set_size()
268 ret = pipe_resize_ring(pipe, roundup_pow_of_two(nr_notes)); in watch_queue_set_size()
284 bitmap = bitmap_alloc(nr_notes, GFP_KERNEL); in watch_queue_set_size()
288 bitmap_fill(bitmap, nr_notes); in watch_queue_set_size()
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dwatch_queue.c119 note = find_first_bit(wqueue->notes_bitmap, wqueue->nr_notes); in post_one_notification()
120 if (note >= wqueue->nr_notes) in post_one_notification()
242 long watch_queue_set_size(struct pipe_inode_info *pipe, unsigned int nr_notes) in watch_queue_set_size() argument
256 if (nr_notes < 1 || in watch_queue_set_size()
257 nr_notes > 512) /* TODO: choose a better hard limit */ in watch_queue_set_size()
260 nr_pages = (nr_notes + WATCH_QUEUE_NOTES_PER_PAGE - 1); in watch_queue_set_size()
272 nr_notes = nr_pages * WATCH_QUEUE_NOTES_PER_PAGE; in watch_queue_set_size()
273 ret = pipe_resize_ring(pipe, roundup_pow_of_two(nr_notes)); in watch_queue_set_size()
289 bmsize = (nr_notes + BITS_PER_LONG - 1) / BITS_PER_LONG; in watch_queue_set_size()
299 wqueue->nr_notes in watch_queue_set_size()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dwatch_queue.h47 unsigned int nr_notes; /* Number of notes */ member
/kernel/linux/linux-5.10/include/linux/
H A Dwatch_queue.h47 unsigned int nr_notes; /* Number of notes */ member

Completed in 3 milliseconds