Lines Matching defs:qtcb
96 mempool_free(req->qtcb, req->adapter->pool.qtcb_pool);
102 kmem_cache_free(zfcp_fsf_qtcb_cache, req->qtcb);
314 switch (req->qtcb->header.fsf_status_qual.word[0]) {
339 switch (req->qtcb->header.fsf_status) {
343 req->qtcb->header.fsf_command);
356 struct fsf_qtcb *qtcb = req->qtcb;
357 union fsf_prot_status_qual *psq = &qtcb->prefix.prot_status_qual;
366 switch (qtcb->prefix.prot_status) {
394 (unsigned long long)qtcb->bottom.support.req_handle);
414 qtcb->prefix.prot_status);
520 struct fsf_qtcb_bottom_config *bottom = &req->qtcb->bottom.config;
537 if (req->qtcb->header.fsf_status == FSF_EXCHANGE_CONFIG_DATA_INCOMPLETE)
567 struct fsf_qtcb *qtcb = req->qtcb;
568 struct fsf_qtcb_bottom_config *bottom = &qtcb->bottom.config;
580 switch (qtcb->header.fsf_status) {
612 &qtcb->header.fsf_status_qual.link_down_info);
737 struct fsf_qtcb_bottom_port *bottom = &req->qtcb->bottom.port;
754 struct fsf_qtcb *qtcb = req->qtcb;
755 struct fsf_qtcb_bottom_port *bottom = &qtcb->bottom.port;
760 switch (qtcb->header.fsf_status) {
776 &qtcb->header.fsf_status_qual.link_down_info);
803 struct fsf_qtcb *qtcb;
806 qtcb = mempool_alloc(pool, GFP_ATOMIC);
808 qtcb = kmem_cache_alloc(zfcp_fsf_qtcb_cache, GFP_ATOMIC);
810 if (unlikely(!qtcb))
813 memset(qtcb, 0, sizeof(*qtcb));
814 return qtcb;
839 req->qtcb = zfcp_fsf_qtcb_alloc(
842 req->qtcb = zfcp_fsf_qtcb_alloc(NULL);
844 if (unlikely(!req->qtcb)) {
849 req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no;
850 req->qtcb->prefix.req_id = req->req_id;
851 req->qtcb->prefix.ulp_info = 26;
852 req->qtcb->prefix.qtcb_type = fsf_qtcb_type[fsf_cmd];
853 req->qtcb->prefix.qtcb_version = FSF_QTCB_CURRENT_VERSION;
854 req->qtcb->header.req_handle = req->req_id;
855 req->qtcb->header.fsf_command = fsf_cmd;
859 req->qtcb, sizeof(struct fsf_qtcb));
962 union fsf_status_qual *fsq = &req->qtcb->header.fsf_status_qual;
969 switch (req->qtcb->header.fsf_status) {
1048 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
1049 req->qtcb->header.port_handle = zfcp_sdev->port->handle;
1050 req->qtcb->bottom.support.req_handle = (u64) old_req_id;
1070 struct fsf_qtcb_header *header = &req->qtcb->header;
1129 struct fsf_qtcb *qtcb = req->qtcb;
1135 qtcb->bottom.support.req_buf_length =
1139 qtcb->bottom.support.resp_buf_length =
1161 qtcb->bottom.support.req_buf_length = zfcp_qdio_real_bytes(sg_req);
1169 qtcb->bottom.support.resp_buf_length = zfcp_qdio_real_bytes(sg_resp);
1190 req->qtcb->bottom.support.service_class = FSF_CLASS_3;
1191 req->qtcb->bottom.support.timeout = timeout;
1230 req->qtcb->header.port_handle = wka_port->handle;
1253 struct fsf_qtcb_header *header = &req->qtcb->header;
1330 hton24(req->qtcb->bottom.support.d_id, d_id);
1373 req->qtcb->bottom.config.feature_selection =
1428 req->qtcb->bottom.config.feature_selection =
1678 struct fsf_qtcb_header *header = &req->qtcb->header;
1679 struct fsf_qtcb_bottom_support *bottom = &req->qtcb->bottom.support;
1782 hton24(req->qtcb->bottom.support.d_id, port->d_id);
1808 switch (req->qtcb->header.fsf_status) {
1851 req->qtcb->header.port_handle = erp_action->port->handle;
1869 struct fsf_qtcb_header *header = &req->qtcb->header;
1924 hton24(req->qtcb->bottom.support.d_id, wka_port->d_id);
1945 if (req->qtcb->header.fsf_status == FSF_PORT_HANDLE_NOT_VALID) {
1984 req->qtcb->header.port_handle = wka_port->handle;
2003 struct fsf_qtcb_header *header = &req->qtcb->header;
2076 req->qtcb->header.port_handle = erp_action->port->handle;
2098 struct fsf_qtcb_header *header = &req->qtcb->header;
2195 req->qtcb->header.port_handle = erp_action->port->handle;
2196 req->qtcb->bottom.support.fcp_lun = zfcp_scsi_dev_lun(erp_action->sdev);
2203 req->qtcb->bottom.support.option = FSF_OPEN_LUN_SUPPRESS_BOXING;
2227 switch (req->qtcb->header.fsf_status) {
2244 switch (req->qtcb->header.fsf_status_qual.word[0]) {
2287 req->qtcb->header.port_handle = erp_action->port->handle;
2288 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
2321 lat_in = &req->qtcb->prefix.prot_status_qual.latency_info;
2337 switch (req->qtcb->bottom.io.data_direction) {
2374 struct fsf_qtcb_header *header = &req->qtcb->header;
2399 req->qtcb->bottom.io.data_direction,
2408 req->qtcb->bottom.io.fcp_cmnd_length);
2462 switch (req->qtcb->header.fsf_status) {
2478 fcp_rsp = &req->qtcb->bottom.io.fcp_rsp.iu;
2574 io = &req->qtcb->bottom.io;
2578 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
2579 req->qtcb->header.port_handle = zfcp_sdev->port->handle;
2592 fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu;
2639 fcp_rsp = &req->qtcb->bottom.io.fcp_rsp.iu;
2682 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
2683 req->qtcb->header.port_handle = zfcp_sdev->port->handle;
2684 req->qtcb->bottom.io.data_direction = FSF_DATADIR_CMND;
2685 req->qtcb->bottom.io.service_class = FSF_CLASS_3;
2686 req->qtcb->bottom.io.fcp_cmnd_length = FCP_CMND_LEN;
2690 fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu;