Lines Matching defs:qtcb
96 mempool_free(req->qtcb, req->adapter->pool.qtcb_pool);
102 kmem_cache_free(zfcp_fsf_qtcb_cache, req->qtcb);
333 switch (req->qtcb->header.fsf_status_qual.word[0]) {
358 switch (req->qtcb->header.fsf_status) {
362 req->qtcb->header.fsf_command);
375 struct fsf_qtcb *qtcb = req->qtcb;
376 union fsf_prot_status_qual *psq = &qtcb->prefix.prot_status_qual;
385 switch (qtcb->prefix.prot_status) {
413 (unsigned long long)qtcb->bottom.support.req_handle);
433 qtcb->prefix.prot_status);
539 struct fsf_qtcb_bottom_config *bottom = &req->qtcb->bottom.config;
556 if (req->qtcb->header.fsf_status == FSF_EXCHANGE_CONFIG_DATA_INCOMPLETE)
586 struct fsf_qtcb *qtcb = req->qtcb;
587 struct fsf_qtcb_bottom_config *bottom = &qtcb->bottom.config;
599 switch (qtcb->header.fsf_status) {
631 &qtcb->header.fsf_status_qual.link_down_info);
756 struct fsf_qtcb_bottom_port *bottom = &req->qtcb->bottom.port;
773 struct fsf_qtcb *qtcb = req->qtcb;
774 struct fsf_qtcb_bottom_port *bottom = &qtcb->bottom.port;
779 switch (qtcb->header.fsf_status) {
795 &qtcb->header.fsf_status_qual.link_down_info);
822 struct fsf_qtcb *qtcb;
825 qtcb = mempool_alloc(pool, GFP_ATOMIC);
827 qtcb = kmem_cache_alloc(zfcp_fsf_qtcb_cache, GFP_ATOMIC);
829 if (unlikely(!qtcb))
832 memset(qtcb, 0, sizeof(*qtcb));
833 return qtcb;
857 req->qtcb = zfcp_fsf_qtcb_alloc(
860 req->qtcb = zfcp_fsf_qtcb_alloc(NULL);
862 if (unlikely(!req->qtcb)) {
867 req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no;
868 req->qtcb->prefix.req_id = req->req_id;
869 req->qtcb->prefix.ulp_info = 26;
870 req->qtcb->prefix.qtcb_type = fsf_qtcb_type[fsf_cmd];
871 req->qtcb->prefix.qtcb_version = FSF_QTCB_CURRENT_VERSION;
872 req->qtcb->header.req_handle = req->req_id;
873 req->qtcb->header.fsf_command = fsf_cmd;
877 req->qtcb, sizeof(struct fsf_qtcb));
983 union fsf_status_qual *fsq = &req->qtcb->header.fsf_status_qual;
990 switch (req->qtcb->header.fsf_status) {
1069 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
1070 req->qtcb->header.port_handle = zfcp_sdev->port->handle;
1071 req->qtcb->bottom.support.req_handle = old_req_id;
1091 struct fsf_qtcb_header *header = &req->qtcb->header;
1150 struct fsf_qtcb *qtcb = req->qtcb;
1156 qtcb->bottom.support.req_buf_length =
1160 qtcb->bottom.support.resp_buf_length =
1182 qtcb->bottom.support.req_buf_length = zfcp_qdio_real_bytes(sg_req);
1190 qtcb->bottom.support.resp_buf_length = zfcp_qdio_real_bytes(sg_resp);
1211 req->qtcb->bottom.support.service_class = FSF_CLASS_3;
1212 req->qtcb->bottom.support.timeout = timeout;
1251 req->qtcb->header.port_handle = wka_port->handle;
1274 struct fsf_qtcb_header *header = &req->qtcb->header;
1351 hton24(req->qtcb->bottom.support.d_id, d_id);
1394 req->qtcb->bottom.config.feature_selection =
1449 req->qtcb->bottom.config.feature_selection =
1699 struct fsf_qtcb_header *header = &req->qtcb->header;
1700 struct fsf_qtcb_bottom_support *bottom = &req->qtcb->bottom.support;
1803 hton24(req->qtcb->bottom.support.d_id, port->d_id);
1829 switch (req->qtcb->header.fsf_status) {
1872 req->qtcb->header.port_handle = erp_action->port->handle;
1890 struct fsf_qtcb_header *header = &req->qtcb->header;
1945 hton24(req->qtcb->bottom.support.d_id, wka_port->d_id);
1966 if (req->qtcb->header.fsf_status == FSF_PORT_HANDLE_NOT_VALID) {
2005 req->qtcb->header.port_handle = wka_port->handle;
2024 struct fsf_qtcb_header *header = &req->qtcb->header;
2097 req->qtcb->header.port_handle = erp_action->port->handle;
2119 struct fsf_qtcb_header *header = &req->qtcb->header;
2216 req->qtcb->header.port_handle = erp_action->port->handle;
2217 req->qtcb->bottom.support.fcp_lun = zfcp_scsi_dev_lun(erp_action->sdev);
2224 req->qtcb->bottom.support.option = FSF_OPEN_LUN_SUPPRESS_BOXING;
2248 switch (req->qtcb->header.fsf_status) {
2265 switch (req->qtcb->header.fsf_status_qual.word[0]) {
2308 req->qtcb->header.port_handle = erp_action->port->handle;
2309 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
2342 lat_in = &req->qtcb->prefix.prot_status_qual.latency_info;
2358 switch (req->qtcb->bottom.io.data_direction) {
2395 struct fsf_qtcb_header *header = &req->qtcb->header;
2420 req->qtcb->bottom.io.data_direction,
2429 req->qtcb->bottom.io.fcp_cmnd_length);
2483 switch (req->qtcb->header.fsf_status) {
2499 fcp_rsp = &req->qtcb->bottom.io.fcp_rsp.iu;
2596 io = &req->qtcb->bottom.io;
2600 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
2601 req->qtcb->header.port_handle = zfcp_sdev->port->handle;
2614 fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu;
2661 fcp_rsp = &req->qtcb->bottom.io.fcp_rsp.iu;
2704 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle;
2705 req->qtcb->header.port_handle = zfcp_sdev->port->handle;
2706 req->qtcb->bottom.io.data_direction = FSF_DATADIR_CMND;
2707 req->qtcb->bottom.io.service_class = FSF_CLASS_3;
2708 req->qtcb->bottom.io.fcp_cmnd_length = FCP_CMND_LEN;
2712 fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu;