Lines Matching refs:rsp_field
120 struct utp_hpb_rsp *rsp_field) in ufshpb_is_hpb_rsp_valid() argument
127 if (be16_to_cpu(rsp_field->sense_data_len) != DEV_SENSE_SEG_LEN || in ufshpb_is_hpb_rsp_valid()
128 rsp_field->desc_type != DEV_DES_TYPE || in ufshpb_is_hpb_rsp_valid()
129 rsp_field->additional_len != DEV_ADDITIONAL_LEN || in ufshpb_is_hpb_rsp_valid()
130 rsp_field->active_rgn_cnt > MAX_ACTIVE_NUM || in ufshpb_is_hpb_rsp_valid()
131 rsp_field->inactive_rgn_cnt > MAX_INACTIVE_NUM || in ufshpb_is_hpb_rsp_valid()
132 rsp_field->hpb_op == HPB_RSP_NONE || in ufshpb_is_hpb_rsp_valid()
133 (rsp_field->hpb_op == HPB_RSP_REQ_REGION_UPDATE && in ufshpb_is_hpb_rsp_valid()
134 !rsp_field->active_rgn_cnt && !rsp_field->inactive_rgn_cnt)) in ufshpb_is_hpb_rsp_valid()
137 if (!ufshpb_is_general_lun(rsp_field->lun)) { in ufshpb_is_hpb_rsp_valid()
1177 struct utp_hpb_rsp *rsp_field) in ufshpb_rsp_req_region_update() argument
1190 for (i = 0; i < rsp_field->active_rgn_cnt; i++) { in ufshpb_rsp_req_region_update()
1192 be16_to_cpu(rsp_field->hpb_active_field[i].active_rgn); in ufshpb_rsp_req_region_update()
1194 be16_to_cpu(rsp_field->hpb_active_field[i].active_srgn); in ufshpb_rsp_req_region_update()
1232 for (i = 0; i < rsp_field->inactive_rgn_cnt; i++) { in ufshpb_rsp_req_region_update()
1233 rgn_i = be16_to_cpu(rsp_field->hpb_inactive_field[i]); in ufshpb_rsp_req_region_update()
1240 rsp_field->active_rgn_cnt, rsp_field->inactive_rgn_cnt); in ufshpb_rsp_req_region_update()
1306 struct utp_hpb_rsp *rsp_field = &lrbp->ucd_rsp_ptr->hr; in ufshpb_rsp_upiu() local
1316 if (unlikely(lrbp->lun != rsp_field->lun)) { in ufshpb_rsp_upiu()
1326 if (rsp_field->lun == hpb->lun) { in ufshpb_rsp_upiu()
1352 if (!ufshpb_is_hpb_rsp_valid(hba, lrbp, rsp_field)) in ufshpb_rsp_upiu()
1357 switch (rsp_field->hpb_op) { in ufshpb_rsp_upiu()
1363 ufshpb_rsp_req_region_update(hpb, rsp_field); in ufshpb_rsp_upiu()
1374 rsp_field->hpb_op); in ufshpb_rsp_upiu()