Lines Matching refs:sp_device
72 struct sp_device {
91 struct sp_device*(*get_psp_master_device)(void);
92 void (*set_psp_master_device)(struct sp_device *);
93 void (*clear_psp_master_device)(struct sp_device *);
116 struct sp_device *sp_alloc_struct(struct device *dev);
118 int sp_init(struct sp_device *sp);
119 void sp_destroy(struct sp_device *sp);
120 struct sp_device *sp_get_master(void);
122 int sp_suspend(struct sp_device *sp);
123 int sp_resume(struct sp_device *sp);
124 int sp_request_ccp_irq(struct sp_device *sp, irq_handler_t handler,
126 void sp_free_ccp_irq(struct sp_device *sp, void *data);
127 int sp_request_psp_irq(struct sp_device *sp, irq_handler_t handler,
129 void sp_free_psp_irq(struct sp_device *sp, void *data);
130 struct sp_device *sp_get_psp_master_device(void);
134 int ccp_dev_init(struct sp_device *sp);
135 void ccp_dev_destroy(struct sp_device *sp);
137 int ccp_dev_suspend(struct sp_device *sp);
138 int ccp_dev_resume(struct sp_device *sp);
142 static inline int ccp_dev_init(struct sp_device *sp)
146 static inline void ccp_dev_destroy(struct sp_device *sp) { }
148 static inline int ccp_dev_suspend(struct sp_device *sp)
152 static inline int ccp_dev_resume(struct sp_device *sp)
160 int psp_dev_init(struct sp_device *sp);
162 void psp_dev_destroy(struct sp_device *sp);
167 static inline int psp_dev_init(struct sp_device *sp) { return 0; }
169 static inline void psp_dev_destroy(struct sp_device *sp) { }