Lines Matching refs:qtcb

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