Lines Matching refs:nr_cmds
111 unsigned int nr_cmds; member
172 if (unlikely(!queue->nr_cmds)) { in nvmet_tcp_cmd_tag()
922 if (likely(queue->nr_cmds)) { in nvmet_tcp_handle_h2c_data_pdu()
923 if (unlikely(data->ttag >= queue->nr_cmds)) { in nvmet_tcp_handle_h2c_data_pdu()
925 queue->idx, data->ttag, queue->nr_cmds); in nvmet_tcp_handle_h2c_data_pdu()
988 queue->idx, queue->nr_cmds, queue->send_list_len, in nvmet_tcp_done_recv_pdu()
1362 int i, ret = -EINVAL, nr_cmds = queue->nr_cmds; in nvmet_tcp_alloc_cmds() local
1364 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_tcp_cmd), GFP_KERNEL); in nvmet_tcp_alloc_cmds()
1368 for (i = 0; i < nr_cmds; i++) { in nvmet_tcp_alloc_cmds()
1390 for (i = 0; i < queue->nr_cmds; i++) in nvmet_tcp_free_cmds()
1414 for (i = 0; i < queue->nr_cmds; i++, cmd++) { in nvmet_tcp_uninit_data_in_cmds()
1419 if (!queue->nr_cmds && nvmet_tcp_need_data_in(&queue->connect)) { in nvmet_tcp_uninit_data_in_cmds()
1430 for (i = 0; i < queue->nr_cmds; i++, cmd++) { in nvmet_tcp_free_cmd_data_in_buffers()
1435 if (!queue->nr_cmds && nvmet_tcp_need_data_in(&queue->connect)) in nvmet_tcp_free_cmd_data_in_buffers()
1598 queue->nr_cmds = 0; in nvmet_tcp_alloc_queue()
1810 queue->nr_cmds = sq->size * 2; in nvmet_tcp_install_queue()