Lines Matching refs:nctrl

1199 static void nvme_tcp_free_queue(struct nvme_ctrl *nctrl, int qid)  in nvme_tcp_free_queue()  argument
1201 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_free_queue()
1366 static int nvme_tcp_alloc_queue(struct nvme_ctrl *nctrl, in nvme_tcp_alloc_queue() argument
1369 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_alloc_queue()
1381 queue->cmnd_capsule_len = nctrl->ioccsz * 16; in nvme_tcp_alloc_queue()
1389 dev_err(nctrl->device, in nvme_tcp_alloc_queue()
1411 if (nctrl->opts->tos >= 0) in nvme_tcp_alloc_queue()
1412 ip_sock_set_tos(queue->sock->sk, nctrl->opts->tos); in nvme_tcp_alloc_queue()
1426 if (nctrl->opts->mask & NVMF_OPT_HOST_TRADDR) { in nvme_tcp_alloc_queue()
1430 dev_err(nctrl->device, in nvme_tcp_alloc_queue()
1437 queue->hdr_digest = nctrl->opts->hdr_digest; in nvme_tcp_alloc_queue()
1438 queue->data_digest = nctrl->opts->data_digest; in nvme_tcp_alloc_queue()
1442 dev_err(nctrl->device, in nvme_tcp_alloc_queue()
1456 dev_dbg(nctrl->device, "connecting queue %d\n", in nvme_tcp_alloc_queue()
1462 dev_err(nctrl->device, in nvme_tcp_alloc_queue()
1522 static void nvme_tcp_stop_queue(struct nvme_ctrl *nctrl, int qid) in nvme_tcp_stop_queue() argument
1524 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_stop_queue()
1532 static int nvme_tcp_start_queue(struct nvme_ctrl *nctrl, int idx) in nvme_tcp_start_queue() argument
1534 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_start_queue()
1538 ret = nvmf_connect_io_queue(nctrl, idx, false); in nvme_tcp_start_queue()
1540 ret = nvmf_connect_admin_queue(nctrl); in nvme_tcp_start_queue()
1547 dev_err(nctrl->device, in nvme_tcp_start_queue()
1553 static struct blk_mq_tag_set *nvme_tcp_alloc_tagset(struct nvme_ctrl *nctrl, in nvme_tcp_alloc_tagset() argument
1556 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_alloc_tagset()
1566 set->numa_node = nctrl->numa_node; in nvme_tcp_alloc_tagset()
1576 set->queue_depth = nctrl->sqsize + 1; in nvme_tcp_alloc_tagset()
1578 set->numa_node = nctrl->numa_node; in nvme_tcp_alloc_tagset()
1582 set->nr_hw_queues = nctrl->queue_count - 1; in nvme_tcp_alloc_tagset()
1584 set->nr_maps = nctrl->opts->nr_poll_queues ? HCTX_MAX_TYPES : 2; in nvme_tcp_alloc_tagset()
1689 static void nvme_tcp_set_io_queues(struct nvme_ctrl *nctrl, in nvme_tcp_set_io_queues() argument
1692 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_set_io_queues()
1693 struct nvmf_ctrl_options *opts = nctrl->opts; in nvme_tcp_set_io_queues()
2089 static void nvme_tcp_free_ctrl(struct nvme_ctrl *nctrl) in nvme_tcp_free_ctrl() argument
2091 struct nvme_tcp_ctrl *ctrl = to_tcp_ctrl(nctrl); in nvme_tcp_free_ctrl()
2100 nvmf_free_options(nctrl->opts); in nvme_tcp_free_ctrl()