Lines Matching refs:nbd_device

70 	struct nbd_device *nbd;
116 struct nbd_device { struct
149 struct nbd_device *nbd; argument
171 static int nbd_dev_dbg_init(struct nbd_device *nbd);
172 static void nbd_dev_dbg_close(struct nbd_device *nbd);
173 static void nbd_config_put(struct nbd_device *nbd);
177 static void nbd_disconnect_and_put(struct nbd_device *nbd);
179 static inline struct device *nbd_to_dev(struct nbd_device *nbd) in nbd_to_dev()
240 struct nbd_device *nbd = disk->private_data; in pid_show()
254 struct nbd_device *nbd = disk->private_data; in backend_show()
264 static void nbd_dev_remove(struct nbd_device *nbd) in nbd_dev_remove()
284 nbd_dev_remove(container_of(work, struct nbd_device, remove_work)); in nbd_dev_remove_work()
287 static void nbd_put(struct nbd_device *nbd) in nbd_put()
305 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, in nbd_mark_nsock_dead()
334 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize, loff_t blksize) in nbd_set_size()
398 static void sock_shutdown(struct nbd_device *nbd) in sock_shutdown()
435 static struct nbd_config *nbd_get_config_unlocked(struct nbd_device *nbd) in nbd_get_config_unlocked()
454 struct nbd_device *nbd = cmd->nbd; in nbd_xmit_timeout()
551 static int __sock_xmit(struct nbd_device *nbd, struct socket *sock, int send, in __sock_xmit()
596 static int sock_xmit(struct nbd_device *nbd, int index, int send, in sock_xmit()
622 static void nbd_sched_pending_work(struct nbd_device *nbd, in nbd_sched_pending_work()
642 static blk_status_t nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, in nbd_send_cmd()
810 struct nbd_device *nbd = cmd->nbd; in nbd_pending_cmd_work()
842 static int nbd_read_reply(struct nbd_device *nbd, struct socket *sock, in nbd_read_reply()
869 static struct nbd_cmd *nbd_handle_reply(struct nbd_device *nbd, int index, in nbd_handle_reply()
972 struct nbd_device *nbd = args->nbd; in recv_work()
1047 static void nbd_clear_que(struct nbd_device *nbd) in nbd_clear_que()
1055 static int find_fallback(struct nbd_device *nbd, int index) in find_fallback()
1098 static int wait_for_reconnect(struct nbd_device *nbd) in wait_for_reconnect()
1117 struct nbd_device *nbd = cmd->nbd; in nbd_handle_cmd()
1210 static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd, in nbd_get_socket()
1230 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg, in nbd_add_socket()
1302 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg) in nbd_reconnect_socket()
1364 static void nbd_bdev_reset(struct nbd_device *nbd) in nbd_bdev_reset()
1371 static void nbd_parse_flags(struct nbd_device *nbd) in nbd_parse_flags()
1379 static void send_disconnects(struct nbd_device *nbd) in send_disconnects()
1403 static int nbd_disconnect(struct nbd_device *nbd) in nbd_disconnect()
1414 static void nbd_clear_sock(struct nbd_device *nbd) in nbd_clear_sock()
1421 static void nbd_config_put(struct nbd_device *nbd) in nbd_config_put()
1460 static int nbd_start_device(struct nbd_device *nbd) in nbd_start_device()
1522 static int nbd_start_device_ioctl(struct nbd_device *nbd) in nbd_start_device_ioctl()
1552 static void nbd_clear_sock_ioctl(struct nbd_device *nbd) in nbd_clear_sock_ioctl()
1562 static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout) in nbd_set_cmd_timeout()
1572 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, in __nbd_ioctl()
1622 struct nbd_device *nbd = bdev->bd_disk->private_data; in nbd_ioctl()
1649 static int nbd_alloc_and_init_config(struct nbd_device *nbd) in nbd_alloc_and_init_config()
1686 struct nbd_device *nbd; in nbd_open()
1729 struct nbd_device *nbd = disk->private_data; in nbd_release()
1741 struct nbd_device *nbd = disk->private_data; in nbd_free_disk()
1760 struct nbd_device *nbd = s->private; in nbd_dbg_tasks_show()
1772 struct nbd_device *nbd = s->private; in nbd_dbg_flags_show()
1799 static int nbd_dev_dbg_init(struct nbd_device *nbd) in nbd_dev_dbg_init()
1824 static void nbd_dev_dbg_close(struct nbd_device *nbd) in nbd_dev_dbg_close()
1849 static int nbd_dev_dbg_init(struct nbd_device *nbd) in nbd_dev_dbg_init()
1854 static void nbd_dev_dbg_close(struct nbd_device *nbd) in nbd_dev_dbg_close()
1886 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) in nbd_dev_add()
1894 struct nbd_device *nbd; in nbd_dev_add()
1898 nbd = kzalloc(sizeof(struct nbd_device), GFP_KERNEL); in nbd_dev_add()
1990 static struct nbd_device *nbd_find_get_unused(void) in nbd_find_get_unused()
1992 struct nbd_device *nbd; in nbd_find_get_unused()
2035 static int nbd_genl_size_set(struct genl_info *info, struct nbd_device *nbd) in nbd_genl_size_set()
2054 struct nbd_device *nbd; in nbd_genl_connect()
2232 static void nbd_disconnect_and_put(struct nbd_device *nbd) in nbd_disconnect_and_put()
2255 struct nbd_device *nbd; in nbd_genl_disconnect()
2290 struct nbd_device *nbd = NULL; in nbd_genl_reconfigure()
2470 static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply) in populate_nbd_status()
2501 struct nbd_device *nbd = ptr; in status_cb()
2547 struct nbd_device *nbd; in nbd_genl_status()
2677 struct nbd_device *nbd = ptr; in nbd_exit_cb()
2688 struct nbd_device *nbd; in nbd_cleanup()
2704 nbd = list_first_entry(&del_list, struct nbd_device, list); in nbd_cleanup()