aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firewire/fw-device-cdev.c12
-rw-r--r--drivers/firewire/fw-device-cdev.h4
-rw-r--r--drivers/firewire/fw-iso.c8
-rw-r--r--drivers/firewire/fw-ohci.c4
-rw-r--r--drivers/firewire/fw-transaction.h8
5 files changed, 16 insertions, 20 deletions
diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c
index 1101ccd9b9c1..b738c997ef39 100644
--- a/drivers/firewire/fw-device-cdev.c
+++ b/drivers/firewire/fw-device-cdev.c
@@ -503,15 +503,15 @@ static int ioctl_queue_iso(struct client *client, void __user *arg)
503 return count; 503 return count;
504} 504}
505 505
506static int ioctl_send_iso(struct client *client, void __user *arg) 506static int ioctl_start_iso(struct client *client, void __user *arg)
507{ 507{
508 struct fw_cdev_send_iso request; 508 struct fw_cdev_start_iso request;
509 509
510 if (copy_from_user(&request, arg, sizeof request)) 510 if (copy_from_user(&request, arg, sizeof request))
511 return -EFAULT; 511 return -EFAULT;
512 512
513 return fw_iso_context_send(client->iso_context, request.channel, 513 return fw_iso_context_start(client->iso_context, request.channel,
514 request.speed, request.cycle); 514 request.speed, request.cycle);
515} 515}
516 516
517static int 517static int
@@ -530,8 +530,8 @@ dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
530 return ioctl_create_iso_context(client, arg); 530 return ioctl_create_iso_context(client, arg);
531 case FW_CDEV_IOC_QUEUE_ISO: 531 case FW_CDEV_IOC_QUEUE_ISO:
532 return ioctl_queue_iso(client, arg); 532 return ioctl_queue_iso(client, arg);
533 case FW_CDEV_IOC_SEND_ISO: 533 case FW_CDEV_IOC_START_ISO:
534 return ioctl_send_iso(client, arg); 534 return ioctl_start_iso(client, arg);
535 default: 535 default:
536 return -EINVAL; 536 return -EINVAL;
537 } 537 }
diff --git a/drivers/firewire/fw-device-cdev.h b/drivers/firewire/fw-device-cdev.h
index 4e766ec6cd38..ac91ce501bfe 100644
--- a/drivers/firewire/fw-device-cdev.h
+++ b/drivers/firewire/fw-device-cdev.h
@@ -97,7 +97,7 @@ struct fw_cdev_event_iso_interrupt {
97#define FW_CDEV_IOC_SEND_RESPONSE _IO('#', 0x03) 97#define FW_CDEV_IOC_SEND_RESPONSE _IO('#', 0x03)
98#define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IO('#', 0x04) 98#define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IO('#', 0x04)
99#define FW_CDEV_IOC_QUEUE_ISO _IO('#', 0x05) 99#define FW_CDEV_IOC_QUEUE_ISO _IO('#', 0x05)
100#define FW_CDEV_IOC_SEND_ISO _IO('#', 0x06) 100#define FW_CDEV_IOC_START_ISO _IO('#', 0x06)
101 101
102struct fw_cdev_get_config_rom { 102struct fw_cdev_get_config_rom {
103 __u32 length; 103 __u32 length;
@@ -150,7 +150,7 @@ struct fw_cdev_queue_iso {
150 __u64 data; 150 __u64 data;
151}; 151};
152 152
153struct fw_cdev_send_iso { 153struct fw_cdev_start_iso {
154 __u32 channel; 154 __u32 channel;
155 __u32 speed; 155 __u32 speed;
156 __s32 cycle; 156 __s32 cycle;
diff --git a/drivers/firewire/fw-iso.c b/drivers/firewire/fw-iso.c
index 4c6dc99a1ff8..d84792fe619a 100644
--- a/drivers/firewire/fw-iso.c
+++ b/drivers/firewire/fw-iso.c
@@ -134,15 +134,15 @@ void fw_iso_context_destroy(struct fw_iso_context *ctx)
134EXPORT_SYMBOL(fw_iso_context_destroy); 134EXPORT_SYMBOL(fw_iso_context_destroy);
135 135
136int 136int
137fw_iso_context_send(struct fw_iso_context *ctx, 137fw_iso_context_start(struct fw_iso_context *ctx,
138 int channel, int speed, int cycle) 138 int channel, int speed, int cycle)
139{ 139{
140 ctx->channel = channel; 140 ctx->channel = channel;
141 ctx->speed = speed; 141 ctx->speed = speed;
142 142
143 return ctx->card->driver->send_iso(ctx, cycle); 143 return ctx->card->driver->start_iso(ctx, cycle);
144} 144}
145EXPORT_SYMBOL(fw_iso_context_send); 145EXPORT_SYMBOL(fw_iso_context_start);
146 146
147int 147int
148fw_iso_context_queue(struct fw_iso_context *ctx, 148fw_iso_context_queue(struct fw_iso_context *ctx,
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c
index 90db5a4f3aee..faa384426a12 100644
--- a/drivers/firewire/fw-ohci.c
+++ b/drivers/firewire/fw-ohci.c
@@ -1350,7 +1350,7 @@ ohci_allocate_iso_context(struct fw_card *card, int type)
1350 return &ctx->base; 1350 return &ctx->base;
1351} 1351}
1352 1352
1353static int ohci_send_iso(struct fw_iso_context *base, s32 cycle) 1353static int ohci_start_iso(struct fw_iso_context *base, s32 cycle)
1354{ 1354{
1355 struct iso_context *ctx = container_of(base, struct iso_context, base); 1355 struct iso_context *ctx = container_of(base, struct iso_context, base);
1356 struct fw_ohci *ohci = ctx->context.ohci; 1356 struct fw_ohci *ohci = ctx->context.ohci;
@@ -1594,7 +1594,7 @@ static const struct fw_card_driver ohci_driver = {
1594 .allocate_iso_context = ohci_allocate_iso_context, 1594 .allocate_iso_context = ohci_allocate_iso_context,
1595 .free_iso_context = ohci_free_iso_context, 1595 .free_iso_context = ohci_free_iso_context,
1596 .queue_iso = ohci_queue_iso, 1596 .queue_iso = ohci_queue_iso,
1597 .send_iso = ohci_send_iso, 1597 .start_iso = ohci_start_iso,
1598}; 1598};
1599 1599
1600static int software_reset(struct fw_ohci *ohci) 1600static int software_reset(struct fw_ohci *ohci)
diff --git a/drivers/firewire/fw-transaction.h b/drivers/firewire/fw-transaction.h
index 9e92edad68d7..9ccbed80cebb 100644
--- a/drivers/firewire/fw-transaction.h
+++ b/drivers/firewire/fw-transaction.h
@@ -376,10 +376,6 @@ fw_iso_context_create(struct fw_card *card, int type, size_t header_size,
376void 376void
377fw_iso_context_destroy(struct fw_iso_context *ctx); 377fw_iso_context_destroy(struct fw_iso_context *ctx);
378 378
379void
380fw_iso_context_start(struct fw_iso_context *ctx,
381 int channel, int speed, int cycle);
382
383int 379int
384fw_iso_context_queue(struct fw_iso_context *ctx, 380fw_iso_context_queue(struct fw_iso_context *ctx,
385 struct fw_iso_packet *packet, 381 struct fw_iso_packet *packet,
@@ -387,7 +383,7 @@ fw_iso_context_queue(struct fw_iso_context *ctx,
387 unsigned long payload); 383 unsigned long payload);
388 384
389int 385int
390fw_iso_context_send(struct fw_iso_context *ctx, 386fw_iso_context_start(struct fw_iso_context *ctx,
391 int channel, int speed, int cycle); 387 int channel, int speed, int cycle);
392 388
393struct fw_card_driver { 389struct fw_card_driver {
@@ -426,7 +422,7 @@ struct fw_card_driver {
426 (*allocate_iso_context)(struct fw_card *card, int type); 422 (*allocate_iso_context)(struct fw_card *card, int type);
427 void (*free_iso_context)(struct fw_iso_context *ctx); 423 void (*free_iso_context)(struct fw_iso_context *ctx);
428 424
429 int (*send_iso)(struct fw_iso_context *ctx, s32 cycle); 425 int (*start_iso)(struct fw_iso_context *ctx, s32 cycle);
430 426
431 int (*queue_iso)(struct fw_iso_context *ctx, 427 int (*queue_iso)(struct fw_iso_context *ctx,
432 struct fw_iso_packet *packet, 428 struct fw_iso_packet *packet,