/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | uvmm.c | 46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument 55 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_pfnclr() 71 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument 81 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_pfnmap() 86 if (argc != (size >> page) * sizeof(args->v0.phys[0])) in nvkm_uvmm_mthd_pfnmap() 101 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument 111 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_unmap() 142 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument 154 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_map() 203 ret = nvkm_memory_map(memory, offset, vmm, vma, argv, argc); in nvkm_uvmm_mthd_map() [all …]
|
D | ummu.c | 57 nvkm_ummu_heap(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_heap() argument 66 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ummu_heap() 77 nvkm_ummu_type(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_type() argument 86 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ummu_type() 106 nvkm_ummu_kind(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_kind() argument 119 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_ummu_kind() 120 if (argc != args->v0.count * sizeof(*args->v0.data)) in nvkm_ummu_kind() 133 nvkm_ummu_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_ummu_mthd() argument 137 case NVIF_MMU_V0_HEAP: return nvkm_ummu_heap(ummu, argv, argc); in nvkm_ummu_mthd() 138 case NVIF_MMU_V0_TYPE: return nvkm_ummu_type(ummu, argv, argc); in nvkm_ummu_mthd() [all …]
|
D | mem.c | 71 struct nvkm_vma *vma, void *argv, u32 argc) in nvkm_mem_map_dma() argument 79 return nvkm_vmm_map(vmm, vma, argv, argc, &map); in nvkm_mem_map_dma() 111 struct nvkm_vma *vma, void *argv, u32 argc) in nvkm_mem_map_sgl() argument 119 return nvkm_vmm_map(vmm, vma, argv, argc, &map); in nvkm_mem_map_sgl() 145 void *argv, u32 argc, struct nvkm_memory **pmemory) in nvkm_mem_new_host() argument 172 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_mem_new_host() 186 if ( (ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nvkm_mem_new_host() 225 void *argv, u32 argc, struct nvkm_memory **pmemory) in nvkm_mem_new_type() argument 232 argv, argc, &memory); in nvkm_mem_new_type() 235 argv, argc, &memory); in nvkm_mem_new_type()
|
D | memgf100.c | 35 u32 argc, u64 *paddr, u64 *psize, struct nvkm_vma **pvma) in gf100_mem_map() argument 46 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gf100_mem_map() 50 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gf100_mem_map() 70 void *argv, u32 argc, struct nvkm_memory **pmemory) in gf100_mem_new() argument 79 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gf100_mem_new() 82 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gf100_mem_new()
|
D | memnv50.c | 35 u32 argc, u64 *paddr, u64 *psize, struct nvkm_vma **pvma) in nv50_mem_map() argument 47 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_mem_map() 52 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nv50_mem_map() 67 void *argv, u32 argc, struct nvkm_memory **pmemory) in nv50_mem_new() argument 76 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_mem_new() 80 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in nv50_mem_new()
|
D | vmmgm200.c | 145 void *argv, u32 argc, struct lock_class_key *key, in gm200_vmm_new_() argument 155 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gm200_vmm_new_() 163 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gm200_vmm_new_() 173 void *argv, u32 argc, struct lock_class_key *key, in gm200_vmm_new() argument 177 size, argv, argc, key, name, pvmm); in gm200_vmm_new() 182 void *argv, u32 argc, struct lock_class_key *key, in gm200_vmm_new_fixed() argument 186 size, argv, argc, key, name, pvmm); in gm200_vmm_new_fixed()
|
D | vmmnv04.c | 80 nv04_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc, in nv04_vmm_valid() argument 87 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_vmm_valid() 104 void *argv, u32 argc, struct lock_class_key *key, in nv04_vmm_new_() argument 117 return nvif_unvers(-ENOSYS, &argv, &argc, args->vn); in nv04_vmm_new_() 122 void *argv, u32 argc, struct lock_class_key *key, const char *name, in nv04_vmm_new() argument 130 argv, argc, key, name, &vmm); in nv04_vmm_new()
|
D | memnv04.c | 32 u32 argc, u64 *paddr, u64 *psize, struct nvkm_vma **pvma) in nv04_mem_map() argument 41 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_map() 52 void *argv, u32 argc, struct nvkm_memory **pmemory) in nv04_mem_new() argument 59 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_new()
|
D | vmmgm20b.c | 58 void *argv, u32 argc, struct lock_class_key *key, in gm20b_vmm_new() argument 62 size, argv, argc, key, name, pvmm); in gm20b_vmm_new() 67 void *argv, u32 argc, struct lock_class_key *key, in gm20b_vmm_new_fixed() argument 71 size, argv, argc, key, name, pvmm); in gm20b_vmm_new_fixed()
|
D | vmmgp100.c | 405 gp100_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc, in gp100_vmm_valid() argument 423 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gp100_vmm_valid() 429 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gp100_vmm_valid() 484 gp100_vmm_fault_cancel(struct nvkm_vmm *vmm, void *argv, u32 argc) in gp100_vmm_fault_cancel() argument 493 if ((ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) in gp100_vmm_fault_cancel() 519 gp100_vmm_fault_replay(struct nvkm_vmm *vmm, void *argv, u32 argc) in gp100_vmm_fault_replay() argument 526 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gp100_vmm_fault_replay() 535 struct nvkm_client *client, u32 mthd, void *argv, u32 argc) in gp100_vmm_mthd() argument 539 return gp100_vmm_fault_replay(vmm, argv, argc); in gp100_vmm_mthd() 541 return gp100_vmm_fault_cancel(vmm, argv, argc); in gp100_vmm_mthd() [all …]
|
D | umem.c | 86 nvkm_umem_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_umem_map() argument 97 if ((umem->type & NVKM_MEM_HOST) && !argc) { in nvkm_umem_map() 109 int ret = mmu->func->mem.umap(mmu, umem->memory, argv, argc, in nvkm_umem_map() 142 nvkm_umem_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_umem_new() argument 154 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_umem_new() 177 ret = nvkm_mem_new_type(mmu, type, page, size, argv, argc, in nvkm_umem_new()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_usif.c | 125 usif_notify_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_new() argument 156 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_new() 170 usif_notify_del(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_del() argument 186 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_del() 193 usif_notify_get(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_get() argument 220 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_get() 230 usif_notify_put(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) in usif_notify_put() argument 246 ret = nvif_client_ioctl(client, argv, argc); in usif_notify_put() 267 usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc, bool parent_abi16) in usif_object_new() argument 310 ret = nvif_client_ioctl(client, argv, argc); in usif_object_new() [all …]
|
/drivers/gpu/drm/nouveau/nvif/ |
D | mem.c | 49 int type, u8 page, u64 size, void *argv, u32 argc, in nvif_mem_ctor_type() argument 60 if (sizeof(*args) + argc > sizeof(stack)) { in nvif_mem_ctor_type() 61 if (!(args = kmalloc(sizeof(*args) + argc, GFP_KERNEL))) in nvif_mem_ctor_type() 70 memcpy(args->data, argv, argc); in nvif_mem_ctor_type() 73 args, sizeof(*args) + argc, &mem->object); in nvif_mem_ctor_type() 89 u8 page, u64 size, void *argv, u32 argc, struct nvif_mem *mem) in nvif_mem_ctor() argument 98 size, argv, argc, mem); in nvif_mem_ctor()
|
D | vmm.c | 36 nvif_vmm_map(struct nvif_vmm *vmm, u64 addr, u64 size, void *argv, u32 argc, in nvif_vmm_map() argument 43 if (sizeof(*args) + argc > sizeof(stack)) { in nvif_vmm_map() 44 if (!(args = kmalloc(sizeof(*args) + argc, GFP_KERNEL))) in nvif_vmm_map() 55 memcpy(args->data, argv, argc); in nvif_vmm_map() 58 args, sizeof(*args) + argc); in nvif_vmm_map() 116 u64 addr, u64 size, void *argv, u32 argc, struct nvif_vmm *vmm) in nvif_vmm_ctor() argument 119 u32 argn = sizeof(*args) + argc; in nvif_vmm_ctor() 131 memcpy(args->data, argv, argc); in nvif_vmm_ctor()
|
/drivers/md/ |
D | dm-flakey.c | 51 unsigned argc; in parse_features() local 62 if (!as->argc) in parse_features() 65 r = dm_read_arg_group(_args, as, &argc, &ti->error); in parse_features() 69 while (argc) { in parse_features() 71 argc--; in parse_features() 113 if (!argc) { in parse_features() 121 argc--; in parse_features() 135 argc--; in parse_features() 143 argc--; in parse_features() 151 argc--; in parse_features() [all …]
|
D | dm-delay.c | 39 int argc; member 173 static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv) in delay_ctr() argument 178 if (argc != 3 && argc != 6 && argc != 9) { in delay_ctr() 195 dc->argc = argc; in delay_ctr() 201 if (argc == 3) { in delay_ctr() 214 if (argc == 6) { in delay_ctr() 327 if (dc->argc >= 6) { in delay_status() 331 if (dc->argc >= 9) { in delay_status()
|
D | dm-stats.c | 982 unsigned argc, char **argv, in message_stats_create() argument 1005 if (argc < 3) in message_stats_create() 1008 as.argc = argc; in message_stats_create() 1071 if (as.argc) in message_stats_create() 1107 unsigned argc, char **argv) in message_stats_delete() argument 1112 if (argc != 2) in message_stats_delete() 1122 unsigned argc, char **argv) in message_stats_clear() argument 1127 if (argc != 2) in message_stats_clear() 1137 unsigned argc, char **argv, in message_stats_list() argument 1143 if (argc < 1 || argc > 2) in message_stats_list() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | cursnv50.c | 35 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_curs_new_() argument 44 nvif_ioctl(parent, "create disp cursor size %d\n", argc); in nv50_disp_curs_new_() 45 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_disp_curs_new_() 59 nv50_disp_curs_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_curs_new() argument 63 oclass, argv, argc, pobject); in nv50_disp_curs_new()
|
D | oimmnv50.c | 35 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_oimm_new_() argument 44 nvif_ioctl(parent, "create disp overlay size %d\n", argc); in nv50_disp_oimm_new_() 45 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_disp_oimm_new_() 59 nv50_disp_oimm_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_oimm_new() argument 63 oclass, argv, argc, pobject); in nv50_disp_oimm_new()
|
D | ovlynv50.c | 36 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_ovly_new_() argument 46 nvif_ioctl(parent, "create disp overlay channel dma size %d\n", argc); in nv50_disp_ovly_new_() 47 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_disp_ovly_new_() 102 nv50_disp_ovly_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_ovly_new() argument 106 disp, 3, oclass, argv, argc, pobject); in nv50_disp_ovly_new()
|
D | basenv50.c | 36 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_base_new_() argument 46 nvif_ioctl(parent, "create disp base channel dma size %d\n", argc); in nv50_disp_base_new_() 47 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_disp_base_new_() 114 nv50_disp_base_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_base_new() argument 118 disp, 1, oclass, argv, argc, pobject); in nv50_disp_base_new()
|
D | wimmgv100.c | 50 const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wimm_new_() argument 60 nvif_ioctl(parent, "create window imm channel dma size %d\n", argc); in gv100_disp_wimm_new_() 61 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gv100_disp_wimm_new_() 77 gv100_disp_wimm_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wimm_new() argument 81 oclass, argv, argc, pobject); in gv100_disp_wimm_new()
|
D | wndwgv100.c | 152 const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wndw_new_() argument 162 nvif_ioctl(parent, "create window channel dma size %d\n", argc); in gv100_disp_wndw_new_() 163 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gv100_disp_wndw_new_() 179 gv100_disp_wndw_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in gv100_disp_wndw_new() argument 183 disp, 1, oclass, argv, argc, pobject); in gv100_disp_wndw_new()
|
D | corenv50.c | 36 const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_core_new_() argument 46 nvif_ioctl(parent, "create disp core channel dma size %d\n", argc); in nv50_disp_core_new_() 47 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nv50_disp_core_new_() 229 nv50_disp_core_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nv50_disp_core_new() argument 233 disp, 0, oclass, argv, argc, pobject); in nv50_disp_core_new()
|
/drivers/staging/greybus/Documentation/firmware/ |
D | firmware.c | 160 int main(int argc, char *argv[]) in main() argument 165 if (argc > 1 && in main() 171 if (argc > 1) in main() 174 if (argc > 2) in main() 177 if (argc > 3) in main() 184 if (argc > 4) in main()
|