Lines Matching refs:qtcb
81 if (likely(req->qtcb)) in zfcp_fsf_req_free()
82 mempool_free(req->qtcb, req->adapter->pool.qtcb_pool); in zfcp_fsf_req_free()
87 if (likely(req->qtcb)) in zfcp_fsf_req_free()
88 kmem_cache_free(zfcp_fsf_qtcb_cache, req->qtcb); in zfcp_fsf_req_free()
279 switch (req->qtcb->header.fsf_status_qual.word[0]) { in zfcp_fsf_fsfstatus_qual_eval()
304 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_fsfstatus_eval()
308 req->qtcb->header.fsf_command); in zfcp_fsf_fsfstatus_eval()
321 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_protstatus_eval() local
322 union fsf_prot_status_qual *psq = &qtcb->prefix.prot_status_qual; in zfcp_fsf_protstatus_eval()
331 switch (qtcb->prefix.prot_status) { in zfcp_fsf_protstatus_eval()
359 (unsigned long long)qtcb->bottom.support.req_handle); in zfcp_fsf_protstatus_eval()
379 qtcb->prefix.prot_status); in zfcp_fsf_protstatus_eval()
442 struct fsf_qtcb_bottom_config *bottom = &req->qtcb->bottom.config; in zfcp_fsf_exchange_config_evaluate()
499 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_exchange_config_data_handler() local
500 struct fsf_qtcb_bottom_config *bottom = &qtcb->bottom.config; in zfcp_fsf_exchange_config_data_handler()
513 switch (qtcb->header.fsf_status) { in zfcp_fsf_exchange_config_data_handler()
538 &qtcb->header.fsf_status_qual.link_down_info); in zfcp_fsf_exchange_config_data_handler()
571 struct fsf_qtcb_bottom_port *bottom = &req->qtcb->bottom.port; in zfcp_fsf_exchange_port_evaluate()
592 struct fsf_qtcb *qtcb = req->qtcb; in zfcp_fsf_exchange_port_data_handler() local
597 switch (qtcb->header.fsf_status) { in zfcp_fsf_exchange_port_data_handler()
604 &qtcb->header.fsf_status_qual.link_down_info); in zfcp_fsf_exchange_port_data_handler()
628 struct fsf_qtcb *qtcb; in zfcp_qtcb_alloc() local
631 qtcb = mempool_alloc(pool, GFP_ATOMIC); in zfcp_qtcb_alloc()
633 qtcb = kmem_cache_alloc(zfcp_fsf_qtcb_cache, GFP_ATOMIC); in zfcp_qtcb_alloc()
635 if (unlikely(!qtcb)) in zfcp_qtcb_alloc()
638 memset(qtcb, 0, sizeof(*qtcb)); in zfcp_qtcb_alloc()
639 return qtcb; in zfcp_qtcb_alloc()
665 req->qtcb = zfcp_qtcb_alloc(adapter->pool.qtcb_pool); in zfcp_fsf_req_create()
667 req->qtcb = zfcp_qtcb_alloc(NULL); in zfcp_fsf_req_create()
669 if (unlikely(!req->qtcb)) { in zfcp_fsf_req_create()
675 req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no; in zfcp_fsf_req_create()
676 req->qtcb->prefix.req_id = req->req_id; in zfcp_fsf_req_create()
677 req->qtcb->prefix.ulp_info = 26; in zfcp_fsf_req_create()
678 req->qtcb->prefix.qtcb_type = fsf_qtcb_type[req->fsf_command]; in zfcp_fsf_req_create()
679 req->qtcb->prefix.qtcb_version = FSF_QTCB_CURRENT_VERSION; in zfcp_fsf_req_create()
680 req->qtcb->header.req_handle = req->req_id; in zfcp_fsf_req_create()
681 req->qtcb->header.fsf_command = req->fsf_command; in zfcp_fsf_req_create()
685 req->qtcb, sizeof(struct fsf_qtcb)); in zfcp_fsf_req_create()
694 int with_qtcb = (req->qtcb != NULL); in zfcp_fsf_req_send()
775 union fsf_status_qual *fsq = &req->qtcb->header.fsf_status_qual; in zfcp_fsf_abort_fcp_command_handler()
780 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_abort_fcp_command_handler()
859 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_abort_fcp_cmnd()
860 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_abort_fcp_cmnd()
861 req->qtcb->bottom.support.req_handle = (u64) old_req_id; in zfcp_fsf_abort_fcp_cmnd()
879 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_send_ct_handler()
963 req->qtcb->bottom.support.req_buf_length = bytes; in zfcp_fsf_setup_ct_els_sbals()
968 req->qtcb->bottom.support.resp_buf_length = bytes; in zfcp_fsf_setup_ct_els_sbals()
990 req->qtcb->bottom.support.service_class = FSF_CLASS_3; in zfcp_fsf_setup_ct_els()
991 req->qtcb->bottom.support.timeout = timeout; in zfcp_fsf_setup_ct_els()
1028 req->qtcb->header.port_handle = wka_port->handle; in zfcp_fsf_send_ct()
1050 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_send_els_handler()
1129 hton24(req->qtcb->bottom.support.d_id, d_id); in zfcp_fsf_send_els()
1170 req->qtcb->bottom.config.feature_selection = in zfcp_fsf_exchange_config_data()
1211 req->qtcb->bottom.config.feature_selection = in zfcp_fsf_exchange_config_data_sync()
1331 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_open_port_handler()
1384 plogi = (struct fc_els_flogi *) req->qtcb->bottom.support.els; in zfcp_fsf_open_port_handler()
1385 if (req->qtcb->bottom.support.els1_length >= in zfcp_fsf_open_port_handler()
1427 hton24(req->qtcb->bottom.support.d_id, port->d_id); in zfcp_fsf_open_port()
1452 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_close_port_handler()
1495 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_close_port()
1512 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_open_wka_port_handler()
1568 hton24(req->qtcb->bottom.support.d_id, wka_port->d_id); in zfcp_fsf_open_wka_port()
1584 if (req->qtcb->header.fsf_status == FSF_PORT_HANDLE_NOT_VALID) { in zfcp_fsf_close_wka_port_handler()
1622 req->qtcb->header.port_handle = wka_port->handle; in zfcp_fsf_close_wka_port()
1636 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_close_physical_port_handler()
1713 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_close_physical_port()
1734 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_open_lun_handler()
1735 struct fsf_qtcb_bottom_support *bottom = &req->qtcb->bottom.support; in zfcp_fsf_open_lun_handler()
1826 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_open_lun()
1827 req->qtcb->bottom.support.fcp_lun = zfcp_scsi_dev_lun(erp_action->sdev); in zfcp_fsf_open_lun()
1834 req->qtcb->bottom.support.option = FSF_OPEN_LUN_SUPPRESS_BOXING; in zfcp_fsf_open_lun()
1855 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_close_lun_handler()
1872 switch (req->qtcb->header.fsf_status_qual.word[0]) { in zfcp_fsf_close_lun_handler()
1915 req->qtcb->header.port_handle = erp_action->port->handle; in zfcp_fsf_close_lun()
1916 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_close_lun()
1948 lat_in = &req->qtcb->prefix.prot_status_qual.latency_info; in zfcp_fsf_req_trace()
1963 switch (req->qtcb->bottom.io.data_direction) { in zfcp_fsf_req_trace()
1997 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_fcp_handler_common()
2024 req->qtcb->bottom.io.data_direction, in zfcp_fsf_fcp_handler_common()
2035 req->qtcb->bottom.io.fcp_cmnd_length, in zfcp_fsf_fcp_handler_common()
2085 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_fcp_cmnd_handler()
2100 fcp_rsp = (struct fcp_resp_with_ext *) &req->qtcb->bottom.io.fcp_rsp; in zfcp_fsf_fcp_cmnd_handler()
2196 io = &req->qtcb->bottom.io; in zfcp_fsf_fcp_cmnd()
2200 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_cmnd()
2201 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_cmnd()
2212 fcp_cmnd = (struct fcp_cmnd *) &req->qtcb->bottom.io.fcp_cmnd; in zfcp_fsf_fcp_cmnd()
2252 fcp_rsp = (struct fcp_resp_with_ext *) &req->qtcb->bottom.io.fcp_rsp; in zfcp_fsf_fcp_task_mgmt_handler()
2293 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_task_mgmt()
2294 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_task_mgmt()
2295 req->qtcb->bottom.io.data_direction = FSF_DATADIR_CMND; in zfcp_fsf_fcp_task_mgmt()
2296 req->qtcb->bottom.io.service_class = FSF_CLASS_3; in zfcp_fsf_fcp_task_mgmt()
2297 req->qtcb->bottom.io.fcp_cmnd_length = FCP_CMND_LEN; in zfcp_fsf_fcp_task_mgmt()
2301 fcp_cmnd = (struct fcp_cmnd *) &req->qtcb->bottom.io.fcp_cmnd; in zfcp_fsf_fcp_task_mgmt()
2359 bottom = &req->qtcb->bottom.support; in zfcp_fsf_control_file()