/barrelfish-2018-10-04/include/pci/confspace/ |
H A D | mackerelpci.h | 26 static inline uint8_t mackerel_read_pci_8(mackerel_pci_t base, int offset) argument 30 return mackerel_read_addr_8((void *)va, offset); 33 uint32_t word = pci_read_conf_header(&base, offset / 4); 34 return (word >> (offset % 4) * NBBY) & 0xff; 37 static inline uint16_t mackerel_read_pci_16(mackerel_pci_t base, int offset) argument 41 return mackerel_read_addr_16((void *)va, offset); 44 assert(offset % 2 == 0); 45 uint32_t word = pci_read_conf_header(&base, offset / 4); 46 if (offset % 4 == 0) { 53 static inline uint32_t mackerel_read_pci_32(mackerel_pci_t base, int offset) argument 66 mackerel_write_pci_8(mackerel_pci_t base, int offset, uint8_t v) argument 79 mackerel_write_pci_16(mackerel_pci_t base, int offset, uint16_t v) argument 98 mackerel_write_pci_32(mackerel_pci_t base, int offset, uint32_t v) argument [all...] |
/barrelfish-2018-10-04/include/cpuid/ |
H A D | cpuid_spaces.h | 17 #define CPUID(offset, reg) __asm volatile("cpuid" : reg : "a" (offset)) 21 static inline uint32_t cpuid_eax_read_32(cpuid_t *dev, size_t offset) argument 24 CPUID(offset, "=a" (eax)); 28 static inline uint32_t cpuid_ebx_read_32(cpuid_t *dev, size_t offset) argument 31 CPUID(offset, "=b" (ebx)); 35 static inline uint32_t cpuid_ecx_read_32(cpuid_t *dev, size_t offset) argument 38 CPUID(offset, "=c" (ecx)); 42 static inline uint32_t cpuid_edx_read_32(cpuid_t *dev, size_t offset) argument 45 CPUID(offset, " 49 cpuid_dcpa_read_32(cpuid_t *dev, size_t offset) argument 54 cpuid_dcpb_read_32(cpuid_t *dev, size_t offset) argument 59 cpuid_dcpc_read_32(cpuid_t *dev, size_t offset) argument [all...] |
/barrelfish-2018-10-04/kernel/include/arch/x86_64/ |
H A D | cpuid_spaces.h | 18 #define CPUID(offset, reg) \ 19 __asm volatile("cpuid" : reg : "a" (offset)) 21 static inline uint32_t cpuid_eax_read_32(cpuid_t *dev, size_t offset) argument 24 CPUID(offset, "=a" (eax)); 28 static inline uint32_t cpuid_ebx_read_32(cpuid_t *dev, size_t offset) argument 31 CPUID(offset, "=b" (ebx)); 35 static inline uint32_t cpuid_ecx_read_32(cpuid_t *dev, size_t offset) argument 38 CPUID(offset, "=c" (ecx)); 42 static inline uint32_t cpuid_edx_read_32(cpuid_t *dev, size_t offset) argument 45 CPUID(offset, " 49 cpuid_dcpa_read_32(cpuid_t *dev, size_t offset) argument 55 cpuid_dcpb_read_32(cpuid_t *dev, size_t offset) argument 60 cpuid_dcpc_read_32(cpuid_t *dev, size_t offset) argument 67 cpuid_eax_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 72 cpuid_ebx_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 77 cpuid_ecx_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 82 cpuid_edx_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 87 cpuid_dcpa_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 92 cpuid_dcpb_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 97 cpuid_dcpc_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument [all...] |
/barrelfish-2018-10-04/kernel/include/arch/x86/ |
H A D | ia32_spaces.h | 18 static inline uint64_t ia32_msr_read_64(ia32_t *dev, size_t offset); 19 static inline void ia32_msr_write_64(ia32_t *dev, size_t offset, 22 static inline uint32_t ia32_msr_read_32(ia32_t *dev, size_t offset); 23 static inline void ia32_msr_write_32(ia32_t *dev, size_t offset, 26 static inline uint64_t ia32_msr_read_64(ia32_t *dev, size_t offset) argument 28 return rdmsr(offset); 31 static inline void ia32_msr_write_64(ia32_t *dev, size_t offset, argument 34 wrmsr(offset, value); 37 static inline uint32_t ia32_msr_read_32(ia32_t *dev, size_t offset) argument 39 return rdmsr(offset) 42 ia32_msr_write_32(ia32_t *dev, size_t offset, uint32_t value) argument [all...] |
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/include/linux/ |
H A D | io-mapping.h | 57 io_mapping_map_atomic_wc(struct io_mapping *mapping, unsigned long offset) 60 return (((char *)mapping) + offset); 70 io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset) { argument 72 return (((char *) mapping) + offset);
|
/barrelfish-2018-10-04/kernel/include/arch/x86_32/ |
H A D | cpuid_spaces.h | 19 # define CPUID(offset, reg) \ 24 : "a" (offset) \ 27 # define CPUID(offset, reg) \ 28 __asm volatile("cpuid" : reg : "a" (offset)) 31 static inline uint32_t cpuid_eax_read_32(cpuid_t *dev, size_t offset) argument 34 CPUID(offset, "=a" (eax)); 38 static inline uint32_t cpuid_ebx_read_32(cpuid_t *dev, size_t offset) argument 48 : "a" (offset) 51 CPUID(offset, "=b" (ebx)); 56 static inline uint32_t cpuid_ecx_read_32(cpuid_t *dev, size_t offset) argument 63 cpuid_edx_read_32(cpuid_t *dev, size_t offset) argument 70 cpuid_dcpa_read_32(cpuid_t *dev, size_t offset) argument 75 cpuid_dcpb_read_32(cpuid_t *dev, size_t offset) argument 80 cpuid_dcpc_read_32(cpuid_t *dev, size_t offset) argument 85 cpuid_eax_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 90 cpuid_ebx_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 95 cpuid_ecx_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 100 cpuid_edx_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 105 cpuid_dcpa_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 110 cpuid_dcpb_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument 115 cpuid_dcpc_write_32(cpuid_t *dev, size_t offset, uint32_t value) argument [all...] |
/barrelfish-2018-10-04/usr/acpi/ |
H A D | lpc_ioapic_spaces.h | 19 size_t offset); 21 size_t offset); 22 static inline void lpc_ioapic_ioapic_write_32(lpc_ioapic_t *dev, size_t offset, 24 static inline void lpc_ioapic_ioapic_write_64(lpc_ioapic_t *dev, size_t offset,
|
H A D | lpc_ioapic_ioapic_impl.h | 19 size_t offset) 22 lpc_ioapic_ind_wr(dev, offset); 29 size_t offset) 34 lpc_ioapic_ind_wr(dev, offset); 38 lpc_ioapic_ind_wr(dev, offset + 1); 44 static inline void lpc_ioapic_ioapic_write_32(lpc_ioapic_t *dev, size_t offset, argument 48 lpc_ioapic_ind_wr(dev, offset); 54 static inline void lpc_ioapic_ioapic_write_64(lpc_ioapic_t *dev, size_t offset, argument 58 lpc_ioapic_ind_wr(dev, offset); 62 lpc_ioapic_ind_wr(dev, offset 18 lpc_ioapic_ioapic_read_32(lpc_ioapic_t *dev, size_t offset) argument 28 lpc_ioapic_ioapic_read_64(lpc_ioapic_t *dev, size_t offset) argument [all...] |
/barrelfish-2018-10-04/include/mackerel/ |
H A D | mackerel.h | 34 static inline uint8_t mackerel_read_addr_8( mackerel_addr_t base, int offset) argument 36 volatile uint8_t *p = (volatile uint8_t *)(base + offset); 40 static inline uint16_t mackerel_read_addr_16( mackerel_addr_t base, int offset) argument 42 volatile uint16_t *p = (volatile uint16_t *)(base + offset); 45 static inline uint32_t mackerel_read_addr_32( mackerel_addr_t base, int offset) argument 47 volatile uint32_t *p = (volatile uint32_t *)(base + offset); 50 static inline uint64_t mackerel_read_addr_64( mackerel_addr_t base, int offset) argument 52 volatile uint64_t *p = (volatile uint64_t *)(base + offset); 60 int offset, uint8_t v) 62 volatile uint8_t *p = (volatile uint8_t *)(base + offset); 59 mackerel_write_addr_8( mackerel_addr_t base, int offset, uint8_t v) argument 66 mackerel_write_addr_16( mackerel_addr_t base, int offset, uint16_t v) argument 72 mackerel_write_addr_32( mackerel_addr_t base, int offset, uint32_t v) argument 78 mackerel_write_addr_64( mackerel_addr_t base, int offset, uint64_t v) argument [all...] |
H A D | io.h | 27 static inline uint8_t mackerel_read_io_8( mackerel_io_t base, int offset) argument 29 volatile uint8_t result = inb(base+offset); 32 static inline uint16_t mackerel_read_io_16( mackerel_io_t base, int offset) argument 34 return inw(base+offset); 36 static inline uint32_t mackerel_read_io_32( mackerel_io_t base, int offset) argument 38 return ind(base+offset); 44 static inline void mackerel_write_io_8( mackerel_io_t base, int offset, volatile uint8_t v) argument 46 outb(base+offset, v); 48 static inline void mackerel_write_io_16( mackerel_io_t base, int offset, uint16_t v) argument 50 outw(base+offset, 52 mackerel_write_io_32( mackerel_io_t base, int offset, uint32_t v) argument 66 mackerel_read_io_8( mackerel_io_t base, int offset) argument 75 mackerel_read_io_16( mackerel_io_t base, int offset) argument 84 mackerel_read_io_32( mackerel_io_t base, int offset) argument 97 mackerel_write_io_8( mackerel_io_t base, int offset, uint8_t v) argument 104 mackerel_write_io_16( mackerel_io_t base, int offset, uint16_t v) argument 111 mackerel_write_io_32( mackerel_io_t base, int offset, uint32_t v) argument [all...] |
/barrelfish-2018-10-04/lib/posixcompat/ |
H A D | ftruncate.c | 13 int ftruncate(int fd, __off_t offset) argument
|
H A D | mmap.c | 14 void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) argument 17 addr, length, prot, flags, fd, offset);
|
H A D | sbrk.c | 43 static size_t offset = 0; local 67 if (-increment > offset) { 68 USER_PANIC("sbrk() called with negative increment beyond offset"); 70 orig_offset = offset; 71 offset += increment; 77 return base + offset; 78 } else if (offset + increment > SBRK_REGION_BYTES) { 79 debug_printf("sbrk() exceeded static region limit of %zu bytes, offset: %zu\n", 80 (size_t)SBRK_REGION_BYTES, offset); 82 } else if (offset [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/apps/snmp/ |
H A D | snmp_pbuf_stream.c | 47 snmp_pbuf_stream_init(struct snmp_pbuf_stream* pbuf_stream, struct pbuf* p, u16_t offset, u16_t length) argument 49 pbuf_stream->offset = offset; 63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { 67 pbuf_stream->offset++; 86 if (pbuf_take_at(pbuf_stream->pbuf, buf, buf_len, pbuf_stream->offset) != ERR_OK) { 90 pbuf_stream->offset += buf_len; 115 struct pbuf* pbuf = pbuf_skip(pbuf_stream->pbuf, pbuf_stream->offset, &target_offset); 127 pbuf_stream->offset += chunk_len; 136 snmp_pbuf_stream_seek(struct snmp_pbuf_stream* pbuf_stream, s32_t offset) argument 150 snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream* pbuf_stream, u32_t offset) argument [all...] |
H A D | snmp_pbuf_stream.h | 55 u16_t offset; member in struct:snmp_pbuf_stream 59 err_t snmp_pbuf_stream_init(struct snmp_pbuf_stream* pbuf_stream, struct pbuf* p, u16_t offset, u16_t length); 64 err_t snmp_pbuf_stream_seek(struct snmp_pbuf_stream* pbuf_stream, s32_t offset); 65 err_t snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream* pbuf_stream, u32_t offset);
|
/barrelfish-2018-10-04/include/x86emu/ |
H A D | decode.h | 63 u8 fetch_data_byte (uint offset); 64 u8 fetch_data_byte_abs (uint segment, uint offset); 65 u16 fetch_data_word (uint offset); 66 u16 fetch_data_word_abs (uint segment, uint offset); 67 u32 fetch_data_long (uint offset); 68 u32 fetch_data_long_abs (uint segment, uint offset); 69 void store_data_byte (uint offset, u8 val); 70 void store_data_byte_abs (uint segment, uint offset, u8 val); 71 void store_data_word (uint offset, u16 val); 72 void store_data_word_abs (uint segment, uint offset, u1 [all...] |
/barrelfish-2018-10-04/lib/devif/backends/debug/ |
H A D | devif_backend_debug.c | 32 * Each chunk specifies a offset within the region and its length. 35 * the whole region i.e. offset=0 length= length of region 40 * end of the chunk, the offset/length of the chunk is changed accordingly 49 * case we add the region with the deqeued offset+length as a size. 62 genoffset_t offset; member in struct:memory_ele 79 genoffset_t offset; member in struct:operation 101 printf("Idx=%d offset=%lu length=%lu", index, ele->offset, 105 printf(" prev->offset=%lu prev->length=%lu", ele->prev->offset, 129 add_to_history(struct debug_q* q, genoffset_t offset, genoffset_t length, char* s) argument 351 remove_split_buffer(struct debug_q* que, struct memory_list* region, struct memory_ele* buffer, genoffset_t offset, genoffset_t length) argument 459 insert_merge_buffer(struct debug_q* que, struct memory_list* region, struct memory_ele* buffer, genoffset_t offset, genoffset_t length) argument 652 debug_enqueue(struct devq* q, regionid_t rid, genoffset_t offset, genoffset_t length, genoffset_t valid_data, genoffset_t valid_length, uint64_t flags) argument 725 debug_dequeue(struct devq* q, regionid_t* rid, genoffset_t* offset, genoffset_t* length, genoffset_t* valid_data, genoffset_t* valid_length, uint64_t* flags) argument [all...] |
/barrelfish-2018-10-04/include/barrelfish/ |
H A D | vspace_layout.h | 32 genvaddr_t offset; member in struct:vspace_layout 58 return ((genvaddr_t)lvaddr + l->offset); 67 assert(genvaddr >= l->offset && 68 genvaddr <= ((genvaddr_t)l->offset + l->size)); 69 return (lvaddr_t)(genvaddr - l->offset);
|
/barrelfish-2018-10-04/tools/ds5/configdb/ |
H A D | bootDebug.py | 22 offset = int(kernel_start) - LINKADDRESS variable 24 print "Kernel loaded at: %08x" % int(kernel_start), " linked at %08x" % LINKADDRESS, " offset %08x" % offset 27 im.addSymbols('Barrelfish/armv7/sbin/cpu_a9ve', offset)
|
H A D | kernelDebug.py | 22 offset = int(kernel_start) - LINKADDRESS variable 24 print "Kernel loaded at: %08x" % int(kernel_start), " linked at %08x" % LINKADDRESS, " offset %08x" % offset 27 im.addSymbols('Barrelfish/armv7/sbin/cpu_a9ve', offset)
|
H A D | kernelDebug_A15.py | 22 offset = int(kernel_start) - LINKADDRESS variable 24 print "Kernel loaded at: %08x" % int(kernel_start), " linked at %08x" % LINKADDRESS, " offset %08x" % offset 27 im.addSymbols('Barrelfish/armv7/sbin/cpu_a15ve', offset)
|
/barrelfish-2018-10-04/lib/openssl-1.0.0d/demos/tunala/ |
H A D | breakage.c | 44 unsigned int offset = 0; local 50 if(sub_haystack[offset] == sub_needle) { 52 offset++; 57 offset = 0;
|
/barrelfish-2018-10-04/include/ahci/ |
H A D | ahci_dma_pool.h | 26 static inline void *ahci_dma_region_copy_in(struct ahci_dma_region *region, const void *buf, genvaddr_t offset, size_t size) { argument 27 void *dest = (char *)region->vaddr + offset; 30 static inline void *ahci_dma_region_copy_out(struct ahci_dma_region *region, void *buf, genvaddr_t offset, size_t size) { argument 31 void *src_ = (char *)region->vaddr + offset;
|
/barrelfish-2018-10-04/lib/barrelfish/vspace/arch/arm/ |
H A D | layout.c | 23 l->offset = 0;
|
/barrelfish-2018-10-04/lib/barrelfish/vspace/ |
H A D | memobj_anon.c | 96 //printf("fwalk->offset = %zd\n", fwalk->offset); 98 if (fwalk->offset < vregion_off) { 103 else if (fwalk->offset < vregion_end) { 139 * \param offset Offset into the memory object 144 genvaddr_t offset, size_t range, vs_prot_flags_t flags) 157 //printf("(%s:%d) protect(0x%"PRIxGENVADDR", memobj->size = %zd) vregion size = %zd offset=%zd range=%zd\n", __FILE__, __LINE__, vregion_base + vregion_off, memobj->size, vregion_size, offset, range); 159 if (offset + range > vregion_end) { 163 offset 143 protect(struct memobj *memobj, struct vregion *vregion, genvaddr_t offset, size_t range, vs_prot_flags_t flags) argument 211 pin(struct memobj *memobj, struct vregion *vregion, genvaddr_t offset, size_t range) argument 225 unpin(struct memobj *memobj, struct vregion *vregion, genvaddr_t offset, size_t range) argument 241 fill_foff(struct memobj *memobj, genvaddr_t offset, struct capref frame, size_t size, genpaddr_t foffset) argument 329 fill(struct memobj *memobj, genvaddr_t offset, struct capref frame, size_t size) argument 346 unfill(struct memobj *memobj, genvaddr_t offset, struct capref *ret_frame, genvaddr_t *ret_offset) argument 416 pagefault(struct memobj *memobj, struct vregion *vregion, genvaddr_t offset, vm_fault_type_t type) argument [all...] |