Home
last modified time | relevance | path

Searched refs:lrbp (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/ufs/core/
Dufshcd-crypto.h17 struct ufshcd_lrb *lrbp) in ufshcd_prepare_lrbp_crypto() argument
20 lrbp->crypto_key_slot = -1; in ufshcd_prepare_lrbp_crypto()
24 lrbp->crypto_key_slot = blk_crypto_keyslot_index(rq->crypt_keyslot); in ufshcd_prepare_lrbp_crypto()
25 lrbp->data_unit_num = rq->crypt_ctx->bc_dun[0]; in ufshcd_prepare_lrbp_crypto()
29 ufshcd_prepare_req_desc_hdr_crypto(struct ufshcd_lrb *lrbp, u32 *dword_0, in ufshcd_prepare_req_desc_hdr_crypto() argument
32 if (lrbp->crypto_key_slot >= 0) { in ufshcd_prepare_req_desc_hdr_crypto()
34 *dword_0 |= lrbp->crypto_key_slot; in ufshcd_prepare_req_desc_hdr_crypto()
35 *dword_1 = lower_32_bits(lrbp->data_unit_num); in ufshcd_prepare_req_desc_hdr_crypto()
36 *dword_3 = upper_32_bits(lrbp->data_unit_num); in ufshcd_prepare_req_desc_hdr_crypto()
51 struct ufshcd_lrb *lrbp) { } in ufshcd_prepare_lrbp_crypto() argument
[all …]
Dufshcd.c390 struct ufshcd_lrb *lrbp = &hba->lrb[tag]; in ufshcd_add_command_trace() local
391 struct scsi_cmnd *cmd = lrbp->cmd; in ufshcd_add_command_trace()
410 be32_to_cpu(lrbp->ucd_req_ptr->sc.exp_data_transfer_len); in ufshcd_add_command_trace()
413 group_id = lrbp->cmd->cmnd[6]; in ufshcd_add_command_trace()
499 const struct ufshcd_lrb *lrbp; in ufshcd_print_trs() local
504 lrbp = &hba->lrb[tag]; in ufshcd_print_trs()
507 tag, div_u64(lrbp->issue_time_stamp_local_clock, 1000)); in ufshcd_print_trs()
509 tag, div_u64(lrbp->compl_time_stamp_local_clock, 1000)); in ufshcd_print_trs()
512 tag, (u64)lrbp->utrd_dma_addr); in ufshcd_print_trs()
514 ufshcd_hex_dump("UPIU TRD: ", lrbp->utr_descriptor_ptr, in ufshcd_print_trs()
[all …]
Dufshpb.h287 static int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { return 0; } in ufshpb_prep() argument
288 static void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) {} in ufshpb_rsp_upiu() argument
301 int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp);
302 void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp);
Dufshpb.c119 struct ufshcd_lrb *lrbp, in ufshpb_is_hpb_rsp_valid() argument
123 if (!(lrbp->ucd_rsp_ptr->header.dword_2 & in ufshpb_is_hpb_rsp_valid()
139 lrbp->lun); in ufshpb_is_hpb_rsp_valid()
325 ufshpb_set_hpb_read_to_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, in ufshpb_set_hpb_read_to_upiu() argument
328 unsigned char *cdb = lrbp->cmd->cmnd; in ufshpb_set_hpb_read_to_upiu()
340 lrbp->cmd->cmd_len = UFS_CDB_SIZE; in ufshpb_set_hpb_read_to_upiu()
346 int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshpb_prep() argument
351 struct scsi_cmnd *cmd = lrbp->cmd; in ufshpb_prep()
430 ufshpb_set_hpb_read_to_upiu(hba, lrbp, ppn, transfer_len); in ufshpb_prep()
1306 void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) in ufshpb_rsp_upiu() argument
[all …]