firewire: Rename 'send_iso' to 'start_iso'.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
295e3feb92
commit
69cdb7268c
@ -503,15 +503,15 @@ static int ioctl_queue_iso(struct client *client, void __user *arg)
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ioctl_send_iso(struct client *client, void __user *arg)
|
static int ioctl_start_iso(struct client *client, void __user *arg)
|
||||||
{
|
{
|
||||||
struct fw_cdev_send_iso request;
|
struct fw_cdev_start_iso request;
|
||||||
|
|
||||||
if (copy_from_user(&request, arg, sizeof request))
|
if (copy_from_user(&request, arg, sizeof request))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
return fw_iso_context_send(client->iso_context, request.channel,
|
return fw_iso_context_start(client->iso_context, request.channel,
|
||||||
request.speed, request.cycle);
|
request.speed, request.cycle);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -530,8 +530,8 @@ dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
|
|||||||
return ioctl_create_iso_context(client, arg);
|
return ioctl_create_iso_context(client, arg);
|
||||||
case FW_CDEV_IOC_QUEUE_ISO:
|
case FW_CDEV_IOC_QUEUE_ISO:
|
||||||
return ioctl_queue_iso(client, arg);
|
return ioctl_queue_iso(client, arg);
|
||||||
case FW_CDEV_IOC_SEND_ISO:
|
case FW_CDEV_IOC_START_ISO:
|
||||||
return ioctl_send_iso(client, arg);
|
return ioctl_start_iso(client, arg);
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ struct fw_cdev_event_iso_interrupt {
|
|||||||
#define FW_CDEV_IOC_SEND_RESPONSE _IO('#', 0x03)
|
#define FW_CDEV_IOC_SEND_RESPONSE _IO('#', 0x03)
|
||||||
#define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IO('#', 0x04)
|
#define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IO('#', 0x04)
|
||||||
#define FW_CDEV_IOC_QUEUE_ISO _IO('#', 0x05)
|
#define FW_CDEV_IOC_QUEUE_ISO _IO('#', 0x05)
|
||||||
#define FW_CDEV_IOC_SEND_ISO _IO('#', 0x06)
|
#define FW_CDEV_IOC_START_ISO _IO('#', 0x06)
|
||||||
|
|
||||||
struct fw_cdev_get_config_rom {
|
struct fw_cdev_get_config_rom {
|
||||||
__u32 length;
|
__u32 length;
|
||||||
@ -150,7 +150,7 @@ struct fw_cdev_queue_iso {
|
|||||||
__u64 data;
|
__u64 data;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fw_cdev_send_iso {
|
struct fw_cdev_start_iso {
|
||||||
__u32 channel;
|
__u32 channel;
|
||||||
__u32 speed;
|
__u32 speed;
|
||||||
__s32 cycle;
|
__s32 cycle;
|
||||||
|
@ -134,15 +134,15 @@ void fw_iso_context_destroy(struct fw_iso_context *ctx)
|
|||||||
EXPORT_SYMBOL(fw_iso_context_destroy);
|
EXPORT_SYMBOL(fw_iso_context_destroy);
|
||||||
|
|
||||||
int
|
int
|
||||||
fw_iso_context_send(struct fw_iso_context *ctx,
|
fw_iso_context_start(struct fw_iso_context *ctx,
|
||||||
int channel, int speed, int cycle)
|
int channel, int speed, int cycle)
|
||||||
{
|
{
|
||||||
ctx->channel = channel;
|
ctx->channel = channel;
|
||||||
ctx->speed = speed;
|
ctx->speed = speed;
|
||||||
|
|
||||||
return ctx->card->driver->send_iso(ctx, cycle);
|
return ctx->card->driver->start_iso(ctx, cycle);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(fw_iso_context_send);
|
EXPORT_SYMBOL(fw_iso_context_start);
|
||||||
|
|
||||||
int
|
int
|
||||||
fw_iso_context_queue(struct fw_iso_context *ctx,
|
fw_iso_context_queue(struct fw_iso_context *ctx,
|
||||||
|
@ -1350,7 +1350,7 @@ ohci_allocate_iso_context(struct fw_card *card, int type)
|
|||||||
return &ctx->base;
|
return &ctx->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ohci_send_iso(struct fw_iso_context *base, s32 cycle)
|
static int ohci_start_iso(struct fw_iso_context *base, s32 cycle)
|
||||||
{
|
{
|
||||||
struct iso_context *ctx = container_of(base, struct iso_context, base);
|
struct iso_context *ctx = container_of(base, struct iso_context, base);
|
||||||
struct fw_ohci *ohci = ctx->context.ohci;
|
struct fw_ohci *ohci = ctx->context.ohci;
|
||||||
@ -1594,7 +1594,7 @@ static const struct fw_card_driver ohci_driver = {
|
|||||||
.allocate_iso_context = ohci_allocate_iso_context,
|
.allocate_iso_context = ohci_allocate_iso_context,
|
||||||
.free_iso_context = ohci_free_iso_context,
|
.free_iso_context = ohci_free_iso_context,
|
||||||
.queue_iso = ohci_queue_iso,
|
.queue_iso = ohci_queue_iso,
|
||||||
.send_iso = ohci_send_iso,
|
.start_iso = ohci_start_iso,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int software_reset(struct fw_ohci *ohci)
|
static int software_reset(struct fw_ohci *ohci)
|
||||||
|
@ -376,10 +376,6 @@ fw_iso_context_create(struct fw_card *card, int type, size_t header_size,
|
|||||||
void
|
void
|
||||||
fw_iso_context_destroy(struct fw_iso_context *ctx);
|
fw_iso_context_destroy(struct fw_iso_context *ctx);
|
||||||
|
|
||||||
void
|
|
||||||
fw_iso_context_start(struct fw_iso_context *ctx,
|
|
||||||
int channel, int speed, int cycle);
|
|
||||||
|
|
||||||
int
|
int
|
||||||
fw_iso_context_queue(struct fw_iso_context *ctx,
|
fw_iso_context_queue(struct fw_iso_context *ctx,
|
||||||
struct fw_iso_packet *packet,
|
struct fw_iso_packet *packet,
|
||||||
@ -387,7 +383,7 @@ fw_iso_context_queue(struct fw_iso_context *ctx,
|
|||||||
unsigned long payload);
|
unsigned long payload);
|
||||||
|
|
||||||
int
|
int
|
||||||
fw_iso_context_send(struct fw_iso_context *ctx,
|
fw_iso_context_start(struct fw_iso_context *ctx,
|
||||||
int channel, int speed, int cycle);
|
int channel, int speed, int cycle);
|
||||||
|
|
||||||
struct fw_card_driver {
|
struct fw_card_driver {
|
||||||
@ -426,7 +422,7 @@ struct fw_card_driver {
|
|||||||
(*allocate_iso_context)(struct fw_card *card, int type);
|
(*allocate_iso_context)(struct fw_card *card, int type);
|
||||||
void (*free_iso_context)(struct fw_iso_context *ctx);
|
void (*free_iso_context)(struct fw_iso_context *ctx);
|
||||||
|
|
||||||
int (*send_iso)(struct fw_iso_context *ctx, s32 cycle);
|
int (*start_iso)(struct fw_iso_context *ctx, s32 cycle);
|
||||||
|
|
||||||
int (*queue_iso)(struct fw_iso_context *ctx,
|
int (*queue_iso)(struct fw_iso_context *ctx,
|
||||||
struct fw_iso_packet *packet,
|
struct fw_iso_packet *packet,
|
||||||
|
Loading…
Reference in New Issue
Block a user