Lines Matching defs:gpu_id
346 struct pvr_gpu_id *gpu_id = &pvr_dev->gpu_id;
348 return kasprintf(GFP_KERNEL, "%s_%d.%d.%d.%d_v%d.fw", base, gpu_id->b,
349 gpu_id->v, gpu_id->n, gpu_id->c, major);
411 * Sets the b, v, n, c fields of struct pvr_dev.gpu_id.
414 * @gpu_id: Output to be updated with the GPU ID.
417 pvr_gpuid_decode_reg(const struct pvr_device *pvr_dev, struct pvr_gpu_id *gpu_id)
425 gpu_id->b = PVR_CR_FIELD_GET(bvnc, CORE_ID__PBVNC__BRANCH_ID);
426 if (gpu_id->b != 0) {
427 gpu_id->v = PVR_CR_FIELD_GET(bvnc, CORE_ID__PBVNC__VERSION_ID);
428 gpu_id->n = PVR_CR_FIELD_GET(bvnc, CORE_ID__PBVNC__NUMBER_OF_SCALABLE_UNITS);
429 gpu_id->c = PVR_CR_FIELD_GET(bvnc, CORE_ID__PBVNC__CONFIG_ID);
435 gpu_id->b = PVR_CR_FIELD_GET(core_rev, CORE_REVISION_MAJOR);
436 gpu_id->v = PVR_CR_FIELD_GET(core_rev, CORE_REVISION_MINOR);
437 gpu_id->n = FIELD_GET(0xFF00, core_id_config);
438 gpu_id->c = FIELD_GET(0x00FF, core_id_config);
445 * Sets the b, v, n, c fields of struct pvr_dev.gpu_id.
449 * @gpu_id: Output to be updated with the GPU ID.
453 const char *param_bvnc, struct pvr_gpu_id *gpu_id)
502 gpu_id->b = user_bvnc_u16[0];
503 gpu_id->v = user_bvnc_u16[1];
504 gpu_id->n = user_bvnc_u16[2];
505 gpu_id->c = user_bvnc_u16[3];
516 * enum pvr_gpu_support_level - The level of support for a gpu_id in the current
530 pvr_gpu_support_level(const struct pvr_gpu_id *gpu_id)
532 switch (pvr_gpu_id_to_packed_bvnc(gpu_id)) {
547 const struct pvr_gpu_id *gpu_id)
551 switch (pvr_gpu_support_level(gpu_id)) {
591 * Sets the arch field of struct pvr_dev.gpu_id.
598 struct pvr_gpu_id *gpu_id = &pvr_dev->gpu_id;
601 pvr_gpuid_decode_reg(pvr_dev, gpu_id);
607 gpu_id);
612 return pvr_check_gpu_supported(pvr_dev, gpu_id);