Lines Matching refs:args

140 				    struct vchiq_create_service *args)
148 if (args->is_open && !instance->connected)
155 if (args->is_open) {
163 .fourcc = args->params.fourcc,
166 .version = args->params.version,
167 .version_min = args->params.version_min,
178 user_service->userdata = args->params.userdata;
180 user_service->is_vchi = (args->is_vchi != 0);
190 if (args->is_open) {
198 args->handle = service->handle;
204 struct vchiq_dequeue_message *args)
213 service = find_service_for_instance(instance, args->handle);
225 if (!args->blocking) {
263 } else if (header->size <= args->bufsize) {
265 if (!args->buf || (copy_to_user(args->buf, header->data, header->size) == 0)) {
274 header, args->bufsize, header->size);
285 struct vchiq_queue_bulk_transfer *args,
295 service = find_service_for_instance(instance, args->handle);
299 if (args->mode == VCHIQ_BULK_MODE_BLOCKING) {
307 } else if (args->mode == VCHIQ_BULK_MODE_WAITING) {
328 userdata = args->userdata;
331 status = vchiq_bulk_transfer(instance, args->handle, NULL, args->data, args->size,
332 userdata, args->mode, dir);
431 struct vchiq_await_completion *args,
463 msgbufcount = args->msgbufcount;
466 for (ret = 0; ret < args->count; ret++) {
500 if (args->msgbufsize < msglen) {
503 header, args->msgbufsize, msglen);
514 if (vchiq_get_user_ptr(&msgbuf, args->msgbufs,
545 if (vchiq_put_completion(args->buf, &user_completion, ret)) {
560 if (msgbufcount != args->msgbufcount) {
635 struct vchiq_create_service args;
638 if (copy_from_user(&args, argp, sizeof(args))) {
643 ret = vchiq_ioc_create_service(instance, &args);
647 if (put_user(args.handle, &argp->handle)) {
648 vchiq_remove_service(instance, args.handle);
713 struct vchiq_queue_message args;
715 if (copy_from_user(&args, (const void __user *)arg,
716 sizeof(args))) {
721 service = find_service_for_instance(instance, args.handle);
723 if (service && (args.count <= MAX_ELEMENTS)) {
727 if (copy_from_user(elements, args.elements,
728 args.count * sizeof(struct vchiq_element)) == 0)
729 ret = vchiq_ioc_queue_message(instance, args.handle, elements,
730 args.count);
740 struct vchiq_queue_bulk_transfer args;
748 if (copy_from_user(&args, argp, sizeof(args))) {
753 ret = vchiq_irq_queue_bulk_tx_rx(instance, &args,
758 struct vchiq_await_completion args;
762 if (copy_from_user(&args, argp, sizeof(args))) {
767 ret = vchiq_ioc_await_completion(instance, &args,
772 struct vchiq_dequeue_message args;
774 if (copy_from_user(&args, (const void __user *)arg,
775 sizeof(args))) {
780 ret = vchiq_ioc_dequeue_message(instance, &args);
790 struct vchiq_get_config args;
793 if (copy_from_user(&args, (const void __user *)arg,
794 sizeof(args))) {
798 if (args.config_size > sizeof(config)) {
804 if (copy_to_user(args.pconfig, &config, args.config_size)) {
811 struct vchiq_set_service_option args;
813 if (copy_from_user(&args, (const void __user *)arg,
814 sizeof(args))) {
819 service = find_service_for_instance(instance, args.handle);
825 ret = vchiq_set_service_option(instance, args.handle, args.option,
826 args.value);
905 struct vchiq_create_service args;
913 args = (struct vchiq_create_service) {
926 ret = vchiq_ioc_create_service(instance, &args);
930 if (put_user(args.handle, &ptrargs32->handle)) {
931 vchiq_remove_service(instance, args.handle);
957 struct vchiq_queue_message args;
966 args = (struct vchiq_queue_message) {
975 service = find_service_for_instance(instance, args.handle);
984 if (copy_from_user(&element32, args.elements,
995 ret = vchiq_ioc_queue_message(instance, args.handle, elements,
996 args.count);
1024 struct vchiq_queue_bulk_transfer args;
1031 args = (struct vchiq_queue_bulk_transfer) {
1039 return vchiq_irq_queue_bulk_tx_rx(file->private_data, &args,
1059 struct vchiq_await_completion args;
1065 args = (struct vchiq_await_completion) {
1073 return vchiq_ioc_await_completion(file->private_data, &args,
1093 struct vchiq_dequeue_message args;
1098 args = (struct vchiq_dequeue_message) {
1105 return vchiq_ioc_dequeue_message(file->private_data, &args);