Home
last modified time | relevance | path

Searched refs:hpb (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/ufs/core/
Dufshpb.c38 static void ufshpb_update_active_info(struct ufshpb_lu *hpb, int rgn_idx,
57 static int ufshpb_get_state(struct ufshpb_lu *hpb) in ufshpb_get_state() argument
59 return atomic_read(&hpb->hpb_state); in ufshpb_get_state()
62 static void ufshpb_set_state(struct ufshpb_lu *hpb, int state) in ufshpb_set_state() argument
64 atomic_set(&hpb->hpb_state, state); in ufshpb_set_state()
85 static bool ufshpb_is_supported_chunk(struct ufshpb_lu *hpb, int transfer_len) in ufshpb_is_supported_chunk() argument
87 return transfer_len <= hpb->pre_req_max_tr_len; in ufshpb_is_supported_chunk()
95 static bool ufshpb_is_pinned_region(struct ufshpb_lu *hpb, int rgn_idx) in ufshpb_is_pinned_region() argument
97 return hpb->lu_pinned_end != PINNED_NOT_SET && in ufshpb_is_pinned_region()
98 rgn_idx >= hpb->lu_pinned_start && rgn_idx <= hpb->lu_pinned_end; in ufshpb_is_pinned_region()
[all …]
Dufshpb.h117 struct ufshpb_lu *hpb; member
164 struct ufshpb_lu *hpb; member