Commit fea9a0f5 authored by Ioana Ciornei's avatar Ioana Ciornei Committed by Greg Kroah-Hartman

staging: fsl-mc: whitespace cleanup: improve alignment in prototypes

To improve readability for structs and function definitions, separate type
and variable name by a single space, instead of an inconsistent number of
tabs.
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarStuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7eef9827
...@@ -58,10 +58,10 @@ struct dpmcp_cfg { ...@@ -58,10 +58,10 @@ struct dpmcp_cfg {
int portal_id; int portal_id;
}; };
int dpmcp_create(struct fsl_mc_io *mc_io, int dpmcp_create(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
const struct dpmcp_cfg *cfg, const struct dpmcp_cfg *cfg,
u16 *token); u16 *token);
int dpmcp_destroy(struct fsl_mc_io *mc_io, int dpmcp_destroy(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
...@@ -84,53 +84,53 @@ int dpmcp_reset(struct fsl_mc_io *mc_io, ...@@ -84,53 +84,53 @@ int dpmcp_reset(struct fsl_mc_io *mc_io,
* @irq_num: A user defined number associated with this IRQ * @irq_num: A user defined number associated with this IRQ
*/ */
struct dpmcp_irq_cfg { struct dpmcp_irq_cfg {
u64 paddr; u64 paddr;
u32 val; u32 val;
int irq_num; int irq_num;
}; };
int dpmcp_set_irq(struct fsl_mc_io *mc_io, int dpmcp_set_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
struct dpmcp_irq_cfg *irq_cfg); struct dpmcp_irq_cfg *irq_cfg);
int dpmcp_get_irq(struct fsl_mc_io *mc_io, int dpmcp_get_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
int *type, int *type,
struct dpmcp_irq_cfg *irq_cfg); struct dpmcp_irq_cfg *irq_cfg);
int dpmcp_set_irq_enable(struct fsl_mc_io *mc_io, int dpmcp_set_irq_enable(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u8 en); u8 en);
int dpmcp_get_irq_enable(struct fsl_mc_io *mc_io, int dpmcp_get_irq_enable(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u8 *en); u8 *en);
int dpmcp_set_irq_mask(struct fsl_mc_io *mc_io, int dpmcp_set_irq_mask(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 mask); u32 mask);
int dpmcp_get_irq_mask(struct fsl_mc_io *mc_io, int dpmcp_get_irq_mask(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 *mask); u32 *mask);
int dpmcp_get_irq_status(struct fsl_mc_io *mc_io, int dpmcp_get_irq_status(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 *status); u32 *status);
/** /**
* struct dpmcp_attr - Structure representing DPMCP attributes * struct dpmcp_attr - Structure representing DPMCP attributes
...@@ -150,9 +150,9 @@ struct dpmcp_attr { ...@@ -150,9 +150,9 @@ struct dpmcp_attr {
} version; } version;
}; };
int dpmcp_get_attributes(struct fsl_mc_io *mc_io, int dpmcp_get_attributes(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
struct dpmcp_attr *attr); struct dpmcp_attr *attr);
#endif /* __FSL_DPMCP_H */ #endif /* __FSL_DPMCP_H */
...@@ -44,8 +44,8 @@ int dpbp_open(struct fsl_mc_io *mc_io, ...@@ -44,8 +44,8 @@ int dpbp_open(struct fsl_mc_io *mc_io,
u16 *token); u16 *token);
int dpbp_close(struct fsl_mc_io *mc_io, int dpbp_close(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token); u16 token);
/** /**
* struct dpbp_cfg - Structure representing DPBP configuration * struct dpbp_cfg - Structure representing DPBP configuration
...@@ -55,10 +55,10 @@ struct dpbp_cfg { ...@@ -55,10 +55,10 @@ struct dpbp_cfg {
u32 options; u32 options;
}; };
int dpbp_create(struct fsl_mc_io *mc_io, int dpbp_create(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
const struct dpbp_cfg *cfg, const struct dpbp_cfg *cfg,
u16 *token); u16 *token);
int dpbp_destroy(struct fsl_mc_io *mc_io, int dpbp_destroy(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
...@@ -88,59 +88,59 @@ int dpbp_reset(struct fsl_mc_io *mc_io, ...@@ -88,59 +88,59 @@ int dpbp_reset(struct fsl_mc_io *mc_io,
* @irq_num: A user defined number associated with this IRQ * @irq_num: A user defined number associated with this IRQ
*/ */
struct dpbp_irq_cfg { struct dpbp_irq_cfg {
u64 addr; u64 addr;
u32 val; u32 val;
int irq_num; int irq_num;
}; };
int dpbp_set_irq(struct fsl_mc_io *mc_io, int dpbp_set_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
struct dpbp_irq_cfg *irq_cfg); struct dpbp_irq_cfg *irq_cfg);
int dpbp_get_irq(struct fsl_mc_io *mc_io, int dpbp_get_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
int *type, int *type,
struct dpbp_irq_cfg *irq_cfg); struct dpbp_irq_cfg *irq_cfg);
int dpbp_set_irq_enable(struct fsl_mc_io *mc_io, int dpbp_set_irq_enable(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u8 en); u8 en);
int dpbp_get_irq_enable(struct fsl_mc_io *mc_io, int dpbp_get_irq_enable(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u8 *en); u8 *en);
int dpbp_set_irq_mask(struct fsl_mc_io *mc_io, int dpbp_set_irq_mask(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 mask); u32 mask);
int dpbp_get_irq_mask(struct fsl_mc_io *mc_io, int dpbp_get_irq_mask(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 *mask); u32 *mask);
int dpbp_get_irq_status(struct fsl_mc_io *mc_io, int dpbp_get_irq_status(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 *status); u32 *status);
int dpbp_clear_irq_status(struct fsl_mc_io *mc_io, int dpbp_clear_irq_status(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 status); u32 status);
/** /**
* struct dpbp_attr - Structure representing DPBP attributes * struct dpbp_attr - Structure representing DPBP attributes
...@@ -163,10 +163,10 @@ struct dpbp_attr { ...@@ -163,10 +163,10 @@ struct dpbp_attr {
u16 bpid; u16 bpid;
}; };
int dpbp_get_attributes(struct fsl_mc_io *mc_io, int dpbp_get_attributes(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
struct dpbp_attr *attr); struct dpbp_attr *attr);
/** /**
* DPBP notifications options * DPBP notifications options
...@@ -196,24 +196,24 @@ int dpbp_get_attributes(struct fsl_mc_io *mc_io, ...@@ -196,24 +196,24 @@ int dpbp_get_attributes(struct fsl_mc_io *mc_io,
* @options: Mask of available options; use 'DPBP_NOTIF_OPT_<X>' values * @options: Mask of available options; use 'DPBP_NOTIF_OPT_<X>' values
*/ */
struct dpbp_notification_cfg { struct dpbp_notification_cfg {
u32 depletion_entry; u32 depletion_entry;
u32 depletion_exit; u32 depletion_exit;
u32 surplus_entry; u32 surplus_entry;
u32 surplus_exit; u32 surplus_exit;
u64 message_iova; u64 message_iova;
u64 message_ctx; u64 message_ctx;
u16 options; u16 options;
}; };
int dpbp_set_notifications(struct fsl_mc_io *mc_io, int dpbp_set_notifications(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
struct dpbp_notification_cfg *cfg); struct dpbp_notification_cfg *cfg);
int dpbp_get_notifications(struct fsl_mc_io *mc_io, int dpbp_get_notifications(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
struct dpbp_notification_cfg *cfg); struct dpbp_notification_cfg *cfg);
/** @} */ /** @} */
......
...@@ -58,12 +58,12 @@ struct mc_version { ...@@ -58,12 +58,12 @@ struct mc_version {
u32 revision; u32 revision;
}; };
int mc_get_version(struct fsl_mc_io *mc_io, int mc_get_version(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
struct mc_version *mc_ver_info); struct mc_version *mc_ver_info);
int dpmng_get_container_id(struct fsl_mc_io *mc_io, int dpmng_get_container_id(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
int *container_id); int *container_id);
#endif /* __FSL_DPMNG_H */ #endif /* __FSL_DPMNG_H */
...@@ -116,17 +116,17 @@ struct dprc_cfg { ...@@ -116,17 +116,17 @@ struct dprc_cfg {
char label[16]; char label[16];
}; };
int dprc_create_container(struct fsl_mc_io *mc_io, int dprc_create_container(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
struct dprc_cfg *cfg, struct dprc_cfg *cfg,
int *child_container_id, int *child_container_id,
u64 *child_portal_offset); u64 *child_portal_offset);
int dprc_destroy_container(struct fsl_mc_io *mc_io, int dprc_destroy_container(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int child_container_id); int child_container_id);
int dprc_reset_container(struct fsl_mc_io *mc_io, int dprc_reset_container(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
...@@ -171,59 +171,59 @@ int dprc_reset_container(struct fsl_mc_io *mc_io, ...@@ -171,59 +171,59 @@ int dprc_reset_container(struct fsl_mc_io *mc_io,
* @irq_num: A user defined number associated with this IRQ * @irq_num: A user defined number associated with this IRQ
*/ */
struct dprc_irq_cfg { struct dprc_irq_cfg {
phys_addr_t paddr; phys_addr_t paddr;
u32 val; u32 val;
int irq_num; int irq_num;
}; };
int dprc_set_irq(struct fsl_mc_io *mc_io, int dprc_set_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
struct dprc_irq_cfg *irq_cfg); struct dprc_irq_cfg *irq_cfg);
int dprc_get_irq(struct fsl_mc_io *mc_io, int dprc_get_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
int *type, int *type,
struct dprc_irq_cfg *irq_cfg); struct dprc_irq_cfg *irq_cfg);
int dprc_set_irq_enable(struct fsl_mc_io *mc_io, int dprc_set_irq_enable(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u8 en); u8 en);
int dprc_get_irq_enable(struct fsl_mc_io *mc_io, int dprc_get_irq_enable(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u8 *en); u8 *en);
int dprc_set_irq_mask(struct fsl_mc_io *mc_io, int dprc_set_irq_mask(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 mask); u32 mask);
int dprc_get_irq_mask(struct fsl_mc_io *mc_io, int dprc_get_irq_mask(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 *mask); u32 *mask);
int dprc_get_irq_status(struct fsl_mc_io *mc_io, int dprc_get_irq_status(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 *status); u32 *status);
int dprc_clear_irq_status(struct fsl_mc_io *mc_io, int dprc_clear_irq_status(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
u8 irq_index, u8 irq_index,
u32 status); u32 status);
/** /**
* struct dprc_attributes - Container attributes * struct dprc_attributes - Container attributes
...@@ -249,24 +249,24 @@ struct dprc_attributes { ...@@ -249,24 +249,24 @@ struct dprc_attributes {
} version; } version;
}; };
int dprc_get_attributes(struct fsl_mc_io *mc_io, int dprc_get_attributes(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
struct dprc_attributes *attributes); struct dprc_attributes *attributes);
int dprc_set_res_quota(struct fsl_mc_io *mc_io, int dprc_set_res_quota(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int child_container_id, int child_container_id,
char *type, char *type,
u16 quota); u16 quota);
int dprc_get_res_quota(struct fsl_mc_io *mc_io, int dprc_get_res_quota(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int child_container_id, int child_container_id,
char *type, char *type,
u16 *quota); u16 *quota);
/* Resource request options */ /* Resource request options */
...@@ -312,33 +312,33 @@ struct dprc_res_req { ...@@ -312,33 +312,33 @@ struct dprc_res_req {
int id_base_align; int id_base_align;
}; };
int dprc_assign(struct fsl_mc_io *mc_io, int dprc_assign(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int container_id, int container_id,
struct dprc_res_req *res_req); struct dprc_res_req *res_req);
int dprc_unassign(struct fsl_mc_io *mc_io, int dprc_unassign(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int child_container_id, int child_container_id,
struct dprc_res_req *res_req); struct dprc_res_req *res_req);
int dprc_get_pool_count(struct fsl_mc_io *mc_io, int dprc_get_pool_count(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int *pool_count); int *pool_count);
int dprc_get_pool(struct fsl_mc_io *mc_io, int dprc_get_pool(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int pool_index, int pool_index,
char *type); char *type);
int dprc_get_obj_count(struct fsl_mc_io *mc_io, int dprc_get_obj_count(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int *obj_count); int *obj_count);
/* Objects Attributes Flags */ /* Objects Attributes Flags */
...@@ -381,41 +381,41 @@ struct dprc_obj_desc { ...@@ -381,41 +381,41 @@ struct dprc_obj_desc {
u16 flags; u16 flags;
}; };
int dprc_get_obj(struct fsl_mc_io *mc_io, int dprc_get_obj(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
int obj_index, int obj_index,
struct dprc_obj_desc *obj_desc); struct dprc_obj_desc *obj_desc);
int dprc_get_obj_desc(struct fsl_mc_io *mc_io, int dprc_get_obj_desc(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *obj_type, char *obj_type,
int obj_id, int obj_id,
struct dprc_obj_desc *obj_desc); struct dprc_obj_desc *obj_desc);
int dprc_set_obj_irq(struct fsl_mc_io *mc_io, int dprc_set_obj_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *obj_type, char *obj_type,
int obj_id, int obj_id,
u8 irq_index, u8 irq_index,
struct dprc_irq_cfg *irq_cfg); struct dprc_irq_cfg *irq_cfg);
int dprc_get_obj_irq(struct fsl_mc_io *mc_io, int dprc_get_obj_irq(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *obj_type, char *obj_type,
int obj_id, int obj_id,
u8 irq_index, u8 irq_index,
int *type, int *type,
struct dprc_irq_cfg *irq_cfg); struct dprc_irq_cfg *irq_cfg);
int dprc_get_res_count(struct fsl_mc_io *mc_io, int dprc_get_res_count(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *type, char *type,
int *res_count); int *res_count);
/** /**
* enum dprc_iter_status - Iteration status * enum dprc_iter_status - Iteration status
...@@ -444,11 +444,11 @@ struct dprc_res_ids_range_desc { ...@@ -444,11 +444,11 @@ struct dprc_res_ids_range_desc {
enum dprc_iter_status iter_status; enum dprc_iter_status iter_status;
}; };
int dprc_get_res_ids(struct fsl_mc_io *mc_io, int dprc_get_res_ids(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *type, char *type,
struct dprc_res_ids_range_desc *range_desc); struct dprc_res_ids_range_desc *range_desc);
/* Region flags */ /* Region flags */
/* Cacheable - Indicates that region should be mapped as cacheable */ /* Cacheable - Indicates that region should be mapped as cacheable */
...@@ -481,20 +481,20 @@ struct dprc_region_desc { ...@@ -481,20 +481,20 @@ struct dprc_region_desc {
enum dprc_region_type type; enum dprc_region_type type;
}; };
int dprc_get_obj_region(struct fsl_mc_io *mc_io, int dprc_get_obj_region(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *obj_type, char *obj_type,
int obj_id, int obj_id,
u8 region_index, u8 region_index,
struct dprc_region_desc *region_desc); struct dprc_region_desc *region_desc);
int dprc_set_obj_label(struct fsl_mc_io *mc_io, int dprc_set_obj_label(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
char *obj_type, char *obj_type,
int obj_id, int obj_id,
char *label); char *label);
/** /**
* struct dprc_endpoint - Endpoint description for link connect/disconnect * struct dprc_endpoint - Endpoint description for link connect/disconnect
...@@ -521,24 +521,24 @@ struct dprc_connection_cfg { ...@@ -521,24 +521,24 @@ struct dprc_connection_cfg {
u32 max_rate; u32 max_rate;
}; };
int dprc_connect(struct fsl_mc_io *mc_io, int dprc_connect(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
const struct dprc_endpoint *endpoint1, const struct dprc_endpoint *endpoint1,
const struct dprc_endpoint *endpoint2, const struct dprc_endpoint *endpoint2,
const struct dprc_connection_cfg *cfg); const struct dprc_connection_cfg *cfg);
int dprc_disconnect(struct fsl_mc_io *mc_io, int dprc_disconnect(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
const struct dprc_endpoint *endpoint); const struct dprc_endpoint *endpoint);
int dprc_get_connection(struct fsl_mc_io *mc_io, int dprc_get_connection(struct fsl_mc_io *mc_io,
u32 cmd_flags, u32 cmd_flags,
u16 token, u16 token,
const struct dprc_endpoint *endpoint1, const struct dprc_endpoint *endpoint1,
struct dprc_endpoint *endpoint2, struct dprc_endpoint *endpoint2,
int *state); int *state);
#endif /* _FSL_DPRC_H */ #endif /* _FSL_DPRC_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment