Lines Matching refs:nbd_device

67 	struct nbd_device *nbd;
112 struct nbd_device { struct
136 struct nbd_device *nbd; argument
160 static int nbd_dev_dbg_init(struct nbd_device *nbd);
161 static void nbd_dev_dbg_close(struct nbd_device *nbd);
162 static void nbd_config_put(struct nbd_device *nbd);
166 static void nbd_disconnect_and_put(struct nbd_device *nbd);
168 static inline struct device *nbd_to_dev(struct nbd_device *nbd) in nbd_to_dev()
218 struct nbd_device *nbd = (struct nbd_device *)disk->private_data; in pid_show()
232 struct nbd_device *nbd = (struct nbd_device *)disk->private_data; in backend_show()
242 static void nbd_dev_remove(struct nbd_device *nbd) in nbd_dev_remove()
263 nbd_dev_remove(container_of(work, struct nbd_device, remove_work)); in nbd_dev_remove_work()
266 static void nbd_put(struct nbd_device *nbd) in nbd_put()
284 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, in nbd_mark_nsock_dead()
313 static void nbd_size_clear(struct nbd_device *nbd) in nbd_size_clear()
321 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize, in nbd_set_size()
363 static void sock_shutdown(struct nbd_device *nbd) in sock_shutdown()
402 struct nbd_device *nbd = cmd->nbd; in nbd_xmit_timeout()
489 static int sock_xmit(struct nbd_device *nbd, int index, int send, in sock_xmit()
545 static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index) in nbd_send_cmd()
692 static struct nbd_cmd *nbd_read_stat(struct nbd_device *nbd, int index) in nbd_read_stat()
801 struct nbd_device *nbd = args->nbd; in recv_work()
843 static void nbd_clear_que(struct nbd_device *nbd) in nbd_clear_que()
851 static int find_fallback(struct nbd_device *nbd, int index) in find_fallback()
894 static int wait_for_reconnect(struct nbd_device *nbd) in wait_for_reconnect()
909 struct nbd_device *nbd = cmd->nbd; in nbd_handle_cmd()
1018 static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd, in nbd_get_socket()
1038 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg, in nbd_add_socket()
1105 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg) in nbd_reconnect_socket()
1173 static void nbd_parse_flags(struct nbd_device *nbd) in nbd_parse_flags()
1192 static void send_disconnects(struct nbd_device *nbd) in send_disconnects()
1216 static int nbd_disconnect(struct nbd_device *nbd) in nbd_disconnect()
1227 static void nbd_clear_sock(struct nbd_device *nbd) in nbd_clear_sock()
1234 static void nbd_config_put(struct nbd_device *nbd) in nbd_config_put()
1279 static int nbd_start_device(struct nbd_device *nbd) in nbd_start_device()
1348 static int nbd_start_device_ioctl(struct nbd_device *nbd, struct block_device *bdev) in nbd_start_device_ioctl()
1376 static void nbd_clear_sock_ioctl(struct nbd_device *nbd, in nbd_clear_sock_ioctl()
1387 static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout) in nbd_set_cmd_timeout()
1397 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, in __nbd_ioctl()
1447 struct nbd_device *nbd = bdev->bd_disk->private_data; in nbd_ioctl()
1492 struct nbd_device *nbd; in nbd_open()
1535 struct nbd_device *nbd = disk->private_data; in nbd_release()
1558 struct nbd_device *nbd = s->private; in nbd_dbg_tasks_show()
1570 struct nbd_device *nbd = s->private; in nbd_dbg_flags_show()
1593 static int nbd_dev_dbg_init(struct nbd_device *nbd) in nbd_dev_dbg_init()
1618 static void nbd_dev_dbg_close(struct nbd_device *nbd) in nbd_dev_dbg_close()
1643 static int nbd_dev_dbg_init(struct nbd_device *nbd) in nbd_dev_dbg_init()
1648 static void nbd_dev_dbg_close(struct nbd_device *nbd) in nbd_dev_dbg_close()
1680 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) in nbd_dev_add()
1682 struct nbd_device *nbd; in nbd_dev_add()
1686 nbd = kzalloc(sizeof(struct nbd_device), GFP_KERNEL); in nbd_dev_add()
1786 static struct nbd_device *nbd_find_get_unused(void) in nbd_find_get_unused()
1788 struct nbd_device *nbd; in nbd_find_get_unused()
1831 static int nbd_genl_size_set(struct genl_info *info, struct nbd_device *nbd) in nbd_genl_size_set()
1850 struct nbd_device *nbd; in nbd_genl_connect()
2021 static void nbd_disconnect_and_put(struct nbd_device *nbd) in nbd_disconnect_and_put()
2045 struct nbd_device *nbd; in nbd_genl_disconnect()
2082 struct nbd_device *nbd = NULL; in nbd_genl_reconfigure()
2261 static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply) in populate_nbd_status()
2292 struct nbd_device *nbd = ptr; in status_cb()
2332 struct nbd_device *nbd; in nbd_genl_status()
2462 struct nbd_device *nbd = ptr; in nbd_exit_cb()
2473 struct nbd_device *nbd; in nbd_cleanup()
2483 nbd = list_first_entry(&del_list, struct nbd_device, list); in nbd_cleanup()