Searched refs:ops (Results 1 – 8 of 8) sorted by relevance
| /dev/class/ |
| A D | netif_api.c | 14 if (!ops) in class_netif_set_state() 17 if (ops->set_state) in class_netif_set_state() 25 if (!ops) in class_netif_get_hwaddr() 28 if (ops->get_hwaddr) in class_netif_get_hwaddr() 36 if (!ops) in class_netif_get_mtu() 39 if (ops->get_mtu) in class_netif_get_mtu() 47 if (!ops) in class_netif_set_status() 50 if (ops->set_status) in class_netif_set_status() 58 if (!ops) in class_netif_output() 61 if (ops->output) in class_netif_output() [all …]
|
| A D | block_api.c | 14 if (!ops) in class_block_get_size() 17 if (ops->get_block_size) in class_block_get_size() 25 if (!ops) in class_block_get_count() 28 if (ops->get_block_count) in class_block_get_count() 36 if (!ops) in class_block_write() 39 if (ops->write) in class_block_write() 47 if (!ops) in class_block_read() 50 if (ops->read) in class_block_read() 58 if (!ops) in class_block_flush() 61 if (ops->flush) in class_block_flush() [all …]
|
| A D | fb_api.c | 14 if (!ops) in class_fb_set_mode() 17 if (ops->set_mode) in class_fb_set_mode() 18 return ops->set_mode(dev, width, height, bpp); in class_fb_set_mode() 25 if (!ops) in class_fb_get_info() 28 if (ops->get_info) in class_fb_get_info() 29 return ops->get_info(dev, info); in class_fb_get_info() 36 if (!ops) in class_fb_update() 39 if (ops->update) in class_fb_update() 40 return ops->update(dev); in class_fb_update() 47 if (!ops) in class_fb_update_region() [all …]
|
| A D | i2c_api.c | 14 if (!ops) in class_i2c_write() 17 if (ops->write) in class_i2c_write() 18 return ops->write(dev, addr, buf, len); in class_i2c_write() 25 if (!ops) in class_i2c_read() 28 if (ops->read) in class_i2c_read() 29 return ops->read(dev, addr, buf, len); in class_i2c_read() 36 if (!ops) in class_i2c_write_reg() 39 if (ops->write_reg) in class_i2c_write_reg() 47 if (!ops) in class_i2c_read_reg() 50 if (ops->read_reg) in class_i2c_read_reg() [all …]
|
| A D | uart_api.c | 13 struct uart_ops *ops = device_get_driver_ops(dev, struct uart_ops, std); in class_uart_read() local 15 if (!ops) in class_uart_read() 18 if (ops->read) in class_uart_read() 19 return ops->read(dev, buf, len); in class_uart_read() 25 struct uart_ops *ops = device_get_driver_ops(dev, struct uart_ops, std); in class_uart_write() local 27 if (!ops) in class_uart_write() 30 if (ops->write) in class_uart_write() 31 return ops->write(dev, buf, len); in class_uart_write()
|
| A D | spi_api.c | 13 struct spi_ops *ops = device_get_driver_ops(dev, struct spi_ops, std); in class_spi_transaction() local 14 if (!ops) in class_spi_transaction() 17 if (ops->transaction) in class_spi_transaction() 18 return ops->transaction(dev, txn, count); in class_spi_transaction()
|
| /dev/ |
| A D | driver.c | 60 const struct driver_ops *ops = dev->driver->ops; in device_init() local 62 if (ops && ops->init) { in device_init() 82 const struct driver_ops *ops = dev->driver->ops; in device_fini() local 84 if (ops && ops->fini) in device_fini() 85 return ops->fini(dev); in device_fini() 96 const struct driver_ops *ops = dev->driver->ops; in device_suspend() local 98 if (ops && ops->suspend) in device_suspend() 99 return ops->suspend(dev); in device_suspend() 110 const struct driver_ops *ops = dev->driver->ops; in device_resume() local 112 if (ops && ops->resume) in device_resume() [all …]
|
| /dev/include/dev/ |
| A D | driver.h | 64 const struct driver_ops *ops; member 75 .ops = ops_, \ 96 if (dev && dev->driver && dev->driver->ops) \ 97 __ops = containerof(dev->driver->ops, type, member); \
|
Completed in 22 milliseconds