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()
314 switch (req->qtcb->header.fsf_status_qual.word[0]) { in zfcp_fsf_fsfstatus_qual_eval()
339 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_fsfstatus_eval()
343 req->qtcb->header.fsf_command); in zfcp_fsf_fsfstatus_eval()
356 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_protstatus_eval() local
357 union fsf_prot_status_qual *psq = &qtcb->prefix.prot_status_qual; in zfcp_fsf_protstatus_eval()
366 switch (qtcb->prefix.prot_status) { in zfcp_fsf_protstatus_eval()
394 (unsigned long long)qtcb->bottom.support.req_handle); in zfcp_fsf_protstatus_eval()
414 qtcb->prefix.prot_status); in zfcp_fsf_protstatus_eval()
520 struct fsf_qtcb_bottom_config *bottom = &req->qtcb->bottom.config; in zfcp_fsf_exchange_config_evaluate()
537 if (req->qtcb->header.fsf_status == FSF_EXCHANGE_CONFIG_DATA_INCOMPLETE) in zfcp_fsf_exchange_config_evaluate()
567 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_exchange_config_data_handler() local
568 struct fsf_qtcb_bottom_config *bottom = &qtcb->bottom.config; in zfcp_fsf_exchange_config_data_handler()
580 switch (qtcb->header.fsf_status) { in zfcp_fsf_exchange_config_data_handler()
612 &qtcb->header.fsf_status_qual.link_down_info); in zfcp_fsf_exchange_config_data_handler()
737 struct fsf_qtcb_bottom_port *bottom = &req->qtcb->bottom.port; in zfcp_fsf_exchange_port_evaluate()
754 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_exchange_port_data_handler() local
755 struct fsf_qtcb_bottom_port *bottom = &qtcb->bottom.port; in zfcp_fsf_exchange_port_data_handler()
760 switch (qtcb->header.fsf_status) { in zfcp_fsf_exchange_port_data_handler()
776 &qtcb->header.fsf_status_qual.link_down_info); in zfcp_fsf_exchange_port_data_handler()
803 struct fsf_qtcb *qtcb; in zfcp_fsf_qtcb_alloc() local
806 qtcb = mempool_alloc(pool, GFP_ATOMIC); in zfcp_fsf_qtcb_alloc()
808 qtcb = kmem_cache_alloc(zfcp_fsf_qtcb_cache, GFP_ATOMIC); in zfcp_fsf_qtcb_alloc()
810 if (unlikely(!qtcb)) in zfcp_fsf_qtcb_alloc()
813 memset(qtcb, 0, sizeof(*qtcb)); in zfcp_fsf_qtcb_alloc()
814 return qtcb; in zfcp_fsf_qtcb_alloc()
839 req->qtcb = zfcp_fsf_qtcb_alloc( in zfcp_fsf_req_create()
842 req->qtcb = zfcp_fsf_qtcb_alloc(NULL); in zfcp_fsf_req_create()
844 if (unlikely(!req->qtcb)) { in zfcp_fsf_req_create()
849 req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no; in zfcp_fsf_req_create()
850 req->qtcb->prefix.req_id = req->req_id; in zfcp_fsf_req_create()
851 req->qtcb->prefix.ulp_info = 26; in zfcp_fsf_req_create()
852 req->qtcb->prefix.qtcb_type = fsf_qtcb_type[fsf_cmd]; in zfcp_fsf_req_create()
853 req->qtcb->prefix.qtcb_version = FSF_QTCB_CURRENT_VERSION; in zfcp_fsf_req_create()
854 req->qtcb->header.req_handle = req->req_id; in zfcp_fsf_req_create()
855 req->qtcb->header.fsf_command = fsf_cmd; in zfcp_fsf_req_create()
859 req->qtcb, sizeof(struct fsf_qtcb)); in zfcp_fsf_req_create()
962 union fsf_status_qual *fsq = &req->qtcb->header.fsf_status_qual; in zfcp_fsf_abort_fcp_command_handler()
969 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_abort_fcp_command_handler()
1048 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_abort_fcp_cmnd()
1049 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_abort_fcp_cmnd()
1050 req->qtcb->bottom.support.req_handle = (u64) old_req_id; in zfcp_fsf_abort_fcp_cmnd()
1070 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_send_ct_handler()
1129 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_setup_ct_els_sbals() local
1135 qtcb->bottom.support.req_buf_length = in zfcp_fsf_setup_ct_els_sbals()
1139 qtcb->bottom.support.resp_buf_length = in zfcp_fsf_setup_ct_els_sbals()
1161 qtcb->bottom.support.req_buf_length = zfcp_qdio_real_bytes(sg_req); in zfcp_fsf_setup_ct_els_sbals()
1169 qtcb->bottom.support.resp_buf_length = zfcp_qdio_real_bytes(sg_resp); in zfcp_fsf_setup_ct_els_sbals()
1190 req->qtcb->bottom.support.service_class = FSF_CLASS_3; in zfcp_fsf_setup_ct_els()
1191 req->qtcb->bottom.support.timeout = timeout; in zfcp_fsf_setup_ct_els()
1230 req->qtcb->header.port_handle = wka_port->handle; in zfcp_fsf_send_ct()
1253 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_send_els_handler()
1330 hton24(req->qtcb->bottom.support.d_id, d_id); in zfcp_fsf_send_els()
1373 req->qtcb->bottom.config.feature_selection = in zfcp_fsf_exchange_config_data()
1428 req->qtcb->bottom.config.feature_selection = in zfcp_fsf_exchange_config_data_sync()
1678 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_open_port_handler()
1679 struct fsf_qtcb_bottom_support *bottom = &req->qtcb->bottom.support; in zfcp_fsf_open_port_handler()
1782 hton24(req->qtcb->bottom.support.d_id, port->d_id); in zfcp_fsf_open_port()
1808 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_close_port_handler()
1851 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_close_port()
1869 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_open_wka_port_handler()
1924 hton24(req->qtcb->bottom.support.d_id, wka_port->d_id); in zfcp_fsf_open_wka_port()
1945 if (req->qtcb->header.fsf_status == FSF_PORT_HANDLE_NOT_VALID) { in zfcp_fsf_close_wka_port_handler()
1984 req->qtcb->header.port_handle = wka_port->handle; in zfcp_fsf_close_wka_port()
2003 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_close_physical_port_handler()
2076 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_close_physical_port()
2098 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_open_lun_handler()
2195 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_open_lun()
2196 req->qtcb->bottom.support.fcp_lun = zfcp_scsi_dev_lun(erp_action->sdev); in zfcp_fsf_open_lun()
2203 req->qtcb->bottom.support.option = FSF_OPEN_LUN_SUPPRESS_BOXING; in zfcp_fsf_open_lun()
2227 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_close_lun_handler()
2244 switch (req->qtcb->header.fsf_status_qual.word[0]) { in zfcp_fsf_close_lun_handler()
2287 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_close_lun()
2288 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_close_lun()
2321 lat_in = &req->qtcb->prefix.prot_status_qual.latency_info; in zfcp_fsf_req_trace()
2337 switch (req->qtcb->bottom.io.data_direction) { in zfcp_fsf_req_trace()
2374 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_fcp_handler_common()
2399 req->qtcb->bottom.io.data_direction, in zfcp_fsf_fcp_handler_common()
2408 req->qtcb->bottom.io.fcp_cmnd_length); in zfcp_fsf_fcp_handler_common()
2462 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_fcp_cmnd_handler()
2478 fcp_rsp = &req->qtcb->bottom.io.fcp_rsp.iu; in zfcp_fsf_fcp_cmnd_handler()
2574 io = &req->qtcb->bottom.io; in zfcp_fsf_fcp_cmnd()
2578 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_cmnd()
2579 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_cmnd()
2592 fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu; in zfcp_fsf_fcp_cmnd()
2639 fcp_rsp = &req->qtcb->bottom.io.fcp_rsp.iu; in zfcp_fsf_fcp_task_mgmt_handler()
2682 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_task_mgmt()
2683 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_task_mgmt()
2684 req->qtcb->bottom.io.data_direction = FSF_DATADIR_CMND; in zfcp_fsf_fcp_task_mgmt()
2685 req->qtcb->bottom.io.service_class = FSF_CLASS_3; in zfcp_fsf_fcp_task_mgmt()
2686 req->qtcb->bottom.io.fcp_cmnd_length = FCP_CMND_LEN; in zfcp_fsf_fcp_task_mgmt()
2690 fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu; in zfcp_fsf_fcp_task_mgmt()