Lines Matching refs:dev_desc
3086 *desc_len = hba->desc_size.dev_desc; in ufshcd_map_desc_id_to_length()
6496 struct ufs_dev_desc *dev_desc) in ufs_get_device_desc() argument
6503 if (!dev_desc) in ufs_get_device_desc()
6506 buff_len = max_t(size_t, hba->desc_size.dev_desc, in ufs_get_device_desc()
6514 err = ufshcd_read_device_desc(hba, desc_buf, hba->desc_size.dev_desc); in ufs_get_device_desc()
6525 dev_desc->wmanufacturerid = desc_buf[DEVICE_DESC_PARAM_MANF_ID] << 8 | in ufs_get_device_desc()
6530 &dev_desc->model, SD_ASCII_STD); in ufs_get_device_desc()
6548 static void ufs_put_device_desc(struct ufs_dev_desc *dev_desc) in ufs_put_device_desc() argument
6550 kfree(dev_desc->model); in ufs_put_device_desc()
6551 dev_desc->model = NULL; in ufs_put_device_desc()
6555 struct ufs_dev_desc *dev_desc) in ufs_fixup_device_setup() argument
6560 if ((f->card.wmanufacturerid == dev_desc->wmanufacturerid || in ufs_fixup_device_setup()
6562 ((dev_desc->model && in ufs_fixup_device_setup()
6563 STR_PRFX_EQUAL(f->card.model, dev_desc->model)) || in ufs_fixup_device_setup()
6745 &hba->desc_size.dev_desc); in ufshcd_init_desc_sizes()
6747 hba->desc_size.dev_desc = QUERY_DESC_DEVICE_DEF_SIZE; in ufshcd_init_desc_sizes()
6781 hba->desc_size.dev_desc = QUERY_DESC_DEVICE_DEF_SIZE; in ufshcd_def_desc_sizes()