/barrelfish-2018-10-04/usr/eclipseclp/Shm/src/ |
H A D | shmem_base.c | 29 * CONTENTS Computation of the shm base address 70 char *base, *env_shmbase; local 75 base = (char *) strtol(env_shmbase, 0, 0); 82 base = (char *) 0x40000000; 86 base = (char *) 0x30000000; 95 base = (char *) 0; 99 base = (char *) (161*MB); 103 base = (char *) 0x200000000; 105 base = (char *) 0x20000000; 109 base [all...] |
/barrelfish-2018-10-04/tools/usbboot/arch/omap4/ |
H A D | sdram.c | 105 void reset_phy(unsigned int base) argument 107 writel(readl(base + IODFT_TLGC) | (1 << 10), 108 base + IODFT_TLGC); 115 static void emif_config(unsigned int base, const struct ddr_regs *ddr_regs) argument 129 writel(readl(base + EMIF_LPDDR2_NVM_CONFIG) & 0xBFFFFFFF, 130 base + EMIF_LPDDR2_NVM_CONFIG); 131 writel(ddr_regs->config_init, base + EMIF_SDRAM_CONFIG); 134 writel(DDR_PHY_CTRL_1_INIT, base + EMIF_DDR_PHY_CTRL_1); 135 writel(ddr_regs->phy_ctrl_1, base + EMIF_DDR_PHY_CTRL_1_SHDW); 140 writel(READ_IDLE_CTRL, base [all...] |
H A D | gpio.c | 49 unsigned base = gpio_base[ gpio / 32 ]; local 53 writel(0, base + GPIO_CTRL); 56 writel(readl(base + GPIO_OE) & (~bit), base + GPIO_OE); 59 writel(bit, base + (set ? GPIO_SET : GPIO_CLEAR)); 64 unsigned base = gpio_base[ gpio / 32 ]; local 68 /* writel(0, base + GPIO_CTRL); */ 70 if(readl(base + GPIO_OE) & bit) { 71 return (readl(base + GPIO_DATAIN) & bit) != 0; 73 return (readl(base [all...] |
/barrelfish-2018-10-04/kernel/ |
H A D | stdlib.c | 71 long int strtol(const char *nptr, char **endptr, int base) argument 73 assert(base == 10 || base == 16); 79 (base == 10 && isdigit((int)nptr[i])) || (base == 16 && isxdigit((int)nptr[i])); 82 retval = retval * base + ascii_to_int(nptr[i]); 92 unsigned long int strtoul(const char *nptr, char **endptr, int base) argument 94 assert(base == 10 || base == 16); 100 (base 116 strtoull(const char *nptr, char **endptr, int base) argument 121 strtoll(const char *nptr, char **endptr, int base) argument [all...] |
/barrelfish-2018-10-04/usr/drivers/usb/usb_manager/ |
H A D | platform.h | 5 usb_error_t platform_checkup(uintptr_t base, int argc, char *argv[]);
|
/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); 59 static inline void mackerel_write_addr_8( mackerel_addr_t base, argument 62 volatile uint8_t *p = (volatile uint8_t *)(base 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 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/include/pci/confspace/ |
H A D | mackerelpci.h | 26 static inline uint8_t mackerel_read_pci_8(mackerel_pci_t base, int offset) argument 28 lvaddr_t va = pcie_confspace_access(base); 33 uint32_t word = pci_read_conf_header(&base, offset / 4); 37 static inline uint16_t mackerel_read_pci_16(mackerel_pci_t base, int offset) argument 39 lvaddr_t va = pcie_confspace_access(base); 45 uint32_t word = pci_read_conf_header(&base, offset / 4); 53 static inline uint32_t mackerel_read_pci_32(mackerel_pci_t base, int offset) argument 55 lvaddr_t va = pcie_confspace_access(base); 61 return pci_read_conf_header(&base, offset / 4); 64 //static inline uint64_t mackerel_read_pci_64(mackerel_pci_t base, in 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/lib/libc/iconv/ |
H A D | _strtoul.h | 46 _FUNCNAME(const char *nptr, char **endptr, int base) argument 53 /* check base value */ 54 if (base && (base < 2 || base > 36)) { 59 panic("%s: invalid base %d", __func__, base); 65 * If base is 0, allow 0x for hex and 0 for octal, else 66 * assume decimal; if base is already 16, allow 0x. 80 if ((base [all...] |
H A D | _strtol.h | 47 _FUNCNAME(const char *nptr, char **endptr, int base) argument 54 /* check base value */ 55 if (base && (base < 2 || base > 36)) { 63 panic("%s: invalid base %d", __func__, base); 69 * If base is 0, allow 0x for hex and 0 for octal, else 70 * assume decimal; if base is already 16, allow 0x. 84 if ((base [all...] |
/barrelfish-2018-10-04/lib/libc/stdlib/ |
H A D | qsort_r.c | 14 qsort_b(void *base, size_t nel, size_t width, qsort_block compar) argument 16 qsort_r(base, nel, width, compar,
|
H A D | strtoimax.c | 54 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 66 * If base is 0, allow 0x for hex and 0 for octal, else 67 * assume decimal; if base is already 16, allow 0x. 81 if ((base == 0 || base == 16) && 88 base = 16; 90 if (base == 0) 91 base = c == '0' ? 8 : 10; 93 if (base < 2 || base > 3 150 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtol.c | 55 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 67 * If base is 0, allow 0x for hex and 0 for octal, else 68 * assume decimal; if base is already 16, allow 0x. 82 if ((base == 0 || base == 16) && 89 base = 16; 91 if (base == 0) 92 base = c == '0' ? 8 : 10; 94 if (base < 2 || base > 3 150 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoll.c | 54 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 66 * If base is 0, allow 0x for hex and 0 for octal, else 67 * assume decimal; if base is already 16, allow 0x. 81 if ((base == 0 || base == 16) && 88 base = 16; 90 if (base == 0) 91 base = c == '0' ? 8 : 10; 93 if (base < 2 || base > 3 150 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoul.c | 54 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) argument 78 if ((base == 0 || base == 16) && 85 base = 16; 87 if (base == 0) 88 base = c == '0' ? 8 : 10; 90 if (base < 2 || base > 36) 93 cutoff = ULONG_MAX / base; 94 cutlim = ULONG_MAX % base; 127 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoull.c | 54 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 79 if ((base == 0 || base == 16) && 86 base = 16; 88 if (base == 0) 89 base = c == '0' ? 8 : 10; 91 if (base < 2 || base > 36) 94 cutoff = ULLONG_MAX / base; 95 cutlim = ULLONG_MAX % base; 128 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoumax.c | 54 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 79 if ((base == 0 || base == 16) && 86 base = 16; 88 if (base == 0) 89 base = c == '0' ? 8 : 10; 91 if (base < 2 || base > 36) 94 cutoff = UINTMAX_MAX / base; 95 cutlim = UINTMAX_MAX % base; 128 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
/barrelfish-2018-10-04/kernel/include/ |
H A D | paging_kernel_helper.h | 21 * \param vbase Virtual base address of mapping. 22 * \param base Physical base address of mapping. 26 static inline void paging_align(lvaddr_t *vbase, lpaddr_t *base, size_t *size, argument 40 // Check whether base is aligned 41 // assert(((*base) & pagemask) == 0); 42 // Align base to page size 43 if(base != NULL && (*base & pagemask)) { 45 "page size %zu\n", *base, pagesiz [all...] |
/barrelfish-2018-10-04/lib/libc/locale/ |
H A D | wcstol.c | 50 base, locale_t locale) 74 if ((base == 0 || base == 16) && 78 base = 16; 80 if (base == 0) 81 base = c == L'0' ? 8 : 10; 83 if (base < 2 || base > 36) 88 cutlim = cutoff % base; 89 cutoff /= base; 49 wcstol_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 127 wcstol(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoll.c | 56 int base, locale_t locale) 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == L'0' ? 8 : 10; 89 if (base < 2 || base > 36) 94 cutlim = cutoff % base; 95 cutoff /= base; 55 wcstoll_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 133 wcstoll(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoul.c | 50 int base, locale_t locale) 74 if ((base == 0 || base == 16) && 78 base = 16; 80 if (base == 0) 81 base = c == L'0' ? 8 : 10; 83 if (base < 2 || base > 36) 86 cutoff = ULONG_MAX / base; 87 cutlim = ULONG_MAX % base; 49 wcstoul_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 125 wcstoul(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoull.c | 56 int base, locale_t locale) 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == L'0' ? 8 : 10; 89 if (base < 2 || base > 36) 92 cutoff = ULLONG_MAX / base; 93 cutlim = ULLONG_MAX % base; 55 wcstoull_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 131 wcstoull(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoumax.c | 56 int base, locale_t locale) 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == L'0' ? 8 : 10; 89 if (base < 2 || base > 36) 92 cutoff = UINTMAX_MAX / base; 93 cutlim = UINTMAX_MAX % base; 55 wcstoumax_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 131 wcstoumax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
/barrelfish-2018-10-04/include/target/x86_32/barrelfish_kpi/ |
H A D | paging_target.h | 26 /** The system's base page size is 4kB */ 96 #define X86_32_PDPTE_BASE(base) (((uint32_t)(base) >> 30) & X86_32_PDPTE_MASK) 97 #define X86_32_PDIR_BASE(base) (((uint32_t)(base) >> 21) & X86_32_PTABLE_MASK) 98 #define X86_32_PTABLE_BASE(base) (((uint32_t)(base) >> 12) & X86_32_PTABLE_MASK) 100 #define X86_32_PDIR_BASE(base) (((uint32_t)(base) >> 22) & X86_32_PTABLE_MASK) 101 #define X86_32_PTABLE_BASE(base) (((uint32_ [all...] |
/barrelfish-2018-10-04/lib/getopt/ |
H A D | getopt.c | 26 int base; local 28 // determine base (0x -> hex, anything else -> decimal) 30 base = 16; 33 base = 10; 36 unsigned long long x = strtoull(val, NULL, base); 47 int base; local 49 // determine base (0x -> hex, anything else -> decimal) 51 base = 16; 54 base = 10; 57 long long x = strtoll(val, NULL, base); 67 int base; local 88 int base; local [all...] |