Lines Matching refs:desc_buf

3203 			u8 selector, u8 *desc_buf, int *buf_len)  in __ufshcd_query_descriptor()  argument
3211 if (!desc_buf) { in __ufshcd_query_descriptor()
3228 hba->dev_cmd.query.descriptor = desc_buf; in __ufshcd_query_descriptor()
3281 u8 *desc_buf, int *buf_len) in ufshcd_query_descriptor_retry() argument
3288 selector, desc_buf, buf_len); in ufshcd_query_descriptor_retry()
3346 u8 *desc_buf; in ufshcd_read_desc_param() local
3369 desc_buf = kzalloc(buff_len, GFP_KERNEL); in ufshcd_read_desc_param()
3370 if (!desc_buf) in ufshcd_read_desc_param()
3373 desc_buf = param_read_buf; in ufshcd_read_desc_param()
3380 desc_buf, &buff_len); in ufshcd_read_desc_param()
3389 if (desc_buf[QUERY_DESC_DESC_TYPE_OFFSET] != desc_id) { in ufshcd_read_desc_param()
3391 __func__, desc_buf[QUERY_DESC_DESC_TYPE_OFFSET]); in ufshcd_read_desc_param()
3397 buff_len = desc_buf[QUERY_DESC_LENGTH_OFFSET]; in ufshcd_read_desc_param()
3405 memcpy(param_read_buf, &desc_buf[param_offset], in ufshcd_read_desc_param()
3410 kfree(desc_buf); in ufshcd_read_desc_param()
7307 u8 *desc_buf, int len) in ufshcd_find_max_sup_active_icc_level() argument
7323 &desc_buf[PWR_DESC_ACTIVE_LVLS_VCC_0]); in ufshcd_find_max_sup_active_icc_level()
7329 &desc_buf[PWR_DESC_ACTIVE_LVLS_VCCQ_0]); in ufshcd_find_max_sup_active_icc_level()
7335 &desc_buf[PWR_DESC_ACTIVE_LVLS_VCCQ2_0]); in ufshcd_find_max_sup_active_icc_level()
7344 u8 *desc_buf; in ufshcd_set_active_icc_lvl() local
7347 desc_buf = kmalloc(buff_len, GFP_KERNEL); in ufshcd_set_active_icc_lvl()
7348 if (!desc_buf) in ufshcd_set_active_icc_lvl()
7352 desc_buf, buff_len); in ufshcd_set_active_icc_lvl()
7360 icc_level = ufshcd_find_max_sup_active_icc_level(hba, desc_buf, in ufshcd_set_active_icc_lvl()
7373 kfree(desc_buf); in ufshcd_set_active_icc_lvl()
7451 static void ufshcd_wb_probe(struct ufs_hba *hba, u8 *desc_buf) in ufshcd_wb_probe() argument
7474 ext_ufs_feature = get_unaligned_be32(desc_buf + in ufshcd_wb_probe()
7485 dev_info->wb_buffer_type = desc_buf[DEVICE_DESC_PARAM_WB_TYPE]; in ufshcd_wb_probe()
7488 desc_buf[DEVICE_DESC_PARAM_WB_PRESRV_USRSPC_EN]; in ufshcd_wb_probe()
7491 if (!get_unaligned_be32(desc_buf + in ufshcd_wb_probe()
7517 static void ufshcd_temp_notif_probe(struct ufs_hba *hba, u8 *desc_buf) in ufshcd_temp_notif_probe() argument
7526 ext_ufs_feature = get_unaligned_be32(desc_buf + DEVICE_DESC_PARAM_EXT_UFS_FEATURE_SUP); in ufshcd_temp_notif_probe()
7573 u8 *desc_buf; in ufs_get_device_desc() local
7576 desc_buf = kmalloc(QUERY_DESC_MAX_SIZE, GFP_KERNEL); in ufs_get_device_desc()
7577 if (!desc_buf) { in ufs_get_device_desc()
7582 err = ufshcd_read_desc_param(hba, QUERY_DESC_IDN_DEVICE, 0, 0, desc_buf, in ufs_get_device_desc()
7594 dev_info->wmanufacturerid = desc_buf[DEVICE_DESC_PARAM_MANF_ID] << 8 | in ufs_get_device_desc()
7595 desc_buf[DEVICE_DESC_PARAM_MANF_ID + 1]; in ufs_get_device_desc()
7598 dev_info->wspecversion = desc_buf[DEVICE_DESC_PARAM_SPEC_VER] << 8 | in ufs_get_device_desc()
7599 desc_buf[DEVICE_DESC_PARAM_SPEC_VER + 1]; in ufs_get_device_desc()
7600 b_ufs_feature_sup = desc_buf[DEVICE_DESC_PARAM_UFS_FEAT]; in ufs_get_device_desc()
7602 model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME]; in ufs_get_device_desc()
7608 ufshpb_get_dev_info(hba, desc_buf); in ufs_get_device_desc()
7628 hba->luns_avail = desc_buf[DEVICE_DESC_PARAM_NUM_LU] + in ufs_get_device_desc()
7629 desc_buf[DEVICE_DESC_PARAM_NUM_WLU]; in ufs_get_device_desc()
7633 ufshcd_wb_probe(hba, desc_buf); in ufs_get_device_desc()
7635 ufshcd_temp_notif_probe(hba, desc_buf); in ufs_get_device_desc()
7644 kfree(desc_buf); in ufs_get_device_desc()
7831 u8 *desc_buf; in ufshcd_device_geo_params_init() local
7834 desc_buf = kmalloc(buff_len, GFP_KERNEL); in ufshcd_device_geo_params_init()
7835 if (!desc_buf) { in ufshcd_device_geo_params_init()
7841 desc_buf, buff_len); in ufshcd_device_geo_params_init()
7848 if (desc_buf[GEOMETRY_DESC_PARAM_MAX_NUM_LUN] == 1) in ufshcd_device_geo_params_init()
7850 else if (desc_buf[GEOMETRY_DESC_PARAM_MAX_NUM_LUN] == 0) in ufshcd_device_geo_params_init()
7855 ufshpb_get_geo_info(hba, desc_buf); in ufshcd_device_geo_params_init()
7858 kfree(desc_buf); in ufshcd_device_geo_params_init()