Lines Matching refs:tcmu_dev

99 struct tcmu_dev;
105 struct tcmu_dev *udev;
110 struct tcmu_dev { struct
173 #define TCMU_DEV(_se_dev) container_of(_se_dev, struct tcmu_dev, se_dev) argument
177 struct tcmu_dev *tcmu_dev; member
303 struct tcmu_dev *udev = nl_cmd->udev; in tcmu_fail_netlink_cmd()
372 struct tcmu_dev *udev = NULL; in tcmu_genl_cmd_done()
496 struct tcmu_dev *udev = tcmu_cmd->tcmu_dev; in tcmu_cmd_free_data()
503 static inline int tcmu_get_empty_block(struct tcmu_dev *udev, in tcmu_get_empty_block()
549 static int tcmu_get_empty_blocks(struct tcmu_dev *udev, in tcmu_get_empty_blocks()
577 uint32_t blk_size = cmd->tcmu_dev->data_blk_size; in tcmu_cmd_set_block_cnts()
591 static int new_block_to_iov(struct tcmu_dev *udev, struct tcmu_cmd *cmd, in new_block_to_iov()
617 static void tcmu_setup_iovs(struct tcmu_dev *udev, struct tcmu_cmd *cmd, in tcmu_setup_iovs()
631 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_alloc_cmd()
640 tcmu_cmd->tcmu_dev = udev; in tcmu_alloc_cmd()
697 static inline void tcmu_copy_data(struct tcmu_dev *udev, in tcmu_copy_data()
769 static void scatter_data_area(struct tcmu_dev *udev, struct tcmu_cmd *tcmu_cmd, in scatter_data_area()
778 static void gather_data_area(struct tcmu_dev *udev, struct tcmu_cmd *tcmu_cmd, in gather_data_area()
815 static bool is_ring_space_avail(struct tcmu_dev *udev, size_t cmd_size) in is_ring_space_avail()
849 static int tcmu_alloc_data_space(struct tcmu_dev *udev, struct tcmu_cmd *cmd, in tcmu_alloc_data_space()
921 tcmu_cmd->tcmu_dev->name, tmo / MSEC_PER_SEC); in tcmu_setup_cmd_timer()
926 struct tcmu_dev *udev = tcmu_cmd->tcmu_dev; in add_to_qfull_queue()
950 static uint32_t ring_insert_padding(struct tcmu_dev *udev, size_t cmd_size) in ring_insert_padding()
981 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_unplug_device()
989 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_plug_device()
1009 struct tcmu_dev *udev = tcmu_cmd->tcmu_dev; in queue_cmd_ring()
1153 queue_tmr_ring(struct tcmu_dev *udev, struct tcmu_tmr *tmr) in queue_tmr_ring()
1201 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_queue_cmd()
1259 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_tmr_notify()
1319 struct tcmu_dev *udev = cmd->tcmu_dev; in tcmu_handle_completion()
1384 static int tcmu_run_tmr_queue(struct tcmu_dev *udev) in tcmu_run_tmr_queue()
1416 static bool tcmu_handle_completions(struct tcmu_dev *udev) in tcmu_handle_completions()
1499 cmd->cmd_id, cmd->tcmu_dev->name); in tcmu_check_expired_ring_cmd()
1512 cmd, cmd->tcmu_dev->name); in tcmu_check_expired_queue_cmd()
1522 static void tcmu_device_timedout(struct tcmu_dev *udev) in tcmu_device_timedout()
1534 struct tcmu_dev *udev = from_timer(udev, t, cmd_timer); in tcmu_cmd_timedout()
1542 struct tcmu_dev *udev = from_timer(udev, t, qfull_timer); in tcmu_qfull_timedout()
1570 struct tcmu_dev *udev; in tcmu_alloc_device()
1572 udev = kzalloc(sizeof(struct tcmu_dev), GFP_KERNEL); in tcmu_alloc_device()
1611 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_dev_call_rcu()
1627 static u32 tcmu_blocks_release(struct tcmu_dev *udev, unsigned long first, in tcmu_blocks_release()
1647 static void tcmu_remove_all_queued_tmr(struct tcmu_dev *udev) in tcmu_remove_all_queued_tmr()
1659 struct tcmu_dev *udev = container_of(kref, struct tcmu_dev, kref); in tcmu_dev_kref_release()
1695 static void run_qfull_queue(struct tcmu_dev *udev, bool fail) in run_qfull_queue()
1757 struct tcmu_dev *udev = container_of(info, struct tcmu_dev, uio_info); in tcmu_irqcontrol()
1773 struct tcmu_dev *udev = vma->vm_private_data; in tcmu_find_mem_index()
1784 static struct page *tcmu_try_get_data_page(struct tcmu_dev *udev, uint32_t dpi) in tcmu_try_get_data_page()
1808 struct tcmu_dev *udev = vma->vm_private_data; in tcmu_vma_open()
1817 struct tcmu_dev *udev = vma->vm_private_data; in tcmu_vma_close()
1827 struct tcmu_dev *udev = vmf->vma->vm_private_data; in tcmu_vma_fault()
1870 struct tcmu_dev *udev = container_of(info, struct tcmu_dev, uio_info); in tcmu_mmap()
1888 struct tcmu_dev *udev = container_of(info, struct tcmu_dev, uio_info); in tcmu_open()
1903 struct tcmu_dev *udev = container_of(info, struct tcmu_dev, uio_info); in tcmu_release()
1912 static int tcmu_init_genl_cmd_reply(struct tcmu_dev *udev, int cmd) in tcmu_init_genl_cmd_reply()
1950 static void tcmu_destroy_genl_cmd_reply(struct tcmu_dev *udev) in tcmu_destroy_genl_cmd_reply()
1968 static int tcmu_wait_genl_cmd_reply(struct tcmu_dev *udev) in tcmu_wait_genl_cmd_reply()
1990 static int tcmu_netlink_event_init(struct tcmu_dev *udev, in tcmu_netlink_event_init()
2027 static int tcmu_netlink_event_send(struct tcmu_dev *udev, in tcmu_netlink_event_send()
2054 static int tcmu_send_dev_add_event(struct tcmu_dev *udev) in tcmu_send_dev_add_event()
2068 static int tcmu_send_dev_remove_event(struct tcmu_dev *udev) in tcmu_send_dev_remove_event()
2082 static int tcmu_update_uio_info(struct tcmu_dev *udev) in tcmu_update_uio_info()
2108 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_configure_device()
2223 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_free_device()
2231 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_destroy_device()
2248 static void tcmu_unblock_dev(struct tcmu_dev *udev) in tcmu_unblock_dev()
2255 static void tcmu_block_dev(struct tcmu_dev *udev) in tcmu_block_dev()
2271 static void tcmu_reset_ring(struct tcmu_dev *udev, u8 err_level) in tcmu_reset_ring()
2369 static int tcmu_set_max_blocks_param(struct tcmu_dev *udev, substring_t *arg) in tcmu_set_max_blocks_param()
2410 static int tcmu_set_data_pages_per_blk(struct tcmu_dev *udev, substring_t *arg) in tcmu_set_data_pages_per_blk()
2446 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_set_configfs_dev_params()
2511 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_show_configfs_dev_params()
2525 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_get_blocks()
2541 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_cmd_time_out_show()
2551 struct tcmu_dev *udev = container_of(da->da_dev, in tcmu_cmd_time_out_store()
2552 struct tcmu_dev, se_dev); in tcmu_cmd_time_out_store()
2574 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_qfull_time_out_show()
2586 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_qfull_time_out_store()
2610 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_max_data_area_mb_show()
2621 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_data_pages_per_blk_show()
2631 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_dev_config_show()
2636 static int tcmu_send_dev_config_event(struct tcmu_dev *udev, in tcmu_send_dev_config_event()
2662 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_dev_config_store()
2693 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_dev_size_show()
2698 static int tcmu_send_dev_size_event(struct tcmu_dev *udev, u64 size) in tcmu_send_dev_size_event()
2723 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_dev_size_store()
2749 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_nl_reply_supported_show()
2759 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_nl_reply_supported_store()
2781 static int tcmu_send_emulate_write_cache(struct tcmu_dev *udev, u8 val) in tcmu_send_emulate_write_cache()
2805 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_emulate_write_cache_store()
2831 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_tmr_notification_show()
2842 struct tcmu_dev *udev = TCMU_DEV(da->da_dev); in tcmu_tmr_notification_store()
2865 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_block_dev_show()
2879 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_block_dev_store()
2911 struct tcmu_dev *udev = TCMU_DEV(se_dev); in tcmu_reset_ring_store()
2980 struct tcmu_dev *udev; in find_free_blocks()
3047 struct tcmu_dev *udev, *tmp_dev; in check_timedout_devices()