Lines Matching +full:1 +full:v0
80 struct nv_device_info_v0 v0; in nvkm_udevice_info() member
86 if (!(ret = nvif_unpack(ret, &data, &size, args->v1, 1, 1, true))) { in nvkm_udevice_info()
96 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_udevice_info()
97 nvif_ioctl(object, "device info vers %d\n", args->v0.version); in nvkm_udevice_info()
112 args->v0.platform = NV_DEVICE_INFO_V0_IGP; in nvkm_udevice_info()
117 args->v0.platform = NV_DEVICE_INFO_V0_PCI; in nvkm_udevice_info()
120 args->v0.platform = NV_DEVICE_INFO_V0_AGP; in nvkm_udevice_info()
123 args->v0.platform = NV_DEVICE_INFO_V0_PCIE; in nvkm_udevice_info()
126 args->v0.platform = NV_DEVICE_INFO_V0_SOC; in nvkm_udevice_info()
129 WARN_ON(1); in nvkm_udevice_info()
136 case NV_04: args->v0.family = NV_DEVICE_INFO_V0_TNT; break; in nvkm_udevice_info()
138 case NV_11: args->v0.family = NV_DEVICE_INFO_V0_CELSIUS; break; in nvkm_udevice_info()
139 case NV_20: args->v0.family = NV_DEVICE_INFO_V0_KELVIN; break; in nvkm_udevice_info()
140 case NV_30: args->v0.family = NV_DEVICE_INFO_V0_RANKINE; break; in nvkm_udevice_info()
141 case NV_40: args->v0.family = NV_DEVICE_INFO_V0_CURIE; break; in nvkm_udevice_info()
142 case NV_50: args->v0.family = NV_DEVICE_INFO_V0_TESLA; break; in nvkm_udevice_info()
143 case NV_C0: args->v0.family = NV_DEVICE_INFO_V0_FERMI; break; in nvkm_udevice_info()
144 case NV_E0: args->v0.family = NV_DEVICE_INFO_V0_KEPLER; break; in nvkm_udevice_info()
145 case GM100: args->v0.family = NV_DEVICE_INFO_V0_MAXWELL; break; in nvkm_udevice_info()
146 case GP100: args->v0.family = NV_DEVICE_INFO_V0_PASCAL; break; in nvkm_udevice_info()
147 case GV100: args->v0.family = NV_DEVICE_INFO_V0_VOLTA; break; in nvkm_udevice_info()
148 case TU100: args->v0.family = NV_DEVICE_INFO_V0_TURING; break; in nvkm_udevice_info()
149 case GA100: args->v0.family = NV_DEVICE_INFO_V0_AMPERE; break; in nvkm_udevice_info()
150 case AD100: args->v0.family = NV_DEVICE_INFO_V0_ADA; break; in nvkm_udevice_info()
152 args->v0.family = 0; in nvkm_udevice_info()
156 args->v0.chipset = device->chipset; in nvkm_udevice_info()
157 args->v0.revision = device->chiprev; in nvkm_udevice_info()
159 args->v0.ram_size = args->v0.ram_user = fb->ram->size; in nvkm_udevice_info()
161 args->v0.ram_size = args->v0.ram_user = 0; in nvkm_udevice_info()
162 if (imem && args->v0.ram_size > 0) in nvkm_udevice_info()
163 args->v0.ram_user = args->v0.ram_user - imem->reserved; in nvkm_udevice_info()
165 snprintf(args->v0.chip, sizeof(args->v0.chip), "%s", device->chip->name); in nvkm_udevice_info()
166 snprintf(args->v0.name, sizeof(args->v0.name), "%s", device->name); in nvkm_udevice_info()
176 struct nv_device_time_v0 v0; in nvkm_udevice_time() member
181 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_udevice_time()
182 nvif_ioctl(object, "device time vers %d\n", args->v0.version); in nvkm_udevice_time()
183 args->v0.time = nvkm_timer_read(device->timer); in nvkm_udevice_time()
275 u64 mask = (1ULL << NVKM_ENGINE_DMAOBJ) | in nvkm_udevice_child_get()
276 (1ULL << NVKM_ENGINE_FIFO) | in nvkm_udevice_child_get()
277 (1ULL << NVKM_ENGINE_DISP); in nvkm_udevice_child_get()
281 for (; i = __ffs64(mask), mask && !sclass; mask &= ~(1ULL << i)) { in nvkm_udevice_child_get()