id
stringlengths
4
63
text
stringlengths
153
8.81M
lpfc_resp_iocb(9)
NAME lpfc_resp_iocb - Get next response iocb entry in the ring SYNOPSIS IOCB_t * lpfc_resp_iocb (struct lpfc_hba *phba , struct lpfc_sli_ring *pring ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. DESCRIPTION This function returns pointer to next respons...
lpfc_restrict_login_init(9)
NAME lpfc_restrict_login_init - Set the vport restrict login flag SYNOPSIS int lpfc_restrict_login_init (struct lpfc_vport *vport , int val ); ARGUMENTS vport lpfc vport structure pointer. val contains the restrict login value. DESCRIPTION If val is not in a valid range then log a kernel error ...
lpfc_restrict_login_set(9)
NAME lpfc_restrict_login_set - Set the vport restrict login flag SYNOPSIS int lpfc_restrict_login_set (struct lpfc_vport *vport , int val ); ARGUMENTS vport lpfc vport structure pointer. val contains the restrict login value. DESCRIPTION If val is not in a valid range then log a kernel error ...
lpfc_resume_fabric_iocbs(9)
NAME lpfc_resume_fabric_iocbs - Issue a fabric iocb from driver internal list SYNOPSIS void lpfc_resume_fabric_iocbs (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine issues one fabric iocb from the driver internal list to the HBA. It first checks whether...
lpfc_resume_rpi(9)
NAME lpfc_resume_rpi - Initialize the RESUME_RPI mailbox command SYNOPSIS void lpfc_resume_rpi (struct lpfcMboxq *mbox , struct lpfc_nodelist *ndlp ); ARGUMENTS mbox pointer to lpfc mbox command to initialize. ndlp The nodelist structure that describes the RPI to resume. DESCRIPTION The RESUME_...
lpfc_retry_pport_discovery(9)
NAME lpfc_retry_pport_discovery - Start timer to retry FLOGI. SYNOPSIS void lpfc_retry_pport_discovery (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine abort all pending discovery commands and start a timer to retry FLOGI for the physical port discovery. S...
lpfc_rq_buf_free(9)
NAME lpfc_rq_buf_free - Free a RQ DMA buffer SYNOPSIS void lpfc_rq_buf_free (struct lpfc_hba *phba , struct lpfc_dmabuf *mp ); ARGUMENTS phba HBA buffer is associated with mp Buffer to free DESCRIPTION Frees the given DMA buffer in the appropriate way given by reposting it to its associated R...
lpfc_rq_create(9)
NAME lpfc_rq_create - Create a Receive Queue on the HBA SYNOPSIS int lpfc_rq_create (struct lpfc_hba *phba , struct lpfc_queue *hrq , struct lpfc_queue *drq , struct lpfc_queue *cq , uint32_t subtype ); ARGUMENTS phba HBA structure that indicates port to create a queue on. hrq The queue structu...
lpfc_rq_destroy(9)
NAME lpfc_rq_destroy - Destroy a Receive Queue on the HBA SYNOPSIS int lpfc_rq_destroy (struct lpfc_hba *phba , struct lpfc_queue *hrq , struct lpfc_queue *drq ); ARGUMENTS phba HBA structure that indicates port to destroy a queue on. hrq The queue structure associated with the queue to destroy...
lpfc_rrq_timeout(9)
NAME lpfc_rrq_timeout - The RRQ-timer timeout handler SYNOPSIS void lpfc_rrq_timeout (struct timer_list *t ); ARGUMENTS t timer context used to obtain the pointer to lpfc hba data structure. DESCRIPTION This is the RRQ-timer timeout handler registered to the lpfc driver. When this timer fires, a RRQ tim...
lpfc_rscn_disc(9)
NAME lpfc_rscn_disc - Perform rscn discovery for a vport SYNOPSIS void lpfc_rscn_disc (struct lpfc_vport *vport ); ARGUMENTS vport pointer to a host virtual N_Port data structure. DESCRIPTION This routine performs Registration State Change Notification (RSCN) discovery for a vport. If the vport's node port...
lpfc_rscn_payload_check(9)
NAME lpfc_rscn_payload_check - Check whether there is a pending rscn to a did SYNOPSIS int lpfc_rscn_payload_check (struct lpfc_vport *vport , uint32_t did ); ARGUMENTS vport pointer to a host virtual N_Port data structure. did remote destination port identifier. DESCRIPTION This routine check...
lpfc_rscn_recovery_check(9)
NAME lpfc_rscn_recovery_check - Send recovery event to vport nodes matching rscn SYNOPSIS int lpfc_rscn_recovery_check (struct lpfc_vport *vport ); ARGUMENTS vport pointer to a host virtual N_Port data structure. DESCRIPTION This routine sends recovery (NLP_EVT_DEVICE_RECOVERY) event to the state machine for a...
lpfc_rx_monitor_create_ring(9)
NAME lpfc_rx_monitor_create_ring - Initialize ring buffer for rx_monitor SYNOPSIS int lpfc_rx_monitor_create_ring (struct lpfc_rx_info_monitor *rx_monitor , u32 entries ); ARGUMENTS rx_monitor Pointer to lpfc_rx_info_monitor object entries Number of rx_info_entry objects to allocate in ring RETURN 0 - S...
lpfc_rx_monitor_destroy_ring(9)
NAME lpfc_rx_monitor_destroy_ring - Free ring buffer for rx_monitor SYNOPSIS void lpfc_rx_monitor_destroy_ring (struct lpfc_rx_info_monitor *rx_monitor ); ARGUMENTS rx_monitor Pointer to lpfc_rx_info_monitor object DESCRIPTION Called after cancellation of cmf_timer. SEE ALSO Kernel file ./drivers/scsi/lpfc/lpf...
lpfc_rx_monitor_record(9)
NAME lpfc_rx_monitor_record - Insert an entry into rx_monitor's ring SYNOPSIS void lpfc_rx_monitor_record (struct lpfc_rx_info_monitor *rx_monitor , struct rx_info_entry *entry ); ARGUMENTS rx_monitor Pointer to lpfc_rx_info_monitor object entry Pointer to rx_info_entry DESCRIPTION Used to insert an ...
lpfc_rx_monitor_report(9)
NAME lpfc_rx_monitor_report - Read out rx_monitor's ring SYNOPSIS u32 lpfc_rx_monitor_report (struct lpfc_hba *phba , struct lpfc_rx_info_monitor *rx_monitor , char *buf , u32 buf_len , u32 max_read_entries ); ARGUMENTS phba Pointer to lpfc_hba object rx_monitor Pointer to lpfc_rx_info_monitor object ...
lpfc_sc_to_bg_opcodes(9)
NAME lpfc_sc_to_bg_opcodes - Determine the BlockGuard opcodes to be used with the specified SCSI command. SYNOPSIS int lpfc_sc_to_bg_opcodes (struct lpfc_hba *phba , struct scsi_cmnd *sc , uint8_t *txop , uint8_t *rxop ); ARGUMENTS phba The Hba for which this call is being executed. sc The SCS...
lpfc_scan_finished(9)
NAME lpfc_scan_finished - method for SCSI layer to detect whether scan is done SYNOPSIS int lpfc_scan_finished (struct Scsi_Host *shost , unsigned long time ); ARGUMENTS shost pointer to SCSI host data structure. time elapsed time of the scan in jiffies. DESCRIPTION This routine is called by the...
lpfc_scsi_api_table_setup(9)
NAME lpfc_scsi_api_table_setup - Set up scsi api function jump table SYNOPSIS int lpfc_scsi_api_table_setup (struct lpfc_hba *phba , uint8_t dev_grp ); ARGUMENTS phba The hba struct for which this call is being executed. dev_grp The HBA PCI-Device group number. DESCRIPTION This routine sets up the...
lpfc_scsi_cmd_iocb_cmpl(9)
NAME lpfc_scsi_cmd_iocb_cmpl - Scsi cmnd IOCB completion routine SYNOPSIS void lpfc_scsi_cmd_iocb_cmpl (struct lpfc_hba *phba , struct lpfc_iocbq *pIocbIn , struct lpfc_iocbq *pIocbOut ); ARGUMENTS phba The Hba for which this call is being executed. pIocbIn The command IOCBQ for the scsi cmnd. ...
lpfc_scsi_dev_block(9)
NAME lpfc_scsi_dev_block - set all scsi hosts to block state SYNOPSIS void lpfc_scsi_dev_block (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function walks vport list and set each SCSI host to block state by invoking fc_remote_port_delete routine. This function is in...
lpfc_scsi_free(9)
NAME lpfc_scsi_free - Free all the SCSI buffers and IOCBs from driver lists SYNOPSIS void lpfc_scsi_free (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is to free all the SCSI buffers and IOCBs from the driver list back to kernel. It is called from lpfc_p...
lpfc_scsi_prep_cmnd(9)
NAME lpfc_scsi_prep_cmnd - Wrapper func for convert scsi cmnd to FCP info unit SYNOPSIS int lpfc_scsi_prep_cmnd (struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , struct lpfc_nodelist *pnode ); ARGUMENTS vport The virtual port for which this call is being executed. lpfc_cmd The scsi command w...
lpfc_scsi_prep_cmnd_buf(9)
NAME lpfc_scsi_prep_cmnd_buf - Wrapper function for IOCB/WQE mapping of scsi buffer SYNOPSIS int lpfc_scsi_prep_cmnd_buf (struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , uint8_t tmo ); ARGUMENTS vport Pointer to vport object. lpfc_cmd The scsi buffer which is going to be mapped. tmo...
lpfc_scsi_prep_cmnd_buf_s3(9)
NAME lpfc_scsi_prep_cmnd_buf_s3 - SLI-3 IOCB init for the IO SYNOPSIS int lpfc_scsi_prep_cmnd_buf_s3 (struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , uint8_t tmo ); ARGUMENTS vport Pointer to vport object. lpfc_cmd The scsi buffer which is going to be prep'ed. tmo timeout va...
lpfc_scsi_prep_cmnd_buf_s4(9)
NAME lpfc_scsi_prep_cmnd_buf_s4 - SLI-4 WQE init for the IO SYNOPSIS int lpfc_scsi_prep_cmnd_buf_s4 (struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , uint8_t tmo ); ARGUMENTS vport Pointer to vport object. lpfc_cmd The scsi buffer which is going to be prep'ed. tmo timeout val...
lpfc_scsi_prep_dma_buf(9)
NAME lpfc_scsi_prep_dma_buf - Wrapper function for DMA mapping of scsi buffer SYNOPSIS int lpfc_scsi_prep_dma_buf (struct lpfc_hba *phba , struct lpfc_io_buf *lpfc_cmd ); ARGUMENTS phba The Hba for which this call is being executed. lpfc_cmd The scsi buffer which is going to be mapped. DESCRIPTION ...
lpfc_scsi_prep_dma_buf_s3(9)
NAME lpfc_scsi_prep_dma_buf_s3 - DMA mapping for scsi buffer to SLI3 IF spec SYNOPSIS int lpfc_scsi_prep_dma_buf_s3 (struct lpfc_hba *phba , struct lpfc_io_buf *lpfc_cmd ); ARGUMENTS phba The Hba for which this call is being executed. lpfc_cmd The scsi buffer which is going to be mapped. DESCRIPTIO...
lpfc_scsi_prep_dma_buf_s4(9)
NAME lpfc_scsi_prep_dma_buf_s4 - DMA mapping for scsi buffer to SLI4 IF spec SYNOPSIS int lpfc_scsi_prep_dma_buf_s4 (struct lpfc_hba *phba , struct lpfc_io_buf *lpfc_cmd ); ARGUMENTS phba The Hba for which this call is being executed. lpfc_cmd The scsi buffer which is going to be mapped. DESCRIPTIO...
lpfc_scsi_prep_task_mgmt_cmd_s3(9)
NAME lpfc_scsi_prep_task_mgmt_cmd_s3 - Convert SLI3 scsi TM cmd to FCP info unit SYNOPSIS int lpfc_scsi_prep_task_mgmt_cmd_s3 (struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , u64 lun , u8 task_mgmt_cmd ); ARGUMENTS vport The virtual port for which this call is being executed. lpfc_cmd Point...
lpfc_scsi_prep_task_mgmt_cmd_s4(9)
NAME lpfc_scsi_prep_task_mgmt_cmd_s4 - Convert SLI4 scsi TM cmd to FCP info unit SYNOPSIS int lpfc_scsi_prep_task_mgmt_cmd_s4 (struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , u64 lun , u8 task_mgmt_cmd ); ARGUMENTS vport The virtual port for which this call is being executed. lpfc_cmd Point...
lpfc_scsi_unprep_dma_buf(9)
NAME lpfc_scsi_unprep_dma_buf - Un-map DMA mapping of SG-list for dev SYNOPSIS void lpfc_scsi_unprep_dma_buf (struct lpfc_hba *phba , struct lpfc_io_buf *psb ); ARGUMENTS phba The HBA for which this call is being executed. psb The scsi buffer which is going to be un-mapped. DESCRIPTION This ro...
lpfc_sdev_configure(9)
NAME lpfc_sdev_configure - scsi_host_template sdev_configure entry point SYNOPSIS int lpfc_sdev_configure (struct scsi_device *sdev , struct queue_limits *lim ); ARGUMENTS sdev Pointer to scsi_device. lim Request queue limits. DESCRIPTION This routine configures following items - Tag command q...
lpfc_sdev_destroy(9)
NAME lpfc_sdev_destroy - sdev_destroy entry point of SHT data structure SYNOPSIS void lpfc_sdev_destroy (struct scsi_device *sdev ); ARGUMENTS sdev Pointer to scsi_device. DESCRIPTION This routine sets sdev hostatdata filed to null. SEE ALSO Kernel file ./drivers/scsi/lpfc/lpfc_scsi.c lpfc_sli...
lpfc_sdev_init(9)
NAME lpfc_sdev_init - scsi_host_template sdev_init entry point SYNOPSIS int lpfc_sdev_init (struct scsi_device *sdev ); ARGUMENTS sdev Pointer to scsi_device. DESCRIPTION This routine populates the cmds_per_lun count + 2 scsi_bufs into this host's globally available list of scsi buffers. This routine also...
lpfc_selective_reset(9)
NAME lpfc_selective_reset - Offline then onlines the port SYNOPSIS int lpfc_selective_reset (struct lpfc_hba *phba ); ARGUMENTS phba lpfc_hba pointer. DESCRIPTION If the port is configured to allow a reset then the hba is brought offline then online. NOTES Assumes any error from lpfc_do_offline will be negat...
lpfc_send_els_event(9)
NAME lpfc_send_els_event - Posts unsolicited els event SYNOPSIS void lpfc_send_els_event (struct lpfc_vport *vport , struct lpfc_nodelist *ndlp , uint32_t *payload ); ARGUMENTS vport Pointer to vport object. ndlp Pointer FC node object. payload ELS command code type. DESCRIPTION This...
lpfc_send_els_failure_event(9)
NAME lpfc_send_els_failure_event - Posts an ELS command failure event SYNOPSIS void lpfc_send_els_failure_event (struct lpfc_hba *phba , struct lpfc_iocbq *cmdiocbp , struct lpfc_iocbq *rspiocbp ); ARGUMENTS phba Pointer to hba context object. cmdiocbp Pointer to command iocb which reported error. ...
lpfc_send_fastpath_evt(9)
NAME lpfc_send_fastpath_evt - Posts events generated from fast path SYNOPSIS void lpfc_send_fastpath_evt (struct lpfc_hba *phba , struct lpfc_work_evt *evtp ); ARGUMENTS phba Pointer to hba context object. evtp Event data structure. DESCRIPTION This function is called from worker thread, when t...
lpfc_send_rrq(9)
NAME lpfc_send_rrq - Sends ELS RRQ if needed. SYNOPSIS int lpfc_send_rrq (struct lpfc_hba *phba , struct lpfc_node_rrq *rrq ); ARGUMENTS phba pointer to lpfc hba data structure. rrq pointer to the active rrq. DESCRIPTION This routine will call the lpfc_issue_els_rrq if the rrq is still act...
lpfc_send_rscn_event(9)
NAME lpfc_send_rscn_event - Send an RSCN event to management application SYNOPSIS void lpfc_send_rscn_event (struct lpfc_vport *vport , struct lpfc_iocbq *cmdiocb ); ARGUMENTS vport pointer to a host virtual N_Port data structure. cmdiocb pointer to lpfc command iocb data structure. DESCRIPTION lpf...
lpfc_send_scsi_error_event(9)
NAME lpfc_send_scsi_error_event - Posts an event when there is SCSI error SYNOPSIS void lpfc_send_scsi_error_event (struct lpfc_hba *phba , struct lpfc_vport *vport , struct lpfc_io_buf *lpfc_cmd , uint32_t fcpi_parm ); ARGUMENTS phba Pointer to hba context object. vport Pointer to vport object. ...
lpfc_send_taskmgmt(9)
NAME lpfc_send_taskmgmt - Generic SCSI Task Mgmt Handler SYNOPSIS int lpfc_send_taskmgmt (struct lpfc_vport *vport , struct fc_rport *rport , unsigned int tgt_id , uint64_t lun_id , uint8_t task_mgmt_cmd ); ARGUMENTS vport The virtual port for which this call is being executed. rport Pointer to re...
lpfc_seq_complete(9)
NAME lpfc_seq_complete - Indicates if a sequence is complete SYNOPSIS int lpfc_seq_complete (struct hbq_dmabuf *dmabuf ); ARGUMENTS dmabuf pointer to a dmabuf that describes the FC sequence DESCRIPTION This function checks the sequence, starting with the frame described by dmabuf, to see if all the frames asso...
lpfc_serialnum_show(9)
NAME lpfc_serialnum_show - Return the hba serial number in ascii SYNOPSIS ssize_t lpfc_serialnum_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev class converted to a Scsi_host structure. attr device attribute, not used. buf on return contain...
lpfc_set_rport_loss_tmo(9)
NAME lpfc_set_rport_loss_tmo - Set the rport dev loss tmo SYNOPSIS void lpfc_set_rport_loss_tmo (struct fc_rport *rport , uint32_t timeout ); ARGUMENTS rport fc rport address. timeout new value for dev loss tmo. DESCRIPTION If timeout is non zero set the dev_loss_tmo to timeout, else set dev_loss_t...
lpfc_set_rrq_active(9)
NAME lpfc_set_rrq_active - set RRQ active bit in xri_bitmap. SYNOPSIS int lpfc_set_rrq_active (struct lpfc_hba *phba , struct lpfc_nodelist *ndlp , uint16_t xritag , uint16_t rxid , uint16_t send_rrq ); ARGUMENTS phba Pointer to HBA context object. ndlp nodelist pointer for this target. ...
lpfc_set_vport_symbolic_name(9)
NAME lpfc_set_vport_symbolic_name - Set the vport's symbolic name SYNOPSIS void lpfc_set_vport_symbolic_name (struct fc_vport *fc_vport ); ARGUMENTS fc_vport The fc_vport who's symbolic name has been changed. DESCRIPTION This function is called by the transport after the fc_vport's symbolic name has been changed....
lpfc_setup_bg(9)
NAME lpfc_setup_bg - Setup Block guard structures and debug areas. SYNOPSIS void lpfc_setup_bg (struct lpfc_hba *phba , struct Scsi_Host *shost ); ARGUMENTS phba pointer to lpfc hba data structure. shost the shost to be used to detect Block guard settings. DESCRIPTION This routine sets up the lo...
lpfc_setup_cq_lookup(9)
NAME lpfc_setup_cq_lookup - Setup the CQ lookup table SYNOPSIS void lpfc_setup_cq_lookup (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine will populate the cq_lookup table by all available CQ queue_id's. SEE ALSO Kernel file ./drivers/scsi/lpfc/lpfc_in...
lpfc_setup_driver_resource_phase1(9)
NAME lpfc_setup_driver_resource_phase1 - Phase1 etup driver internal resources. SYNOPSIS int lpfc_setup_driver_resource_phase1 (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to set up the driver internal resources before the device specific res...
lpfc_setup_driver_resource_phase2(9)
NAME lpfc_setup_driver_resource_phase2 - Phase2 setup driver internal resources. SYNOPSIS int lpfc_setup_driver_resource_phase2 (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to set up the driver internal resources after the device specific res...
lpfc_setup_endian_order(9)
NAME lpfc_setup_endian_order - Write endian order to an SLI4 if_type 0 port. SYNOPSIS int lpfc_setup_endian_order (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to setup the port-side endian order when the port if_type is 0. This routine...
lpfc_setup_fdmi_mask(9)
NAME lpfc_setup_fdmi_mask - Setup initial FDMI mask for HBA and Port attributes SYNOPSIS void lpfc_setup_fdmi_mask (struct lpfc_vport *vport ); ARGUMENTS vport pointer to lpfc vport data structure. DESCRIPTION This routine is will setup initial FDMI attribute masks for FDMI2 or SmartSAN depending on module pa...
lpfc_sg_seg_cnt_init(9)
NAME lpfc_sg_seg_cnt_init - Set the hba sg_seg_cnt initial value SYNOPSIS int lpfc_sg_seg_cnt_init (struct lpfc_hba *phba , int val ); ARGUMENTS phba lpfc_hba pointer. val contains the initial value DESCRIPTION Validates the initial value is within range and assigns it to the adapter. If not i...
lpfc_sg_seg_cnt_show(9)
NAME lpfc_sg_seg_cnt_show - Display the scatter/gather list sizes configured for the adapter SYNOPSIS ssize_t lpfc_sg_seg_cnt_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev class converted to a Scsi_host structure. attr device attribute, not used. ...
lpfc_sha_init(9)
NAME lpfc_sha_init - Set up initial array of hash table entries SYNOPSIS void lpfc_sha_init (uint32_t * HashResultPointer ); ARGUMENTS HashResultPointer pointer to an array as hash table. DESCRIPTION This routine sets up the initial values to the array of hash table entries for the LC HBAs. SEE ALSO Kernel file ...
lpfc_sha_iterate(9)
NAME lpfc_sha_iterate - Iterate initial hash table with the working hash table SYNOPSIS void lpfc_sha_iterate (uint32_t * HashResultPointer , uint32_t * HashWorkingPointer ); ARGUMENTS HashResultPointer pointer to an initial/result hash table. HashWorkingPointer pointer to an working hash t...
lpfc_sli3_bsg_diag_loopback_mode(9)
NAME lpfc_sli3_bsg_diag_loopback_mode - process an sli3 bsg vendor command SYNOPSIS int lpfc_sli3_bsg_diag_loopback_mode (struct lpfc_hba *phba , struct bsg_job *job ); ARGUMENTS phba Pointer to HBA context object. job LPFC_BSG_VENDOR_DIAG_MODE DESCRIPTION This function is responsible for pla...
lpfc_sli3_post_buffer(9)
NAME lpfc_sli3_post_buffer - Post IOCB(s) with DMA buffer descriptor(s) to a IOCB ring SYNOPSIS int lpfc_sli3_post_buffer (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , int cnt ); ARGUMENTS phba pointer to lpfc hba data structure. pring pointer to a IOCB ring. cnt the numb...
lpfc_sli4_abort_partial_seq(9)
NAME lpfc_sli4_abort_partial_seq - Abort partially assembled unsol sequence SYNOPSIS bool lpfc_sli4_abort_partial_seq (struct lpfc_vport *vport , struct hbq_dmabuf *dmabuf ); ARGUMENTS vport pointer to a vitural port dmabuf pointer to a dmabuf that describes the FC sequence DESCRIPTION This funct...
lpfc_sli4_abort_ulp_seq(9)
NAME lpfc_sli4_abort_ulp_seq - Abort assembled unsol sequence from ulp SYNOPSIS bool lpfc_sli4_abort_ulp_seq (struct lpfc_vport *vport , struct hbq_dmabuf *dmabuf ); ARGUMENTS vport pointer to a vitural port dmabuf pointer to a dmabuf that describes the FC sequence DESCRIPTION This function trie...
lpfc_sli4_add_fcf_record(9)
NAME lpfc_sli4_add_fcf_record - Manually add an FCF Record. SYNOPSIS int lpfc_sli4_add_fcf_record (struct lpfc_hba *phba , struct fcf_record *fcf_record ); ARGUMENTS phba pointer to lpfc hba data structure. fcf_record pointer to the initialized fcf record to add. DESCRIPTION This routine is invoked t...
lpfc_sli4_alloc_extent(9)
NAME lpfc_sli4_alloc_extent - Allocate an SLI4 resource extent. SYNOPSIS int lpfc_sli4_alloc_extent (struct lpfc_hba *phba , uint16_t type ); ARGUMENTS phba Pointer to HBA context object. type The resource extent type to allocate. DESCRIPTION This function allocates the number of elements for t...
lpfc_sli4_alloc_resource_identifiers(9)
NAME lpfc_sli4_alloc_resource_identifiers - Allocate all SLI4 resource extents. SYNOPSIS int lpfc_sli4_alloc_resource_identifiers (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function allocates all SLI4 resource identifiers. SEE ALSO Kernel file ./drivers/scsi/...
lpfc_sli4_alloc_rpi(9)
NAME lpfc_sli4_alloc_rpi - Get an available rpi in the device's range SYNOPSIS int lpfc_sli4_alloc_rpi (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to post rpi header templates to the HBA consistent with the SLI-4 interface spec. This rout...
lpfc_sli4_alloc_xri(9)
NAME lpfc_sli4_alloc_xri - Get an available rpi in the device's range SYNOPSIS uint16_t lpfc_sli4_alloc_xri (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to post rpi header templates to the HBA consistent with the SLI-4 interface spec. This...
lpfc_sli4_arm_cqeq_intr(9)
NAME lpfc_sli4_arm_cqeq_intr - Arm sli-4 device completion and event queues SYNOPSIS void lpfc_sli4_arm_cqeq_intr (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is called to explicitly arm the SLI4 device's completion and event queues SEE ALSO Kernel f...
lpfc_sli4_async_cmstat_evt(9)
NAME lpfc_sli4_async_cmstat_evt - Process the asynchronous cmstat event SYNOPSIS void lpfc_sli4_async_cmstat_evt (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is to handle the SLI4 asynchronous cmstat event. A cmstat event is an asynchronous notification...
lpfc_sli4_async_dcbx_evt(9)
NAME lpfc_sli4_async_dcbx_evt - Process the asynchronous dcbx event SYNOPSIS void lpfc_sli4_async_dcbx_evt (struct lpfc_hba *phba , struct lpfc_acqe_dcbx *acqe_dcbx ); ARGUMENTS phba pointer to lpfc hba data structure. acqe_dcbx pointer to the async dcbx completion queue entry. DESCRIPTION This rout...
lpfc_sli4_async_event_proc(9)
NAME lpfc_sli4_async_event_proc - Process all the pending asynchronous event SYNOPSIS void lpfc_sli4_async_event_proc (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked by the worker thread to process all the pending SLI4 asynchronous events. SEE ...
lpfc_sli4_async_fc_evt(9)
NAME lpfc_sli4_async_fc_evt - Process the asynchronous FC link event SYNOPSIS void lpfc_sli4_async_fc_evt (struct lpfc_hba *phba , struct lpfc_acqe_fc_la *acqe_fc ); ARGUMENTS phba pointer to lpfc hba data structure. acqe_fc pointer to the async fc completion queue entry. DESCRIPTION This routine ...
lpfc_sli4_async_fip_evt(9)
NAME lpfc_sli4_async_fip_evt - Process the asynchronous FCoE FIP event SYNOPSIS void lpfc_sli4_async_fip_evt (struct lpfc_hba *phba , struct lpfc_acqe_fip *acqe_fip ); ARGUMENTS phba pointer to lpfc hba data structure. acqe_fip pointer to the async fcoe completion queue entry. DESCRIPTION This rout...
lpfc_sli4_async_grp5_evt(9)
NAME lpfc_sli4_async_grp5_evt - Process the asynchronous group5 event SYNOPSIS void lpfc_sli4_async_grp5_evt (struct lpfc_hba *phba , struct lpfc_acqe_grp5 *acqe_grp5 ); ARGUMENTS phba pointer to lpfc hba data structure. acqe_grp5 pointer to the async grp5 completion queue entry. DESCRIPTION This ro...
lpfc_sli4_async_link_evt(9)
NAME lpfc_sli4_async_link_evt - Process the asynchronous FCoE link event SYNOPSIS void lpfc_sli4_async_link_evt (struct lpfc_hba *phba , struct lpfc_acqe_link *acqe_link ); ARGUMENTS phba pointer to lpfc hba data structure. acqe_link pointer to the async link completion queue entry. DESCRIPTION This...
lpfc_sli4_async_mbox_block(9)
NAME lpfc_sli4_async_mbox_block - Block posting SLI4 asynchronous mailbox command SYNOPSIS int lpfc_sli4_async_mbox_block (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION The function blocks the posting of SLI4 asynchronous mailbox commands from the driver internal pending m...
lpfc_sli4_async_mbox_unblock(9)
NAME lpfc_sli4_async_mbox_unblock - Block posting SLI4 async mailbox command SYNOPSIS void lpfc_sli4_async_mbox_unblock (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION The function unblocks and resume posting of SLI4 asynchronous mailbox commands from the driver internal ...
lpfc_sli4_async_sli_evt(9)
NAME lpfc_sli4_async_sli_evt - Process the asynchronous SLI link event SYNOPSIS void lpfc_sli4_async_sli_evt (struct lpfc_hba *phba , struct lpfc_acqe_sli *acqe_sli ); ARGUMENTS phba pointer to lpfc hba data structure. acqe_sli pointer to the async SLI completion queue entry. DESCRIPTION This routi...
lpfc_sli4_bar0_register_memmap(9)
NAME lpfc_sli4_bar0_register_memmap - Set up SLI4 BAR0 register memory map. SYNOPSIS void lpfc_sli4_bar0_register_memmap (struct lpfc_hba *phba , uint32_t if_type ); ARGUMENTS phba pointer to lpfc hba data structure. if_type The SLI4 interface type getting configured. DESCRIPTION This routine is i...
lpfc_sli4_bar1_register_memmap(9)
NAME lpfc_sli4_bar1_register_memmap - Set up SLI4 BAR1 register memory map. SYNOPSIS void lpfc_sli4_bar1_register_memmap (struct lpfc_hba *phba , uint32_t if_type ); ARGUMENTS phba pointer to lpfc hba data structure. if_type sli if type to operate on. DESCRIPTION This routine is invoked to set up ...
lpfc_sli4_bar2_register_memmap(9)
NAME lpfc_sli4_bar2_register_memmap - Set up SLI4 BAR2 register memory map. SYNOPSIS int lpfc_sli4_bar2_register_memmap (struct lpfc_hba *phba , uint32_t vf ); ARGUMENTS phba pointer to lpfc hba data structure. vf virtual function number DESCRIPTION This routine is invoked to set up SLI4 BAR2...
lpfc_sli4_brdreset(9)
NAME lpfc_sli4_brdreset - Reset a sli-4 HBA SYNOPSIS int lpfc_sli4_brdreset (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function resets a SLI4 HBA. This function disables PCI layer parity checking during resets the device. The caller is not required to hold any...
lpfc_sli4_bsg_diag_loopback_mode(9)
NAME lpfc_sli4_bsg_diag_loopback_mode - process an sli4 bsg vendor command SYNOPSIS int lpfc_sli4_bsg_diag_loopback_mode (struct lpfc_hba *phba , struct bsg_job *job ); ARGUMENTS phba Pointer to HBA context object. job LPFC_BSG_VENDOR_DIAG_MODE DESCRIPTION This function is responsible for plac...
lpfc_sli4_bsg_diag_mode_end(9)
NAME lpfc_sli4_bsg_diag_mode_end - sli4 bsg vendor command for ending diag mode SYNOPSIS int lpfc_sli4_bsg_diag_mode_end (struct bsg_job *job ); ARGUMENTS job LPFC_BSG_VENDOR_DIAG_MODE_END DESCRIPTION This function is responsible for responding to check and dispatch bsg diag command from the user to proper d...
lpfc_sli4_bsg_link_diag_test(9)
NAME lpfc_sli4_bsg_link_diag_test - sli4 bsg vendor command for diag link test SYNOPSIS int lpfc_sli4_bsg_link_diag_test (struct bsg_job *job ); ARGUMENTS job LPFC_BSG_VENDOR_DIAG_LINK_TEST DESCRIPTION This function is to perform SLI4 diag link test request from the user applicaiton. SEE ALSO Kernel file ...
lpfc_sli4_bsg_set_link_diag_state(9)
NAME lpfc_sli4_bsg_set_link_diag_state - set sli4 link diag state SYNOPSIS int lpfc_sli4_bsg_set_link_diag_state (struct lpfc_hba *phba , uint32_t diag ); ARGUMENTS phba Pointer to HBA context object. diag Flag for set link to diag or nomral operation state. DESCRIPTION This function is respons...
lpfc_sli4_bsg_set_loopback_mode(9)
NAME lpfc_sli4_bsg_set_loopback_mode - set sli4 internal loopback diagnostic SYNOPSIS int lpfc_sli4_bsg_set_loopback_mode (struct lpfc_hba *phba , int mode , uint32_t link_no ); ARGUMENTS phba Pointer to HBA context object. mode loopback mode to set link_no link number for loopback m...
lpfc_sli4_build_dflt_fcf_record(9)
NAME lpfc_sli4_build_dflt_fcf_record - Build the driver's default FCF Record. SYNOPSIS void lpfc_sli4_build_dflt_fcf_record (struct lpfc_hba *phba , struct fcf_record *fcf_record , uint16_t fcf_index ); ARGUMENTS phba pointer to lpfc hba data structure. fcf_record pointer to the fcf record to write th...
lpfc_sli4_calc_ring(9)
NAME lpfc_sli4_calc_ring - Calculates which ring to use SYNOPSIS struct lpfc_sli_ring * lpfc_sli4_calc_ring (struct lpfc_hba *phba , struct lpfc_iocbq *piocb ); ARGUMENTS phba Pointer to HBA context object. piocb Pointer to command iocb. DESCRIPTION For SLI4 only, FCP IO can deferred to ...
lpfc_sli4_cfg_post_extnts(9)
NAME lpfc_sli4_cfg_post_extnts - SYNOPSIS int lpfc_sli4_cfg_post_extnts (struct lpfc_hba *phba , uint16_t extnt_cnt , uint16_t type , bool *emb , LPFC_MBOXQ_t *mbox ); ARGUMENTS phba Pointer to HBA context object. extnt_cnt number of available extents. type the extent type (rpi, xri, v...
lpfc_sli4_cgn_params_read(9)
NAME lpfc_sli4_cgn_params_read - Read and Validate FW congestion parameters. SYNOPSIS int lpfc_sli4_cgn_params_read (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine issues a read_object mailbox command to get the congestion management parameters from the...
lpfc_sli4_cgn_parm_chg_evt(9)
NAME lpfc_sli4_cgn_parm_chg_evt - Process a FW congestion param change event SYNOPSIS int lpfc_sli4_cgn_parm_chg_evt (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION The FW generated Async ACQE SLI event calls this routine when the event type is an SLI Internal ...
lpfc_sli4_chk_avail_extnt_rsrc(9)
NAME lpfc_sli4_chk_avail_extnt_rsrc - Check for available SLI4 resource extents. SYNOPSIS int lpfc_sli4_chk_avail_extnt_rsrc (struct lpfc_hba *phba , uint16_t type ); ARGUMENTS phba Pointer to HBA context object. type The extent type to check. DESCRIPTION This function reads the current availab...
lpfc_sli4_clear_fcf_rr_bmask(9)
NAME lpfc_sli4_clear_fcf_rr_bmask - SYNOPSIS void lpfc_sli4_clear_fcf_rr_bmask (struct lpfc_hba *phba ); ARGUMENTS phba pointer to the struct lpfc_hba for this port. This fucnction resets the round robin bit mask and clears the fcf priority list. The list deletions are done while holding the hbalock. The ON...
lpfc_sli4_config(9)
NAME lpfc_sli4_config - Initialize the SLI4 Config Mailbox command SYNOPSIS int lpfc_sli4_config (struct lpfc_hba *phba , struct lpfcMboxq *mbox , uint8_t subsystem , uint8_t opcode , uint32_t length , bool emb ); ARGUMENTS phba pointer to lpfc hba data structure. mbox pointer to lpfc mbox comma...
lpfc_sli4_cq_event_alloc(9)
NAME lpfc_sli4_cq_event_alloc - Allocate a completion-queue event from free pool SYNOPSIS struct lpfc_cq_event * lpfc_sli4_cq_event_alloc (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is the lock version of the API invoked to allocate a completion-queue ...
lpfc_sli4_cq_event_pool_create(9)
NAME lpfc_sli4_cq_event_pool_create - Create completion-queue event free pool SYNOPSIS int lpfc_sli4_cq_event_pool_create (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to allocate and set up a pool of completion queue events. The body of t...
lpfc_sli4_cq_event_pool_destroy(9)
NAME lpfc_sli4_cq_event_pool_destroy - Free completion-queue event free pool SYNOPSIS void lpfc_sli4_cq_event_pool_destroy (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to free the pool of completion queue events at driver unload time. Note...
lpfc_sli4_cq_event_release(9)
NAME lpfc_sli4_cq_event_release - Release a completion-queue event to free pool SYNOPSIS void lpfc_sli4_cq_event_release (struct lpfc_hba *phba , struct lpfc_cq_event *cq_event ); ARGUMENTS phba pointer to lpfc hba data structure. cq_event pointer to the completion queue event to be freed. DESCRIPT...