Lines Matching refs:args
62 struct nv_device_info_v1_data *args) in nvkm_udevice_info_v1() argument
64 if (args->mthd & NV_DEVICE_INFO_UNIT) { in nvkm_udevice_info_v1()
65 if (nvkm_udevice_info_subdev(device, args->mthd, &args->data)) in nvkm_udevice_info_v1()
66 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1()
69 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1()
82 } *args = data; in nvkm_udevice_info() local
86 if (!(ret = nvif_unpack(ret, &data, &size, args->v1, 1, 1, true))) { in nvkm_udevice_info()
88 args->v1.version, args->v1.count); in nvkm_udevice_info()
89 if (args->v1.count * sizeof(args->v1.data[0]) == size) { in nvkm_udevice_info()
90 for (i = 0; i < args->v1.count; i++) in nvkm_udevice_info()
91 nvkm_udevice_info_v1(device, &args->v1.data[i]); 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()
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()
151 args->v0.family = 0; in nvkm_udevice_info()
155 args->v0.chipset = device->chipset; in nvkm_udevice_info()
156 args->v0.revision = device->chiprev; in nvkm_udevice_info()
158 args->v0.ram_size = args->v0.ram_user = fb->ram->size; in nvkm_udevice_info()
160 args->v0.ram_size = args->v0.ram_user = 0; in nvkm_udevice_info()
161 if (imem && args->v0.ram_size > 0) in nvkm_udevice_info()
162 args->v0.ram_user = args->v0.ram_user - imem->reserved; in nvkm_udevice_info()
164 strncpy(args->v0.chip, device->chip->name, sizeof(args->v0.chip)); in nvkm_udevice_info()
165 strncpy(args->v0.name, device->name, sizeof(args->v0.name)); in nvkm_udevice_info()
176 } *args = data; in nvkm_udevice_time() local
180 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_udevice_time()
181 nvif_ioctl(object, "device time vers %d\n", args->v0.version); in nvkm_udevice_time()
182 args->v0.time = nvkm_timer_read(device->timer); in nvkm_udevice_time()
385 } *args = data; in nvkm_udevice_new() local
393 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_udevice_new()
395 args->v0.version, args->v0.device); in nvkm_udevice_new()
400 if (args->v0.priv) in nvkm_udevice_new()
411 if (args->v0.device != ~0) in nvkm_udevice_new()
412 udev->device = nvkm_device_find(args->v0.device); in nvkm_udevice_new()