Lines Matching refs:struct
102 struct device {
114 The ``data`` struct is kept in RAM, and is used by the driver for
118 The ``api`` struct maps generic subsystem APIs to the device-specific
137 typedef int (*subsystem_do_this_t)(const struct device *dev, int foo, int bar);
138 typedef void (*subsystem_do_that_t)(const struct device *dev, void *baz);
140 __subsystem struct subsystem_driver_api {
145 static inline int subsystem_do_this(const struct device *dev, int foo, int bar)
150 static inline void subsystem_do_that(const struct device *dev, void *baz)
161 static int my_driver_do_this(const struct device *dev, int foo, int bar)
166 static void my_driver_do_that(const struct device *dev, void *baz)
182 struct, they will always be included in the binary even if unused;
203 int specific_do_that(const struct device *dev, int foo);
206 __syscall int specific_from_user(const struct device *dev, int bar);
216 static int generic_do_this(const struct device *dev, void *arg)
221 static struct generic_api api {
228 int specific_do_that(const struct device *dev, int foo)
234 int z_impl_specific_from_user(const struct device *dev, int bar)
243 int z_vrfy_specific_from_user(const struct device *dev, int bar)
267 will have a different ``config`` struct and ``data`` struct.
279 typedef void (*my_driver_config_irq_t)(const struct device *dev);
281 struct my_driver_config {
290 void my_driver_isr(const struct device *dev)
296 int my_driver_init(const struct device *dev)
298 const struct my_driver_config *config = dev->config;
318 static void my_driver_config_irq_0(const struct device *dev)
324 const static struct my_driver_config my_driver_config_0 = {
329 static struct my_data_0;
466 struct my_driver_config {
471 struct my_driver_dev_data {
476 const static struct my_driver_config my_driver_config_0 = {
481 int my_driver_init(const struct device *dev)
488 int my_driver_some_function(const struct device *dev)
515 struct my_driver_config {
522 struct my_driver_dev_data {
530 ((const struct my_driver_config *)((_dev)->config))
533 ((struct my_driver_dev_data *)((_dev)->data))
535 const static struct my_driver_config my_driver_config_0 = {
542 int my_driver_init(const struct device *dev)
550 int my_driver_some_function(const struct device *dev)
579 would be in the driver config struct:
583 const static struct my_driver_config my_driver_config_0 = {
629 struct pcie_bar mbar;