Lines Matching defs:nbd_device
66 struct nbd_device *nbd;
105 struct nbd_device {
133 struct nbd_device *nbd;
157 static int nbd_dev_dbg_init(struct nbd_device *nbd);
158 static void nbd_dev_dbg_close(struct nbd_device *nbd);
159 static void nbd_config_put(struct nbd_device *nbd);
163 static void nbd_disconnect_and_put(struct nbd_device *nbd);
165 static inline struct device *nbd_to_dev(struct nbd_device *nbd)
215 struct nbd_device *nbd = (struct nbd_device *)disk->private_data;
225 static void nbd_dev_remove(struct nbd_device *nbd)
251 static void nbd_put(struct nbd_device *nbd)
267 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock,
296 static void nbd_size_clear(struct nbd_device *nbd)
304 static void nbd_size_update(struct nbd_device *nbd, bool start)
330 static void nbd_size_set(struct nbd_device *nbd, loff_t blocksize,
353 static void sock_shutdown(struct nbd_device *nbd)
392 struct nbd_device *nbd = cmd->nbd;
485 static int sock_xmit(struct nbd_device *nbd, int index, int send,
541 static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index)
687 static int nbd_read_reply(struct nbd_device *nbd, int index,
714 static struct nbd_cmd *nbd_handle_reply(struct nbd_device *nbd, int index,
815 struct nbd_device *nbd = args->nbd;
883 static void nbd_clear_que(struct nbd_device *nbd)
891 static int find_fallback(struct nbd_device *nbd, int index)
934 static int wait_for_reconnect(struct nbd_device *nbd)
953 struct nbd_device *nbd = cmd->nbd;
1065 static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd,
1085 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg,
1152 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
1220 static void nbd_parse_flags(struct nbd_device *nbd)
1239 static void send_disconnects(struct nbd_device *nbd)
1263 static int nbd_disconnect(struct nbd_device *nbd)
1274 static void nbd_clear_sock(struct nbd_device *nbd)
1281 static void nbd_config_put(struct nbd_device *nbd)
1320 static int nbd_start_device(struct nbd_device *nbd)
1390 static int nbd_start_device_ioctl(struct nbd_device *nbd, struct block_device *bdev)
1420 static void nbd_clear_sock_ioctl(struct nbd_device *nbd,
1439 static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout)
1449 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
1508 struct nbd_device *nbd = bdev->bd_disk->private_data;
1558 struct nbd_device *nbd;
1600 struct nbd_device *nbd = disk->private_data;
1625 struct nbd_device *nbd = s->private;
1647 struct nbd_device *nbd = s->private;
1680 static int nbd_dev_dbg_init(struct nbd_device *nbd)
1705 static void nbd_dev_dbg_close(struct nbd_device *nbd)
1730 static int nbd_dev_dbg_init(struct nbd_device *nbd)
1735 static void nbd_dev_dbg_close(struct nbd_device *nbd)
1769 struct nbd_device *nbd;
1774 nbd = kzalloc(sizeof(struct nbd_device), GFP_KERNEL);
1859 struct nbd_device *nbd = ptr;
1860 struct nbd_device **found = data;
1895 static int nbd_genl_size_set(struct genl_info *info, struct nbd_device *nbd)
1922 struct nbd_device *nbd = NULL;
2114 static void nbd_disconnect_and_put(struct nbd_device *nbd)
2139 struct nbd_device *nbd;
2177 struct nbd_device *nbd = NULL;
2340 static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply)
2371 struct nbd_device *nbd = ptr;
2417 struct nbd_device *nbd;
2542 struct nbd_device *nbd = ptr;
2550 struct nbd_device *nbd;
2566 nbd = list_first_entry(&del_list, struct nbd_device, list);