id
stringlengths
4
63
text
stringlengths
153
8.81M
ufs_qcom_remove(9)
NAME ufs_qcom_remove - set driver_data of the device to NULL SYNOPSIS void ufs_qcom_remove (struct platform_device *pdev ); ARGUMENTS pdev pointer to platform device handle DESCRIPTION Always returns 0 SEE ALSO Kernel file ./drivers/ufs/host/ufs-qcom.c ufs_qcom_config_ice_allocator(9), ufs_qcom_cfg_timers(...
ufs_qcom_set_clk_40ns_cycles(9)
NAME ufs_qcom_set_clk_40ns_cycles - Configure 40ns clk cycles SYNOPSIS int ufs_qcom_set_clk_40ns_cycles (struct ufs_hba *hba , u32 cycles_in_1us ); ARGUMENTS hba host controller instance cycles_in_1us No of cycles in 1us to be configured DESCRIPTION Returns error if dme get/set con...
ufs_qcom_setup_clocks(9)
NAME ufs_qcom_setup_clocks - enables/disable clocks SYNOPSIS int ufs_qcom_setup_clocks (struct ufs_hba *hba , bool on , enum ufs_notify_change_status status ); ARGUMENTS hba host controller instance on If true, enable clocks else disable them. status PRE_CHANGE or POST_CHANGE not...
ufshcd_abort(9)
NAME ufshcd_abort - scsi host template eh_abort_handler callback SYNOPSIS int ufshcd_abort (struct scsi_cmnd *cmd ); ARGUMENTS cmd SCSI command pointer RETURN SUCCESS or FAILED. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshc...
ufshcd_abort_all(9)
NAME ufshcd_abort_all - Abort all pending commands. SYNOPSIS bool ufshcd_abort_all (struct ufs_hba *hba ); ARGUMENTS hba Host bus adapter pointer. RETURN true if and only if the host controller needs to be reset. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(...
ufshcd_add_lus(9)
NAME ufshcd_add_lus - probe and add UFS logical units SYNOPSIS int ufshcd_add_lus (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance RETURN 0 upon success; < 0 upon failure. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), uf...
ufshcd_advanced_rpmb_req_handler(9)
NAME ufshcd_advanced_rpmb_req_handler - handle advanced RPMB request SYNOPSIS int ufshcd_advanced_rpmb_req_handler (struct ufs_hba *hba , struct utp_upiu_req *req_upiu , struct utp_upiu_req *rsp_upiu , struct ufs_ehs *req_ehs , struct ufs_ehs *rsp_ehs , int sg_cnt , struct scatterlist *sg_list , enum dma_data_direc...
ufshcd_alloc_host(9)
NAME ufshcd_alloc_host - allocate Host Bus Adapter (HBA) SYNOPSIS int ufshcd_alloc_host (struct device *dev , struct ufs_hba **hba_handle ); ARGUMENTS dev pointer to device handle hba_handle driver private handle RETURN 0 on success, non-zero value on failure. NOTE There is no corresponding ufshcd_...
ufshcd_async_scan(9)
NAME ufshcd_async_scan - asynchronous execution for probing hba SYNOPSIS void ufshcd_async_scan (void *data , async_cookie_t cookie ); ARGUMENTS data data pointer to pass to this function cookie cookie data SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_...
ufshcd_bkops_ctrl(9)
NAME ufshcd_bkops_ctrl - control the auto bkops based on current bkops status SYNOPSIS int ufshcd_bkops_ctrl (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance DESCRIPTION Read the bkops_status from the UFS device and Enable fBackgroundOpsEn flag in the device to permit background operations if the...
ufshcd_change_queue_depth(9)
NAME ufshcd_change_queue_depth - change queue depth SYNOPSIS int ufshcd_change_queue_depth (struct scsi_device *sdev , int depth ); ARGUMENTS sdev pointer to SCSI device depth required depth to set DESCRIPTION Change queue depth and make sure the max. limits are not crossed. RETURN new queue de...
ufshcd_check_errors(9)
NAME ufshcd_check_errors - Check for errors that need s/w attention SYNOPSIS irqreturn_t ufshcd_check_errors (struct ufs_hba *hba , u32 intr_status ); ARGUMENTS hba per-adapter instance intr_status interrupt status generated by the controller RETURN IRQ_HANDLED - If interrupt is valid IRQ_NONE - I...
ufshcd_comp_scsi_upiu(9)
NAME ufshcd_comp_scsi_upiu - UFS Protocol Information Unit(UPIU) for SCSI Purposes SYNOPSIS void ufshcd_comp_scsi_upiu (struct ufs_hba *hba , struct scsi_cmnd *cmd ); ARGUMENTS hba per adapter instance cmd SCSI command SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9),...
ufshcd_compl_one_cqe(9)
NAME ufshcd_compl_one_cqe - handle a completion queue entry SYNOPSIS void ufshcd_compl_one_cqe (struct ufs_hba *hba , int task_tag , struct cq_entry *cqe ); ARGUMENTS hba per adapter instance task_tag the task tag of the request to be completed cqe pointer to the completion queue en...
ufshcd_complete_dev_init(9)
NAME ufshcd_complete_dev_init - checks device readiness SYNOPSIS int ufshcd_complete_dev_init (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance DESCRIPTION Set fDeviceInit flag and poll until device toggles it. RETURN 0 upon success; > 0 in case the UFS device reported an OCS error; < 0 if another ...
ufshcd_compose_devman_upiu(9)
NAME ufshcd_compose_devman_upiu - UFS Protocol Information Unit(UPIU) for Device Management Purposes SYNOPSIS int ufshcd_compose_devman_upiu (struct ufs_hba *hba , struct scsi_cmnd *cmd ); ARGUMENTS hba per adapter instance cmd SCSI command pointer RETURN 0 upon success; < 0 upon failure. SE...
ufshcd_config_intr_aggr(9)
NAME ufshcd_config_intr_aggr - Configure interrupt aggregation values. SYNOPSIS void ufshcd_config_intr_aggr (struct ufs_hba *hba , u8 cnt , u8 tmout ); ARGUMENTS hba per adapter instance cnt Interrupt aggregation counter threshold tmout Interrupt aggregation timeout value SEE A...
ufshcd_config_pwr_mode(9)
NAME ufshcd_config_pwr_mode - configure a new power mode SYNOPSIS int ufshcd_config_pwr_mode (struct ufs_hba *hba , struct ufs_pa_layer_attr *desired_pwr_mode ); ARGUMENTS hba per-adapter instance desired_pwr_mode desired power configuration RETURN 0 upon success; < 0 upon failure....
ufshcd_copy_query_response(9)
NAME ufshcd_copy_query_response - Copy the Query Response and the data descriptor SYNOPSIS int ufshcd_copy_query_response (struct ufs_hba *hba , struct ufshcd_lrb *lrbp ); ARGUMENTS hba per adapter instance lrbp pointer to local reference block RETURN 0 upon success; < 0 upon failure. SEE ALS...
ufshcd_copy_sense_data(9)
NAME ufshcd_copy_sense_data - Copy sense data in case of check condition SYNOPSIS void ufshcd_copy_sense_data (struct scsi_cmnd *cmd ); ARGUMENTS cmd SCSI command SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_print_pwr_info(...
ufshcd_create_device_id(9)
NAME ufshcd_create_device_id - Generate unique device identifier string SYNOPSIS char * ufshcd_create_device_id (struct ufs_hba *hba , u8 *desc_buf ); ARGUMENTS hba per-adapter instance desc_buf device descriptor buffer DESCRIPTION Creates a unique device ID string combining manufacturer ID, spec ...
ufshcd_dev_cmd_completion(9)
NAME ufshcd_dev_cmd_completion - handles device management command responses SYNOPSIS int ufshcd_dev_cmd_completion (struct ufs_hba *hba , struct ufshcd_lrb *lrbp ); ARGUMENTS hba per adapter instance lrbp pointer to local reference block RETURN 0 upon success; < 0 upon failure. SEE ALSO Kern...
ufshcd_devfreq_scale(9)
NAME ufshcd_devfreq_scale - scale up/down UFS clocks and gear SYNOPSIS int ufshcd_devfreq_scale (struct ufs_hba *hba , unsigned long freq , bool scale_up ); ARGUMENTS hba per adapter instance freq frequency to scale scale_up True for scaling up and false for scalin down RETURN 0 for...
ufshcd_devres_release(9)
NAME ufshcd_devres_release - devres cleanup handler, invoked during release of hba->dev SYNOPSIS void ufshcd_devres_release (void *host ); ARGUMENTS host pointer to SCSI host SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_prin...
ufshcd_disable_auto_bkops(9)
NAME ufshcd_disable_auto_bkops - block device in doing background operations SYNOPSIS int ufshcd_disable_auto_bkops (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance DESCRIPTION Disabling background operations improves command response latency but has drawback of device moving into critical state wh...
ufshcd_disable_ee(9)
NAME ufshcd_disable_ee - disable exception event SYNOPSIS int ufshcd_disable_ee (struct ufs_hba *hba , u16 mask ); ARGUMENTS hba per-adapter instance mask exception event to disable DESCRIPTION Disables exception event in the device so that the EVENT_ALERT bit is not set. RETURN zero on succe...
ufshcd_disable_intr(9)
NAME ufshcd_disable_intr - disable interrupts SYNOPSIS void ufshcd_disable_intr (struct ufs_hba *hba , u32 intrs ); ARGUMENTS hba per adapter instance intrs interrupt bits SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_print_trs_all(9), ufshcd_print_pwr_...
ufshcd_disable_intr_aggr(9)
NAME ufshcd_disable_intr_aggr - Disables interrupt aggregation. SYNOPSIS void ufshcd_disable_intr_aggr (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_print_pwr_info(9...
ufshcd_dispatch_uic_cmd(9)
NAME ufshcd_dispatch_uic_cmd - Dispatch an UIC command to the Unipro layer SYNOPSIS void ufshcd_dispatch_uic_cmd (struct ufs_hba *hba , struct uic_command *uic_cmd ); ARGUMENTS hba per adapter instance uic_cmd UIC command SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ...
ufshcd_dme_enable(9)
NAME ufshcd_dme_enable - UIC command for DME_ENABLE SYNOPSIS int ufshcd_dme_enable (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION DME_ENABLE command is issued in order to enable UniPro stack. RETURN 0 on success, non-zero value on failure. SEE ALSO Kernel file ./drivers/ufs/core/u...
ufshcd_dme_get_attr(9)
NAME ufshcd_dme_get_attr - UIC command for DME_GET, DME_PEER_GET SYNOPSIS int ufshcd_dme_get_attr (struct ufs_hba *hba , u32 attr_sel , u32 *mib_val , u8 peer ); ARGUMENTS hba per adapter instance attr_sel uic command argument1 mib_val the value of the attribute as returned by the UIC c...
ufshcd_dme_link_startup(9)
NAME ufshcd_dme_link_startup - Notify Unipro to perform link startup SYNOPSIS int ufshcd_dme_link_startup (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION UIC_CMD_DME_LINK_STARTUP command must be issued to Unipro layer, in order to initialize the Unipro link startup procedure. Once the...
ufshcd_dme_reset(9)
NAME ufshcd_dme_reset - UIC command for DME_RESET SYNOPSIS int ufshcd_dme_reset (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION DME_RESET command is issued in order to reset UniPro stack. This function now deals with cold reset. RETURN 0 on success, non-zero value on failure. SEE AL...
ufshcd_dme_rmw(9)
NAME ufshcd_dme_rmw - get modify set a DME attribute SYNOPSIS int ufshcd_dme_rmw (struct ufs_hba *hba , u32 mask , u32 val , u32 attr ); ARGUMENTS hba per adapter instance mask indicates which bits to clear from the value that has been read val actual value to write attr...
ufshcd_dme_set_attr(9)
NAME ufshcd_dme_set_attr - UIC command for DME_SET, DME_PEER_SET SYNOPSIS int ufshcd_dme_set_attr (struct ufs_hba *hba , u32 attr_sel , u8 attr_set , u32 mib_val , u8 peer ); ARGUMENTS hba per adapter instance attr_sel uic command argument1 attr_set attribute set type as uic command argu...
ufshcd_dwc_connection_setup(9)
NAME ufshcd_dwc_connection_setup - configure unipro attributes. SYNOPSIS int ufshcd_dwc_connection_setup (struct ufs_hba *hba ); ARGUMENTS hba pointer to drivers private data DESCRIPTION This function configures both the local side (host) and the peer side (device) unipro attributes to establish the connect...
ufshcd_dwc_link_is_up(9)
NAME ufshcd_dwc_link_is_up - check if link is up. SYNOPSIS int ufshcd_dwc_link_is_up (struct ufs_hba *hba ); ARGUMENTS hba private structure pointer RETURN 0 on success, non-zero value on failure. SEE ALSO Kernel file ./drivers/ufs/host/ufshcd-dwc.c ufshcd_dwc_program_clk_div(9), ufshcd_dwc_connection_setup...
ufshcd_dwc_link_startup_notify(9)
NAME ufshcd_dwc_link_startup_notify - program clock divider. SYNOPSIS int ufshcd_dwc_link_startup_notify (struct ufs_hba *hba , enum ufs_notify_change_status status ); ARGUMENTS hba private structure pointer status Callback notify status RETURN 0 on success, non-zero value on failure. SEE ALSO ...
ufshcd_dwc_program_clk_div(9)
NAME ufshcd_dwc_program_clk_div - program clock divider. SYNOPSIS void ufshcd_dwc_program_clk_div (struct ufs_hba *hba , u32 divider_val ); ARGUMENTS hba Private Structure pointer divider_val clock divider value to be programmed SEE ALSO Kernel file ./drivers/ufs/host/ufshcd-dwc.c ufshcd_dwc_link_is_...
ufshcd_eh_device_reset_handler(9)
NAME ufshcd_eh_device_reset_handler - Reset a single logical unit. SYNOPSIS int ufshcd_eh_device_reset_handler (struct scsi_cmnd *cmd ); ARGUMENTS cmd SCSI command pointer RETURN SUCCESS or FAILED. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_prin...
ufshcd_eh_host_reset_handler(9)
NAME ufshcd_eh_host_reset_handler - host reset handler registered to scsi layer SYNOPSIS int ufshcd_eh_host_reset_handler (struct scsi_cmnd *cmd ); ARGUMENTS cmd SCSI command pointer RETURN SUCCESS or FAILED. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ...
ufshcd_enable_auto_bkops(9)
NAME ufshcd_enable_auto_bkops - Allow device managed BKOPS SYNOPSIS int ufshcd_enable_auto_bkops (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance DESCRIPTION Allow device to manage background operations on its own. Enabling this might lead to inconsistent latencies during normal data transfers as t...
ufshcd_enable_ee(9)
NAME ufshcd_enable_ee - enable exception event SYNOPSIS int ufshcd_enable_ee (struct ufs_hba *hba , u16 mask ); ARGUMENTS hba per-adapter instance mask exception event to enable DESCRIPTION Enable corresponding exception event in the device to allow device to alert host in critical scenarios. ...
ufshcd_enable_intr(9)
NAME ufshcd_enable_intr - enable interrupts SYNOPSIS void ufshcd_enable_intr (struct ufs_hba *hba , u32 intrs ); ARGUMENTS hba per adapter instance intrs interrupt bits SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_print_pwr_inf...
ufshcd_enable_run_stop_reg(9)
NAME ufshcd_enable_run_stop_reg - Enable run-stop registers, When run-stop registers are set to 1, it indicates the host controller that it can process the requests SYNOPSIS void ufshcd_enable_run_stop_reg (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance SEE ALSO Kernel file ./drivers/ufs/core/uf...
ufshcd_err_handler(9)
NAME ufshcd_err_handler - handle UFS errors that require s/w attention SYNOPSIS void ufshcd_err_handler (struct work_struct *work ); ARGUMENTS work pointer to work structure SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_prin...
ufshcd_exception_event_handler(9)
NAME ufshcd_exception_event_handler - handle exceptions raised by device SYNOPSIS void ufshcd_exception_event_handler (struct work_struct *work ); ARGUMENTS work pointer to work data DESCRIPTION Read bExceptionEventStatus attribute from the device and handle the exception event accordingly. SEE ALSO Kernel ...
ufshcd_exec_dev_cmd(9)
NAME ufshcd_exec_dev_cmd - API for sending device management requests SYNOPSIS int ufshcd_exec_dev_cmd (struct ufs_hba *hba , enum dev_cmd_type cmd_type , int timeout ); ARGUMENTS hba UFS hba cmd_type specifies the type (NOP, Query...) timeout timeout in milliseconds RETURN 0 upon succ...
ufshcd_exec_raw_upiu_cmd(9)
NAME ufshcd_exec_raw_upiu_cmd - API function for sending raw upiu commands SYNOPSIS int ufshcd_exec_raw_upiu_cmd (struct ufs_hba *hba , struct utp_upiu_req *req_upiu , struct utp_upiu_req *rsp_upiu , enum upiu_request_transaction msgcode , u8 *desc_buff , int *buff_len , enum query_opcode desc_op ); ARGUMENTS hba ...
ufshcd_find_max_sup_active_icc_level(9)
NAME ufshcd_find_max_sup_active_icc_level - calculate the max ICC level In case regulators are not initialized we'll return 0 SYNOPSIS u32 ufshcd_find_max_sup_active_icc_level (struct ufs_hba *hba , const u8 *desc_buf ); ARGUMENTS hba per-adapter instance desc_buf power descriptor buffer to extract...
ufshcd_force_reset_auto_bkops(9)
NAME ufshcd_force_reset_auto_bkops - force reset auto bkops state SYNOPSIS void ufshcd_force_reset_auto_bkops (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION After a device reset the device may toggle the BKOPS_EN flag to default value. The s/w tracking variables should be updated as ...
ufshcd_get_dme_attr_val(9)
NAME ufshcd_get_dme_attr_val - Get the value of attribute returned by UIC command SYNOPSIS u32 ufshcd_get_dme_attr_val (struct ufs_hba *hba ); ARGUMENTS hba Pointer to adapter instance DESCRIPTION This function gets UIC command argument3 RETURN 0 on success; non-zero value on error. SEE ALSO Kernel file ...
ufshcd_get_hba_mac(9)
NAME ufshcd_get_hba_mac - Maximum number of commands supported by the host controller. SYNOPSIS int ufshcd_get_hba_mac (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance RETURN queue depth on success; negative upon error. DESCRIPTION MAC = Maximum number of Active Commands supported by the Host Cont...
ufshcd_get_intr_mask(9)
NAME ufshcd_get_intr_mask - Get the interrupt bit mask SYNOPSIS u32 ufshcd_get_intr_mask (struct ufs_hba *hba ); ARGUMENTS hba Pointer to adapter instance RETURN interrupt bit mask per version SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_pr...
ufshcd_get_lists_status(9)
NAME ufshcd_get_lists_status - Check UCRDY, UTRLRDY and UTMRLRDY SYNOPSIS int ufshcd_get_lists_status (u32 reg ); ARGUMENTS reg Register value of host controller status RETURN 0 on success; a positive value if failed. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_...
ufshcd_get_max_icc_level(9)
NAME ufshcd_get_max_icc_level - calculate the ICC level SYNOPSIS u32 ufshcd_get_max_icc_level (int sup_curr_uA , u32 start_scan , const char *buff ); ARGUMENTS sup_curr_uA max. current supported by the regulator start_scan row at the desc table to start scan from buff power descriptor buffer ...
ufshcd_get_max_pwr_mode(9)
NAME ufshcd_get_max_pwr_mode - reads the max power mode negotiated with device SYNOPSIS int ufshcd_get_max_pwr_mode (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance RETURN 0 upon success; < 0 upon failure. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_in...
ufshcd_get_req_rsp(9)
NAME ufshcd_get_req_rsp - returns the TR response transaction type SYNOPSIS enum upiu_response_transaction ufshcd_get_req_rsp (struct utp_upiu_rsp *ucd_rsp_ptr ); ARGUMENTS ucd_rsp_ptr pointer to response UPIU RETURN UPIU type. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disabl...
ufshcd_get_tr_ocs(9)
NAME ufshcd_get_tr_ocs - Get the UTRD Overall Command Status SYNOPSIS enum utp_ocs ufshcd_get_tr_ocs (struct ufshcd_lrb *lrbp , struct cq_entry *cqe ); ARGUMENTS lrbp pointer to local command reference block cqe pointer to the completion queue entry DESCRIPTION This function is used to get the...
ufshcd_get_ufs_version(9)
NAME ufshcd_get_ufs_version - Get the UFS version supported by the HBA SYNOPSIS u32 ufshcd_get_ufs_version (struct ufs_hba *hba ); ARGUMENTS hba Pointer to adapter instance RETURN UFSHCI version supported by the controller SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disab...
ufshcd_get_uic_cmd_result(9)
NAME ufshcd_get_uic_cmd_result - Get the UIC command result SYNOPSIS int ufshcd_get_uic_cmd_result (struct ufs_hba *hba ); ARGUMENTS hba Pointer to adapter instance DESCRIPTION This function gets the result of UIC command completion RETURN 0 on success; non-zero value on error. SEE ALSO Kernel file ./dri...
ufshcd_get_upmcrs(9)
NAME ufshcd_get_upmcrs - Get the power mode change request status SYNOPSIS u8 ufshcd_get_upmcrs (struct ufs_hba *hba ); ARGUMENTS hba Pointer to adapter instance DESCRIPTION This function gets the UPMCRS field of HCS register RETURN value of UPMCRS field. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ...
ufshcd_get_variant(9)
NAME ufshcd_get_variant - get variant specific data from the hba SYNOPSIS void * ufshcd_get_variant (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance SEE ALSO Kernel file ./include/ufs/ufshcd.h struct uic_command(9), struct ufshcd_lrb(9), struct ufs_query_req(9), struct ufs_query(9), stru...
ufshcd_handle_mcq_cq_events(9)
NAME ufshcd_handle_mcq_cq_events - handle MCQ completion queue events SYNOPSIS irqreturn_t ufshcd_handle_mcq_cq_events (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance RETURN IRQ_HANDLED if interrupt is handled. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disa...
ufshcd_hba_capabilities(9)
NAME ufshcd_hba_capabilities - Read controller capabilities SYNOPSIS int ufshcd_hba_capabilities (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance RETURN 0 on success, negative on error. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_...
ufshcd_hba_execute_hce(9)
NAME ufshcd_hba_execute_hce - initialize the controller SYNOPSIS int ufshcd_hba_execute_hce (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION The controller resets itself and controller firmware initialization sequence kicks off. When controller is ready it will set the Host Controller E...
ufshcd_hba_init_crypto_capabilities(9)
NAME ufshcd_hba_init_crypto_capabilities - Read crypto capabilities, init crypto fields in hba SYNOPSIS int ufshcd_hba_init_crypto_capabilities (struct ufs_hba *hba ); ARGUMENTS hba Per adapter instance RETURN 0 if crypto was initialized or is not supported, else a -errno value. SEE ALSO Kernel file ./drive...
ufshcd_hba_start(9)
NAME ufshcd_hba_start - Start controller initialization sequence SYNOPSIS void ufshcd_hba_start (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_print_pwr_info(9), ufsh...
ufshcd_hba_stop(9)
NAME ufshcd_hba_stop - Send controller to reset state SYNOPSIS void ufshcd_hba_stop (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_trs_all(9), ufshcd_print_pwr_info(9), ufshcd_wait_for_...
ufshcd_hold(9)
NAME ufshcd_hold - Enable clocks that were gated earlier due to ufshcd_release. Also, exit from hibern8 mode and set the link as active. SYNOPSIS void ufshcd_hold (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disab...
ufshcd_host_memory_configure(9)
NAME ufshcd_host_memory_configure - configure local reference block with memory offsets SYNOPSIS void ufshcd_host_memory_configure (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION Configure Host memory space 1. Update Corresponding UTRD.UCDBA and UTRD.UCDBAU with UCD DMA address. 2...
ufshcd_host_reset_and_restore(9)
NAME ufshcd_host_reset_and_restore - reset and restore host controller SYNOPSIS int ufshcd_host_reset_and_restore (struct ufs_hba *hba ); ARGUMENTS hba per-adapter instance DESCRIPTION Note that host controller reset may issue DME_RESET to local and remote (device) Uni-Pro stack and the attributes are reset ...
ufshcd_init(9)
NAME ufshcd_init - Driver initialization routine SYNOPSIS int ufshcd_init (struct ufs_hba *hba , void __iomem *mmio_base , unsigned int irq ); ARGUMENTS hba per-adapter instance mmio_base base register address irq Interrupt line of device RETURN 0 on success; < 0 on failure. SEE AL...
ufshcd_init_crypto(9)
NAME ufshcd_init_crypto - Initialize crypto hardware SYNOPSIS void ufshcd_init_crypto (struct ufs_hba *hba ); ARGUMENTS hba Per adapter instance SEE ALSO Kernel file ./drivers/ufs/core/ufshcd-crypto.c ufshcd_hba_init_crypto_capabilities(9) April 2026 ...
ufshcd_init_query(9)
NAME ufshcd_init_query - init the query response and request parameters SYNOPSIS void ufshcd_init_query (struct ufs_hba *hba , struct ufs_query_req **request , struct ufs_query_res **response , enum query_opcode opcode , u8 idn , u8 index , u8 selector ); ARGUMENTS hba per-adapter instance request ...
ufshcd_intr(9)
NAME ufshcd_intr - Main interrupt service routine SYNOPSIS irqreturn_t ufshcd_intr (int irq , void *__hba ); ARGUMENTS irq irq number __hba pointer to adapter instance RETURN IRQ_HANDLED - If interrupt is valid IRQ_WAKE_THREAD - If handling is moved to threaded handled IRQ_NONE - If ...
ufshcd_is_devfreq_scaling_required(9)
NAME ufshcd_is_devfreq_scaling_required - check if scaling is required or not SYNOPSIS bool ufshcd_is_devfreq_scaling_required (struct ufs_hba *hba , unsigned long freq , bool scale_up ); ARGUMENTS hba per adapter instance freq frequency to scale scale_up True if scaling up and false...
ufshcd_is_device_present(9)
NAME ufshcd_is_device_present - Check if any device connected to the host controller SYNOPSIS bool ufshcd_is_device_present (struct ufs_hba *hba ); ARGUMENTS hba pointer to adapter instance RETURN true if device present, false if no device detected SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_...
ufshcd_is_exception_event(9)
NAME ufshcd_is_exception_event - Check if the device raised an exception event SYNOPSIS bool ufshcd_is_exception_event (struct utp_upiu_rsp *ucd_rsp_ptr ); ARGUMENTS ucd_rsp_ptr pointer to response UPIU DESCRIPTION The function checks if the device raised an exception event indicated in the Device Information field ...
ufshcd_is_hba_active(9)
NAME ufshcd_is_hba_active - Get controller state SYNOPSIS bool ufshcd_is_hba_active (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance RETURN true if and only if the controller is active. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_print_...
ufshcd_issue_devman_upiu_cmd(9)
NAME ufshcd_issue_devman_upiu_cmd - API for sending "utrd" type requests SYNOPSIS int ufshcd_issue_devman_upiu_cmd (struct ufs_hba *hba , struct utp_upiu_req *req_upiu , struct utp_upiu_req *rsp_upiu , u8 *desc_buff , int *buff_len , enum dev_cmd_type cmd_type , enum query_opcode desc_op ); ARGUMENTS hba per-...
ufshcd_issue_tm_cmd(9)
NAME ufshcd_issue_tm_cmd - issues task management commands to controller SYNOPSIS int ufshcd_issue_tm_cmd (struct ufs_hba *hba , int lun_id , int task_id , u8 tm_function , u8 *tm_response ); ARGUMENTS hba per adapter instance lun_id LUN ID to which TM command is sent task_id task ID ...
ufshcd_link_startup(9)
NAME ufshcd_link_startup - Initialize unipro link startup SYNOPSIS int ufshcd_link_startup (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance RETURN 0 for success, non-zero in case of failure. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_disable_intr(9), ufshcd_p...
ufshcd_lu_init(9)
NAME ufshcd_lu_init - Initialize the relevant parameters of the LU SYNOPSIS void ufshcd_lu_init (struct ufs_hba *hba , struct scsi_device *sdev ); ARGUMENTS hba per-adapter instance sdev pointer to SCSI device SEE ALSO Kernel file ./drivers/ufs/core/ufshcd.c ufshcd_enable_intr(9), ufshcd_di...
ufshcd_make_hba_operational(9)
NAME ufshcd_make_hba_operational - Make UFS controller operational SYNOPSIS int ufshcd_make_hba_operational (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION To bring UFS host controller to operational state, 1. Enable required interrupts 2. Configure interrupt aggregation 3. Program UTR...
ufshcd_map_sg(9)
NAME ufshcd_map_sg - Map scatter-gather list to prdt SYNOPSIS int ufshcd_map_sg (struct ufs_hba *hba , struct scsi_cmnd *cmd ); ARGUMENTS hba per adapter instance cmd SCSI command RETURN 0 in case of success, non-zero value in case of failure. SEE ALSO Kernel file ./drivers/ufs/core/ufshcd...
ufshcd_mcq_abort(9)
NAME ufshcd_mcq_abort - Abort the command in MCQ. SYNOPSIS int ufshcd_mcq_abort (struct scsi_cmnd *cmd ); ARGUMENTS cmd The command to be aborted. RETURN SUCCESS or FAILED error codes SEE ALSO Kernel file ./drivers/ufs/core/ufs-mcq.c ufshcd_mcq_config_mac(9), ufshcd_mcq_req_to_hwq(9), ufshcd_mcq_queue_cfg_a...
ufshcd_mcq_compl_pending_transfer(9)
NAME ufshcd_mcq_compl_pending_transfer - MCQ mode function. It is invoked from the error handler context or ufshcd_host_reset_and_restore() to complete the pending transfers and free the resources associated with the scsi com‐ mand. SYNOPSIS void ufshcd_mcq_compl_pending_transfer (struct ufs_hba *hba , bool force_comp...
ufshcd_mcq_config_mac(9)
NAME ufshcd_mcq_config_mac - Set the #Max Activ Cmds. SYNOPSIS void ufshcd_mcq_config_mac (struct ufs_hba *hba , u32 max_active_cmds ); ARGUMENTS hba per adapter instance max_active_cmds maximum # of active commands to the device at any time. DESCRIPTION The controller won't send m...
ufshcd_mcq_nullify_sqe(9)
NAME ufshcd_mcq_nullify_sqe - Nullify the submission queue entry. Write the sqe's Command Type to 0xF. The host controller will not fetch any sqe with Command Type = 0xF. SYNOPSIS void ufshcd_mcq_nullify_sqe (struct utp_transfer_req_desc *utrd ); ARGUMENTS utrd UTP Transfer Request Descriptor to be nullified. ...
ufshcd_mcq_queue_cfg_addr(9)
NAME ufshcd_mcq_queue_cfg_addr - get an start address of the MCQ Queue Config Registers. SYNOPSIS unsigned int ufshcd_mcq_queue_cfg_addr (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance RETURN Start address of MCQ Queue Config Registers in HCI SEE ALSO Kernel file ./drivers/ufs/core/ufs-mcq.c ufsh...
ufshcd_mcq_req_to_hwq(9)
NAME ufshcd_mcq_req_to_hwq - find the hardware queue on which the request would be issued. SYNOPSIS struct ufs_hw_queue * ufshcd_mcq_req_to_hwq (struct ufs_hba *hba , struct request *req ); ARGUMENTS hba per adapter instance req pointer to the request to be issued RETURN the hardware queue in...
ufshcd_mcq_sq_cleanup(9)
NAME ufshcd_mcq_sq_cleanup - Clean up submission queue resources associated with the pending command. SYNOPSIS int ufshcd_mcq_sq_cleanup (struct ufs_hba *hba , int task_tag ); ARGUMENTS hba per adapter instance. task_tag The command's task tag. RETURN 0 for success; error code otherwise. SEE ALSO...
ufshcd_mcq_sqe_search(9)
NAME ufshcd_mcq_sqe_search - Search for the command in the submission queue If the command is in the submission queue and not issued to the device yet, nullify the sqe so the host controller will skip fetching the sqe. SYNOPSIS bool ufshcd_mcq_sqe_search (struct ufs_hba *hba , struct ufs_hw_queue *hwq , int task_tag )...
ufshcd_memory_alloc(9)
NAME ufshcd_memory_alloc - allocate memory for host memory space data structures SYNOPSIS int ufshcd_memory_alloc (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION 1. Allocate DMA memory for Command Descriptor array Each command descriptor consist of Command UPIU, Response UPIU and PRDT...
ufshcd_negotiate_pwr_params(9)
NAME ufshcd_negotiate_pwr_params - find power mode settings that are supported by both the controller and the device SYNOPSIS int ufshcd_negotiate_pwr_params (const struct ufs_host_params *host_params , const struct ufs_pa_layer_attr *dev_max , struct ufs_pa_layer_attr *agreed_pwr ); ARGUMENTS host_params pointer to ...
ufshcd_parse_clock_min_max_freq(9)
NAME ufshcd_parse_clock_min_max_freq - Parse MIN and MAX clocks freq SYNOPSIS int ufshcd_parse_clock_min_max_freq (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION This function parses MIN and MAX frequencies of all clocks required by the host drivers. Returns 0 for success and non-zero...
ufshcd_parse_gear_limits(9)
NAME ufshcd_parse_gear_limits - Parse DT-based gear and rate limits for UFS SYNOPSIS void ufshcd_parse_gear_limits (struct ufs_hba *hba , struct ufs_host_params *host_params ); ARGUMENTS hba Pointer to UFS host bus adapter instance host_params Pointer to UFS host parameters structure to be updated DE...
ufshcd_parse_regulator_info(9)
NAME ufshcd_parse_regulator_info - get regulator info from device tree SYNOPSIS int ufshcd_parse_regulator_info (struct ufs_hba *hba ); ARGUMENTS hba per adapter instance DESCRIPTION Get regulator info from device tree for vcc, vccq, vccq2 power supplies. If any of the supplies are not defined it is a...
ufshcd_pci_probe(9)
NAME ufshcd_pci_probe - probe routine of the driver SYNOPSIS int ufshcd_pci_probe (struct pci_dev *pdev , const struct pci_device_id *id ); ARGUMENTS pdev pointer to PCI device handle id PCI device id RETURN 0 on success, non-zero value on failure. SEE ALSO Kernel file ./drivers/ufs/host/ufs...