Lines Matching defs:nbd_device
69 struct nbd_device *nbd;
115 struct nbd_device {
145 struct nbd_device *nbd;
167 static int nbd_dev_dbg_init(struct nbd_device *nbd);
168 static void nbd_dev_dbg_close(struct nbd_device *nbd);
169 static void nbd_config_put(struct nbd_device *nbd);
173 static void nbd_disconnect_and_put(struct nbd_device *nbd);
175 static inline struct device *nbd_to_dev(struct nbd_device *nbd)
225 struct nbd_device *nbd = (struct nbd_device *)disk->private_data;
239 struct nbd_device *nbd = (struct nbd_device *)disk->private_data;
249 static void nbd_dev_remove(struct nbd_device *nbd)
269 nbd_dev_remove(container_of(work, struct nbd_device, remove_work));
272 static void nbd_put(struct nbd_device *nbd)
290 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock,
319 static int nbd_set_size(struct nbd_device *nbd, loff_t bytesize,
364 static void sock_shutdown(struct nbd_device *nbd)
399 static struct nbd_config *nbd_get_config_unlocked(struct nbd_device *nbd)
418 struct nbd_device *nbd = cmd->nbd;
509 static int __sock_xmit(struct nbd_device *nbd, struct socket *sock, int send,
554 static int sock_xmit(struct nbd_device *nbd, int index, int send,
573 static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index)
719 static int nbd_read_reply(struct nbd_device *nbd, struct socket *sock,
746 static struct nbd_cmd *nbd_handle_reply(struct nbd_device *nbd, int index,
849 struct nbd_device *nbd = args->nbd;
924 static void nbd_clear_que(struct nbd_device *nbd)
932 static int find_fallback(struct nbd_device *nbd, int index)
975 static int wait_for_reconnect(struct nbd_device *nbd)
994 struct nbd_device *nbd = cmd->nbd;
1106 static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd,
1126 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg,
1196 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
1258 static void nbd_bdev_reset(struct nbd_device *nbd)
1265 static void nbd_parse_flags(struct nbd_device *nbd)
1282 static void send_disconnects(struct nbd_device *nbd)
1306 static int nbd_disconnect(struct nbd_device *nbd)
1317 static void nbd_clear_sock(struct nbd_device *nbd)
1324 static void nbd_config_put(struct nbd_device *nbd)
1365 static int nbd_start_device(struct nbd_device *nbd)
1427 static int nbd_start_device_ioctl(struct nbd_device *nbd)
1457 static void nbd_clear_sock_ioctl(struct nbd_device *nbd)
1467 static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout)
1477 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
1527 struct nbd_device *nbd = bdev->bd_disk->private_data;
1554 static int nbd_alloc_and_init_config(struct nbd_device *nbd)
1591 struct nbd_device *nbd;
1634 struct nbd_device *nbd = disk->private_data;
1646 struct nbd_device *nbd = disk->private_data;
1665 struct nbd_device *nbd = s->private;
1677 struct nbd_device *nbd = s->private;
1700 static int nbd_dev_dbg_init(struct nbd_device *nbd)
1725 static void nbd_dev_dbg_close(struct nbd_device *nbd)
1750 static int nbd_dev_dbg_init(struct nbd_device *nbd)
1755 static void nbd_dev_dbg_close(struct nbd_device *nbd)
1787 static struct nbd_device *nbd_dev_add(int index, unsigned int refs)
1789 struct nbd_device *nbd;
1793 nbd = kzalloc(sizeof(struct nbd_device), GFP_KERNEL);
1897 static struct nbd_device *nbd_find_get_unused(void)
1899 struct nbd_device *nbd;
1942 static int nbd_genl_size_set(struct genl_info *info, struct nbd_device *nbd)
1961 struct nbd_device *nbd;
2139 static void nbd_disconnect_and_put(struct nbd_device *nbd)
2161 struct nbd_device *nbd;
2196 struct nbd_device *nbd = NULL;
2376 static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply)
2407 struct nbd_device *nbd = ptr;
2453 struct nbd_device *nbd;
2583 struct nbd_device *nbd = ptr;
2594 struct nbd_device *nbd;
2610 nbd = list_first_entry(&del_list, struct nbd_device, list);