Lines Matching defs:nbd
69 struct nbd_device *nbd; member
144 struct nbd_device *nbd; member
158 #define nbd_name(nbd) ((nbd)->disk->disk_name) argument
174 static inline struct device *nbd_to_dev(struct nbd_device *nbd) in nbd_to_dev()
224 struct nbd_device *nbd = (struct nbd_device *)disk->private_data; in pid_show() local
238 struct nbd_device *nbd = (struct nbd_device *)disk->private_data; in backend_show() local
248 static void nbd_dev_remove(struct nbd_device *nbd) in nbd_dev_remove()
272 static void nbd_put(struct nbd_device *nbd) in nbd_put()
290 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, in nbd_mark_nsock_dead()
319 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize, in nbd_set_size()
361 static void sock_shutdown(struct nbd_device *nbd) in sock_shutdown()
399 struct nbd_device *nbd = cmd->nbd; in nbd_xmit_timeout() local
494 static int sock_xmit(struct nbd_device *nbd, int index, int send, in sock_xmit()
550 static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index) in nbd_send_cmd()
696 static int nbd_read_reply(struct nbd_device *nbd, int index, in nbd_read_reply()
723 static struct nbd_cmd *nbd_handle_reply(struct nbd_device *nbd, int index, in nbd_handle_reply()
826 struct nbd_device *nbd = args->nbd; in recv_work() local
902 static void nbd_clear_que(struct nbd_device *nbd) in nbd_clear_que()
910 static int find_fallback(struct nbd_device *nbd, int index) in find_fallback()
953 static int wait_for_reconnect(struct nbd_device *nbd) in wait_for_reconnect()
972 struct nbd_device *nbd = cmd->nbd; in nbd_handle_cmd() local
1084 static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd, in nbd_get_socket()
1104 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg, in nbd_add_socket()
1171 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg) in nbd_reconnect_socket()
1232 static void nbd_bdev_reset(struct nbd_device *nbd) in nbd_bdev_reset()
1239 static void nbd_parse_flags(struct nbd_device *nbd) in nbd_parse_flags()
1256 static void send_disconnects(struct nbd_device *nbd) in send_disconnects()
1280 static int nbd_disconnect(struct nbd_device *nbd) in nbd_disconnect()
1291 static void nbd_clear_sock(struct nbd_device *nbd) in nbd_clear_sock()
1298 static void nbd_config_put(struct nbd_device *nbd) in nbd_config_put()
1339 static int nbd_start_device(struct nbd_device *nbd) in nbd_start_device()
1400 static int nbd_start_device_ioctl(struct nbd_device *nbd) in nbd_start_device_ioctl()
1430 static void nbd_clear_sock_ioctl(struct nbd_device *nbd, in nbd_clear_sock_ioctl()
1441 static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout) in nbd_set_cmd_timeout()
1451 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, in __nbd_ioctl()
1501 struct nbd_device *nbd = bdev->bd_disk->private_data; in nbd_ioctl() local
1551 struct nbd_device *nbd; in nbd_open() local
1595 struct nbd_device *nbd = disk->private_data; in nbd_release() local
1618 struct nbd_device *nbd = s->private; in nbd_dbg_tasks_show() local
1630 struct nbd_device *nbd = s->private; in nbd_dbg_flags_show() local
1653 static int nbd_dev_dbg_init(struct nbd_device *nbd) in nbd_dev_dbg_init()
1678 static void nbd_dev_dbg_close(struct nbd_device *nbd) in nbd_dev_dbg_close()
1703 static int nbd_dev_dbg_init(struct nbd_device *nbd) in nbd_dev_dbg_init()
1708 static void nbd_dev_dbg_close(struct nbd_device *nbd) in nbd_dev_dbg_close()
1742 struct nbd_device *nbd; in nbd_dev_add() local
1852 struct nbd_device *nbd; in nbd_find_get_unused() local
1895 static int nbd_genl_size_set(struct genl_info *info, struct nbd_device *nbd) in nbd_genl_size_set()
1914 struct nbd_device *nbd; in nbd_genl_connect() local
2097 static void nbd_disconnect_and_put(struct nbd_device *nbd) in nbd_disconnect_and_put()
2119 struct nbd_device *nbd; in nbd_genl_disconnect() local
2154 struct nbd_device *nbd = NULL; in nbd_genl_reconfigure() local
2332 static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply) in populate_nbd_status()
2363 struct nbd_device *nbd = ptr; in status_cb() local
2403 struct nbd_device *nbd; in nbd_genl_status() local
2533 struct nbd_device *nbd = ptr; in nbd_exit_cb() local
2544 struct nbd_device *nbd; in nbd_cleanup() local