Lines Matching defs:nbd_device

70 	struct nbd_device *nbd;
116 struct nbd_device {
149 struct nbd_device *nbd;
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)
240 struct nbd_device *nbd = disk->private_data;
254 struct nbd_device *nbd = disk->private_data;
264 static void nbd_dev_remove(struct nbd_device *nbd)
284 nbd_dev_remove(container_of(work, struct nbd_device, remove_work));
287 static void nbd_put(struct nbd_device *nbd)
305 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock,
334 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize, loff_t blksize)
398 static void sock_shutdown(struct nbd_device *nbd)
435 static struct nbd_config *nbd_get_config_unlocked(struct nbd_device *nbd)
454 struct nbd_device *nbd = cmd->nbd;
551 static int __sock_xmit(struct nbd_device *nbd, struct socket *sock, int send,
599 static int sock_xmit(struct nbd_device *nbd, int index, int send,
625 static void nbd_sched_pending_work(struct nbd_device *nbd,
645 static blk_status_t nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd,
813 struct nbd_device *nbd = cmd->nbd;
845 static int nbd_read_reply(struct nbd_device *nbd, struct socket *sock,
872 static struct nbd_cmd *nbd_handle_reply(struct nbd_device *nbd, int index,
975 struct nbd_device *nbd = args->nbd;
1050 static void nbd_clear_que(struct nbd_device *nbd)
1058 static int find_fallback(struct nbd_device *nbd, int index)
1101 static int wait_for_reconnect(struct nbd_device *nbd)
1120 struct nbd_device *nbd = cmd->nbd;
1213 static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd,
1277 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg,
1350 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
1412 static void nbd_bdev_reset(struct nbd_device *nbd)
1419 static void nbd_parse_flags(struct nbd_device *nbd)
1427 static void send_disconnects(struct nbd_device *nbd)
1451 static int nbd_disconnect(struct nbd_device *nbd)
1462 static void nbd_clear_sock(struct nbd_device *nbd)
1469 static void nbd_config_put(struct nbd_device *nbd)
1508 static int nbd_start_device(struct nbd_device *nbd)
1580 static int nbd_start_device_ioctl(struct nbd_device *nbd)
1610 static void nbd_clear_sock_ioctl(struct nbd_device *nbd)
1620 static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout)
1630 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
1680 struct nbd_device *nbd = bdev->bd_disk->private_data;
1707 static int nbd_alloc_and_init_config(struct nbd_device *nbd)
1744 struct nbd_device *nbd;
1787 struct nbd_device *nbd = disk->private_data;
1799 struct nbd_device *nbd = disk->private_data;
1818 struct nbd_device *nbd = s->private;
1830 struct nbd_device *nbd = s->private;
1857 static int nbd_dev_dbg_init(struct nbd_device *nbd)
1882 static void nbd_dev_dbg_close(struct nbd_device *nbd)
1907 static int nbd_dev_dbg_init(struct nbd_device *nbd)
1912 static void nbd_dev_dbg_close(struct nbd_device *nbd)
1944 static struct nbd_device *nbd_dev_add(int index, unsigned int refs)
1952 struct nbd_device *nbd;
1956 nbd = kzalloc_obj(struct nbd_device);
2048 static struct nbd_device *nbd_find_get_unused(void)
2050 struct nbd_device *nbd;
2093 static int nbd_genl_size_set(struct genl_info *info, struct nbd_device *nbd)
2112 struct nbd_device *nbd;
2291 static void nbd_disconnect_and_put(struct nbd_device *nbd)
2314 struct nbd_device *nbd;
2349 struct nbd_device *nbd = NULL;
2529 static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply)
2560 struct nbd_device *nbd = ptr;
2606 struct nbd_device *nbd;
2736 struct nbd_device *nbd = ptr;
2747 struct nbd_device *nbd;
2763 nbd = list_first_entry(&del_list, struct nbd_device, list);