Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 17 of 17) sorted by relevance

/dev/bus/pci/backend/
A Dtype1.cpp30 static uint16_t type1_read_byte(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset) { in type1_read_byte() argument
33 (func << 8) | (offset & 0xfc) | ((uint32_t)0x80000000)); in type1_read_byte()
39 uint8_t tmp = ((inpd(0xCFC) >> ((offset & 3) * 8)) & 0xffff); in type1_read_byte()
43 static uint16_t type1_read_half(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset) { in type1_read_half() argument
46 (func << 8) | (offset & 0xfc) | ((uint32_t)0x80000000)); in type1_read_half()
53 uint16_t tmp = ((inpd(0xCFC) >> ((offset & 2) * 8)) & 0xffff); in type1_read_half()
57 static uint32_t type1_read_word(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset) { in type1_read_word() argument
60 (func << 8) | (offset & 0xfc) | ((uint32_t)0x80000000)); in type1_read_word()
A Decam.cpp94 size_t offset = (size_t)state.bus << 20; in location_to_offset() local
95 offset += (size_t)state.dev << 15; in location_to_offset()
96 offset += (size_t)state.fn << 12; in location_to_offset()
97 offset += reg; in location_to_offset()
98 return offset; in location_to_offset()
A Dbios32.h34 uint32_t offset; member
A Dbios32.cpp129 b32_entry.offset = (uint32_t)(uintptr_t)pci->entry + KERNEL_BASE; in detect()
156 b32_entry.offset = adr + temp + KERNEL_BASE; in detect()
/dev/include/dev/class/
A Dblock.h20 ssize_t (*write)(struct device *dev, off_t offset, const void *buf, size_t count);
21 ssize_t (*read)(struct device *dev, off_t offset, void *buf, size_t count);
30 ssize_t class_block_write(struct device *dev, off_t offset, const void *buf, size_t count);
31 ssize_t class_block_read(struct device *dev, off_t offset, void *buf, size_t count);
/dev/uart/pl011/
A Duart.c64 static inline void write_uart_reg(uintptr_t base, size_t offset, uint32_t val) { in write_uart_reg() argument
65 mmio_write32((uint32_t *)(base + offset), val); in write_uart_reg()
68 static inline uint32_t read_uart_reg(uintptr_t base, size_t offset) { in read_uart_reg() argument
69 return mmio_read32((uint32_t *)(base + offset)); in read_uart_reg()
72 static inline void set_uart_reg_bits(uintptr_t base, size_t offset, uint32_t bits) { in set_uart_reg_bits() argument
73 write_uart_reg(base, offset, read_uart_reg(base, offset) | bits); in set_uart_reg_bits()
76 static inline void clear_uart_reg_bits(uintptr_t base, size_t offset, uint32_t bits) { in clear_uart_reg_bits() argument
77 write_uart_reg(base, offset, read_uart_reg(base, offset) & ~bits); in clear_uart_reg_bits()
/dev/bus/pci/
A Ddebug.cpp89 uint32_t offset; in pci_config() local
179 offset = atoui(argv[6].str); in pci_config()
184 ret = pci_read_config_byte(loc, offset, &value); in pci_config()
187 …x:%02x:%02x.%1x config offset %04x: %02x\n", loc.segment, loc.bus, loc.dev, loc.fn, offset, value); in pci_config()
193 ret = pci_read_config_half(loc, offset, &value); in pci_config()
196 …x:%02x:%02x.%1x config offset %04x: %04x\n", loc.segment, loc.bus, loc.dev, loc.fn, offset, value); in pci_config()
202 ret = pci_read_config_word(loc, offset, &value); in pci_config()
218 offset = atoui(argv[6].str); in pci_config()
223 ret = pci_write_config_byte(loc, offset, value); in pci_config()
232 ret = pci_write_config_half(loc, offset, value); in pci_config()
[all …]
/dev/class/
A Dblock_api.c34 ssize_t class_block_write(struct device *dev, off_t offset, const void *buf, size_t count) { in class_block_write() argument
40 return ops->write(dev, offset, buf, 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() argument
51 return ops->read(dev, offset, buf, count); in class_block_read()
/dev/virtio/block/include/dev/virtio/
A Dblock.h16 ssize_t virtio_block_read_write(struct virtio_device *dev, void *buf, off_t offset, size_t len, boo…
/dev/virtio/block/
A Dvirtio-block.c133 struct bdev *bdev, void *buf, off_t offset, size_t len,
306 off_t offset, size_t len, bool write, in virtio_block_do_txn() argument
314 LTRACEF("dev %p, buf %p, offset 0x%llx, len %zu\n", dev, buf, offset, len); in virtio_block_do_txn()
325 txn->req.sector = offset / 512; in virtio_block_do_txn()
438 const off_t offset, const size_t len, in virtio_block_read_write() argument
444 status_t err = virtio_block_do_txn(dev, buf, offset, len, write, in virtio_block_read_write()
471 off_t offset, size_t len, in virtio_bdev_read_async() argument
477 return virtio_block_do_txn(dev->dev, buf, offset, len, false, callback, in virtio_bdev_read_async()
/dev/virtio/9p/include/dev/virtio/
A D9p.h249 uint64_t offset; member
382 uint64_t offset; member
394 uint64_t offset; member
428 uint64_t offset; member
/dev/virtio/9p/
A Dprotocol.c40 size_t len = MIN(pdu->size - pdu->offset, size); in pdu_read()
42 memcpy(data, &pdu->sdata[pdu->offset], len); in pdu_read()
43 pdu->offset += len; in pdu_read()
49 size_t len = MIN(pdu->capacity - pdu->offset, size); in pdu_write()
188 fake_pdu.offset = 0; in p9_dirent_read()
192 ent->offset = pdu_readq(&fake_pdu); in p9_dirent_read()
199 ent->qid.type, ent->qid.version, ent->qid.path, ent->offset, ent->type, in p9_dirent_read()
202 return fake_pdu.offset; in p9_dirent_read()
432 if ((ret = pdu_writeq(&req->tc, tmsg->msg.tread.offset)) != NO_ERROR) in p9_proto_tread()
457 if ((ret = pdu_writeq(&req->tc, tmsg->msg.twrite.offset)) != NO_ERROR) in p9_proto_twrite()
[all …]
A Dprotocol.h39 size_t offset; member
A Dclient.c57 pdu->offset = 0; in pdu_reset()
/dev/virtio/gpu/
A Dvirtio_gpu.h149 uint64_t offset; member
A Dvirtio-gpu.c321 req.offset = 0; in transfer_to_host_2d()
/dev/net/e1000/
A De1000.cpp81 uint16_t read_eeprom(uint8_t offset);
133 uint16_t e1000::read_eeprom(uint8_t offset) { in read_eeprom() argument
137 write_reg(e1000_reg::EERD, (offset << 2) | 0x1); // data + start bit in read_eeprom()
143 write_reg(e1000_reg::EERD, (offset << 8) | 0x1); // data + start bit in read_eeprom()

Completed in 57 milliseconds