};
typedef int (*VC_SM_SHOW) (struct seq_file *s, void *v);
-struct SM_PDE_T {
+struct sm_pde_t {
VC_SM_SHOW show; /* Debug fs function hookup. */
struct dentry *dir_entry; /* Debug fs directory entry. */
void *priv_data; /* Private data */
pid_t pid; /* PID of creator. */
struct dentry *dir_pid; /* Debug fs entries root. */
- struct SM_PDE_T dir_stats; /* Debug fs entries statistics sub-tree. */
- struct SM_PDE_T dir_res; /* Debug fs resource sub-tree. */
+ struct sm_pde_t dir_stats; /* Debug fs entries statistics sub-tree. */
+ struct sm_pde_t dir_res; /* Debug fs resource sub-tree. */
int restart_sys; /* Tracks restart on interrupt. */
enum vc_sm_msg_type int_action; /* Interrupted action. */
struct sm_instance *sm_handle; /* Handle for videocore service. */
struct dentry *dir_root; /* Debug fs entries root. */
struct dentry *dir_alloc; /* Debug fs entries allocations. */
- struct SM_PDE_T dir_stats; /* Debug fs entries statistics sub-tree. */
- struct SM_PDE_T dir_state; /* Debug fs entries state sub-tree. */
+ struct sm_pde_t dir_stats; /* Debug fs entries statistics sub-tree. */
+ struct sm_pde_t dir_state; /* Debug fs entries state sub-tree. */
struct dentry *debug; /* Debug fs entries debug. */
struct mutex map_lock; /* Global map lock. */
struct sm_priv_data_t *file_data;
struct sm_resource_t *resource;
int res_count = 0;
- struct SM_PDE_T *p_pde;
+ struct sm_pde_t *p_pde;
- p_pde = (struct SM_PDE_T *)(s->private);
+ p_pde = (struct sm_pde_t *)(s->private);
file_data = (struct sm_priv_data_t *)(p_pde->priv_data);
if (file_data == NULL)
struct sm_priv_data_t *file_data;
struct sm_resource_t *resource;
int alloc_count = 0;
- struct SM_PDE_T *p_pde;
+ struct sm_pde_t *p_pde;
- p_pde = (struct SM_PDE_T *)(s->private);
+ p_pde = (struct sm_pde_t *)(s->private);
file_data = (struct sm_priv_data_t *)(p_pde->priv_data);
if (!file_data)
static int vc_sm_seq_file_show(struct seq_file *s, void *v)
{
- struct SM_PDE_T *sm_pde;
+ struct sm_pde_t *sm_pde;
- sm_pde = (struct SM_PDE_T *)(s->private);
+ sm_pde = (struct sm_pde_t *)(s->private);
if (sm_pde && sm_pde->show)
sm_pde->show(s, v);