• Home
  • Raw
  • Download

Lines Matching refs:dev

61 	struct device dev;  member
67 int (*probe)(struct vlynq_device *dev, struct vlynq_device_id *id);
68 void (*remove)(struct vlynq_device *dev);
73 int (*on)(struct vlynq_device *dev);
74 void (*off)(struct vlynq_device *dev);
84 return container_of(device, struct vlynq_device, dev); in to_vlynq_device()
97 static inline void *vlynq_get_drvdata(struct vlynq_device *dev) in vlynq_get_drvdata() argument
99 return dev_get_drvdata(&dev->dev); in vlynq_get_drvdata()
102 static inline void vlynq_set_drvdata(struct vlynq_device *dev, void *data) in vlynq_set_drvdata() argument
104 dev_set_drvdata(&dev->dev, data); in vlynq_set_drvdata()
107 static inline u32 vlynq_mem_start(struct vlynq_device *dev) in vlynq_mem_start() argument
109 return dev->mem_start; in vlynq_mem_start()
112 static inline u32 vlynq_mem_end(struct vlynq_device *dev) in vlynq_mem_end() argument
114 return dev->mem_end; in vlynq_mem_end()
117 static inline u32 vlynq_mem_len(struct vlynq_device *dev) in vlynq_mem_len() argument
119 return dev->mem_end - dev->mem_start + 1; in vlynq_mem_len()
122 static inline int vlynq_virq_to_irq(struct vlynq_device *dev, int virq) in vlynq_virq_to_irq() argument
124 int irq = dev->irq_start + virq; in vlynq_virq_to_irq()
125 if ((irq < dev->irq_start) || (irq > dev->irq_end)) in vlynq_virq_to_irq()
131 static inline int vlynq_irq_to_virq(struct vlynq_device *dev, int irq) in vlynq_irq_to_virq() argument
133 if ((irq < dev->irq_start) || (irq > dev->irq_end)) in vlynq_irq_to_virq()
136 return irq - dev->irq_start; in vlynq_irq_to_virq()
140 extern int vlynq_enable_device(struct vlynq_device *dev);
141 extern void vlynq_disable_device(struct vlynq_device *dev);
142 extern int vlynq_set_local_mapping(struct vlynq_device *dev, u32 tx_offset,
144 extern int vlynq_set_remote_mapping(struct vlynq_device *dev, u32 tx_offset,
146 extern int vlynq_set_local_irq(struct vlynq_device *dev, int virq);
147 extern int vlynq_set_remote_irq(struct vlynq_device *dev, int virq);