Lines Matching refs:desc_buf
524 u8 desc_buf[8] = {0}; in ufs_sysfs_read_desc_param() local
538 param_offset, desc_buf, param_size); in ufs_sysfs_read_desc_param()
547 ret = sysfs_emit(sysfs_buf, "0x%02X\n", *desc_buf); in ufs_sysfs_read_desc_param()
551 get_unaligned_be16(desc_buf)); in ufs_sysfs_read_desc_param()
555 get_unaligned_be32(desc_buf)); in ufs_sysfs_read_desc_param()
559 get_unaligned_be64(desc_buf)); in ufs_sysfs_read_desc_param()
917 u8 *desc_buf; \
924 desc_buf = kzalloc(QUERY_DESC_MAX_SIZE, GFP_ATOMIC); \
925 if (!desc_buf) { \
932 0, 0, desc_buf, &desc_len); \
937 index = desc_buf[DEVICE_DESC_PARAM##_pname]; \
938 kfree(desc_buf); \
939 desc_buf = NULL; \
940 ret = ufshcd_read_string_desc(hba, index, &desc_buf, \
944 ret = sysfs_emit(buf, "%s\n", desc_buf); \
947 kfree(desc_buf); \