mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
scsi: mpt3sas: Improve kernel-doc headers
Avoids that warnings about the kernel headers appear when building with W=1. Remove useless "@Returns - Nothing" clauses. Change "@Return - " into "Return: ". Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Sathya Prakash <sathya.prakash@broadcom.com> Cc: Chaitra P B <chaitra.basappa@broadcom.com> Cc: Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com> Cc: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
c7a3570588
commit
4beb4867f0
@ -131,7 +131,10 @@ mpt3sas_base_check_cmd_timeout(struct MPT3SAS_ADAPTER *ioc,
|
||||
|
||||
/**
|
||||
* _scsih_set_fwfault_debug - global setting of ioc->fwfault_debug.
|
||||
* @val: ?
|
||||
* @kp: ?
|
||||
*
|
||||
* Return: ?
|
||||
*/
|
||||
static int
|
||||
_scsih_set_fwfault_debug(const char *val, const struct kernel_param *kp)
|
||||
@ -160,8 +163,6 @@ module_param_call(mpt3sas_fwfault_debug, _scsih_set_fwfault_debug,
|
||||
* @ioc: per adapter object
|
||||
* @reply: reply message frame(lower 32bit addr)
|
||||
* @index: System request message index.
|
||||
*
|
||||
* @Returns - Nothing
|
||||
*/
|
||||
static void
|
||||
_base_clone_reply_to_sys_mem(struct MPT3SAS_ADAPTER *ioc, u32 reply,
|
||||
@ -184,7 +185,7 @@ _base_clone_reply_to_sys_mem(struct MPT3SAS_ADAPTER *ioc, u32 reply,
|
||||
* _base_clone_mpi_to_sys_mem - Writes/copies MPI frames
|
||||
* to system/BAR0 region.
|
||||
*
|
||||
* @dst_iomem: Pointer to the destinaltion location in BAR0 space.
|
||||
* @dst_iomem: Pointer to the destination location in BAR0 space.
|
||||
* @src: Pointer to the Source data.
|
||||
* @size: Size of data to be copied.
|
||||
*/
|
||||
@ -225,7 +226,7 @@ _base_clone_to_sys_mem(void __iomem *dst_iomem, void *src, u32 size)
|
||||
* @smid: system request message index
|
||||
* @sge_chain_count: Scatter gather chain count.
|
||||
*
|
||||
* @Return: chain address.
|
||||
* Return: the chain address.
|
||||
*/
|
||||
static inline void __iomem*
|
||||
_base_get_chain(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
@ -251,7 +252,7 @@ _base_get_chain(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
* @smid: system request message index
|
||||
* @sge_chain_count: Scatter gather chain count.
|
||||
*
|
||||
* @Return - Physical chain address.
|
||||
* Return: Physical chain address.
|
||||
*/
|
||||
static inline phys_addr_t
|
||||
_base_get_chain_phys(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
@ -276,7 +277,7 @@ _base_get_chain_phys(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* @Returns - Pointer to buffer location in BAR0.
|
||||
* Return: Pointer to buffer location in BAR0.
|
||||
*/
|
||||
|
||||
static void __iomem *
|
||||
@ -298,7 +299,7 @@ _base_get_buffer_bar0(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* @Returns - Pointer to buffer location in BAR0.
|
||||
* Return: Pointer to buffer location in BAR0.
|
||||
*/
|
||||
static phys_addr_t
|
||||
_base_get_buffer_phys_bar0(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -319,7 +320,7 @@ _base_get_buffer_phys_bar0(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @chain_buffer_dma: Chain buffer dma address.
|
||||
*
|
||||
* @Returns - Pointer to chain buffer. Or Null on Failure.
|
||||
* Return: Pointer to chain buffer. Or Null on Failure.
|
||||
*/
|
||||
static void *
|
||||
_base_get_chain_buffer_dma_to_chain_buffer(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -350,8 +351,6 @@ _base_get_chain_buffer_dma_to_chain_buffer(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @ioc: per adapter object.
|
||||
* @mpi_request: mf request pointer.
|
||||
* @smid: system request message index.
|
||||
*
|
||||
* @Returns: Nothing.
|
||||
*/
|
||||
static void _clone_sg_entries(struct MPT3SAS_ADAPTER *ioc,
|
||||
void *mpi_request, u16 smid)
|
||||
@ -524,8 +523,9 @@ eob_clone_chain:
|
||||
* mpt3sas_remove_dead_ioc_func - kthread context to remove dead ioc
|
||||
* @arg: input argument, used to derive ioc
|
||||
*
|
||||
* Return 0 if controller is removed from pci subsystem.
|
||||
* Return -1 for other case.
|
||||
* Return:
|
||||
* 0 if controller is removed from pci subsystem.
|
||||
* -1 for other case.
|
||||
*/
|
||||
static int mpt3sas_remove_dead_ioc_func(void *arg)
|
||||
{
|
||||
@ -545,9 +545,8 @@ static int mpt3sas_remove_dead_ioc_func(void *arg)
|
||||
/**
|
||||
* _base_fault_reset_work - workq handling ioc fault conditions
|
||||
* @work: input argument, used to derive ioc
|
||||
* Context: sleep.
|
||||
*
|
||||
* Return nothing.
|
||||
* Context: sleep.
|
||||
*/
|
||||
static void
|
||||
_base_fault_reset_work(struct work_struct *work)
|
||||
@ -638,9 +637,8 @@ _base_fault_reset_work(struct work_struct *work)
|
||||
/**
|
||||
* mpt3sas_base_start_watchdog - start the fault_reset_work_q
|
||||
* @ioc: per adapter object
|
||||
* Context: sleep.
|
||||
*
|
||||
* Return nothing.
|
||||
* Context: sleep.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_start_watchdog(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -674,9 +672,8 @@ mpt3sas_base_start_watchdog(struct MPT3SAS_ADAPTER *ioc)
|
||||
/**
|
||||
* mpt3sas_base_stop_watchdog - stop the fault_reset_work_q
|
||||
* @ioc: per adapter object
|
||||
* Context: sleep.
|
||||
*
|
||||
* Return nothing.
|
||||
* Context: sleep.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_stop_watchdog(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -699,8 +696,6 @@ mpt3sas_base_stop_watchdog(struct MPT3SAS_ADAPTER *ioc)
|
||||
* mpt3sas_base_fault_info - verbose translation of firmware FAULT code
|
||||
* @ioc: per adapter object
|
||||
* @fault_code: fault code
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_fault_info(struct MPT3SAS_ADAPTER *ioc , u16 fault_code)
|
||||
@ -749,8 +744,6 @@ mpt3sas_halt_firmware(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
* @mpi_reply: reply mf payload returned from firmware
|
||||
* @request_hdr: request mf
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_sas_ioc_info(struct MPT3SAS_ADAPTER *ioc, MPI2DefaultReply_t *mpi_reply,
|
||||
@ -973,8 +966,6 @@ _base_sas_ioc_info(struct MPT3SAS_ADAPTER *ioc, MPI2DefaultReply_t *mpi_reply,
|
||||
* _base_display_event_data - verbose translation of firmware asyn events
|
||||
* @ioc: per adapter object
|
||||
* @mpi_reply: reply mf payload returned from firmware
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_display_event_data(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1093,8 +1084,6 @@ _base_display_event_data(struct MPT3SAS_ADAPTER *ioc,
|
||||
* _base_sas_log_info - verbose translation of firmware log info
|
||||
* @ioc: per adapter object
|
||||
* @log_info: log info
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_sas_log_info(struct MPT3SAS_ADAPTER *ioc , u32 log_info)
|
||||
@ -1152,8 +1141,6 @@ _base_sas_log_info(struct MPT3SAS_ADAPTER *ioc , u32 log_info)
|
||||
* @smid: system request message index
|
||||
* @msix_index: MSIX table index supplied by the OS
|
||||
* @reply: reply message frame(lower 32bit addr)
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_display_reply_info(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
@ -1195,8 +1182,9 @@ _base_display_reply_info(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
* @msix_index: MSIX table index supplied by the OS
|
||||
* @reply: reply message frame(lower 32bit addr)
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return:
|
||||
* 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_base_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
@ -1228,8 +1216,9 @@ mpt3sas_base_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
* @msix_index: MSIX table index supplied by the OS
|
||||
* @reply: reply message frame(lower 32bit addr)
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return:
|
||||
* 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
static u8
|
||||
_base_async_event(struct MPT3SAS_ADAPTER *ioc, u8 msix_index, u32 reply)
|
||||
@ -1307,7 +1296,7 @@ _get_st_from_smid(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Return callback index.
|
||||
* Return: callback index.
|
||||
*/
|
||||
static u8
|
||||
_base_get_cb_idx(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -1340,8 +1329,6 @@ _base_get_cb_idx(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Disabling ResetIRQ, Reply and Doorbell Interrupts
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_mask_interrupts(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -1360,8 +1347,6 @@ _base_mask_interrupts(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Enabling only Reply Interrupts
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_unmask_interrupts(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -1386,9 +1371,8 @@ union reply_descriptor {
|
||||
* _base_interrupt - MPT adapter (IOC) specific interrupt handler.
|
||||
* @irq: irq number (not used)
|
||||
* @bus_id: bus identifier cookie == pointer to MPT_ADAPTER structure
|
||||
* @r: pt_regs pointer (not used)
|
||||
*
|
||||
* Return IRQ_HANDLE if processed, else IRQ_NONE.
|
||||
* Return: IRQ_HANDLED if processed, else IRQ_NONE.
|
||||
*/
|
||||
static irqreturn_t
|
||||
_base_interrupt(int irq, void *bus_id)
|
||||
@ -1563,6 +1547,7 @@ _base_interrupt(int irq, void *bus_id)
|
||||
* _base_is_controller_msix_enabled - is controller support muli-reply queues
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Return: Whether or not MSI/X is enabled.
|
||||
*/
|
||||
static inline int
|
||||
_base_is_controller_msix_enabled(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -1577,8 +1562,6 @@ _base_is_controller_msix_enabled(struct MPT3SAS_ADAPTER *ioc)
|
||||
* Context: non ISR conext
|
||||
*
|
||||
* Called when a Task Management request has completed.
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_sync_reply_irqs(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -1605,8 +1588,6 @@ mpt3sas_base_sync_reply_irqs(struct MPT3SAS_ADAPTER *ioc)
|
||||
/**
|
||||
* mpt3sas_base_release_callback_handler - clear interrupt callback handler
|
||||
* @cb_idx: callback index
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_release_callback_handler(u8 cb_idx)
|
||||
@ -1618,7 +1599,7 @@ mpt3sas_base_release_callback_handler(u8 cb_idx)
|
||||
* mpt3sas_base_register_callback_handler - obtain index for the interrupt callback handler
|
||||
* @cb_func: callback function
|
||||
*
|
||||
* Returns cb_func.
|
||||
* Return: Index of @cb_func.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_base_register_callback_handler(MPT_CALLBACK cb_func)
|
||||
@ -1635,8 +1616,6 @@ mpt3sas_base_register_callback_handler(MPT_CALLBACK cb_func)
|
||||
|
||||
/**
|
||||
* mpt3sas_base_initialize_callback_handler - initialize the interrupt callback handler
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_initialize_callback_handler(void)
|
||||
@ -1656,8 +1635,6 @@ mpt3sas_base_initialize_callback_handler(void)
|
||||
* Create a zero length scatter gather entry to insure the IOCs hardware has
|
||||
* something to use if the target device goes brain dead and tries
|
||||
* to send data even when none is asked for.
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_build_zero_len_sge(struct MPT3SAS_ADAPTER *ioc, void *paddr)
|
||||
@ -1674,8 +1651,6 @@ _base_build_zero_len_sge(struct MPT3SAS_ADAPTER *ioc, void *paddr)
|
||||
* @paddr: virtual address for SGE
|
||||
* @flags_length: SGE flags and data transfer length
|
||||
* @dma_addr: Physical address
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_add_sg_single_32(void *paddr, u32 flags_length, dma_addr_t dma_addr)
|
||||
@ -1694,8 +1669,6 @@ _base_add_sg_single_32(void *paddr, u32 flags_length, dma_addr_t dma_addr)
|
||||
* @paddr: virtual address for SGE
|
||||
* @flags_length: SGE flags and data transfer length
|
||||
* @dma_addr: Physical address
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_add_sg_single_64(void *paddr, u32 flags_length, dma_addr_t dma_addr)
|
||||
@ -1713,7 +1686,7 @@ _base_add_sg_single_64(void *paddr, u32 flags_length, dma_addr_t dma_addr)
|
||||
* @ioc: per adapter object
|
||||
* @scmd: SCSI commands of the IO request
|
||||
*
|
||||
* Returns chain tracker from chain_lookup table using key as
|
||||
* Return: chain tracker from chain_lookup table using key as
|
||||
* smid and smid's chain_offset.
|
||||
*/
|
||||
static struct chain_tracker *
|
||||
@ -1743,8 +1716,6 @@ _base_get_chain_buffer_tracker(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @data_out_sz: data xfer size for WRITES
|
||||
* @data_in_dma: physical address for READS
|
||||
* @data_in_sz: data xfer size for READS
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_build_sg(struct MPT3SAS_ADAPTER *ioc, void *psge,
|
||||
@ -1805,7 +1776,7 @@ _base_build_sg(struct MPT3SAS_ADAPTER *ioc, void *psge,
|
||||
* describes the first data memory segment, and PRP2 contains a pointer to a PRP
|
||||
* list located elsewhere in memory to describe the remaining data memory
|
||||
* segments. The PRP list will be contiguous.
|
||||
|
||||
*
|
||||
* The native SGL for NVMe devices is a Physical Region Page (PRP). A PRP
|
||||
* consists of a list of PRP entries to describe a number of noncontigous
|
||||
* physical memory segments as a single memory buffer, just as a SGL does. Note
|
||||
@ -1848,8 +1819,6 @@ _base_build_sg(struct MPT3SAS_ADAPTER *ioc, void *psge,
|
||||
* @data_out_sz: data xfer size for WRITES
|
||||
* @data_in_dma: physical address for READS
|
||||
* @data_in_sz: data xfer size for READS
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
static void
|
||||
_base_build_nvme_prp(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
@ -2015,7 +1984,7 @@ _base_build_nvme_prp(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
* @smid: msg Index
|
||||
* @sge_count: scatter gather element count.
|
||||
*
|
||||
* Returns: true: PRPs are built
|
||||
* Return: true: PRPs are built
|
||||
* false: IEEE SGLs needs to be built
|
||||
*/
|
||||
static void
|
||||
@ -2176,7 +2145,7 @@ base_is_prp_possible(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @scmd: scsi command
|
||||
* @pcie_device: points to the PCIe device's info
|
||||
*
|
||||
* Returns 0 if native SGL was built, 1 if no SGL was built
|
||||
* Return: 0 if native SGL was built, 1 if no SGL was built
|
||||
*/
|
||||
static int
|
||||
_base_check_pcie_native_sgl(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -2220,8 +2189,6 @@ out:
|
||||
* @chain_offset: number of 128 byte elements from start of segment
|
||||
* @length: data transfer length
|
||||
* @dma_addr: Physical address
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_add_sg_single_ieee(void *paddr, u8 flags, u8 chain_offset, u32 length,
|
||||
@ -2243,8 +2210,6 @@ _base_add_sg_single_ieee(void *paddr, u8 flags, u8 chain_offset, u32 length,
|
||||
* Create a zero length scatter gather entry to insure the IOCs hardware has
|
||||
* something to use if the target device goes brain dead and tries
|
||||
* to send data even when none is asked for.
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_build_zero_len_sge_ieee(struct MPT3SAS_ADAPTER *ioc, void *paddr)
|
||||
@ -2268,7 +2233,7 @@ _base_build_zero_len_sge_ieee(struct MPT3SAS_ADAPTER *ioc, void *paddr)
|
||||
* The main routine that builds scatter gather table from a given
|
||||
* scsi request sent via the .queuecommand main handler.
|
||||
*
|
||||
* Returns 0 success, anything else error
|
||||
* Return: 0 success, anything else error
|
||||
*/
|
||||
static int
|
||||
_base_build_sg_scmd(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -2413,7 +2378,7 @@ _base_build_sg_scmd(struct MPT3SAS_ADAPTER *ioc,
|
||||
* The main routine that builds scatter gather table from a given
|
||||
* scsi request sent via the .queuecommand main handler.
|
||||
*
|
||||
* Returns 0 success, anything else error
|
||||
* Return: 0 success, anything else error
|
||||
*/
|
||||
static int
|
||||
_base_build_sg_scmd_ieee(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -2544,8 +2509,6 @@ _base_build_sg_scmd_ieee(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @data_out_sz: data xfer size for WRITES
|
||||
* @data_in_dma: physical address for READS
|
||||
* @data_in_sz: data xfer size for READS
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_build_sg_ieee(struct MPT3SAS_ADAPTER *ioc, void *psge,
|
||||
@ -2595,7 +2558,7 @@ _base_build_sg_ieee(struct MPT3SAS_ADAPTER *ioc, void *psge,
|
||||
* @ioc: per adapter object
|
||||
* @pdev: PCI device struct
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_config_dma_addressing(struct MPT3SAS_ADAPTER *ioc, struct pci_dev *pdev)
|
||||
@ -2963,7 +2926,7 @@ mpt3sas_base_unmap_resources(struct MPT3SAS_ADAPTER *ioc)
|
||||
* mpt3sas_base_map_resources - map in controller resources (io/irq/memap)
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -3114,7 +3077,7 @@ mpt3sas_base_map_resources(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index(smid zero is invalid)
|
||||
*
|
||||
* Returns virt pointer to message frame.
|
||||
* Return: virt pointer to message frame.
|
||||
*/
|
||||
void *
|
||||
mpt3sas_base_get_msg_frame(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3127,7 +3090,7 @@ mpt3sas_base_get_msg_frame(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Returns virt pointer to sense buffer.
|
||||
* Return: virt pointer to sense buffer.
|
||||
*/
|
||||
void *
|
||||
mpt3sas_base_get_sense_buffer(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3140,7 +3103,7 @@ mpt3sas_base_get_sense_buffer(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Returns phys pointer to the low 32bit address of the sense buffer.
|
||||
* Return: phys pointer to the low 32bit address of the sense buffer.
|
||||
*/
|
||||
__le32
|
||||
mpt3sas_base_get_sense_buffer_dma(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3154,7 +3117,7 @@ mpt3sas_base_get_sense_buffer_dma(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Returns virt pointer to a PCIe SGL.
|
||||
* Return: virt pointer to a PCIe SGL.
|
||||
*/
|
||||
void *
|
||||
mpt3sas_base_get_pcie_sgl(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3167,7 +3130,7 @@ mpt3sas_base_get_pcie_sgl(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Returns phys pointer to the address of the PCIe buffer.
|
||||
* Return: phys pointer to the address of the PCIe buffer.
|
||||
*/
|
||||
dma_addr_t
|
||||
mpt3sas_base_get_pcie_sgl_dma(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3201,7 +3164,7 @@ _base_get_msix_index(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
* @cb_idx: callback index
|
||||
*
|
||||
* Returns smid (zero is invalid)
|
||||
* Return: smid (zero is invalid)
|
||||
*/
|
||||
u16
|
||||
mpt3sas_base_get_smid(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx)
|
||||
@ -3233,7 +3196,7 @@ mpt3sas_base_get_smid(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx)
|
||||
* @cb_idx: callback index
|
||||
* @scmd: pointer to scsi command object
|
||||
*
|
||||
* Returns smid (zero is invalid)
|
||||
* Return: smid (zero is invalid)
|
||||
*/
|
||||
u16
|
||||
mpt3sas_base_get_smid_scsiio(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx,
|
||||
@ -3256,7 +3219,7 @@ mpt3sas_base_get_smid_scsiio(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx,
|
||||
* @ioc: per adapter object
|
||||
* @cb_idx: callback index
|
||||
*
|
||||
* Returns smid (zero is invalid)
|
||||
* Return: smid (zero is invalid)
|
||||
*/
|
||||
u16
|
||||
mpt3sas_base_get_smid_hpr(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx)
|
||||
@ -3307,8 +3270,6 @@ void mpt3sas_base_clear_st(struct MPT3SAS_ADAPTER *ioc,
|
||||
* mpt3sas_base_free_smid - put smid back on free_list
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_free_smid(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3371,7 +3332,6 @@ _base_mpi_ep_writeq(__u64 b, volatile void __iomem *addr,
|
||||
|
||||
/**
|
||||
* _base_writeq - 64 bit write to MMIO
|
||||
* @ioc: per adapter object
|
||||
* @b: data payload
|
||||
* @addr: address in MMIO space
|
||||
* @writeq_lock: spin lock
|
||||
@ -3399,8 +3359,6 @@ _base_writeq(__u64 b, volatile void __iomem *addr, spinlock_t *writeq_lock)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
* @handle: device handle
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_put_smid_mpi_ep_scsi_io(struct MPT3SAS_ADAPTER *ioc, u16 smid, u16 handle)
|
||||
@ -3429,8 +3387,6 @@ _base_put_smid_mpi_ep_scsi_io(struct MPT3SAS_ADAPTER *ioc, u16 smid, u16 handle)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
* @handle: device handle
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_put_smid_scsi_io(struct MPT3SAS_ADAPTER *ioc, u16 smid, u16 handle)
|
||||
@ -3453,8 +3409,6 @@ _base_put_smid_scsi_io(struct MPT3SAS_ADAPTER *ioc, u16 smid, u16 handle)
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
* @handle: device handle
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_put_smid_fast_path(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
@ -3478,7 +3432,6 @@ mpt3sas_base_put_smid_fast_path(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
* @msix_task: msix_task will be same as msix of IO incase of task abort else 0.
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_put_smid_hi_priority(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
@ -3521,8 +3474,6 @@ mpt3sas_base_put_smid_hi_priority(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
* firmware
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_put_smid_nvme_encap(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3544,8 +3495,6 @@ mpt3sas_base_put_smid_nvme_encap(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
* mpt3sas_base_put_smid_default - Default, primarily used for config pages
|
||||
* @ioc: per adapter object
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_put_smid_default(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
@ -3582,8 +3531,6 @@ mpt3sas_base_put_smid_default(struct MPT3SAS_ADAPTER *ioc, u16 smid)
|
||||
/**
|
||||
* _base_display_OEMs_branding - Display branding string
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_display_OEMs_branding(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -3844,7 +3791,7 @@ _base_display_OEMs_branding(struct MPT3SAS_ADAPTER *ioc)
|
||||
* version from FW Image Header.
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_display_fwpkg_version(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -3941,8 +3888,6 @@ out:
|
||||
/**
|
||||
* _base_display_ioc_capabilities - Disply IOC's capabilities.
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_display_ioc_capabilities(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -4058,8 +4003,6 @@ _base_display_ioc_capabilities(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @device_missing_delay: amount of time till device is reported missing
|
||||
* @io_missing_delay: interval IO is returned when there is a missing device
|
||||
*
|
||||
* Return nothing.
|
||||
*
|
||||
* Passed on the command line, this function will modify the device missing
|
||||
* delay, as well as the io missing delay. This should be called at driver
|
||||
* load time.
|
||||
@ -4142,11 +4085,10 @@ mpt3sas_base_update_missing_delay(struct MPT3SAS_ADAPTER *ioc,
|
||||
out:
|
||||
kfree(sas_iounit_pg1);
|
||||
}
|
||||
|
||||
/**
|
||||
* _base_static_config_pages - static start of day config pages
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_static_config_pages(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -4218,8 +4160,6 @@ _base_static_config_pages(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Free memory allocated during encloure add.
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_free_enclosure_list(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -4239,8 +4179,6 @@ mpt3sas_free_enclosure_list(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Free memory allocated from _base_allocate_memory_pools.
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
static void
|
||||
_base_release_memory_pools(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -4361,9 +4299,8 @@ _base_release_memory_pools(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @reply_pool_start_address: Base address of a reply queue set
|
||||
* @pool_sz: Size of single Reply Descriptor Post Queues pool size
|
||||
*
|
||||
* Returns 1 if reply queues in a set have a same upper 32bits
|
||||
* in their base memory address,
|
||||
* else 0
|
||||
* Return: 1 if reply queues in a set have a same upper 32bits in their base
|
||||
* memory address, else 0.
|
||||
*/
|
||||
|
||||
static int
|
||||
@ -4384,7 +4321,7 @@ is_MSB_are_same(long reply_pool_start_address, u32 pool_sz)
|
||||
* _base_allocate_memory_pools - allocate start of day memory pools
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 success, anything else error
|
||||
* Return: 0 success, anything else error.
|
||||
*/
|
||||
static int
|
||||
_base_allocate_memory_pools(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -4986,7 +4923,7 @@ _base_allocate_memory_pools(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: Pointer to MPT_ADAPTER structure
|
||||
* @cooked: Request raw or cooked IOC state
|
||||
*
|
||||
* Returns all IOC Doorbell register bits if cooked==0, else just the
|
||||
* Return: all IOC Doorbell register bits if cooked==0, else just the
|
||||
* Doorbell bits in MPI_IOC_STATE_MASK.
|
||||
*/
|
||||
u32
|
||||
@ -5001,10 +4938,11 @@ mpt3sas_base_get_iocstate(struct MPT3SAS_ADAPTER *ioc, int cooked)
|
||||
|
||||
/**
|
||||
* _base_wait_on_iocstate - waiting on a particular ioc state
|
||||
* @ioc: ?
|
||||
* @ioc_state: controller state { READY, OPERATIONAL, or RESET }
|
||||
* @timeout: timeout in second
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_wait_on_iocstate(struct MPT3SAS_ADAPTER *ioc, u32 ioc_state, int timeout)
|
||||
@ -5032,9 +4970,8 @@ _base_wait_on_iocstate(struct MPT3SAS_ADAPTER *ioc, u32 ioc_state, int timeout)
|
||||
* _base_wait_for_doorbell_int - waiting for controller interrupt(generated by
|
||||
* a write to the doorbell)
|
||||
* @ioc: per adapter object
|
||||
* @timeout: timeout in second
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*
|
||||
* Notes: MPI2_HIS_IOC2SYS_DB_STATUS - set to one when IOC writes to doorbell.
|
||||
*/
|
||||
@ -5101,7 +5038,7 @@ _base_spin_on_doorbell_int(struct MPT3SAS_ADAPTER *ioc, int timeout)
|
||||
* @ioc: per adapter object
|
||||
* @timeout: timeout in second
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*
|
||||
* Notes: MPI2_HIS_SYS2IOC_DB_STATUS - set to one when host writes to
|
||||
* doorbell.
|
||||
@ -5148,8 +5085,7 @@ _base_wait_for_doorbell_ack(struct MPT3SAS_ADAPTER *ioc, int timeout)
|
||||
* @ioc: per adapter object
|
||||
* @timeout: timeout in second
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
*
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_wait_for_doorbell_not_used(struct MPT3SAS_ADAPTER *ioc, int timeout)
|
||||
@ -5184,7 +5120,7 @@ _base_wait_for_doorbell_not_used(struct MPT3SAS_ADAPTER *ioc, int timeout)
|
||||
* @reset_type: currently only supports: MPI2_FUNCTION_IOC_MESSAGE_UNIT_RESET
|
||||
* @timeout: timeout in second
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_send_ioc_reset(struct MPT3SAS_ADAPTER *ioc, u8 reset_type, int timeout)
|
||||
@ -5233,7 +5169,7 @@ _base_send_ioc_reset(struct MPT3SAS_ADAPTER *ioc, u8 reset_type, int timeout)
|
||||
* @reply: pointer to reply payload
|
||||
* @timeout: timeout in second
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_handshake_req_reply_wait(struct MPT3SAS_ADAPTER *ioc, int request_bytes,
|
||||
@ -5357,7 +5293,7 @@ _base_handshake_req_reply_wait(struct MPT3SAS_ADAPTER *ioc, int request_bytes,
|
||||
* identifying information about the device, in addition allows the host to
|
||||
* remove IOC resources associated with the device.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_base_sas_iounit_control(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -5458,7 +5394,7 @@ mpt3sas_base_sas_iounit_control(struct MPT3SAS_ADAPTER *ioc,
|
||||
* The SCSI Enclosure Processor request message causes the IOC to
|
||||
* communicate with SES devices to control LED status signals.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_base_scsi_enclosure_processor(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -5546,8 +5482,9 @@ mpt3sas_base_scsi_enclosure_processor(struct MPT3SAS_ADAPTER *ioc,
|
||||
/**
|
||||
* _base_get_port_facts - obtain port facts reply and save in ioc
|
||||
* @ioc: per adapter object
|
||||
* @port: ?
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_get_port_facts(struct MPT3SAS_ADAPTER *ioc, int port)
|
||||
@ -5590,7 +5527,7 @@ _base_get_port_facts(struct MPT3SAS_ADAPTER *ioc, int port)
|
||||
* @ioc: per adapter object
|
||||
* @timeout:
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_wait_for_iocstate(struct MPT3SAS_ADAPTER *ioc, int timeout)
|
||||
@ -5644,7 +5581,7 @@ _base_wait_for_iocstate(struct MPT3SAS_ADAPTER *ioc, int timeout)
|
||||
* _base_get_ioc_facts - obtain ioc facts reply and save in ioc
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_get_ioc_facts(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -5746,7 +5683,7 @@ _base_get_ioc_facts(struct MPT3SAS_ADAPTER *ioc)
|
||||
* _base_send_ioc_init - send ioc_init to firmware
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_send_ioc_init(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -5847,8 +5784,8 @@ _base_send_ioc_init(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @msix_index: MSIX table index supplied by the OS
|
||||
* @reply: reply message frame(lower 32bit addr)
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return: 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_port_enable_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
@ -5893,7 +5830,7 @@ mpt3sas_port_enable_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
* _base_send_port_enable - send port_enable(discovery stuff) to firmware
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_send_port_enable(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -5960,7 +5897,7 @@ _base_send_port_enable(struct MPT3SAS_ADAPTER *ioc)
|
||||
* mpt3sas_port_enable - initiate firmware discovery (don't wait for reply)
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_port_enable(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6000,7 +5937,7 @@ mpt3sas_port_enable(struct MPT3SAS_ADAPTER *ioc)
|
||||
* Decide whether to wait on discovery to complete. Used to either
|
||||
* locate boot device, or report volumes ahead of physical devices.
|
||||
*
|
||||
* Returns 1 for wait, 0 for don't wait
|
||||
* Return: 1 for wait, 0 for don't wait.
|
||||
*/
|
||||
static int
|
||||
_base_determine_wait_on_discovery(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6072,7 +6009,7 @@ _base_unmask_events(struct MPT3SAS_ADAPTER *ioc, u16 event)
|
||||
* _base_event_notification - send event notification
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_event_notification(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6129,7 +6066,7 @@ _base_event_notification(struct MPT3SAS_ADAPTER *ioc)
|
||||
/**
|
||||
* mpt3sas_base_validate_event_type - validating event types
|
||||
* @ioc: per adapter object
|
||||
* @event: firmware event
|
||||
* @event_type: firmware event
|
||||
*
|
||||
* This will turn on firmware event notification when application
|
||||
* ask for that event. We don't mask events that are already enabled.
|
||||
@ -6167,7 +6104,7 @@ mpt3sas_base_validate_event_type(struct MPT3SAS_ADAPTER *ioc, u32 *event_type)
|
||||
* _base_diag_reset - the "big hammer" start of day reset
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_diag_reset(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6281,7 +6218,7 @@ _base_diag_reset(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: per adapter object
|
||||
* @type: FORCE_BIG_HAMMER or SOFT_RESET
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_make_ioc_ready(struct MPT3SAS_ADAPTER *ioc, enum reset_type type)
|
||||
@ -6350,7 +6287,7 @@ _base_make_ioc_ready(struct MPT3SAS_ADAPTER *ioc, enum reset_type type)
|
||||
* _base_make_ioc_operational - put controller in OPERATIONAL state
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_base_make_ioc_operational(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6523,8 +6460,6 @@ _base_make_ioc_operational(struct MPT3SAS_ADAPTER *ioc)
|
||||
/**
|
||||
* mpt3sas_base_free_resources - free resources controller resources
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_free_resources(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6550,7 +6485,7 @@ mpt3sas_base_free_resources(struct MPT3SAS_ADAPTER *ioc)
|
||||
* mpt3sas_base_attach - attach controller instance
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_base_attach(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6807,8 +6742,6 @@ mpt3sas_base_attach(struct MPT3SAS_ADAPTER *ioc)
|
||||
/**
|
||||
* mpt3sas_base_detach - remove controller instance
|
||||
* @ioc: per adapter object
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_base_detach(struct MPT3SAS_ADAPTER *ioc)
|
||||
@ -6938,7 +6871,7 @@ mpt3sas_wait_for_commands_to_complete(struct MPT3SAS_ADAPTER *ioc)
|
||||
* @ioc: Pointer to MPT_ADAPTER structure
|
||||
* @type: FORCE_BIG_HAMMER or SOFT_RESET
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_base_hard_reset_handler(struct MPT3SAS_ADAPTER *ioc,
|
||||
|
@ -198,7 +198,7 @@ _config_display_some_debug(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
*
|
||||
* A wrapper for obtaining dma-able memory for config page request.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_config_alloc_config_dma_memory(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -230,7 +230,7 @@ _config_alloc_config_dma_memory(struct MPT3SAS_ADAPTER *ioc,
|
||||
*
|
||||
* A wrapper to free dma-able memory when using _config_alloc_config_dma_memory.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static void
|
||||
_config_free_config_dma_memory(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -251,8 +251,8 @@ _config_free_config_dma_memory(struct MPT3SAS_ADAPTER *ioc,
|
||||
*
|
||||
* The callback handler when using _config_request.
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return: 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_config_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
@ -295,7 +295,7 @@ mpt3sas_config_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
*
|
||||
* The callback index is set inside `ioc->config_cb_idx.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_config_request(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigRequest_t
|
||||
@ -518,7 +518,7 @@ _config_request(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigRequest_t
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_manufacturing_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -555,7 +555,7 @@ mpt3sas_config_get_manufacturing_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @sz: size of buffer passed in config_page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_manufacturing_pg7(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -592,7 +592,7 @@ mpt3sas_config_get_manufacturing_pg7(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_manufacturing_pg10(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -629,7 +629,7 @@ mpt3sas_config_get_manufacturing_pg10(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -666,7 +666,7 @@ mpt3sas_config_get_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_set_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -707,7 +707,7 @@ mpt3sas_config_set_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_bios_pg2(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -743,7 +743,7 @@ mpt3sas_config_get_bios_pg2(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_bios_pg3(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -779,7 +779,7 @@ mpt3sas_config_get_bios_pg3(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_iounit_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -815,7 +815,7 @@ mpt3sas_config_get_iounit_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -851,7 +851,7 @@ mpt3sas_config_get_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_set_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -888,7 +888,7 @@ mpt3sas_config_set_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @sz: size of buffer passed in config_page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_iounit_pg3(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -923,7 +923,7 @@ mpt3sas_config_get_iounit_pg3(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_iounit_pg8(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -959,7 +959,7 @@ mpt3sas_config_get_iounit_pg8(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @config_page: contents of the config page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_ioc_pg8(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -997,7 +997,7 @@ mpt3sas_config_get_ioc_pg8(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @handle: device handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_sas_device_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1038,7 +1038,7 @@ mpt3sas_config_get_sas_device_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @handle: device handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_sas_device_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1079,7 +1079,7 @@ mpt3sas_config_get_sas_device_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @handle: device handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_pcie_device_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1120,7 +1120,7 @@ out:
|
||||
* @handle: device handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_pcie_device_pg2(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1158,7 +1158,7 @@ out:
|
||||
* @num_phys: pointer returned with the number of phys
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_number_hba_phys(struct MPT3SAS_ADAPTER *ioc, u8 *num_phys)
|
||||
@ -1208,7 +1208,7 @@ mpt3sas_config_get_number_hba_phys(struct MPT3SAS_ADAPTER *ioc, u8 *num_phys)
|
||||
* Calling function should call config_get_number_hba_phys prior to
|
||||
* this function, so enough memory is allocated for config_page.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_sas_iounit_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1249,7 +1249,7 @@ mpt3sas_config_get_sas_iounit_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
* Calling function should call config_get_number_hba_phys prior to
|
||||
* this function, so enough memory is allocated for config_page.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_sas_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1290,7 +1290,7 @@ mpt3sas_config_get_sas_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
* Calling function should call config_get_number_hba_phys prior to
|
||||
* this function, so enough memory is allocated for config_page.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_set_sas_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1332,7 +1332,7 @@ mpt3sas_config_set_sas_iounit_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @handle: expander handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_expander_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -1372,7 +1372,7 @@ mpt3sas_config_get_expander_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @handle: expander handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_expander_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -1415,7 +1415,7 @@ mpt3sas_config_get_expander_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @handle: expander handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_enclosure_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -1454,7 +1454,7 @@ mpt3sas_config_get_enclosure_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @phy_number: phy number
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_phy_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -1494,7 +1494,7 @@ mpt3sas_config_get_phy_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @phy_number: phy number
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_phy_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -1535,7 +1535,7 @@ mpt3sas_config_get_phy_pg1(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @handle: volume handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_raid_volume_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1573,7 +1573,7 @@ mpt3sas_config_get_raid_volume_pg1(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @num_pds: returns pds count
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_number_pds(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||
@ -1625,7 +1625,7 @@ mpt3sas_config_get_number_pds(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||
* @sz: size of buffer passed in config_page
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_raid_volume_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1664,7 +1664,7 @@ mpt3sas_config_get_raid_volume_pg0(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @form_specific: specific to the form
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_phys_disk_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
@ -1703,7 +1703,7 @@ mpt3sas_config_get_phys_disk_pg0(struct MPT3SAS_ADAPTER *ioc, Mpi2ConfigReply_t
|
||||
* @volume_handle: volume handle
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_volume_handle(struct MPT3SAS_ADAPTER *ioc, u16 pd_handle,
|
||||
@ -1793,7 +1793,7 @@ mpt3sas_config_get_volume_handle(struct MPT3SAS_ADAPTER *ioc, u16 pd_handle,
|
||||
* @wwid: volume wwid
|
||||
* Context: sleep.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_config_get_volume_wwid(struct MPT3SAS_ADAPTER *ioc, u16 volume_handle,
|
||||
|
@ -253,8 +253,8 @@ _ctl_display_some_debug(struct MPT3SAS_ADAPTER *ioc, u16 smid,
|
||||
*
|
||||
* The callback handler when using ioc->ctl_cb_idx.
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return: 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_ctl_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
@ -317,7 +317,7 @@ mpt3sas_ctl_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
* The bitmask in ioc->event_type[] indicates which events should be
|
||||
* be saved in the driver event_log. This bitmask is set by application.
|
||||
*
|
||||
* Returns 1 when event should be captured, or zero means no match.
|
||||
* Return: 1 when event should be captured, or zero means no match.
|
||||
*/
|
||||
static int
|
||||
_ctl_check_event_type(struct MPT3SAS_ADAPTER *ioc, u16 event)
|
||||
@ -339,8 +339,6 @@ _ctl_check_event_type(struct MPT3SAS_ADAPTER *ioc, u16 event)
|
||||
* mpt3sas_ctl_add_to_event_log - add event
|
||||
* @ioc: per adapter object
|
||||
* @mpi_reply: reply message frame
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_ctl_add_to_event_log(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -395,8 +393,8 @@ mpt3sas_ctl_add_to_event_log(struct MPT3SAS_ADAPTER *ioc,
|
||||
* This function merely adds a new work task into ioc->firmware_event_thread.
|
||||
* The tasks are worked from _firmware_event_work in user context.
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return: 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_ctl_event_callback(struct MPT3SAS_ADAPTER *ioc, u8 msix_index,
|
||||
@ -412,12 +410,12 @@ mpt3sas_ctl_event_callback(struct MPT3SAS_ADAPTER *ioc, u8 msix_index,
|
||||
|
||||
/**
|
||||
* _ctl_verify_adapter - validates ioc_number passed from application
|
||||
* @ioc: per adapter object
|
||||
* @ioc_number: ?
|
||||
* @iocpp: The ioc pointer is returned in this.
|
||||
* @mpi_version: will be MPI2_VERSION for mpt2ctl ioctl device &
|
||||
* MPI25_VERSION | MPI26_VERSION for mpt3ctl ioctl device.
|
||||
*
|
||||
* Return (-1) means error, else ioc_number.
|
||||
* Return: (-1) means error, else ioc_number.
|
||||
*/
|
||||
static int
|
||||
_ctl_verify_adapter(int ioc_number, struct MPT3SAS_ADAPTER **iocpp,
|
||||
@ -525,9 +523,9 @@ void mpt3sas_ctl_reset_done_handler(struct MPT3SAS_ADAPTER *ioc)
|
||||
|
||||
/**
|
||||
* _ctl_fasync -
|
||||
* @fd -
|
||||
* @filep -
|
||||
* @mode -
|
||||
* @fd: ?
|
||||
* @filep: ?
|
||||
* @mode: ?
|
||||
*
|
||||
* Called when application request fasyn callback handler.
|
||||
*/
|
||||
@ -539,8 +537,8 @@ _ctl_fasync(int fd, struct file *filep, int mode)
|
||||
|
||||
/**
|
||||
* _ctl_poll -
|
||||
* @file -
|
||||
* @wait -
|
||||
* @filep: ?
|
||||
* @wait: ?
|
||||
*
|
||||
*/
|
||||
static __poll_t
|
||||
@ -565,10 +563,10 @@ _ctl_poll(struct file *filep, poll_table *wait)
|
||||
/**
|
||||
* _ctl_set_task_mid - assign an active smid to tm request
|
||||
* @ioc: per adapter object
|
||||
* @karg - (struct mpt3_ioctl_command)
|
||||
* @tm_request - pointer to mf from user space
|
||||
* @karg: (struct mpt3_ioctl_command)
|
||||
* @tm_request: pointer to mf from user space
|
||||
*
|
||||
* Returns 0 when an smid if found, else fail.
|
||||
* Return: 0 when an smid if found, else fail.
|
||||
* during failure, the reply frame is filled.
|
||||
*/
|
||||
static int
|
||||
@ -643,8 +641,8 @@ _ctl_set_task_mid(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command *karg,
|
||||
/**
|
||||
* _ctl_do_mpt_command - main handler for MPT3COMMAND opcode
|
||||
* @ioc: per adapter object
|
||||
* @karg - (struct mpt3_ioctl_command)
|
||||
* @mf - pointer to mf in user space
|
||||
* @karg: (struct mpt3_ioctl_command)
|
||||
* @mf: pointer to mf in user space
|
||||
*/
|
||||
static long
|
||||
_ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg,
|
||||
@ -1123,7 +1121,7 @@ _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg,
|
||||
/**
|
||||
* _ctl_getiocinfo - main handler for MPT3IOCINFO opcode
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_getiocinfo(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -1177,7 +1175,7 @@ _ctl_getiocinfo(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_eventquery - main handler for MPT3EVENTQUERY opcode
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_eventquery(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -1208,7 +1206,7 @@ _ctl_eventquery(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_eventenable - main handler for MPT3EVENTENABLE opcode
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_eventenable(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -1246,7 +1244,7 @@ _ctl_eventenable(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_eventreport - main handler for MPT3EVENTREPORT opcode
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_eventreport(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -1290,7 +1288,7 @@ _ctl_eventreport(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_do_reset - main handler for MPT3HARDRESET opcode
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_do_reset(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -1428,7 +1426,7 @@ _ctl_btdh_search_raid_device(struct MPT3SAS_ADAPTER *ioc,
|
||||
/**
|
||||
* _ctl_btdh_mapping - main handler for MPT3BTDHMAPPING opcode
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_btdh_mapping(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -1726,7 +1724,7 @@ mpt3sas_enable_diag_buffer(struct MPT3SAS_ADAPTER *ioc, u8 bits_to_register)
|
||||
/**
|
||||
* _ctl_diag_register - application register with driver
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*
|
||||
* This will allow the driver to setup any required buffers that will be
|
||||
* needed by firmware to communicate with the driver.
|
||||
@ -1750,7 +1748,7 @@ _ctl_diag_register(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_diag_unregister - application unregister with driver
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*
|
||||
* This will allow the driver to cleanup any memory allocated for diag
|
||||
* messages and to free up any resources.
|
||||
@ -1823,7 +1821,7 @@ _ctl_diag_unregister(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_diag_query - query relevant info associated with diag buffers
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*
|
||||
* The application will send only buffer_type and unique_id. Driver will
|
||||
* inspect unique_id first, if valid, fill in all the info. If unique_id is
|
||||
@ -1910,8 +1908,8 @@ _ctl_diag_query(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* mpt3sas_send_diag_release - Diag Release Message
|
||||
* @ioc: per adapter object
|
||||
* @buffer_type - specifies either TRACE, SNAPSHOT, or EXTENDED
|
||||
* @issue_reset - specifies whether host reset is required.
|
||||
* @buffer_type: specifies either TRACE, SNAPSHOT, or EXTENDED
|
||||
* @issue_reset: specifies whether host reset is required.
|
||||
*
|
||||
*/
|
||||
int
|
||||
@ -2013,7 +2011,8 @@ mpt3sas_send_diag_release(struct MPT3SAS_ADAPTER *ioc, u8 buffer_type,
|
||||
|
||||
/**
|
||||
* _ctl_diag_release - request to send Diag Release Message to firmware
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @ioc: ?
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*
|
||||
* This allows ownership of the specified buffer to returned to the driver,
|
||||
* allowing an application to read the buffer without fear that firmware is
|
||||
@ -2102,7 +2101,7 @@ _ctl_diag_release(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_diag_read_buffer - request for copy of the diag buffer
|
||||
* @ioc: per adapter object
|
||||
* @arg - user space buffer containing ioctl content
|
||||
* @arg: user space buffer containing ioctl content
|
||||
*/
|
||||
static long
|
||||
_ctl_diag_read_buffer(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
@ -2286,8 +2285,8 @@ _ctl_diag_read_buffer(struct MPT3SAS_ADAPTER *ioc, void __user *arg)
|
||||
/**
|
||||
* _ctl_compat_mpt_command - convert 32bit pointers to 64bit.
|
||||
* @ioc: per adapter object
|
||||
* @cmd - ioctl opcode
|
||||
* @arg - (struct mpt3_ioctl_command32)
|
||||
* @cmd: ioctl opcode
|
||||
* @arg: (struct mpt3_ioctl_command32)
|
||||
*
|
||||
* MPT3COMMAND32 - Handle 32bit applications running on 64bit os.
|
||||
*/
|
||||
@ -2330,10 +2329,10 @@ _ctl_compat_mpt_command(struct MPT3SAS_ADAPTER *ioc, unsigned cmd,
|
||||
|
||||
/**
|
||||
* _ctl_ioctl_main - main ioctl entry point
|
||||
* @file - (struct file)
|
||||
* @cmd - ioctl opcode
|
||||
* @arg - user space data buffer
|
||||
* @compat - handles 32 bit applications in 64bit os
|
||||
* @file: (struct file)
|
||||
* @cmd: ioctl opcode
|
||||
* @arg: user space data buffer
|
||||
* @compat: handles 32 bit applications in 64bit os
|
||||
* @mpi_version: will be MPI2_VERSION for mpt2ctl ioctl device &
|
||||
* MPI25_VERSION | MPI26_VERSION for mpt3ctl ioctl device.
|
||||
*/
|
||||
@ -2464,9 +2463,9 @@ out_unlock_pciaccess:
|
||||
|
||||
/**
|
||||
* _ctl_ioctl - mpt3ctl main ioctl entry point (unlocked)
|
||||
* @file - (struct file)
|
||||
* @cmd - ioctl opcode
|
||||
* @arg -
|
||||
* @file: (struct file)
|
||||
* @cmd: ioctl opcode
|
||||
* @arg: ?
|
||||
*/
|
||||
static long
|
||||
_ctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
@ -2484,9 +2483,9 @@ _ctl_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
|
||||
/**
|
||||
* _ctl_mpt2_ioctl - mpt2ctl main ioctl entry point (unlocked)
|
||||
* @file - (struct file)
|
||||
* @cmd - ioctl opcode
|
||||
* @arg -
|
||||
* @file: (struct file)
|
||||
* @cmd: ioctl opcode
|
||||
* @arg: ?
|
||||
*/
|
||||
static long
|
||||
_ctl_mpt2_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
@ -2502,9 +2501,9 @@ _ctl_mpt2_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
#ifdef CONFIG_COMPAT
|
||||
/**
|
||||
*_ ctl_ioctl_compat - main ioctl entry point (compat)
|
||||
* @file -
|
||||
* @cmd -
|
||||
* @arg -
|
||||
* @file: ?
|
||||
* @cmd: ?
|
||||
* @arg: ?
|
||||
*
|
||||
* This routine handles 32 bit applications in 64bit os.
|
||||
*/
|
||||
@ -2520,9 +2519,9 @@ _ctl_ioctl_compat(struct file *file, unsigned cmd, unsigned long arg)
|
||||
|
||||
/**
|
||||
*_ ctl_mpt2_ioctl_compat - main ioctl entry point (compat)
|
||||
* @file -
|
||||
* @cmd -
|
||||
* @arg -
|
||||
* @file: ?
|
||||
* @cmd: ?
|
||||
* @arg: ?
|
||||
*
|
||||
* This routine handles 32 bit applications in 64bit os.
|
||||
*/
|
||||
@ -2539,8 +2538,9 @@ _ctl_mpt2_ioctl_compat(struct file *file, unsigned cmd, unsigned long arg)
|
||||
/* scsi host attributes */
|
||||
/**
|
||||
* _ctl_version_fw_show - firmware version
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2561,8 +2561,9 @@ static DEVICE_ATTR(version_fw, S_IRUGO, _ctl_version_fw_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_version_bios_show - bios version
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2585,8 +2586,9 @@ static DEVICE_ATTR(version_bios, S_IRUGO, _ctl_version_bios_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_version_mpi_show - MPI (message passing interface) version
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2604,8 +2606,9 @@ static DEVICE_ATTR(version_mpi, S_IRUGO, _ctl_version_mpi_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_version_product_show - product name
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2622,8 +2625,9 @@ static DEVICE_ATTR(version_product, S_IRUGO, _ctl_version_product_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_version_nvdata_persistent_show - ndvata persistent version
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2642,8 +2646,9 @@ static DEVICE_ATTR(version_nvdata_persistent, S_IRUGO,
|
||||
|
||||
/**
|
||||
* _ctl_version_nvdata_default_show - nvdata default version
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2662,8 +2667,9 @@ static DEVICE_ATTR(version_nvdata_default, S_IRUGO,
|
||||
|
||||
/**
|
||||
* _ctl_board_name_show - board name
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2680,8 +2686,9 @@ static DEVICE_ATTR(board_name, S_IRUGO, _ctl_board_name_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_board_assembly_show - board assembly name
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2698,8 +2705,9 @@ static DEVICE_ATTR(board_assembly, S_IRUGO, _ctl_board_assembly_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_board_tracer_show - board tracer number
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -2716,8 +2724,9 @@ static DEVICE_ATTR(board_tracer, S_IRUGO, _ctl_board_tracer_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_io_delay_show - io missing delay
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is for firmware implemention for deboucing device
|
||||
* removal events.
|
||||
@ -2737,8 +2746,9 @@ static DEVICE_ATTR(io_delay, S_IRUGO, _ctl_io_delay_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_device_delay_show - device missing delay
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is for firmware implemention for deboucing device
|
||||
* removal events.
|
||||
@ -2758,8 +2768,9 @@ static DEVICE_ATTR(device_delay, S_IRUGO, _ctl_device_delay_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_fw_queue_depth_show - global credits
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is firmware queue depth limit
|
||||
*
|
||||
@ -2778,8 +2789,9 @@ static DEVICE_ATTR(fw_queue_depth, S_IRUGO, _ctl_fw_queue_depth_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_sas_address_show - sas address
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is the controller sas address
|
||||
*
|
||||
@ -2801,8 +2813,9 @@ static DEVICE_ATTR(host_sas_address, S_IRUGO,
|
||||
|
||||
/**
|
||||
* _ctl_logging_level_show - logging level
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -2836,8 +2849,9 @@ static DEVICE_ATTR(logging_level, S_IRUGO | S_IWUSR, _ctl_logging_level_show,
|
||||
|
||||
/**
|
||||
* _ctl_fwfault_debug_show - show/store fwfault_debug
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* mpt3sas_fwfault_debug is command line option
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
@ -2872,8 +2886,9 @@ static DEVICE_ATTR(fwfault_debug, S_IRUGO | S_IWUSR,
|
||||
|
||||
/**
|
||||
* _ctl_ioc_reset_count_show - ioc reset count
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is firmware queue depth limit
|
||||
*
|
||||
@ -2892,8 +2907,9 @@ static DEVICE_ATTR(ioc_reset_count, S_IRUGO, _ctl_ioc_reset_count_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_ioc_reply_queue_count_show - number of reply queues
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is number of reply queues
|
||||
*
|
||||
@ -2920,8 +2936,9 @@ static DEVICE_ATTR(reply_queue_count, S_IRUGO, _ctl_ioc_reply_queue_count_show,
|
||||
|
||||
/**
|
||||
* _ctl_BRM_status_show - Backup Rail Monitor Status
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is number of reply queues
|
||||
*
|
||||
@ -3006,8 +3023,9 @@ struct DIAG_BUFFER_START {
|
||||
|
||||
/**
|
||||
* _ctl_host_trace_buffer_size_show - host buffer size (trace only)
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read-only' shost attribute.
|
||||
*/
|
||||
@ -3051,8 +3069,9 @@ static DEVICE_ATTR(host_trace_buffer_size, S_IRUGO,
|
||||
|
||||
/**
|
||||
* _ctl_host_trace_buffer_show - firmware ring buffer (trace only)
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*
|
||||
@ -3116,8 +3135,9 @@ static DEVICE_ATTR(host_trace_buffer, S_IRUGO | S_IWUSR,
|
||||
|
||||
/**
|
||||
* _ctl_host_trace_buffer_enable_show - firmware ring buffer (trace only)
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*
|
||||
@ -3202,8 +3222,9 @@ static DEVICE_ATTR(host_trace_buffer_enable, S_IRUGO | S_IWUSR,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_master_show - show the diag_trigger_master attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3226,8 +3247,10 @@ _ctl_diag_trigger_master_show(struct device *cdev,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_master_store - store the diag_trigger_master attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
* @count: ?
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3257,8 +3280,9 @@ static DEVICE_ATTR(diag_trigger_master, S_IRUGO | S_IWUSR,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_event_show - show the diag_trigger_event attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3280,8 +3304,10 @@ _ctl_diag_trigger_event_show(struct device *cdev,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_event_store - store the diag_trigger_event attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
* @count: ?
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3311,8 +3337,9 @@ static DEVICE_ATTR(diag_trigger_event, S_IRUGO | S_IWUSR,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_scsi_show - show the diag_trigger_scsi attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3334,8 +3361,10 @@ _ctl_diag_trigger_scsi_show(struct device *cdev,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_scsi_store - store the diag_trigger_scsi attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
* @count: ?
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3364,8 +3393,9 @@ static DEVICE_ATTR(diag_trigger_scsi, S_IRUGO | S_IWUSR,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_scsi_show - show the diag_trigger_mpi attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3387,8 +3417,10 @@ _ctl_diag_trigger_mpi_show(struct device *cdev,
|
||||
|
||||
/**
|
||||
* _ctl_diag_trigger_mpi_store - store the diag_trigger_mpi attribute
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @cdev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
* @count: ?
|
||||
*
|
||||
* A sysfs 'read/write' shost attribute.
|
||||
*/
|
||||
@ -3452,8 +3484,9 @@ struct device_attribute *mpt3sas_host_attrs[] = {
|
||||
|
||||
/**
|
||||
* _ctl_device_sas_address_show - sas address
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @dev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is the sas address for the target
|
||||
*
|
||||
@ -3473,8 +3506,9 @@ static DEVICE_ATTR(sas_address, S_IRUGO, _ctl_device_sas_address_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_device_handle_show - device handle
|
||||
* @cdev - pointer to embedded class device
|
||||
* @buf - the buffer returned
|
||||
* @dev: pointer to embedded class device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* This is the firmware assigned device handle
|
||||
*
|
||||
@ -3494,8 +3528,9 @@ static DEVICE_ATTR(sas_device_handle, S_IRUGO, _ctl_device_handle_show, NULL);
|
||||
|
||||
/**
|
||||
* _ctl_device_ncq_io_prio_show - send prioritized io commands to device
|
||||
* @dev - pointer to embedded device
|
||||
* @buf - the buffer returned
|
||||
* @dev: pointer to embedded device
|
||||
* @attr: ?
|
||||
* @buf: the buffer returned
|
||||
*
|
||||
* A sysfs 'read/write' sdev attribute, only works with SATA
|
||||
*/
|
||||
@ -3575,7 +3610,7 @@ static struct miscdevice gen2_ctl_dev = {
|
||||
|
||||
/**
|
||||
* mpt3sas_ctl_init - main entry point for ctl.
|
||||
*
|
||||
* @hbas_to_enumerate: ?
|
||||
*/
|
||||
void
|
||||
mpt3sas_ctl_init(ushort hbas_to_enumerate)
|
||||
@ -3603,7 +3638,7 @@ mpt3sas_ctl_init(ushort hbas_to_enumerate)
|
||||
|
||||
/**
|
||||
* mpt3sas_ctl_exit - exit point for ctl
|
||||
*
|
||||
* @hbas_to_enumerate: ?
|
||||
*/
|
||||
void
|
||||
mpt3sas_ctl_exit(ushort hbas_to_enumerate)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -134,7 +134,7 @@ _transport_convert_phy_link_rate(u8 link_rate)
|
||||
*
|
||||
* Populates sas identify info.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||
@ -226,8 +226,8 @@ _transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||
* Callback handler when sending internal generated transport cmds.
|
||||
* The callback index passed is `ioc->transport_cb_idx`
|
||||
*
|
||||
* Return 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
* Return: 1 meaning mf should be freed from _base_interrupt
|
||||
* 0 means the mf is freed from this function.
|
||||
*/
|
||||
u8
|
||||
mpt3sas_transport_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
@ -287,7 +287,7 @@ struct rep_manu_reply {
|
||||
*
|
||||
* Fills in the sas_expander_device object when SMP port is created.
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -460,8 +460,6 @@ _transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc,
|
||||
* _transport_delete_port - helper function to removing a port
|
||||
* @ioc: per adapter object
|
||||
* @mpt3sas_port: mpt3sas per port object
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
static void
|
||||
_transport_delete_port(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -489,8 +487,6 @@ _transport_delete_port(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @ioc: per adapter object
|
||||
* @mpt3sas_port: mpt3sas per port object
|
||||
* @mpt3sas_phy: mpt3sas per phy object
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
static void
|
||||
_transport_delete_phy(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -513,8 +509,6 @@ _transport_delete_phy(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @ioc: per adapter object
|
||||
* @mpt3sas_port: mpt3sas per port object
|
||||
* @mpt3sas_phy: mpt3sas per phy object
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
static void
|
||||
_transport_add_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_port *mpt3sas_port,
|
||||
@ -538,8 +532,6 @@ _transport_add_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_port *mpt3sas_port,
|
||||
* @sas_node: sas node object (either expander or sas host)
|
||||
* @mpt3sas_phy: mpt3sas per phy object
|
||||
* @sas_address: sas address of device/expander were phy needs to be added to
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
static void
|
||||
_transport_add_phy_to_an_existing_port(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -573,8 +565,6 @@ _transport_add_phy_to_an_existing_port(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @ioc: per adapter object
|
||||
* @sas_node: sas node object (either expander or sas host)
|
||||
* @mpt3sas_phy: mpt3sas per phy object
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
static void
|
||||
_transport_del_phy_from_an_existing_port(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -635,7 +625,7 @@ _transport_sanity_check(struct MPT3SAS_ADAPTER *ioc, struct _sas_node *sas_node,
|
||||
*
|
||||
* Adding new port object to the sas_node->sas_port_list.
|
||||
*
|
||||
* Returns mpt3sas_port.
|
||||
* Return: mpt3sas_port.
|
||||
*/
|
||||
struct _sas_port *
|
||||
mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||
@ -794,8 +784,6 @@ mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||
*
|
||||
* Removing object and freeing associated memory from the
|
||||
* ioc->sas_port_list.
|
||||
*
|
||||
* Return nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address,
|
||||
@ -860,7 +848,7 @@ mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address,
|
||||
* @phy_pg0: sas phy page 0
|
||||
* @parent_dev: parent device class object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
|
||||
@ -928,7 +916,7 @@ mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
|
||||
* @expander_pg1: expander page 1
|
||||
* @parent_dev: parent device class object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
int
|
||||
mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
|
||||
@ -995,10 +983,8 @@ mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
|
||||
* @ioc: per adapter object
|
||||
* @sas_address: sas address of parent expander or sas host
|
||||
* @handle: attached device handle
|
||||
* @phy_numberv: phy number
|
||||
* @phy_number: phy number
|
||||
* @link_rate: new link rate
|
||||
*
|
||||
* Returns nothing.
|
||||
*/
|
||||
void
|
||||
mpt3sas_transport_update_links(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -1090,7 +1076,7 @@ struct phy_error_log_reply {
|
||||
* @ioc: per adapter object
|
||||
* @phy: The sas phy object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*
|
||||
*/
|
||||
static int
|
||||
@ -1262,7 +1248,7 @@ _transport_get_expander_phy_error_log(struct MPT3SAS_ADAPTER *ioc,
|
||||
* _transport_get_linkerrors - return phy counters for both hba and expanders
|
||||
* @phy: The sas phy object
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*
|
||||
*/
|
||||
static int
|
||||
@ -1311,10 +1297,11 @@ _transport_get_linkerrors(struct sas_phy *phy)
|
||||
|
||||
/**
|
||||
* _transport_get_enclosure_identifier -
|
||||
* @phy: The sas phy object
|
||||
* @rphy: The sas phy object
|
||||
* @identifier: ?
|
||||
*
|
||||
* Obtain the enclosure logical id for an expander.
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
|
||||
@ -1342,9 +1329,9 @@ _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
|
||||
|
||||
/**
|
||||
* _transport_get_bay_identifier -
|
||||
* @phy: The sas phy object
|
||||
* @rphy: The sas phy object
|
||||
*
|
||||
* Returns the slot id for a device that resides inside an enclosure.
|
||||
* Return: the slot id for a device that resides inside an enclosure.
|
||||
*/
|
||||
static int
|
||||
_transport_get_bay_identifier(struct sas_rphy *rphy)
|
||||
@ -1400,8 +1387,9 @@ struct phy_control_reply {
|
||||
* _transport_expander_phy_control - expander phy control
|
||||
* @ioc: per adapter object
|
||||
* @phy: The sas phy object
|
||||
* @phy_operation: ?
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*
|
||||
*/
|
||||
static int
|
||||
@ -1571,7 +1559,7 @@ _transport_expander_phy_control(struct MPT3SAS_ADAPTER *ioc,
|
||||
* @phy: The sas phy object
|
||||
* @hard_reset:
|
||||
*
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_transport_phy_reset(struct sas_phy *phy, int hard_reset)
|
||||
@ -1623,7 +1611,7 @@ _transport_phy_reset(struct sas_phy *phy, int hard_reset)
|
||||
* @enable: enable phy when true
|
||||
*
|
||||
* Only support sas_host direct attached phys.
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_transport_phy_enable(struct sas_phy *phy, int enable)
|
||||
@ -1761,7 +1749,8 @@ _transport_phy_enable(struct sas_phy *phy, int enable)
|
||||
* @rates: rates defined in sas_phy_linkrates
|
||||
*
|
||||
* Only support sas_host direct attached phys.
|
||||
* Returns 0 for success, non-zero for failure.
|
||||
*
|
||||
* Return: 0 for success, non-zero for failure.
|
||||
*/
|
||||
static int
|
||||
_transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates)
|
||||
@ -1904,9 +1893,9 @@ _transport_unmap_smp_buffer(struct device *dev, struct bsg_buffer *buf,
|
||||
|
||||
/**
|
||||
* _transport_smp_handler - transport portal for smp passthru
|
||||
* @job: ?
|
||||
* @shost: shost object
|
||||
* @rphy: sas transport rphy object
|
||||
* @req:
|
||||
*
|
||||
* This used primarily for smp_utils.
|
||||
* Example:
|
||||
|
@ -62,7 +62,7 @@
|
||||
/**
|
||||
* _mpt3sas_raise_sigio - notifiy app
|
||||
* @ioc: per adapter object
|
||||
* @event_data:
|
||||
* @event_data: ?
|
||||
*/
|
||||
static void
|
||||
_mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -107,7 +107,7 @@ _mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc,
|
||||
/**
|
||||
* mpt3sas_process_trigger_data - process the event data for the trigger
|
||||
* @ioc: per adapter object
|
||||
* @event_data:
|
||||
* @event_data: ?
|
||||
*/
|
||||
void
|
||||
mpt3sas_process_trigger_data(struct MPT3SAS_ADAPTER *ioc,
|
||||
@ -209,8 +209,8 @@ mpt3sas_trigger_master(struct MPT3SAS_ADAPTER *ioc, u32 trigger_bitmask)
|
||||
/**
|
||||
* mpt3sas_trigger_event - Event trigger handler
|
||||
* @ioc: per adapter object
|
||||
* @event:
|
||||
* @log_entry_qualifier:
|
||||
* @event: ?
|
||||
* @log_entry_qualifier: ?
|
||||
*
|
||||
*/
|
||||
void
|
||||
@ -288,9 +288,9 @@ mpt3sas_trigger_event(struct MPT3SAS_ADAPTER *ioc, u16 event,
|
||||
/**
|
||||
* mpt3sas_trigger_scsi - SCSI trigger handler
|
||||
* @ioc: per adapter object
|
||||
* @sense_key:
|
||||
* @asc:
|
||||
* @ascq:
|
||||
* @sense_key: ?
|
||||
* @asc: ?
|
||||
* @ascq: ?
|
||||
*
|
||||
*/
|
||||
void
|
||||
@ -364,8 +364,8 @@ mpt3sas_trigger_scsi(struct MPT3SAS_ADAPTER *ioc, u8 sense_key, u8 asc,
|
||||
/**
|
||||
* mpt3sas_trigger_mpi - MPI trigger handler
|
||||
* @ioc: per adapter object
|
||||
* @ioc_status:
|
||||
* @loginfo:
|
||||
* @ioc_status: ?
|
||||
* @loginfo: ?
|
||||
*
|
||||
*/
|
||||
void
|
||||
|
@ -267,9 +267,6 @@ out_error:
|
||||
* @scmd: pointer to scsi command object
|
||||
* @raid_device: pointer to raid device data structure
|
||||
* @mpi_request: pointer to the SCSI_IO reqest message frame
|
||||
* @smid: system request message index
|
||||
*
|
||||
* Returns nothing
|
||||
*/
|
||||
void
|
||||
mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd,
|
||||
|
Loading…
Reference in New Issue
Block a user