Lines Matching refs:hba
667 int ufshcd_dme_set_attr(struct ufs_hba *hba, u32 attr_sel,
669 int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel,
672 static inline int ufshcd_dme_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_set() argument
675 return ufshcd_dme_set_attr(hba, attr_sel, ATTR_SET_NOR, in ufshcd_dme_set()
679 static inline int ufshcd_dme_get(struct ufs_hba *hba, in ufshcd_dme_get() argument
682 return ufshcd_dme_get_attr(hba, attr_sel, mib_val, DME_LOCAL); in ufshcd_dme_get()
685 static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, in ufshcd_dme_peer_get() argument
688 return ufshcd_dme_get_attr(hba, attr_sel, mib_val, DME_PEER); in ufshcd_dme_peer_get()
691 static inline int ufshcd_dme_peer_set(struct ufs_hba *hba, u32 attr_sel, in ufshcd_dme_peer_set() argument
694 return ufshcd_dme_set_attr(hba, attr_sel, ATTR_SET_NOR, in ufshcd_dme_peer_set()
741 int (*init)(struct ufs_hba *hba);
742 int (*hce_enable_notify)(struct ufs_hba *hba,
744 int (*link_startup_notify)(struct ufs_hba *hba,
746 int (*phy_initialization)(struct ufs_hba *hba);
747 int (*phy_parameter_initialization)(struct ufs_hba *hba);
810 static inline int ufshcd_ops_init(struct ufs_hba *hba) in ufshcd_ops_init() argument
812 if (hba->ops && hba->ops->init) in ufshcd_ops_init()
813 return hba->ops->init(hba); in ufshcd_ops_init()
818 static inline int ufshcd_ops_hce_enable_notify(struct ufs_hba *hba, in ufshcd_ops_hce_enable_notify() argument
821 if (hba->ops && hba->ops->hce_enable_notify) in ufshcd_ops_hce_enable_notify()
822 return hba->ops->hce_enable_notify(hba, status); in ufshcd_ops_hce_enable_notify()
827 static inline int ufshcd_ops_link_startup_notify(struct ufs_hba *hba, in ufshcd_ops_link_startup_notify() argument
830 if (hba->ops && hba->ops->link_startup_notify) in ufshcd_ops_link_startup_notify()
831 return hba->ops->link_startup_notify(hba, status); in ufshcd_ops_link_startup_notify()
976 #define ufshcd_writel(hba, val, reg) \ argument
977 writel((val), (hba)->mmio_base + (reg))
978 #define ufshcd_readl(hba, reg) \ argument
979 readl((hba)->mmio_base + (reg))
988 int ufshcd_dme_reset(struct ufs_hba *hba);
989 int ufshcd_dme_enable(struct ufs_hba *hba);
990 int ufs_create_partition_inventory(struct ufs_hba *hba);
991 int ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id, int *desc_len);
992 int ufshcd_read_desc_param(struct ufs_hba *hba, enum desc_idn desc_id,
995 int ufshcd_query_descriptor_retry(struct ufs_hba *hba, enum query_opcode opcode,
998 int ufshcd_exec_dev_cmd(struct ufs_hba *hba, enum dev_cmd_type cmd_type, int timeout);