Home
last modified time | relevance | path

Searched defs:dev (Results 1 – 25 of 35) sorted by relevance

12

/lk-master/lib/bio/
A Dbio.c282 static void bdev_inc_ref(bdev_t *dev) { in bdev_inc_ref()
287 static void bdev_dec_ref(bdev_t *dev) { in bdev_dec_ref()
306 size_t bio_trim_range(const bdev_t *dev, off_t offset, size_t len) { in bio_trim_range()
320 uint bio_trim_block_range(const bdev_t *dev, bnum_t block, uint count) { in bio_trim_block_range()
352 void bio_close(bdev_t *dev) { in bio_close()
358 ssize_t bio_read(bdev_t *dev, void *buf, off_t offset, size_t len) { in bio_read()
414 ssize_t bio_erase(bdev_t *dev, off_t offset, size_t len) { in bio_erase()
427 int bio_ioctl(bdev_t *dev, int request, void *argp) { in bio_ioctl()
437 void bio_initialize_bdev(bdev_t *dev, in bio_initialize_bdev()
512 void bio_register_device(bdev_t *dev) { in bio_register_device()
[all …]
A Ddebug.c71 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
92 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
115 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
154 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
174 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
189 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
200 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
228 bdev_t *dev = bio_open(argv[2].str); in cmd_bio() local
/lk-master/platform/pc/
A Dide.c201 static status_t ide_init(struct device *dev) { in ide_init()
286 struct device *dev = arg; in ide_irq_handler() local
301 static ssize_t ide_get_block_size(struct device *dev) { in ide_get_block_size()
309 static ssize_t ide_get_block_count(struct device *dev) { in ide_get_block_count()
485 static uint8_t ide_read_reg8(struct device *dev, int index) { in ide_read_reg8()
581 static void ide_device_select(struct device *dev, int index) { in ide_device_select()
585 static void ide_delay_400ns(struct device *dev) { in ide_delay_400ns()
592 static void ide_device_reset(struct device *dev) { in ide_device_reset()
647 static int ide_eval_error(struct device *dev) { in ide_eval_error()
697 static void ide_detect_drives(struct device *dev) { in ide_detect_drives()
[all …]
A Duart.c49 static status_t uart_init(struct device *dev) { in uart_init()
96 struct device *dev = arg; in uart_irq_handler() local
115 struct device *dev = arg; in uart_write_thread() local
138 static ssize_t uart_read(struct device *dev, void *buf, size_t len) { in uart_read()
148 static ssize_t uart_write(struct device *dev, const void *buf, size_t len) { in uart_write()
/lk-master/dev/virtio/
A Dvirtio.c67 struct virtio_device *dev = (struct virtio_device *)arg; in virtio_mmio_irq() local
129 struct virtio_device *dev = &devices[i]; in virtio_mmio_detect() local
226 void virtio_free_desc(struct virtio_device *dev, uint ring_index, uint16_t desc_index) { in virtio_free_desc()
233 uint16_t virtio_alloc_desc(struct virtio_device *dev, uint ring_index) { in virtio_alloc_desc()
248 struct vring_desc *virtio_alloc_desc_chain(struct virtio_device *dev, uint ring_index, size_t count… in virtio_alloc_desc_chain()
281 void virtio_submit_chain(struct virtio_device *dev, uint ring_index, uint16_t desc_index) { in virtio_submit_chain()
296 void virtio_kick(struct virtio_device *dev, uint ring_index) { in virtio_kick()
303 status_t virtio_alloc_ring(struct virtio_device *dev, uint index, uint16_t len) { in virtio_alloc_ring()
371 void virtio_reset_device(struct virtio_device *dev) { in virtio_reset_device()
375 void virtio_status_acknowledge_driver(struct virtio_device *dev) { in virtio_status_acknowledge_driver()
[all …]
/lk-master/dev/net/pcnet/
A Dpcnet.c101 static inline uint32_t pcnet_read_csr(struct device *dev, uint8_t rap) { in pcnet_read_csr()
108 static inline void pcnet_write_csr(struct device *dev, uint8_t rap, uint16_t data) { in pcnet_write_csr()
115 static inline uint32_t pcnet_read_bcr(struct device *dev, uint8_t rap) { in pcnet_read_bcr()
129 static status_t pcnet_init(struct device *dev) { in pcnet_init()
273 static status_t pcnet_read_pci_config(struct device *dev, pci_location_t *loc) { in pcnet_read_pci_config()
322 struct device *dev = arg; in pcnet_irq_handler() local
339 struct device *dev = arg; in pcnet_thread() local
398 static bool pcnet_service_tx(struct device *dev) { in pcnet_service_tx()
444 static bool pcnet_service_rx(struct device *dev) { in pcnet_service_rx()
531 static ssize_t pcnet_get_mtu(struct device *dev) { in pcnet_get_mtu()
[all …]
/lk-master/dev/
A Ddriver.c21 for (struct device *dev = &__start_devices; dev != &__stop_devices; dev++) { in device_init_all() local
40 for (struct device *dev = &__start_devices; dev != &__stop_devices; dev++) { in device_fini_all() local
54 status_t device_init(struct device *dev) { in device_init()
76 status_t device_fini(struct device *dev) { in device_fini()
90 status_t device_suspend(struct device *dev) { in device_suspend()
104 status_t device_resume(struct device *dev) { in device_resume()
/lk-master/dev/class/
A Dnetif_api.c12 status_t class_netif_set_state(struct device *dev, struct netstack_state *state) { in class_netif_set_state()
23 ssize_t class_netif_get_hwaddr(struct device *dev, void *buf, size_t max_len) { in class_netif_get_hwaddr()
34 ssize_t class_netif_get_mtu(struct device *dev) { in class_netif_get_mtu()
45 status_t class_netif_set_status(struct device *dev, bool up) { in class_netif_set_status()
56 status_t class_netif_output(struct device *dev, struct pbuf *p) { in class_netif_output()
67 status_t class_netif_mcast_filter(struct device *dev, const uint8_t *mac, int action) { in class_netif_mcast_filter()
A Dblock_api.c12 ssize_t class_block_get_size(struct device *dev) { in class_block_get_size()
23 ssize_t class_block_get_count(struct device *dev) { in class_block_get_count()
34 ssize_t class_block_write(struct device *dev, off_t offset, const void *buf, size_t count) { in class_block_write()
45 ssize_t class_block_read(struct device *dev, off_t offset, void *buf, size_t count) { in class_block_read()
56 status_t class_block_flush(struct device *dev) { in class_block_flush()
A Dfb_api.c12 status_t class_fb_set_mode(struct device *dev, size_t width, size_t height, size_t bpp) { in class_fb_set_mode()
23 status_t class_fb_get_info(struct device *dev, struct fb_info *info) { in class_fb_get_info()
34 status_t class_fb_update(struct device *dev) { in class_fb_update()
45 status_t class_fb_update_region(struct device *dev, size_t x, size_t y, size_t width, size_t height… in class_fb_update_region()
A Di2c_api.c12 status_t class_i2c_write(struct device *dev, uint8_t addr, const void *buf, size_t len) { in class_i2c_write()
23 status_t class_i2c_read(struct device *dev, uint8_t addr, void *buf, size_t len) { in class_i2c_read()
34 status_t class_i2c_write_reg(struct device *dev, uint8_t addr, uint8_t reg, uint8_t value) { in class_i2c_write_reg()
45 status_t class_i2c_read_reg(struct device *dev, uint8_t addr, uint8_t reg, void *value) { in class_i2c_read_reg()
A Duart_api.c12 ssize_t class_uart_read(struct device *dev, void *buf, size_t len) { in class_uart_read()
24 ssize_t class_uart_write(struct device *dev, const void *buf, size_t len) { in class_uart_write()
A Dspi_api.c12 ssize_t class_spi_transaction(struct device *dev, struct spi_transaction *txn, size_t count) { in class_spi_transaction()
/lk-master/dev/virtio/block/
A Dvirtio-block.c72 struct virtio_device *dev; member
89 status_t virtio_block_init(struct virtio_device *dev, uint32_t host_features) { in virtio_block_init()
160 static enum handler_return virtio_block_irq_driver_callback(struct virtio_device *dev, uint ring, c… in virtio_block_irq_driver_callback()
193 ssize_t virtio_block_read_write(struct virtio_device *dev, void *buf, off_t offset, size_t len, boo… in virtio_block_read_write()
301 struct virtio_block_dev *dev = containerof(bdev, struct virtio_block_dev, bdev); in virtio_bdev_read_block() local
314 struct virtio_block_dev *dev = containerof(bdev, struct virtio_block_dev, bdev); in virtio_bdev_write_block() local
/lk-master/platform/armemu/
A Dblkdev.c21 ssize_t read_block(struct bdev *dev, void *buf, bnum_t block, uint count) { in read_block()
36 ssize_t write_block(struct bdev *dev, const void *buf, bnum_t block, uint count) { in write_block()
52 static bdev_t dev; in platform_init_blkdev() local
/lk-master/external/lib/lwip/
A Dnetif.c18 struct device *dev; member
108 status_t class_netif_add(struct device *dev) in class_netif_add()
138 status_t class_netstack_input(struct device *dev, struct netstack_state *state, struct pbuf *p) in class_netstack_input()
/lk-master/lib/partition/
A Dpartition.c32 static status_t validate_mbr_partition(bdev_t *dev, const struct mbr_part *part) { in validate_mbr_partition()
58 bdev_t *dev = bio_open(device); in partition_publish() local
117 bdev_t *dev; in partition_unpublish() local
/lk-master/dev/virtio/gpu/
A Dvirtio-gpu.c36 struct virtio_device *dev; member
339 status_t virtio_gpu_start(struct virtio_device *dev) { in virtio_gpu_start()
413 status_t virtio_gpu_init(struct virtio_device *dev, uint32_t host_features) { in virtio_gpu_init()
469 static enum handler_return virtio_gpu_irq_driver_callback(struct virtio_device *dev, uint ring, con… in virtio_gpu_irq_driver_callback()
502 static enum handler_return virtio_gpu_config_change_callback(struct virtio_device *dev) { in virtio_gpu_config_change_callback()
/lk-master/dev/virtio/net/
A Dvirtio-net.c78 struct virtio_device *dev; member
127 status_t virtio_net_init(struct virtio_device *dev, uint32_t host_features) { in virtio_net_init()
316 static enum handler_return virtio_net_irq_driver_callback(struct virtio_device *dev, uint ring, con… in virtio_net_irq_driver_callback()
/lk-master/lib/fs/spifs/
A Dspifs.c62 bdev_t *dev; member
445 static status_t get_device_page_info(bdev_t *dev, uint32_t *page_size, uint32_t *page_count) { in get_device_page_info()
476 static status_t spifs_format(bdev_t *dev, const void *args) { in spifs_format()
582 static status_t spifs_mount(bdev_t *dev, fscookie **cookie) { in spifs_mount()
1144 bdev_t *dev = spifs->dev; in spifs_ioctl_get_file_addr() local
1169 bdev_t *dev = spifs->dev; in spifs_ioctl_is_linear() local
/lk-master/lib/fs/
A Dfs.c25 bdev_t *dev; member
120 bdev_t *dev = NULL; in mount() local
168 bdev_t *dev = NULL; in fs_format_device() local
/lk-master/lib/fs/spifs/test/
A Dspifstest.c156 bdev_t *dev = bio_open(dev_name); in test_write_read_normal() local
425 bdev_t *dev = bio_open(dev_name); in test_corrupt_toc() local
639 bdev_t *dev = bio_open(argv[2].str); in spifs_test() local
/lk-master/lib/fs/fat32/
A Dfat.c38 status_t fat32_mount(bdev_t *dev, fscookie **cookie) { in fat32_mount()
/lk-master/lib/bcache/
A Dbcache.c37 bdev_t *dev; member
48 bcache_t bcache_create(bdev_t *dev, size_t block_size, int block_count) { in bcache_create()
/lk-master/dev/virtio/include/dev/
A Dvirtio.h59 static inline struct vring_desc *virtio_desc_index_to_desc(struct virtio_device *dev, uint ring_ind… in virtio_desc_index_to_desc()

Completed in 35 milliseconds

12