Lines Matching refs:prsrc
245 typedef void (rsrc_put_fn)(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc);
8440 static void io_rsrc_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc) in io_rsrc_file_put() argument
8442 struct file *file = prsrc->file; in io_rsrc_file_put()
8507 struct io_rsrc_put *prsrc, *tmp; in __io_rsrc_put_work() local
8509 list_for_each_entry_safe(prsrc, tmp, &ref_node->rsrc_list, list) { in __io_rsrc_put_work()
8510 list_del(&prsrc->list); in __io_rsrc_put_work()
8512 if (prsrc->tag) { in __io_rsrc_put_work()
8517 io_fill_cqe_aux(ctx, prsrc->tag, 0, 0); in __io_rsrc_put_work()
8524 rsrc_data->do_put(ctx, prsrc); in __io_rsrc_put_work()
8525 kfree(prsrc); in __io_rsrc_put_work()
8637 struct io_rsrc_put *prsrc; in io_queue_rsrc_removal() local
8639 prsrc = kzalloc(sizeof(*prsrc), GFP_KERNEL); in io_queue_rsrc_removal()
8640 if (!prsrc) in io_queue_rsrc_removal()
8643 prsrc->tag = *tag_slot; in io_queue_rsrc_removal()
8645 prsrc->rsrc = rsrc; in io_queue_rsrc_removal()
8646 list_add(&prsrc->list, &node->rsrc_list); in io_queue_rsrc_removal()
9090 static void io_rsrc_buf_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc) in io_rsrc_buf_put() argument
9092 io_buffer_unmap(ctx, &prsrc->buf); in io_rsrc_buf_put()
9093 prsrc->buf = NULL; in io_rsrc_buf_put()