Lines Matching refs:arg
444 static int ioctl_get_info(struct client *client, union ioctl_arg *arg) in ioctl_get_info() argument
446 struct fw_cdev_get_info *a = &arg->get_info; in ioctl_get_info()
635 static int ioctl_send_request(struct client *client, union ioctl_arg *arg) in ioctl_send_request() argument
637 switch (arg->send_request.tcode) { in ioctl_send_request()
654 return init_request(client, &arg->send_request, client->device->node_id, in ioctl_send_request()
774 static int ioctl_allocate(struct client *client, union ioctl_arg *arg) in ioctl_allocate() argument
776 struct fw_cdev_allocate *a = &arg->allocate; in ioctl_allocate()
815 static int ioctl_deallocate(struct client *client, union ioctl_arg *arg) in ioctl_deallocate() argument
817 return release_client_resource(client, arg->deallocate.handle, in ioctl_deallocate()
821 static int ioctl_send_response(struct client *client, union ioctl_arg *arg) in ioctl_send_response() argument
823 struct fw_cdev_send_response *a = &arg->send_response; in ioctl_send_response()
855 static int ioctl_initiate_bus_reset(struct client *client, union ioctl_arg *arg) in ioctl_initiate_bus_reset() argument
858 arg->initiate_bus_reset.type == FW_CDEV_SHORT_RESET); in ioctl_initiate_bus_reset()
872 static int ioctl_add_descriptor(struct client *client, union ioctl_arg *arg) in ioctl_add_descriptor() argument
874 struct fw_cdev_add_descriptor *a = &arg->add_descriptor; in ioctl_add_descriptor()
918 static int ioctl_remove_descriptor(struct client *client, union ioctl_arg *arg) in ioctl_remove_descriptor() argument
920 return release_client_resource(client, arg->remove_descriptor.handle, in ioctl_remove_descriptor()
969 static int ioctl_create_iso_context(struct client *client, union ioctl_arg *arg) in ioctl_create_iso_context() argument
971 struct fw_cdev_create_iso_context *a = &arg->create_iso_context; in ioctl_create_iso_context()
1041 static int ioctl_set_iso_channels(struct client *client, union ioctl_arg *arg) in ioctl_set_iso_channels() argument
1043 struct fw_cdev_set_iso_channels *a = &arg->set_iso_channels; in ioctl_set_iso_channels()
1060 static int ioctl_queue_iso(struct client *client, union ioctl_arg *arg) in ioctl_queue_iso() argument
1062 struct fw_cdev_queue_iso *a = &arg->queue_iso; in ioctl_queue_iso()
1162 static int ioctl_start_iso(struct client *client, union ioctl_arg *arg) in ioctl_start_iso() argument
1164 struct fw_cdev_start_iso *a = &arg->start_iso; in ioctl_start_iso()
1184 static int ioctl_stop_iso(struct client *client, union ioctl_arg *arg) in ioctl_stop_iso() argument
1186 struct fw_cdev_stop_iso *a = &arg->stop_iso; in ioctl_stop_iso()
1194 static int ioctl_flush_iso(struct client *client, union ioctl_arg *arg) in ioctl_flush_iso() argument
1196 struct fw_cdev_flush_iso *a = &arg->flush_iso; in ioctl_flush_iso()
1204 static int ioctl_get_cycle_timer2(struct client *client, union ioctl_arg *arg) in ioctl_get_cycle_timer2() argument
1206 struct fw_cdev_get_cycle_timer2 *a = &arg->get_cycle_timer2; in ioctl_get_cycle_timer2()
1233 static int ioctl_get_cycle_timer(struct client *client, union ioctl_arg *arg) in ioctl_get_cycle_timer() argument
1235 struct fw_cdev_get_cycle_timer *a = &arg->get_cycle_timer; in ioctl_get_cycle_timer()
1414 union ioctl_arg *arg) in ioctl_allocate_iso_resource() argument
1417 &arg->allocate_iso_resource, ISO_RES_ALLOC); in ioctl_allocate_iso_resource()
1421 union ioctl_arg *arg) in ioctl_deallocate_iso_resource() argument
1424 arg->deallocate.handle, release_iso_resource, NULL); in ioctl_deallocate_iso_resource()
1428 union ioctl_arg *arg) in ioctl_allocate_iso_resource_once() argument
1431 &arg->allocate_iso_resource, ISO_RES_ALLOC_ONCE); in ioctl_allocate_iso_resource_once()
1435 union ioctl_arg *arg) in ioctl_deallocate_iso_resource_once() argument
1438 &arg->allocate_iso_resource, ISO_RES_DEALLOC_ONCE); in ioctl_deallocate_iso_resource_once()
1446 static int ioctl_get_speed(struct client *client, union ioctl_arg *arg) in ioctl_get_speed() argument
1452 union ioctl_arg *arg) in ioctl_send_broadcast_request() argument
1454 struct fw_cdev_send_request *a = &arg->send_request; in ioctl_send_broadcast_request()
1471 static int ioctl_send_stream_packet(struct client *client, union ioctl_arg *arg) in ioctl_send_stream_packet() argument
1473 struct fw_cdev_send_stream_packet *a = &arg->send_stream_packet; in ioctl_send_stream_packet()
1520 static int ioctl_send_phy_packet(struct client *client, union ioctl_arg *arg) in ioctl_send_phy_packet() argument
1522 struct fw_cdev_send_phy_packet *a = &arg->send_phy_packet; in ioctl_send_phy_packet()
1553 static int ioctl_receive_phy_packets(struct client *client, union ioctl_arg *arg) in ioctl_receive_phy_packets() argument
1555 struct fw_cdev_receive_phy_packets *a = &arg->receive_phy_packets; in ioctl_receive_phy_packets()
1627 unsigned int cmd, void __user *arg) in dispatch_ioctl() argument
1643 if (copy_from_user(&buffer, arg, _IOC_SIZE(cmd))) in dispatch_ioctl()
1651 if (copy_to_user(arg, &buffer, _IOC_SIZE(cmd))) in dispatch_ioctl()
1658 unsigned int cmd, unsigned long arg) in fw_device_op_ioctl() argument
1660 return dispatch_ioctl(file->private_data, cmd, (void __user *)arg); in fw_device_op_ioctl()
1665 unsigned int cmd, unsigned long arg) in fw_device_op_compat_ioctl() argument
1667 return dispatch_ioctl(file->private_data, cmd, compat_ptr(arg)); in fw_device_op_compat_ioctl()