Lines Matching refs:loop_device
107 static int loop_global_lock_killable(struct loop_device *lo, bool global) in loop_global_lock_killable()
128 static void loop_global_unlock(struct loop_device *lo, bool global) in loop_global_unlock()
138 static int transfer_xor(struct loop_device *lo, int cmd, in transfer_xor()
167 static int xor_init(struct loop_device *lo, const struct loop_info64 *info) in xor_init()
211 static loff_t get_loop_size(struct loop_device *lo, struct file *file) in get_loop_size()
216 static void __loop_update_dio(struct loop_device *lo, bool dio) in __loop_update_dio()
285 static void loop_set_size(struct loop_device *lo, loff_t size) in loop_set_size()
292 lo_do_transfer(struct loop_device *lo, int cmd, in lo_do_transfer()
331 static int lo_write_simple(struct loop_device *lo, struct request *rq, in lo_write_simple()
353 static int lo_write_transfer(struct loop_device *lo, struct request *rq, in lo_write_transfer()
383 static int lo_read_simple(struct loop_device *lo, struct request *rq, in lo_read_simple()
412 static int lo_read_transfer(struct loop_device *lo, struct request *rq, in lo_read_transfer()
462 static int lo_fallocate(struct loop_device *lo, struct request *rq, loff_t pos, in lo_fallocate()
489 static int lo_req_flush(struct loop_device *lo, struct request *rq) in lo_req_flush()
554 static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd, in lo_rw_aio()
623 static int do_req_filebacked(struct loop_device *lo, struct request *rq) in do_req_filebacked()
671 static inline void loop_update_dio(struct loop_device *lo) in loop_update_dio()
677 static void loop_reread_partitions(struct loop_device *lo) in loop_reread_partitions()
703 struct loop_device *l; in loop_validate_file()
729 static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, in loop_change_fd()
815 ssize_t (*callback)(struct loop_device *, char *)) in loop_attr_show() argument
818 struct loop_device *lo = disk->private_data; in loop_attr_show()
824 static ssize_t loop_attr_##_name##_show(struct loop_device *, char *); \
833 static ssize_t loop_attr_backing_file_show(struct loop_device *lo, char *buf) in loop_attr_backing_file_show()
855 static ssize_t loop_attr_offset_show(struct loop_device *lo, char *buf) in loop_attr_offset_show()
860 static ssize_t loop_attr_sizelimit_show(struct loop_device *lo, char *buf) in loop_attr_sizelimit_show()
865 static ssize_t loop_attr_autoclear_show(struct loop_device *lo, char *buf) in loop_attr_autoclear_show()
872 static ssize_t loop_attr_partscan_show(struct loop_device *lo, char *buf) in loop_attr_partscan_show()
879 static ssize_t loop_attr_dio_show(struct loop_device *lo, char *buf) in loop_attr_dio_show()
908 static void loop_sysfs_init(struct loop_device *lo) in loop_sysfs_init()
914 static void loop_sysfs_exit(struct loop_device *lo) in loop_sysfs_exit()
921 static void loop_config_discard(struct loop_device *lo) in loop_config_discard()
981 struct loop_device *lo;
1002 static void loop_queue_work(struct loop_device *lo, struct loop_cmd *cmd) in loop_queue_work()
1072 static void loop_update_rotational(struct loop_device *lo) in loop_update_rotational()
1091 loop_release_xfer(struct loop_device *lo) in loop_release_xfer()
1107 loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer, in loop_init_xfer()
1136 loop_set_status_from_info(struct loop_device *lo, in loop_set_status_from_info()
1196 static int loop_configure(struct loop_device *lo, fmode_t mode, in loop_configure()
1344 static int __loop_clr_fd(struct loop_device *lo, bool release) in __loop_clr_fd()
1481 static int loop_clr_fd(struct loop_device *lo) in loop_clr_fd()
1514 loop_set_status(struct loop_device *lo, const struct loop_info64 *info) in loop_set_status()
1596 loop_get_status(struct loop_device *lo, struct loop_info64 *info) in loop_get_status()
1692 loop_set_status_old(struct loop_device *lo, const struct loop_info __user *arg) in loop_set_status_old()
1704 loop_set_status64(struct loop_device *lo, const struct loop_info64 __user *arg) in loop_set_status64()
1714 loop_get_status_old(struct loop_device *lo, struct loop_info __user *arg) { in loop_get_status_old()
1731 loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) { in loop_get_status64()
1744 static int loop_set_capacity(struct loop_device *lo) in loop_set_capacity()
1757 static int loop_set_dio(struct loop_device *lo, unsigned long arg) in loop_set_dio()
1771 static int loop_set_block_size(struct loop_device *lo, unsigned long arg) in loop_set_block_size()
1809 static int lo_simple_ioctl(struct loop_device *lo, unsigned int cmd, in lo_simple_ioctl()
1837 struct loop_device *lo = bdev->bd_disk->private_data; in lo_ioctl()
1988 loop_set_status_compat(struct loop_device *lo, in loop_set_status_compat()
2001 loop_get_status_compat(struct loop_device *lo, in loop_get_status_compat()
2018 struct loop_device *lo = bdev->bd_disk->private_data; in lo_compat_ioctl()
2053 struct loop_device *lo = bdev->bd_disk->private_data; in lo_open()
2069 struct loop_device *lo = disk->private_data; in lo_release()
2189 struct loop_device *lo = rq->q->queuedata; in loop_queue_rq()
2231 struct loop_device *lo = rq->q->queuedata; in loop_handle_cmd()
2274 static void loop_set_timer(struct loop_device *lo) in loop_set_timer()
2280 struct list_head *cmd_list, struct loop_device *lo) in loop_process_work()
2322 struct loop_device *lo = in loop_rootcg_workfn()
2323 container_of(work, struct loop_device, rootcg_work); in loop_rootcg_workfn()
2329 struct loop_device *lo = container_of(timer, struct loop_device, timer); in loop_free_idle_workers()
2355 struct loop_device *lo; in loop_add()
2468 static void loop_remove(struct loop_device *lo) in loop_remove()
2493 struct loop_device *lo; in loop_control_remove()
2541 struct loop_device *lo; in loop_control_get_free()
2646 struct loop_device *lo; in loop_exit()