Lines Matching refs:loop_device

92 static int transfer_xor(struct loop_device *lo, int cmd,  in transfer_xor()
121 static int xor_init(struct loop_device *lo, const struct loop_info64 *info) in xor_init()
165 static loff_t get_loop_size(struct loop_device *lo, struct file *file) in get_loop_size()
170 static void __loop_update_dio(struct loop_device *lo, bool dio) in __loop_update_dio()
230 figure_loop_size(struct loop_device *lo, loff_t offset, loff_t sizelimit) in figure_loop_size()
250 lo_do_transfer(struct loop_device *lo, int cmd, in lo_do_transfer()
289 static int lo_write_simple(struct loop_device *lo, struct request *rq, in lo_write_simple()
311 static int lo_write_transfer(struct loop_device *lo, struct request *rq, in lo_write_transfer()
341 static int lo_read_simple(struct loop_device *lo, struct request *rq, in lo_read_simple()
370 static int lo_read_transfer(struct loop_device *lo, struct request *rq, in lo_read_transfer()
420 static int lo_discard(struct loop_device *lo, struct request *rq, loff_t pos) in lo_discard()
444 static int lo_req_flush(struct loop_device *lo, struct request *rq) in lo_req_flush()
510 static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd, in lo_rw_aio()
582 static int do_req_filebacked(struct loop_device *lo, struct request *rq) in do_req_filebacked()
622 static inline void loop_update_dio(struct loop_device *lo) in loop_update_dio()
628 static void loop_reread_partitions(struct loop_device *lo, in loop_reread_partitions()
653 struct loop_device *l; in loop_validate_file()
677 static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, in loop_change_fd()
744 ssize_t (*callback)(struct loop_device *, char *)) in loop_attr_show() argument
747 struct loop_device *lo = disk->private_data; in loop_attr_show()
753 static ssize_t loop_attr_##_name##_show(struct loop_device *, char *); \
762 static ssize_t loop_attr_backing_file_show(struct loop_device *lo, char *buf) in loop_attr_backing_file_show()
784 static ssize_t loop_attr_offset_show(struct loop_device *lo, char *buf) in loop_attr_offset_show()
789 static ssize_t loop_attr_sizelimit_show(struct loop_device *lo, char *buf) in loop_attr_sizelimit_show()
794 static ssize_t loop_attr_autoclear_show(struct loop_device *lo, char *buf) in loop_attr_autoclear_show()
801 static ssize_t loop_attr_partscan_show(struct loop_device *lo, char *buf) in loop_attr_partscan_show()
808 static ssize_t loop_attr_dio_show(struct loop_device *lo, char *buf) in loop_attr_dio_show()
837 static void loop_sysfs_init(struct loop_device *lo) in loop_sysfs_init()
843 static void loop_sysfs_exit(struct loop_device *lo) in loop_sysfs_exit()
850 static void loop_config_discard(struct loop_device *lo) in loop_config_discard()
880 static void loop_unprepare_queue(struct loop_device *lo) in loop_unprepare_queue()
892 static int loop_prepare_queue(struct loop_device *lo) in loop_prepare_queue()
903 static void loop_update_rotational(struct loop_device *lo) in loop_update_rotational()
921 static int loop_set_fd(struct loop_device *lo, fmode_t mode, in loop_set_fd()
1048 loop_release_xfer(struct loop_device *lo) in loop_release_xfer()
1064 loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer, in loop_init_xfer()
1084 static int __loop_clr_fd(struct loop_device *lo, bool release) in __loop_clr_fd()
1195 static int loop_clr_fd(struct loop_device *lo) in loop_clr_fd()
1228 loop_set_status(struct loop_device *lo, const struct loop_info64 *info) in loop_set_status()
1349 loop_get_status(struct loop_device *lo, struct loop_info64 *info) in loop_get_status()
1445 loop_set_status_old(struct loop_device *lo, const struct loop_info __user *arg) in loop_set_status_old()
1457 loop_set_status64(struct loop_device *lo, const struct loop_info64 __user *arg) in loop_set_status64()
1467 loop_get_status_old(struct loop_device *lo, struct loop_info __user *arg) { in loop_get_status_old()
1484 loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) { in loop_get_status64()
1497 static int loop_set_capacity(struct loop_device *lo) in loop_set_capacity()
1505 static int loop_set_dio(struct loop_device *lo, unsigned long arg) in loop_set_dio()
1519 static int loop_set_block_size(struct loop_device *lo, unsigned long arg) in loop_set_block_size()
1556 static int lo_simple_ioctl(struct loop_device *lo, unsigned int cmd, in lo_simple_ioctl()
1584 struct loop_device *lo = bdev->bd_disk->private_data; in lo_ioctl()
1717 loop_set_status_compat(struct loop_device *lo, in loop_set_status_compat()
1730 loop_get_status_compat(struct loop_device *lo, in loop_get_status_compat()
1747 struct loop_device *lo = bdev->bd_disk->private_data; in lo_compat_ioctl()
1781 struct loop_device *lo; in lo_open()
1801 struct loop_device *lo; in lo_release()
1865 struct loop_device *lo = ptr; in unregister_transfer_cb()
1896 struct loop_device *lo = rq->q->queuedata; in loop_queue_rq()
1931 struct loop_device *lo = rq->q->queuedata; in loop_handle_cmd()
1971 static int loop_add(struct loop_device **l, int i) in loop_add()
1973 struct loop_device *lo; in loop_add()
2077 static void loop_remove(struct loop_device *lo) in loop_remove()
2088 struct loop_device *lo = ptr; in find_free_cb()
2089 struct loop_device **l = data; in find_free_cb()
2098 static int loop_lookup(struct loop_device **l, int i) in loop_lookup()
2100 struct loop_device *lo; in loop_lookup()
2126 struct loop_device *lo; in loop_probe()
2147 struct loop_device *lo; in loop_control_ioctl()
2212 struct loop_device *lo; in loop_init()
2286 struct loop_device *lo = ptr; in loop_exit_cb()