Lines Matching +full:ufs +full:- +full:2

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 2011-2013 Samsung India Software Operations
21 #define QUERY_DESC_MIN_SIZE 2
22 #define QUERY_DESC_HDR_SIZE 2
23 #define QUERY_OSF_SIZE (GENERAL_UPIU_REQUEST_SIZE - \
31 * UFS device may have standard LUs and LUN id could be from 0x00 to
33 * UFS device may also have the Well Known LUs (also referred as W-LU)
34 * which again could be from 0x00 to 0x7F. For W-LUs, device only use
35 * the "Extended Addressing Format" which means the W-LUNs would be
37 * This means max. LUN number reported from UFS device could be 0xC17F.
56 * UFS Protocol Information Unit related definitions
336 UFSHCD_MILI_AMP = 2,
367 MASK_EE_URGENT_BKOPS = (1 << 2),
396 REF_CLK_FREQ_38_4_MHZ = 2,
398 REF_CLK_FREQ_INVAL = -1,
454 /* UFS device power modes */
457 UFS_SLEEP_PWR_MODE = 2,
464 * struct utp_cmd_rsp - Response UPIU structure
465 * @residual_transfer_count: Residual transfer count DW-3
466 * @reserved: Reserved double words DW-4 to DW-7
467 * @sense_data_len: Sense data length DW-8 U16
468 * @sense_data: Sense data field DW-8 to DW-12
484 * struct utp_hpb_rsp - Response UPIU structure
485 * @residual_transfer_count: Residual transfer count DW-3
486 * @reserved1: Reserved double words DW-4 to DW-7
487 * @sense_data_len: Sense data length DW-8 U16
507 struct ufshpb_active_field hpb_active_field[2];
508 __be16 hpb_inactive_field[2];
513 * struct utp_upiu_rsp - general upiu response structure
514 * @header: UPIU header structure DW-0 to DW-2
515 * @sr: fields structure for scsi command DW-3 to DW-12
516 * @qr: fields structure for query request DW-3 to DW-7
528 * struct ufs_query_req - parameters for building a query request
538 * struct ufs_query_resp - UPIU QUERY
557 * VCCQ & VCCQ2 current requirement when UFS device is in sleep state
583 /* Maximum number of general LU supported by the UFS device */
587 /*UFS device Product Name */
596 /* UFS HPB related flag */
602 * ufs_is_valid_unit_desc_lun - checks if the given LUN has a unit descriptor
610 if (!dev_info || !dev_info->max_lu_supported) { in ufs_is_valid_unit_desc_lun()
611 pr_err("Max General LU supported by UFS isn't initialized\n"); in ufs_is_valid_unit_desc_lun()
617 return lun == UFS_UPIU_RPMB_WLUN || (lun < dev_info->max_lu_supported); in ufs_is_valid_unit_desc_lun()