id
stringlengths
4
63
text
stringlengths
153
8.81M
lpfc_sli_enable_msi(9)
NAME lpfc_sli_enable_msi - Enable MSI interrupt mode on SLI-3 device. SYNOPSIS int lpfc_sli_enable_msi (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to enable the MSI interrupt mode to device with SLI-3 interface spec. The kernel function ...
lpfc_sli_enable_msix(9)
NAME lpfc_sli_enable_msix - Enable MSI-X interrupt mode on SLI-3 device SYNOPSIS int lpfc_sli_enable_msix (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to enable the MSI-X interrupt vectors to device with SLI-3 interface specs. Return codes 0...
lpfc_sli_eratt_read(9)
NAME lpfc_sli_eratt_read - read sli-3 error attention events SYNOPSIS int lpfc_sli_eratt_read (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context. DESCRIPTION This function is called to read the SLI3 device error attention registers for possible error attention events. The caller must hold the h...
lpfc_sli_flush_io_rings(9)
NAME lpfc_sli_flush_io_rings - flush all iocbs in the IO ring SYNOPSIS void lpfc_sli_flush_io_rings (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function flushes all iocbs in the IO ring and frees all the iocb objects in txq and txcmplq. This function will ...
lpfc_sli_fp_intr_handler(9)
NAME lpfc_sli_fp_intr_handler - Fast-path interrupt handler to SLI-3 device. SYNOPSIS irqreturn_t lpfc_sli_fp_intr_handler (int irq , void *dev_id ); ARGUMENTS irq Interrupt number. dev_id The device context pointer. DESCRIPTION This function is directly called from the PCI layer as an interrup...
lpfc_sli_free_hbq(9)
NAME lpfc_sli_free_hbq - Give back the hbq buffer to firmware SYNOPSIS void lpfc_sli_free_hbq (struct lpfc_hba *phba , struct hbq_dmabuf *hbq_buffer ); ARGUMENTS phba Pointer to HBA context object. hbq_buffer Pointer to HBQ buffer. DESCRIPTION This function is called with hbalock. This function gives...
lpfc_sli_get_buff(9)
NAME lpfc_sli_get_buff - Get the buffer associated with the buffer tag SYNOPSIS struct lpfc_dmabuf * lpfc_sli_get_buff (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint32_t tag ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. tag ...
lpfc_sli_get_buffer_tag(9)
NAME lpfc_sli_get_buffer_tag - allocates a tag for a CMD_QUE_XRI64_CX buffer SYNOPSIS uint32_t lpfc_sli_get_buffer_tag (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION When HBQ is enabled, buffers are searched based on tags. This function allocates a tag for buffer posted ...
lpfc_sli_get_config_region23(9)
NAME lpfc_sli_get_config_region23 - Get sli3 port region 23 data. SYNOPSIS uint32_t lpfc_sli_get_config_region23 (struct lpfc_hba *phba , char *rgn23_data ); ARGUMENTS phba pointer to lpfc hba data structure. rgn23_data pointer to configure region 23 data. DESCRIPTION This function gets SLI3 port con...
lpfc_sli_get_iocbq(9)
NAME lpfc_sli_get_iocbq - Allocates an iocb object from iocb pool SYNOPSIS struct lpfc_iocbq * lpfc_sli_get_iocbq (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function is called with no lock held. This function allocates a new driver iocb object from the iocb pool. ...
lpfc_sli_handle_fast_ring_event(9)
NAME lpfc_sli_handle_fast_ring_event - Handle ring events on FCP ring SYNOPSIS int lpfc_sli_handle_fast_ring_event (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint32_t mask ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. mask Hos...
lpfc_sli_handle_mb_event(9)
NAME lpfc_sli_handle_mb_event - Handle mailbox completions from firmware SYNOPSIS int lpfc_sli_handle_mb_event (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function is called with no lock held. This function processes all the completed mailbox commands and gives i...
lpfc_sli_handle_slow_ring_event(9)
NAME lpfc_sli_handle_slow_ring_event - Wrapper func for handling slow-path iocbs SYNOPSIS void lpfc_sli_handle_slow_ring_event (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint32_t mask ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. mas...
lpfc_sli_handle_slow_ring_event_s3(9)
NAME lpfc_sli_handle_slow_ring_event_s3 - Handle SLI3 ring event for non-FCP rings SYNOPSIS void lpfc_sli_handle_slow_ring_event_s3 (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint32_t mask ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. ...
lpfc_sli_handle_slow_ring_event_s4(9)
NAME lpfc_sli_handle_slow_ring_event_s4 - Handle SLI4 slow-path els events SYNOPSIS void lpfc_sli_handle_slow_ring_event_s4 (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint32_t mask ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. mask ...
lpfc_sli_hba_down(9)
NAME lpfc_sli_hba_down - Resource cleanup function for the HBA SYNOPSIS int lpfc_sli_hba_down (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function cleans up all iocb, buffers, mailbox commands while shutting down the HBA. This function is called with no lock he...
lpfc_sli_hba_iocb_abort(9)
NAME lpfc_sli_hba_iocb_abort - Abort all iocbs to an hba. SYNOPSIS void lpfc_sli_hba_iocb_abort (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc HBA data structure. DESCRIPTION This routine will abort all pending and outstanding iocbs to an HBA. SEE ALSO Kernel file ./drivers/scsi/lpfc/lpfc_sli.c...
lpfc_sli_hba_setup(9)
NAME lpfc_sli_hba_setup - SLI initialization function SYNOPSIS int lpfc_sli_hba_setup (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function is the main SLI initialization function. This function is called by the HBA initialization code, HBA reset code and HBA erro...
lpfc_sli_hbq_count(9)
NAME lpfc_sli_hbq_count - Get the number of HBQs to be configured SYNOPSIS int lpfc_sli_hbq_count (void ); ARGUMENTS void no arguments DESCRIPTION This function calculates and returns the number of HBQs required to be configured. SEE ALSO Kernel file ./drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_pcimem_bcop...
lpfc_sli_hbq_entry_count(9)
NAME lpfc_sli_hbq_entry_count - Calculate total number of hbq entries SYNOPSIS int lpfc_sli_hbq_entry_count (void ); ARGUMENTS void no arguments DESCRIPTION This function adds the number of hbq entries in every HBQ to get the total number of hbq entries required for the HBA and returns the total count. SEE A...
lpfc_sli_hbq_setup(9)
NAME lpfc_sli_hbq_setup - configure and initialize HBQs SYNOPSIS int lpfc_sli_hbq_setup (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function is called during the SLI initialization to configure all the HBQs and post buffers to the HBQ. The caller is not required ...
lpfc_sli_hbq_size(9)
NAME lpfc_sli_hbq_size - Calculate memory required for all hbq entries SYNOPSIS int lpfc_sli_hbq_size (void ); ARGUMENTS void no arguments DESCRIPTION This function calculates amount of memory required for all hbq entries to be configured and returns the total memory required. SEE ALSO Kernel file ./driv...
lpfc_sli_hbq_to_firmware(9)
NAME lpfc_sli_hbq_to_firmware - Post the hbq buffer to firmware SYNOPSIS int lpfc_sli_hbq_to_firmware (struct lpfc_hba *phba , uint32_t hbqno , struct hbq_dmabuf *hbq_buf ); ARGUMENTS phba Pointer to HBA context object. hbqno HBQ number. hbq_buf Pointer to HBQ buffer. DESCRIPTION Thi...
lpfc_sli_hbq_to_firmware_s3(9)
NAME lpfc_sli_hbq_to_firmware_s3 - Post the hbq buffer to SLI3 firmware SYNOPSIS int lpfc_sli_hbq_to_firmware_s3 (struct lpfc_hba *phba , uint32_t hbqno , struct hbq_dmabuf *hbq_buf ); ARGUMENTS phba Pointer to HBA context object. hbqno HBQ number. hbq_buf Pointer to HBQ buffer. DESC...
lpfc_sli_hbq_to_firmware_s4(9)
NAME lpfc_sli_hbq_to_firmware_s4 - Post the hbq buffer to SLI4 firmware SYNOPSIS int lpfc_sli_hbq_to_firmware_s4 (struct lpfc_hba *phba , uint32_t hbqno , struct hbq_dmabuf *hbq_buf ); ARGUMENTS phba Pointer to HBA context object. hbqno HBQ number. hbq_buf Pointer to HBQ buffer. DESC...
lpfc_sli_hbqbuf_add_hbqs(9)
NAME lpfc_sli_hbqbuf_add_hbqs - Post more HBQ buffers to firmware SYNOPSIS int lpfc_sli_hbqbuf_add_hbqs (struct lpfc_hba *phba , uint32_t qno ); ARGUMENTS phba Pointer to HBA context object. qno HBQ number. DESCRIPTION This function posts more buffers to the HBQ. This function is called with n...
lpfc_sli_hbqbuf_fill_hbqs(9)
NAME lpfc_sli_hbqbuf_fill_hbqs - Post more hbq buffers to HBQ SYNOPSIS int lpfc_sli_hbqbuf_fill_hbqs (struct lpfc_hba *phba , uint32_t hbqno , uint32_t count ); ARGUMENTS phba Pointer to HBA context object. hbqno HBQ number. count Number of HBQ buffers to be posted. DESCRIPTION Thi...
lpfc_sli_hbqbuf_find(9)
NAME lpfc_sli_hbqbuf_find - Find the hbq buffer associated with a tag SYNOPSIS struct hbq_dmabuf * lpfc_sli_hbqbuf_find (struct lpfc_hba *phba , uint32_t tag ); ARGUMENTS phba Pointer to HBA context object. tag Tag of the hbq buffer. DESCRIPTION This function searches for the hbq buffer associ...
lpfc_sli_hbqbuf_free_all(9)
NAME lpfc_sli_hbqbuf_free_all - Free all the hbq buffers SYNOPSIS void lpfc_sli_hbqbuf_free_all (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function is called with no lock held to free all the hbq buffers while uninitializing the SLI interface. It also frees the HB...
lpfc_sli_hbqbuf_init_hbqs(9)
NAME lpfc_sli_hbqbuf_init_hbqs - Post initial buffers to the HBQ SYNOPSIS int lpfc_sli_hbqbuf_init_hbqs (struct lpfc_hba *phba , uint32_t qno ); ARGUMENTS phba Pointer to HBA context object. qno HBQ queue number. DESCRIPTION This function is called from SLI initialization code path with no loc...
lpfc_sli_host_down(9)
NAME lpfc_sli_host_down - Vport cleanup function SYNOPSIS int lpfc_sli_host_down (struct lpfc_vport *vport ); ARGUMENTS vport Pointer to virtual port object. DESCRIPTION lpfc_sli_host_down is called to clean up the resources associated with a vport before destroying virtual port data structures. This function...
lpfc_sli_intr_handler(9)
NAME lpfc_sli_intr_handler - Device-level interrupt handler to SLI-3 device SYNOPSIS irqreturn_t lpfc_sli_intr_handler (int irq , void *dev_id ); ARGUMENTS irq Interrupt number. dev_id The device context pointer. DESCRIPTION This function is the HBA device-level interrupt handler to device wit...
lpfc_sli_iocb_cmd_type(9)
NAME lpfc_sli_iocb_cmd_type - Get the iocb type SYNOPSIS lpfc_iocb_type lpfc_sli_iocb_cmd_type (uint8_t iocb_cmnd ); ARGUMENTS iocb_cmnd iocb command code. DESCRIPTION This function is called by ring event handler function to get the iocb type. This function translates the iocb command to an iocb command type us...
lpfc_sli_iocbq_lookup(9)
NAME lpfc_sli_iocbq_lookup - Find command iocb for the given response iocb SYNOPSIS struct lpfc_iocbq * lpfc_sli_iocbq_lookup (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq *prspiocb ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object...
lpfc_sli_iocbq_lookup_by_tag(9)
NAME lpfc_sli_iocbq_lookup_by_tag - Find command iocb for the iotag SYNOPSIS struct lpfc_iocbq * lpfc_sli_iocbq_lookup_by_tag (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint16_t iotag ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. iot...
lpfc_sli_issue_abort_iotag(9)
NAME lpfc_sli_issue_abort_iotag - Abort function for a command iocb SYNOPSIS int lpfc_sli_issue_abort_iotag (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq *cmdiocb , void *cmpl ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. ...
lpfc_sli_issue_iocb(9)
NAME lpfc_sli_issue_iocb - Wrapper function for __lpfc_sli_issue_iocb SYNOPSIS int lpfc_sli_issue_iocb (struct lpfc_hba *phba , uint32_t ring_number , struct lpfc_iocbq *piocb , uint32_t flag ); ARGUMENTS phba Pointer to HBA context object. ring_number Ring number piocb Pointer to command...
lpfc_sli_issue_iocb_wait(9)
NAME lpfc_sli_issue_iocb_wait - Synchronous function to issue iocb commands SYNOPSIS int lpfc_sli_issue_iocb_wait (struct lpfc_hba *phba , uint32_t ring_number , struct lpfc_iocbq *piocb , struct lpfc_iocbq *prspiocbq , uint32_t timeout ); ARGUMENTS phba Pointer to HBA context object.. ring_number Ring...
lpfc_sli_issue_mbox(9)
NAME lpfc_sli_issue_mbox - Wrapper func for issuing mailbox command SYNOPSIS int lpfc_sli_issue_mbox (struct lpfc_hba *phba , LPFC_MBOXQ_t *pmbox , uint32_t flag ); ARGUMENTS phba Pointer to HBA context object. pmbox Pointer to mailbox object. flag Flag indicating how the mailbox n...
lpfc_sli_issue_mbox_s3(9)
NAME lpfc_sli_issue_mbox_s3 - Issue an SLI3 mailbox command to firmware SYNOPSIS int lpfc_sli_issue_mbox_s3 (struct lpfc_hba *phba , LPFC_MBOXQ_t *pmbox , uint32_t flag ); ARGUMENTS phba Pointer to HBA context object. pmbox Pointer to mailbox object. flag Flag indicating how the ma...
lpfc_sli_issue_mbox_s4(9)
NAME lpfc_sli_issue_mbox_s4 - Issue an SLI4 mailbox command to firmware SYNOPSIS int lpfc_sli_issue_mbox_s4 (struct lpfc_hba *phba , LPFC_MBOXQ_t *mboxq , uint32_t flag ); ARGUMENTS phba Pointer to HBA context object. mboxq Pointer to mailbox object. flag Flag indicating how the ma...
lpfc_sli_issue_mbox_wait(9)
NAME lpfc_sli_issue_mbox_wait - Synchronous function to issue mailbox SYNOPSIS int lpfc_sli_issue_mbox_wait (struct lpfc_hba *phba , LPFC_MBOXQ_t *pmboxq , uint32_t timeout ); ARGUMENTS phba Pointer to HBA context object. pmboxq Pointer to driver mailbox object. timeout Timeout in numb...
lpfc_sli_mbox_sys_flush(9)
NAME lpfc_sli_mbox_sys_flush - Flush mailbox command sub-system SYNOPSIS void lpfc_sli_mbox_sys_flush (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This routine flushes the mailbox command subsystem. It will unconditionally flush all the mailbox commands in the three ...
lpfc_sli_mbox_sys_shutdown(9)
NAME lpfc_sli_mbox_sys_shutdown - shutdown mailbox command sub-system SYNOPSIS void lpfc_sli_mbox_sys_shutdown (struct lpfc_hba *phba , int mbx_action ); ARGUMENTS phba Pointer to HBA context. mbx_action Mailbox shutdown options. DESCRIPTION This function is called to shutdown the driver's mail...
lpfc_sli_next_hbq_slot(9)
NAME lpfc_sli_next_hbq_slot - Get next hbq entry for the HBQ SYNOPSIS struct lpfc_hbq_entry * lpfc_sli_next_hbq_slot (struct lpfc_hba *phba , uint32_t hbqno ); ARGUMENTS phba Pointer to HBA context object. hbqno HBQ number. DESCRIPTION This function is called with hbalock held to get the next av...
lpfc_sli_next_iocb(9)
NAME lpfc_sli_next_iocb - Get the next iocb in the txq SYNOPSIS struct lpfc_iocbq * lpfc_sli_next_iocb (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq **piocb ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. piocb Poi...
lpfc_sli_next_iocb_slot(9)
NAME lpfc_sli_next_iocb_slot - Get next iocb slot in the ring SYNOPSIS IOCB_t * lpfc_sli_next_iocb_slot (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 is called with hbalock...
lpfc_sli_next_iotag(9)
NAME lpfc_sli_next_iotag - Get an iotag for the iocb SYNOPSIS uint16_t lpfc_sli_next_iotag (struct lpfc_hba *phba , struct lpfc_iocbq *iocbq ); ARGUMENTS phba Pointer to HBA context object. iocbq Pointer to driver iocb object. DESCRIPTION This function gets an iotag for the iocb. If there is no ...
lpfc_sli_pci_mem_setup(9)
NAME lpfc_sli_pci_mem_setup - Setup SLI3 HBA PCI memory space. SYNOPSIS int lpfc_sli_pci_mem_setup (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to set up the PCI device memory space for device with SLI-3 interface spec. Return codes 0 - succ...
lpfc_sli_pci_mem_unset(9)
NAME lpfc_sli_pci_mem_unset - Unset SLI3 HBA PCI memory space. SYNOPSIS void lpfc_sli_pci_mem_unset (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to unset the PCI device memory space for device with SLI-3 interface spec. SEE ALSO Kernel fil...
lpfc_sli_pcimem_bcopy(9)
NAME lpfc_sli_pcimem_bcopy - SLI memory copy function SYNOPSIS void lpfc_sli_pcimem_bcopy (void *srcp , void *destp , uint32_t cnt ); ARGUMENTS srcp Source memory pointer. destp Destination memory pointer. cnt Number of words required to be copied. DESCRIPTION This function is ...
lpfc_sli_port_speed_get(9)
NAME lpfc_sli_port_speed_get - Get sli3 link speed code to link speed SYNOPSIS uint32_t lpfc_sli_port_speed_get (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is to get an SLI3 FC port's link speed in Mbps. RETURN link speed in terms of Mbps. SEE ALSO K...
lpfc_sli_prep_dev_for_perm_failure(9)
NAME lpfc_sli_prep_dev_for_perm_failure - Prepare SLI3 dev for pci slot disable SYNOPSIS void lpfc_sli_prep_dev_for_perm_failure (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is called to prepare the SLI3 device for PCI slot permanently disabling. It blo...
lpfc_sli_prep_dev_for_recover(9)
NAME lpfc_sli_prep_dev_for_recover - Prepare SLI3 device for pci slot recover SYNOPSIS void lpfc_sli_prep_dev_for_recover (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is called to prepare the SLI3 device for PCI slot recover. It aborts all the outstandi...
lpfc_sli_prep_dev_for_reset(9)
NAME lpfc_sli_prep_dev_for_reset - Prepare SLI3 device for pci slot reset SYNOPSIS void lpfc_sli_prep_dev_for_reset (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is called to prepare the SLI3 device for PCI slot reset. It disables the device interrupt an...
lpfc_sli_prep_wqe(9)
NAME lpfc_sli_prep_wqe - Prepare WQE for the command to be posted SYNOPSIS void lpfc_sli_prep_wqe (struct lpfc_hba *phba , struct lpfc_iocbq *job ); ARGUMENTS phba phba object job job entry of the command to be posted. DESCRIPTION Fill the common fields of the wqe for each of the command. Ret...
lpfc_sli_probe_sriov_nr_virtfn(9)
NAME lpfc_sli_probe_sriov_nr_virtfn - Enable a number of sr-iov virtual functions SYNOPSIS int lpfc_sli_probe_sriov_nr_virtfn (struct lpfc_hba *phba , int nr_vfn ); ARGUMENTS phba pointer to lpfc hba data structure. nr_vfn number of virtual functions to be enabled. DESCRIPTION This function enab...
lpfc_sli_process_sol_iocb(9)
NAME lpfc_sli_process_sol_iocb - process solicited iocb completion SYNOPSIS int lpfc_sli_process_sol_iocb (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq *saveq ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. saveq P...
lpfc_sli_process_unsol_iocb(9)
NAME lpfc_sli_process_unsol_iocb - Unsolicited iocb handler SYNOPSIS int lpfc_sli_process_unsol_iocb (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq *saveq ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. saveq Pointe...
lpfc_sli_queue_init(9)
NAME lpfc_sli_queue_init - Queue initialization function SYNOPSIS void lpfc_sli_queue_init (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION lpfc_sli_queue_init sets up mailbox queues and iocb queues for each ring. This function also initializes ring indices of each ring. T...
lpfc_sli_read_link_ste(9)
NAME lpfc_sli_read_link_ste - Read region 23 to decide if link is disabled. SYNOPSIS void lpfc_sli_read_link_ste (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This function read region 23 and parse TLV for port status to decide if the user disaled the port. If the TL...
lpfc_sli_release_iocbq(9)
NAME lpfc_sli_release_iocbq - Release iocb to the iocb pool SYNOPSIS void lpfc_sli_release_iocbq (struct lpfc_hba *phba , struct lpfc_iocbq *iocbq ); ARGUMENTS phba Pointer to HBA context object. iocbq Pointer to driver iocb object. DESCRIPTION This function is called with no lock held to releas...
lpfc_sli_resume_iocb(9)
NAME lpfc_sli_resume_iocb - Process iocbs in the txq SYNOPSIS void lpfc_sli_resume_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 is called with hbalock held to post pen...
lpfc_sli_ring_map(9)
NAME lpfc_sli_ring_map - Issue config_ring mbox for all rings SYNOPSIS int lpfc_sli_ring_map (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This function is called from SLI initialization code to configure every ring of the HBA's SLI interface. The caller is not required t...
lpfc_sli_ring_taggedbuf_get(9)
NAME lpfc_sli_ring_taggedbuf_get - find HBQ buffer associated with given tag SYNOPSIS struct lpfc_dmabuf * lpfc_sli_ring_taggedbuf_get (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , uint32_t tag ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. ...
lpfc_sli_ringpostbuf_get(9)
NAME lpfc_sli_ringpostbuf_get - search buffers for unsolicited CT and ELS events SYNOPSIS struct lpfc_dmabuf * lpfc_sli_ringpostbuf_get (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , dma_addr_t phys ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. ...
lpfc_sli_ringpostbuf_put(9)
NAME lpfc_sli_ringpostbuf_put - Function to add a buffer to postbufq SYNOPSIS int lpfc_sli_ringpostbuf_put (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_dmabuf *mp ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. mp Po...
lpfc_sli_ringtx_get(9)
NAME lpfc_sli_ringtx_get - Get first element of the txq SYNOPSIS struct lpfc_iocbq * lpfc_sli_ringtx_get (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 is called with hb...
lpfc_sli_ringtxcmpl_put(9)
NAME lpfc_sli_ringtxcmpl_put - Adds new iocb to the txcmplq SYNOPSIS int lpfc_sli_ringtxcmpl_put (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq *piocb ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. piocb Pointer to...
lpfc_sli_rqbuf_get(9)
NAME lpfc_sli_rqbuf_get - Remove the first dma buffer off of an RQ list SYNOPSIS struct rqb_dmabuf * lpfc_sli_rqbuf_get (struct lpfc_hba *phba , struct lpfc_queue *hrq ); ARGUMENTS phba Pointer to HBA context object. hrq HBQ number. DESCRIPTION This function removes the first RQ buffer on an R...
lpfc_sli_rsp_pointers_error(9)
NAME lpfc_sli_rsp_pointers_error - Response ring pointer error handler SYNOPSIS void lpfc_sli_rsp_pointers_error (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 is called fro...
lpfc_sli_setup(9)
NAME lpfc_sli_setup - SLI ring setup function SYNOPSIS int lpfc_sli_setup (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION lpfc_sli_setup sets up rings of the SLI interface with number of iocbs per ring and iotags. This function is called while driver attach to the HBA an...
lpfc_sli_sp_handle_rspiocb(9)
NAME lpfc_sli_sp_handle_rspiocb - Handle slow-path response iocb SYNOPSIS struct lpfc_iocbq * lpfc_sli_sp_handle_rspiocb (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , struct lpfc_iocbq *rspiocbp ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. ...
lpfc_sli_sp_intr_handler(9)
NAME lpfc_sli_sp_intr_handler - Slow-path interrupt handler to SLI-3 device SYNOPSIS irqreturn_t lpfc_sli_sp_intr_handler (int irq , void *dev_id ); ARGUMENTS irq Interrupt number. dev_id The device context pointer. DESCRIPTION This function is directly called from the PCI layer as an interrupt...
lpfc_sli_sriov_nr_virtfn_get(9)
NAME lpfc_sli_sriov_nr_virtfn_get - Get the number of sr-iov virtual functions SYNOPSIS uint16_t lpfc_sli_sriov_nr_virtfn_get (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This function enables the PCI SR-IOV virtual functions to a physical function. It invokes the ...
lpfc_sli_submit_iocb(9)
NAME lpfc_sli_submit_iocb - Submit an iocb to the firmware SYNOPSIS void lpfc_sli_submit_iocb (struct lpfc_hba *phba , struct lpfc_sli_ring *pring , IOCB_t *iocb , struct lpfc_iocbq *nextiocb ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. iocb ...
lpfc_sli_sum_iocb(9)
NAME lpfc_sli_sum_iocb - Function to count the number of FCP iocbs pending SYNOPSIS int lpfc_sli_sum_iocb (struct lpfc_vport *vport , uint16_t tgt_id , uint64_t lun_id , lpfc_ctx_cmd ctx_cmd ); ARGUMENTS vport Pointer to virtual port. tgt_id SCSI ID of the target. lun_id LUN ID of the ...
lpfc_sli_update_full_ring(9)
NAME lpfc_sli_update_full_ring - Update the chip attention register SYNOPSIS void lpfc_sli_update_full_ring (struct lpfc_hba *phba , struct lpfc_sli_ring *pring ); ARGUMENTS phba Pointer to HBA context object. pring Pointer to driver SLI ring object. DESCRIPTION The caller is not required to ...
lpfc_sli_update_ring(9)
NAME lpfc_sli_update_ring - Update chip attention register SYNOPSIS void lpfc_sli_update_ring (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 updates the chip attention regist...
lpfc_sli_validate_fcp_iocb(9)
NAME lpfc_sli_validate_fcp_iocb - validate commands associated with a SCSI target SYNOPSIS int lpfc_sli_validate_fcp_iocb (struct lpfc_iocbq *iocbq , struct lpfc_vport *vport , uint16_t tgt_id , uint64_t lun_id , lpfc_ctx_cmd ctx_cmd ); ARGUMENTS iocbq Pointer to driver iocb object. vport Pointer ...
lpfc_sli_validate_fcp_iocb_for_abort(9)
NAME lpfc_sli_validate_fcp_iocb_for_abort - filter iocbs appropriate for FCP aborts SYNOPSIS int lpfc_sli_validate_fcp_iocb_for_abort (struct lpfc_iocbq *iocbq , struct lpfc_vport *vport ); ARGUMENTS iocbq Pointer to iocb object. vport Pointer to driver virtual port object. DESCRIPTION This func...
lpfc_sli_wake_iocb_wait(9)
NAME lpfc_sli_wake_iocb_wait - lpfc_sli_issue_iocb_wait's completion handler SYNOPSIS void lpfc_sli_wake_iocb_wait (struct lpfc_hba *phba , struct lpfc_iocbq *cmdiocbq , struct lpfc_iocbq *rspiocbq ); ARGUMENTS phba Pointer to HBA context object. cmdiocbq Pointer to command iocb. rspiocbq ...
lpfc_sli_wake_mbox_wait(9)
NAME lpfc_sli_wake_mbox_wait - lpfc_sli_issue_mbox_wait mbox completion handler SYNOPSIS void lpfc_sli_wake_mbox_wait (struct lpfc_hba *phba , LPFC_MBOXQ_t *pmboxq ); ARGUMENTS phba Pointer to HBA context object. pmboxq Pointer to mailbox command. DESCRIPTION This is completion handler functio...
lpfc_snapshot_mxp(9)
NAME lpfc_snapshot_mxp - Snapshot pbl, pvt and busy count SYNOPSIS void lpfc_snapshot_mxp (struct lpfc_hba *phba , u32 hwqid ); ARGUMENTS phba pointer to lpfc hba data structure. hwqid belong to which HWQ. DESCRIPTION The purpose of this routine is to take a snapshot of pbl, pvt and busy count...
lpfc_sriov_hw_max_virtfn_show(9)
NAME lpfc_sriov_hw_max_virtfn_show - Return maximum number of virtual functions SYNOPSIS ssize_t lpfc_sriov_hw_max_virtfn_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 ...
lpfc_sriov_nr_virtfn_store(9)
NAME lpfc_sriov_nr_virtfn_store - Enable the adapter for sr-iov virtual functions SYNOPSIS ssize_t lpfc_sriov_nr_virtfn_store (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev class device that is converted into a Scsi_host. attr device attrib...
lpfc_start_fdiscs(9)
NAME lpfc_start_fdiscs - send fdiscs for each vports on this port. SYNOPSIS void lpfc_start_fdiscs (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This function loops through the list of vports on the phba and issues an FDISC if possible. SEE ALSO Kernel file ./driv...
lpfc_static_vport_show(9)
NAME lpfc_static_vport_show - Read callback function for lpfc_static_vport sysfs file. SYNOPSIS ssize_t lpfc_static_vport_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev Pointer to class device object. attr device attribute structure. buf Da...
lpfc_stop_hba_timers(9)
NAME lpfc_stop_hba_timers - Stop all the timers associated with an HBA SYNOPSIS void lpfc_stop_hba_timers (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine stops all the timers associated with a HBA. This function is invoked before either putting a HBA offli...
lpfc_stop_port(9)
NAME lpfc_stop_port - Wrapper function for stopping hba port SYNOPSIS void lpfc_stop_port (struct lpfc_hba *phba ); ARGUMENTS phba Pointer to HBA context object. DESCRIPTION This routine wraps the actual SLI3 or SLI4 hba stop port routine from the API jump table function pointer from the lpfc_hba struct. SEE...
lpfc_stop_port_s3(9)
NAME lpfc_stop_port_s3 - Stop SLI3 device port SYNOPSIS void lpfc_stop_port_s3 (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to stop an SLI3 device port, it stops the device from generating interrupts and stops the device driver's timers for t...
lpfc_stop_port_s4(9)
NAME lpfc_stop_port_s4 - Stop SLI4 device port SYNOPSIS void lpfc_stop_port_s4 (struct lpfc_hba *phba ); ARGUMENTS phba pointer to lpfc hba data structure. DESCRIPTION This routine is invoked to stop an SLI4 device port, it stops the device from generating interrupts and stops the device driver's timers for t...
lpfc_stop_vport_timers(9)
NAME lpfc_stop_vport_timers - Stop all the timers associated with a vport SYNOPSIS void lpfc_stop_vport_timers (struct lpfc_vport *vport ); ARGUMENTS vport pointer to a virtual N_Port data structure. DESCRIPTION This routine stops all the timers associated with a vport. This function is invoked before disablin...
lpfc_sw_name_match(9)
NAME lpfc_sw_name_match - Check if the fcf switch name match. SYNOPSIS uint32_t lpfc_sw_name_match (uint8_t *sw_name , struct fcf_record *new_fcf_record ); ARGUMENTS sw_name pointer to switch name. new_fcf_record pointer to fcf record. DESCRIPTION This routine compare the fcf record's ...
lpfc_target_reset_handler(9)
NAME lpfc_target_reset_handler - scsi_host_template eh_target_reset entry point SYNOPSIS int lpfc_target_reset_handler (struct scsi_cmnd *cmnd ); ARGUMENTS cmnd Pointer to scsi_cmnd data structure. DESCRIPTION This routine does a target reset by sending a TARGET_RESET task management command. Return code : 0...
lpfc_temp_sensor_show(9)
NAME lpfc_temp_sensor_show - Return the temperature sensor level SYNOPSIS ssize_t lpfc_temp_sensor_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 conta...
lpfc_test_rrq_active(9)
NAME lpfc_test_rrq_active - Test RRQ bit in xri_bitmap. SYNOPSIS int lpfc_test_rrq_active (struct lpfc_hba *phba , struct lpfc_nodelist *ndlp , uint16_t xritag ); ARGUMENTS phba Pointer to HBA context object. ndlp Targets nodelist pointer for this exchange. xritag the xri in the bit...
lpfc_tgt_queue_depth_set(9)
NAME lpfc_tgt_queue_depth_set - Sets an attribute value. SYNOPSIS int lpfc_tgt_queue_depth_set (struct lpfc_vport *vport , uint val ); ARGUMENTS vport lpfc vport structure pointer. val integer attribute value. DESCRIPTION Sets the parameter to the new value. RETURN zero on success -EINVAL if v...
lpfc_topology_store(9)
NAME lpfc_topology_store - Set the adapters topology field SYNOPSIS ssize_t lpfc_topology_store (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev class device that is converted into a scsi_host. attr device attribute, not used. buf ...
lpfc_tskmgmt_def_cmpl(9)
NAME lpfc_tskmgmt_def_cmpl - IOCB completion routine for task management command SYNOPSIS void lpfc_tskmgmt_def_cmpl (struct lpfc_hba *phba , struct lpfc_iocbq *cmdiocbq , struct lpfc_iocbq *rspiocbq ); ARGUMENTS phba The Hba for which this call is being executed. cmdiocbq Pointer to lpfc_iocbq data...