Lines Matching refs:ssb_device
203 struct ssb_device;
207 u8 (*read8)(struct ssb_device *dev, u16 offset);
208 u16 (*read16)(struct ssb_device *dev, u16 offset);
209 u32 (*read32)(struct ssb_device *dev, u16 offset);
210 void (*write8)(struct ssb_device *dev, u16 offset, u8 value);
211 void (*write16)(struct ssb_device *dev, u16 offset, u16 value);
212 void (*write32)(struct ssb_device *dev, u16 offset, u32 value);
214 void (*block_read)(struct ssb_device *dev, void *buffer,
216 void (*block_write)(struct ssb_device *dev, const void *buffer,
264 struct ssb_device *sdev;
267 struct ssb_device { struct
287 struct ssb_device * dev_to_ssb_dev(struct device *dev) in dev_to_ssb_dev()
296 void ssb_set_drvdata(struct ssb_device *dev, void *data) in ssb_set_drvdata()
301 void * ssb_get_drvdata(struct ssb_device *dev) in ssb_get_drvdata()
307 void ssb_set_devtypedata(struct ssb_device *dev, void *data);
309 void * ssb_get_devtypedata(struct ssb_device *dev) in ssb_get_devtypedata()
319 int (*probe)(struct ssb_device *dev, const struct ssb_device_id *id);
320 void (*remove)(struct ssb_device *dev);
321 int (*suspend)(struct ssb_device *dev, pm_message_t state);
322 int (*resume)(struct ssb_device *dev);
323 void (*shutdown)(struct ssb_device *dev);
423 struct ssb_device *mapped_device;
462 struct ssb_device devices[SSB_MAX_NR_CORES];
571 int ssb_device_is_enabled(struct ssb_device *dev);
574 void ssb_device_enable(struct ssb_device *dev, u32 core_specific_flags);
576 void ssb_device_disable(struct ssb_device *dev, u32 core_specific_flags);
580 static inline u8 ssb_read8(struct ssb_device *dev, u16 offset) in ssb_read8()
584 static inline u16 ssb_read16(struct ssb_device *dev, u16 offset) in ssb_read16()
588 static inline u32 ssb_read32(struct ssb_device *dev, u16 offset) in ssb_read32()
592 static inline void ssb_write8(struct ssb_device *dev, u16 offset, u8 value) in ssb_write8()
596 static inline void ssb_write16(struct ssb_device *dev, u16 offset, u16 value) in ssb_write16()
600 static inline void ssb_write32(struct ssb_device *dev, u16 offset, u32 value) in ssb_write32()
605 static inline void ssb_block_read(struct ssb_device *dev, void *buffer, in ssb_block_read()
611 static inline void ssb_block_write(struct ssb_device *dev, const void *buffer, in ssb_block_write()
625 extern u32 ssb_dma_translation(struct ssb_device *dev);
629 static inline void __cold __ssb_dma_not_implemented(struct ssb_device *dev) in __ssb_dma_not_implemented()
646 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state()
657 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state()