firewire: Coding style cleanup: no spaces after function names.
Signed-off-by: Kristian Hoegsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>hifive-unleashed-5.1
parent
6a5033be96
commit
a98e271987
|
@ -60,7 +60,7 @@ static int descriptor_count;
|
||||||
#define bib_imc ((1) << 31)
|
#define bib_imc ((1) << 31)
|
||||||
|
|
||||||
static u32 *
|
static u32 *
|
||||||
generate_config_rom (struct fw_card *card, size_t *config_rom_length)
|
generate_config_rom(struct fw_card *card, size_t *config_rom_length)
|
||||||
{
|
{
|
||||||
struct fw_descriptor *desc;
|
struct fw_descriptor *desc;
|
||||||
static u32 config_rom[256];
|
static u32 config_rom[256];
|
||||||
|
@ -125,7 +125,7 @@ generate_config_rom (struct fw_card *card, size_t *config_rom_length)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
update_config_roms (void)
|
update_config_roms(void)
|
||||||
{
|
{
|
||||||
struct fw_card *card;
|
struct fw_card *card;
|
||||||
u32 *config_rom;
|
u32 *config_rom;
|
||||||
|
@ -138,7 +138,7 @@ update_config_roms (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
fw_core_add_descriptor (struct fw_descriptor *desc)
|
fw_core_add_descriptor(struct fw_descriptor *desc)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ fw_core_add_descriptor (struct fw_descriptor *desc)
|
||||||
|
|
||||||
mutex_lock(&card_mutex);
|
mutex_lock(&card_mutex);
|
||||||
|
|
||||||
list_add_tail (&desc->link, &descriptor_list);
|
list_add_tail(&desc->link, &descriptor_list);
|
||||||
descriptor_count++;
|
descriptor_count++;
|
||||||
if (desc->immediate > 0)
|
if (desc->immediate > 0)
|
||||||
descriptor_count++;
|
descriptor_count++;
|
||||||
|
@ -169,7 +169,7 @@ fw_core_add_descriptor (struct fw_descriptor *desc)
|
||||||
EXPORT_SYMBOL(fw_core_add_descriptor);
|
EXPORT_SYMBOL(fw_core_add_descriptor);
|
||||||
|
|
||||||
void
|
void
|
||||||
fw_core_remove_descriptor (struct fw_descriptor *desc)
|
fw_core_remove_descriptor(struct fw_descriptor *desc)
|
||||||
{
|
{
|
||||||
mutex_lock(&card_mutex);
|
mutex_lock(&card_mutex);
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@ fw_card_add(struct fw_card *card,
|
||||||
fw_card_get(card);
|
fw_card_get(card);
|
||||||
|
|
||||||
mutex_lock(&card_mutex);
|
mutex_lock(&card_mutex);
|
||||||
config_rom = generate_config_rom (card, &length);
|
config_rom = generate_config_rom(card, &length);
|
||||||
list_add_tail(&card->link, &card_list);
|
list_add_tail(&card->link, &card_list);
|
||||||
mutex_unlock(&card_mutex);
|
mutex_unlock(&card_mutex);
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
#include "fw-device.h"
|
#include "fw-device.h"
|
||||||
|
|
||||||
/* I don't know why the SCSI stack doesn't define something like this... */
|
/* I don't know why the SCSI stack doesn't define something like this... */
|
||||||
typedef void (*scsi_done_fn_t) (struct scsi_cmnd *);
|
typedef void (*scsi_done_fn_t)(struct scsi_cmnd *);
|
||||||
|
|
||||||
static const char sbp2_driver_name[] = "sbp2";
|
static const char sbp2_driver_name[] = "sbp2";
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ struct sbp2_orb {
|
||||||
dma_addr_t request_bus;
|
dma_addr_t request_bus;
|
||||||
int rcode;
|
int rcode;
|
||||||
struct sbp2_pointer pointer;
|
struct sbp2_pointer pointer;
|
||||||
void (*callback) (struct sbp2_orb * orb, struct sbp2_status * status);
|
void (*callback)(struct sbp2_orb * orb, struct sbp2_status * status);
|
||||||
struct list_head link;
|
struct list_head link;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -300,9 +300,9 @@ static struct fw_node *build_tree(struct fw_card *card,
|
||||||
return local_node;
|
return local_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef void (*fw_node_callback_t) (struct fw_card * card,
|
typedef void (*fw_node_callback_t)(struct fw_card * card,
|
||||||
struct fw_node * node,
|
struct fw_node * node,
|
||||||
struct fw_node * parent);
|
struct fw_node * parent);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
for_each_fw_node(struct fw_card *card, struct fw_node *root,
|
for_each_fw_node(struct fw_card *card, struct fw_node *root,
|
||||||
|
|
|
@ -64,7 +64,7 @@ struct fw_node {
|
||||||
static inline struct fw_node *
|
static inline struct fw_node *
|
||||||
fw_node(struct list_head *l)
|
fw_node(struct list_head *l)
|
||||||
{
|
{
|
||||||
return list_entry (l, struct fw_node, link);
|
return list_entry(l, struct fw_node, link);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct fw_node *
|
static inline struct fw_node *
|
||||||
|
|
|
@ -172,11 +172,11 @@ struct fw_descriptor {
|
||||||
const u32 *data;
|
const u32 *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
int fw_core_add_descriptor (struct fw_descriptor *desc);
|
int fw_core_add_descriptor(struct fw_descriptor *desc);
|
||||||
void fw_core_remove_descriptor (struct fw_descriptor *desc);
|
void fw_core_remove_descriptor(struct fw_descriptor *desc);
|
||||||
|
|
||||||
typedef void (*fw_packet_callback_t) (struct fw_packet *packet,
|
typedef void (*fw_packet_callback_t)(struct fw_packet *packet,
|
||||||
struct fw_card *card, int status);
|
struct fw_card *card, int status);
|
||||||
|
|
||||||
typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode,
|
typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode,
|
||||||
void *data,
|
void *data,
|
||||||
|
@ -239,7 +239,7 @@ struct fw_transaction {
|
||||||
static inline struct fw_packet *
|
static inline struct fw_packet *
|
||||||
fw_packet(struct list_head *l)
|
fw_packet(struct list_head *l)
|
||||||
{
|
{
|
||||||
return list_entry (l, struct fw_packet, link);
|
return list_entry(l, struct fw_packet, link);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct fw_address_handler {
|
struct fw_address_handler {
|
||||||
|
@ -350,11 +350,11 @@ struct fw_iso_packet {
|
||||||
|
|
||||||
struct fw_iso_context;
|
struct fw_iso_context;
|
||||||
|
|
||||||
typedef void (*fw_iso_callback_t) (struct fw_iso_context *context,
|
typedef void (*fw_iso_callback_t)(struct fw_iso_context *context,
|
||||||
u32 cycle,
|
u32 cycle,
|
||||||
size_t header_length,
|
size_t header_length,
|
||||||
void *header,
|
void *header,
|
||||||
void *data);
|
void *data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* An iso buffer is just a set of pages mapped for DMA in the
|
* An iso buffer is just a set of pages mapped for DMA in the
|
||||||
|
@ -420,23 +420,23 @@ struct fw_card_driver {
|
||||||
* enable the PHY or set the link_on bit and initiate a bus
|
* enable the PHY or set the link_on bit and initiate a bus
|
||||||
* reset.
|
* reset.
|
||||||
*/
|
*/
|
||||||
int (*enable) (struct fw_card *card, u32 *config_rom, size_t length);
|
int (*enable)(struct fw_card *card, u32 *config_rom, size_t length);
|
||||||
|
|
||||||
int (*update_phy_reg) (struct fw_card *card, int address,
|
int (*update_phy_reg)(struct fw_card *card, int address,
|
||||||
int clear_bits, int set_bits);
|
int clear_bits, int set_bits);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Update the config rom for an enabled card. This function
|
* Update the config rom for an enabled card. This function
|
||||||
* should change the config rom that is presented on the bus
|
* should change the config rom that is presented on the bus
|
||||||
* an initiate a bus reset.
|
* an initiate a bus reset.
|
||||||
*/
|
*/
|
||||||
int (*set_config_rom) (struct fw_card *card,
|
int (*set_config_rom)(struct fw_card *card,
|
||||||
u32 *config_rom, size_t length);
|
u32 *config_rom, size_t length);
|
||||||
|
|
||||||
void (*send_request) (struct fw_card *card, struct fw_packet *packet);
|
void (*send_request)(struct fw_card *card, struct fw_packet *packet);
|
||||||
void (*send_response) (struct fw_card *card, struct fw_packet *packet);
|
void (*send_response)(struct fw_card *card, struct fw_packet *packet);
|
||||||
/* Calling cancel is valid once a packet has been submitted. */
|
/* Calling cancel is valid once a packet has been submitted. */
|
||||||
int (*cancel_packet) (struct fw_card *card, struct fw_packet *packet);
|
int (*cancel_packet)(struct fw_card *card, struct fw_packet *packet);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allow the specified node ID to do direct DMA out and in of
|
* Allow the specified node ID to do direct DMA out and in of
|
||||||
|
@ -446,10 +446,10 @@ struct fw_card_driver {
|
||||||
* doesn't support this, -ESTALE if the generation doesn't
|
* doesn't support this, -ESTALE if the generation doesn't
|
||||||
* match.
|
* match.
|
||||||
*/
|
*/
|
||||||
int (*enable_phys_dma) (struct fw_card *card,
|
int (*enable_phys_dma)(struct fw_card *card,
|
||||||
int node_id, int generation);
|
int node_id, int generation);
|
||||||
|
|
||||||
u64 (*get_bus_time) (struct fw_card *card);
|
u64 (*get_bus_time)(struct fw_card *card);
|
||||||
|
|
||||||
struct fw_iso_context *
|
struct fw_iso_context *
|
||||||
(*allocate_iso_context)(struct fw_card *card,
|
(*allocate_iso_context)(struct fw_card *card,
|
||||||
|
|
Loading…
Reference in New Issue