Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 134) sorted by relevance

123456

/drivers/gpu/drm/nouveau/
Dnouveau_usif.c50 usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc, bool parent_abi16) in usif_object_new() argument
93 ret = nvif_client_ioctl(client, argv, argc); in usif_object_new()
113 } *argv = data; in usif_ioctl() local
119 if (ret = -ENOMEM, !argv) in usif_ioctl()
121 if (ret = -EFAULT, copy_from_user(argv, user, size)) in usif_ioctl()
124 if (!(ret = nvif_unpack(-ENOSYS, &data, &size, argv->v0, 0, 0, true))) { in usif_ioctl()
126 owner = argv->v0.owner; in usif_ioctl()
127 if (argv->v0.object == 0ULL && in usif_ioctl()
128 argv->v0.type != NVIF_IOCTL_V0_DEL) in usif_ioctl()
129 argv->v0.owner = NVDRM_OBJECT_ANY; /* except client */ in usif_ioctl()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Duvmm.c46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument
50 } *args = argv; in nvkm_uvmm_mthd_pfnclr()
55 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_pfnclr()
74 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument
78 } *args = argv; in nvkm_uvmm_mthd_pfnmap()
84 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_pfnmap()
107 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument
111 } *args = argv; in nvkm_uvmm_mthd_unmap()
117 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_unmap()
151 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument
[all …]
Dummu.c57 nvkm_ummu_heap(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_heap() argument
62 } *args = argv; in nvkm_ummu_heap()
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
82 } *args = argv; in nvkm_ummu_type()
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
111 } *args = argv; in nvkm_ummu_kind()
119 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_ummu_kind()
133 nvkm_ummu_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_ummu_mthd() argument
[all …]
Dmemgf100.c34 gf100_mem_map(struct nvkm_mmu *mmu, struct nvkm_memory *memory, void *argv, in gf100_mem_map() argument
41 } *args = argv; in gf100_mem_map()
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
75 } *args = argv; in gf100_mem_new()
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()
Dmemnv50.c34 nv50_mem_map(struct nvkm_mmu *mmu, struct nvkm_memory *memory, void *argv, in nv50_mem_map() argument
41 } *args = argv; in nv50_mem_map()
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
72 } *args = argv; in nv50_mem_new()
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()
Dmem.c71 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
151 } *args = argv; in nvkm_mem_new_host()
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()
[all …]
Dvmmnv04.c80 nv04_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc, in nv04_vmm_valid() argument
85 } *args = argv; in nv04_vmm_valid()
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
109 } *args = argv; in nv04_vmm_new_()
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()
Dmemnv04.c31 nv04_mem_map(struct nvkm_mmu *mmu, struct nvkm_memory *memory, void *argv, in nv04_mem_map() argument
36 } *args = argv; in nv04_mem_map()
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
56 } *args = argv; in nv04_mem_new()
59 if ((ret = nvif_unvers(ret, &argv, &argc, args->vn))) in nv04_mem_new()
Dvmmgm200.c145 void *argv, u32 argc, struct lock_class_key *key, in gm200_vmm_new_() argument
152 } *args = argv; in gm200_vmm_new_()
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()
Dvmmgp100.c405 gp100_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc, in gp100_vmm_valid() argument
413 } *args = argv; in gp100_vmm_valid()
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()
486 gp100_vmm_fault_cancel(struct nvkm_vmm *vmm, void *argv, u32 argc) in gp100_vmm_fault_cancel() argument
491 } *args = argv; in gp100_vmm_fault_cancel()
495 if ((ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) in gp100_vmm_fault_cancel()
521 gp100_vmm_fault_replay(struct nvkm_vmm *vmm, void *argv, u32 argc) in gp100_vmm_fault_replay() argument
525 } *args = argv; in gp100_vmm_fault_replay()
528 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gp100_vmm_fault_replay()
[all …]
Dvmmgm20b.c58 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()
Dumem.c86 nvkm_umem_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_umem_map() argument
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
148 } *args = argv; in nvkm_umem_new()
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/nvkm/engine/disp/
Duoutp.c31 nvkm_uoutp_mthd_dp_mst_vcpi(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_vcpi() argument
34 union nvif_outp_dp_mst_vcpi_args *args = argv; in nvkm_uoutp_mthd_dp_mst_vcpi()
47 nvkm_uoutp_mthd_dp_retrain(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_retrain() argument
49 union nvif_outp_dp_retrain_args *args = argv; in nvkm_uoutp_mthd_dp_retrain()
61 nvkm_uoutp_mthd_dp_aux_pwr(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_aux_pwr() argument
63 union nvif_outp_dp_aux_pwr_args *args = argv; in nvkm_uoutp_mthd_dp_aux_pwr()
74 nvkm_uoutp_mthd_hda_eld(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_hda_eld() argument
77 union nvif_outp_hda_eld_args *args = argv; in nvkm_uoutp_mthd_hda_eld()
103 nvkm_uoutp_mthd_infoframe(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_infoframe() argument
106 union nvif_outp_infoframe_args *args = argv; in nvkm_uoutp_mthd_infoframe()
[all …]
Duhead.c31 nvkm_uhead_uevent(struct nvkm_object *object, void *argv, u32 argc, struct nvkm_uevent *uevent) in nvkm_uhead_uevent() argument
34 union nvif_head_event_args *args = argv; in nvkm_uhead_uevent()
46 nvkm_uhead_mthd_scanoutpos(struct nvkm_head *head, void *argv, u32 argc) in nvkm_uhead_mthd_scanoutpos() argument
48 union nvif_head_scanoutpos_args *args = argv; in nvkm_uhead_mthd_scanoutpos()
75 nvkm_uhead_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_uhead_mthd() argument
80 case NVIF_HEAD_V0_SCANOUTPOS: return nvkm_uhead_mthd_scanoutpos(head, argv, argc); in nvkm_uhead_mthd()
106 nvkm_uhead_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, struct nvkm_object **pobject) in nvkm_uhead_new() argument
110 union nvif_head_args *args = argv; in nvkm_uhead_new()
Dchan.c69 nvkm_disp_chan_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_disp_chan_map() argument
101 nvkm_disp_chan_child_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_disp_chan_child_new() argument
117 ret = sclass->ctor(device, oclass, argv, argc, &object->oproxy.object); in nvkm_disp_chan_child_new()
200 void *argv, u32 argc, struct nvkm_object **pobject) in nvkm_disp_chan_new_() argument
204 union nvif_disp_chan_args *args = argv; in nvkm_disp_chan_new_()
251 nvkm_disp_wndw_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_disp_wndw_new() argument
256 return nvkm_disp_chan_new_(disp, disp->wndw.nr, oclass, argv, argc, pobject); in nvkm_disp_wndw_new()
260 nvkm_disp_chan_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_disp_chan_new() argument
265 return nvkm_disp_chan_new_(disp, disp->head.nr, oclass, argv, argc, pobject); in nvkm_disp_chan_new()
269 nvkm_disp_core_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_disp_core_new() argument
[all …]
Duconn.c78 nvkm_uconn_uevent(struct nvkm_object *object, void *argv, u32 argc, struct nvkm_uevent *uevent) in nvkm_uconn_uevent() argument
83 union nvif_conn_event_args *args = argv; in nvkm_uconn_uevent()
125 nvkm_uconn_mthd_hpd_status(struct nvkm_conn *conn, void *argv, u32 argc) in nvkm_uconn_mthd_hpd_status() argument
128 union nvif_conn_hpd_status_args *args = argv; in nvkm_uconn_mthd_hpd_status()
151 nvkm_uconn_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_uconn_mthd() argument
156 case NVIF_CONN_V0_HPD_STATUS: return nvkm_uconn_mthd_hpd_status(conn, argv, argc); in nvkm_uconn_mthd()
184 nvkm_uconn_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, struct nvkm_object **pobject) in nvkm_uconn_new() argument
188 union nvif_conn_args *args = argv; in nvkm_uconn_new()
/drivers/md/
Ddm-dust.c321 static int dust_ctr(struct dm_target *ti, unsigned int argc, char **argv) in dust_ctr() argument
336 if (kstrtouint(argv[2], 10, &blksz) || !blksz) { in dust_ctr()
358 if (sscanf(argv[1], "%llu%c", &tmp, &dummy) != 1 || tmp != (sector_t)tmp) { in dust_ctr()
369 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &dd->dev)) { in dust_ctr()
414 static int dust_message(struct dm_target *ti, unsigned int argc, char **argv, in dust_message() argument
429 if (!strcasecmp(argv[0], "addbadblock") || in dust_message()
430 !strcasecmp(argv[0], "removebadblock") || in dust_message()
431 !strcasecmp(argv[0], "queryblock")) { in dust_message()
432 DMERR("%s requires an additional argument", argv[0]); in dust_message()
433 } else if (!strcasecmp(argv[0], "disable")) { in dust_message()
[all …]
Ddm-switch.c253 static int switch_ctr(struct dm_target *ti, unsigned int argc, char **argv) in switch_ctr() argument
267 as.argv = argv; in switch_ctr()
375 unsigned int argc, char **argv) in process_set_region_mappings() argument
382 const char *string = argv[i]; in process_set_region_mappings()
389 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); in process_set_region_mappings()
394 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); in process_set_region_mappings()
399 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); in process_set_region_mappings()
404 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); in process_set_region_mappings()
434 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); in process_set_region_mappings()
441 DMWARN("invalid set_region_mappings argument: '%s'", argv[i]); in process_set_region_mappings()
[all …]
Ddm-stats.c993 unsigned int argc, char **argv, in message_stats_create() argument
1018 as.argv = argv; in message_stats_create()
1117 unsigned int argc, char **argv) in message_stats_delete() argument
1125 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) in message_stats_delete()
1132 unsigned int argc, char **argv) in message_stats_clear() argument
1140 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) in message_stats_clear()
1147 unsigned int argc, char **argv, in message_stats_list() argument
1157 program = kstrdup(argv[1], GFP_KERNEL); in message_stats_list()
1170 unsigned int argc, char **argv, bool clear, in message_stats_print() argument
1180 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) in message_stats_print()
[all …]
Ddm-default-key.c78 unsigned int argc, char **argv) in default_key_ctr_optional() argument
92 as.argv = argv; in default_key_ctr_optional()
141 static int default_key_ctr(struct dm_target *ti, unsigned int argc, char **argv) in default_key_ctr() argument
166 dkc->cipher_string = kstrdup(argv[0], GFP_KERNEL); in default_key_ctr()
180 raw_key_size = strlen(argv[1]); in default_key_ctr()
188 if (hex2bin(raw_key, argv[1], raw_key_size) != 0) { in default_key_ctr()
195 if (sscanf(argv[2], "%llu%c", &dkc->iv_offset, &dummy) != 1) { in default_key_ctr()
202 err = dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), in default_key_ctr()
210 if (sscanf(argv[4], "%llu%c", &tmpll, &dummy) != 1 || in default_key_ctr()
221 err = default_key_ctr_optional(ti, argc - 5, &argv[5]); in default_key_ctr()
Ddm-delay.c140 static int delay_class_ctr(struct dm_target *ti, struct delay_class *c, char **argv) in delay_class_ctr() argument
146 if (sscanf(argv[1], "%llu%c", &tmpll, &dummy) != 1 || tmpll != (sector_t)tmpll) { in delay_class_ctr()
152 if (sscanf(argv[2], "%u%c", &c->delay, &dummy) != 1) { in delay_class_ctr()
157 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &c->dev); in delay_class_ctr()
174 static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv) in delay_ctr() argument
198 ret = delay_class_ctr(ti, &dc->read, argv); in delay_ctr()
203 ret = delay_class_ctr(ti, &dc->write, argv); in delay_ctr()
206 ret = delay_class_ctr(ti, &dc->flush, argv); in delay_ctr()
212 ret = delay_class_ctr(ti, &dc->write, argv + 3); in delay_ctr()
216 ret = delay_class_ctr(ti, &dc->flush, argv + 3); in delay_ctr()
[all …]
Ddm-unstripe.c39 static int unstripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) in unstripe_ctr() argument
57 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr()
62 if (kstrtouint(argv[1], 10, &uc->chunk_size) || !uc->chunk_size) { in unstripe_ctr()
67 if (kstrtouint(argv[2], 10, &uc->unstripe)) { in unstripe_ctr()
77 if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), &uc->dev)) { in unstripe_ctr()
82 if (sscanf(argv[4], "%llu%c", &start, &dummy) != 1 || start != (sector_t)start) { in unstripe_ctr()
/drivers/gpu/drm/nouveau/nvkm/subdev/fault/
Duser.c32 nvkm_ufault_uevent(struct nvkm_object *object, void *argv, u32 argc, struct nvkm_uevent *uevent) in nvkm_ufault_uevent() argument
35 union nvif_clb069_event_args *args = argv; in nvkm_ufault_uevent()
47 nvkm_ufault_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_ufault_map() argument
91 void *argv, u32 argc, struct nvkm_object **pobject) in nvkm_ufault_new() argument
95 } *args = argv; in nvkm_ufault_new()
100 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ufault_new()
/drivers/staging/greybus/Documentation/firmware/
Dfirmware.c160 int main(int argc, char *argv[]) in main() argument
166 (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))) { in main()
172 fwdev = argv[1]; in main()
175 fw_update_type = strtoul(argv[2], &endptr, 10); in main()
178 firmware_tag = argv[3]; in main()
185 fw_timeout = strtoul(argv[4], &endptr, 10); in main()
/drivers/gpu/drm/nouveau/nvkm/core/
Duevent.c61 nvkm_uevent_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_uevent_mthd() argument
66 case NVIF_EVENT_V0_ALLOW: return nvkm_uevent_mthd_allow(uevent, argv, argc); in nvkm_uevent_mthd()
67 case NVIF_EVENT_V0_BLOCK: return nvkm_uevent_mthd_block(uevent, argv, argc); in nvkm_uevent_mthd()
137 nvkm_uevent_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, in nvkm_uevent_new() argument
142 union nvif_event_args *args = argv; in nvkm_uevent_new()

123456