/openbmc/u-boot/arch/nds32/lib/ |
H A D | cache.c | 44 unsigned long end, line_size; in invalidate_icache_all() local 46 end = line_size * CACHE_WAY(ICACHE) * CACHE_SET(ICACHE); in invalidate_icache_all() 48 end -= line_size; in invalidate_icache_all() 49 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() 51 end -= line_size; in invalidate_icache_all() 52 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() 54 end -= line_size; in invalidate_icache_all() 55 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() 56 end -= line_size; in invalidate_icache_all() 57 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() [all …]
|
/openbmc/linux/kernel/ |
H A D | range.c | 12 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument 14 if (start >= end) in add_range() 22 range[nr_range].end = end; in add_range() 30 u64 start, u64 end) in add_range_with_merge() argument 34 if (start >= end) in add_range_with_merge() 41 if (!range[i].end) in add_range_with_merge() 45 common_end = min(range[i].end, end); in add_range_with_merge() 51 end = max(range[i].end, end); in add_range_with_merge() 56 range[nr_range - 1].end = 0; in add_range_with_merge() 62 return add_range(range, az, nr_range, start, end); in add_range_with_merge() [all …]
|
H A D | resource.c | 36 .end = IO_SPACE_LIMIT, 44 .end = -1, 112 unsigned long long start, end; in r_show() local 113 int width = root->end < 0x10000 ? 4 : 8; in r_show() 122 end = r->end; in r_show() 124 start = end = 0; in r_show() 130 width, end, in r_show() 174 resource_size_t end = new->end; in __request_resource() local 177 if (end < start) in __request_resource() 181 if (end > root->end) in __request_resource() [all …]
|
/openbmc/linux/include/linux/ceph/ |
H A D | decode.h | 52 static inline bool ceph_has_room(void **p, void *end, size_t n) in ceph_has_room() argument 54 return end >= *p && n <= end - *p; in ceph_has_room() 57 #define ceph_decode_need(p, end, n, bad) \ argument 59 if (!likely(ceph_has_room(p, end, n))) \ 63 #define ceph_decode_64_safe(p, end, v, bad) \ argument 65 ceph_decode_need(p, end, sizeof(u64), bad); \ 68 #define ceph_decode_32_safe(p, end, v, bad) \ argument 70 ceph_decode_need(p, end, sizeof(u32), bad); \ 73 #define ceph_decode_16_safe(p, end, v, bad) \ argument 75 ceph_decode_need(p, end, sizeof(u16), bad); \ [all …]
|
/openbmc/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_ethtool.c | 85 int end; member 96 .end = 24, 103 .end = 16, 110 .end = 8, 117 .end = 0, 125 .end = 27, 132 .end = 26, 139 .end = 25, 146 .end = 24, 153 .end = 23, [all …]
|
/openbmc/linux/arch/mips/pci/ |
H A D | pci-malta.c | 31 .end = 0x000fffffUL, 81 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local 104 end = GT_READ(GT_PCI0M0HD_OFS); in mips_pcibios_init() 106 end = (end & GT_PCI_HD_MSK) | (start & ~GT_PCI_HD_MSK); in mips_pcibios_init() 112 if (end1 - start1 > end - start) { in mips_pcibios_init() 114 end = end1; in mips_pcibios_init() 117 mask = ~(start ^ end); in mips_pcibios_init() 122 gt64120_mem_resource.end = end; in mips_pcibios_init() 126 gt64120_mem_resource.end <<= GT_PCI_DCRM_SHF; in mips_pcibios_init() 127 gt64120_mem_resource.end |= (1 << GT_PCI_DCRM_SHF) - 1; in mips_pcibios_init() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | pel_utils.cpp | 173 data.insert(data.end(), privateHeaderSection.begin(), in pelDataFactory() 174 privateHeaderSection.end()); in pelDataFactory() 175 data.insert(data.end(), userHeaderSection.begin(), in pelDataFactory() 176 userHeaderSection.end()); in pelDataFactory() 177 data.insert(data.end(), srcSectionNoCallouts.begin(), in pelDataFactory() 178 srcSectionNoCallouts.end()); in pelDataFactory() 179 data.insert(data.end(), failingMTMSSection.begin(), in pelDataFactory() 180 failingMTMSSection.end()); in pelDataFactory() 181 data.insert(data.end(), UserDataSection.begin(), in pelDataFactory() 182 UserDataSection.end()); in pelDataFactory() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste_v2.c | 41 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_SRC_L2_OUT_0, .start = 0, .end = 31, 44 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_SRC_L2_OUT_1, .start = 16, .end = 31, 47 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L2_OUT_1, .start = 0, .end = 15, 50 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L2_OUT_0, .start = 0, .end = 31, 53 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L2_OUT_1, .start = 16, .end = 31, 56 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L3_OUT_0, .start = 18, .end = 23, 59 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L4_OUT_1, .start = 16, .end = 24, 63 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L4_OUT_0, .start = 16, .end = 31, 67 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L4_OUT_0, .start = 0, .end = 15, 71 .hw_field = DR_STE_V2_ACTION_MDFY_FLD_L3_OUT_0, .start = 8, .end = 15, [all …]
|
/openbmc/u-boot/arch/nios2/lib/ |
H A D | cache.c | 13 static void __flush_dcache(unsigned long start, unsigned long end) in __flush_dcache() argument 18 end += (gd->arch.dcache_line_size - 1); in __flush_dcache() 19 end &= ~(gd->arch.dcache_line_size - 1); in __flush_dcache() 21 for (addr = start; addr < end; addr += gd->arch.dcache_line_size) { in __flush_dcache() 29 static void __flush_dcache_all(unsigned long start, unsigned long end) in __flush_dcache_all() argument 34 end += (gd->arch.dcache_line_size - 1); in __flush_dcache_all() 35 end &= ~(gd->arch.dcache_line_size - 1); in __flush_dcache_all() 37 if (end > start + gd->arch.dcache_size) in __flush_dcache_all() 38 end = start + gd->arch.dcache_size; in __flush_dcache_all() 40 for (addr = start; addr < end; addr += gd->arch.dcache_line_size) { in __flush_dcache_all() [all …]
|
/openbmc/linux/fs/ceph/ |
H A D | mdsmap.c | 57 #define __decode_and_drop_type(p, end, type, bad) \ argument 59 if (*p + sizeof(type) > end) \ 64 #define __decode_and_drop_set(p, end, type, bad) \ argument 68 ceph_decode_32_safe(p, end, n, bad); \ 70 ceph_decode_need(p, end, need, bad); \ 74 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 78 ceph_decode_32_safe(p, end, n, bad); \ 80 ceph_decode_need(p, end, need, bad); \ 85 static int __decode_and_drop_compat_set(void **p, void* end) in __decode_and_drop_compat_set() argument 91 ceph_decode_need(p, end, sizeof(u64) + sizeof(u32), bad); in __decode_and_drop_compat_set() [all …]
|
/openbmc/linux/arch/microblaze/kernel/cpu/ |
H A D | cache.c | 92 #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \ argument 96 end = min(start + cache_size, end); \ 125 #define CACHE_RANGE_LOOP_2(start, end, line_length, op) \ argument 130 end = ((end & align) == end) ? end - line_length : end & align; \ 131 count = end - start; \ 142 #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ argument 146 end = ((end & align) == end) ? end - line_length : end & align; \ 147 WARN_ON(end < start); \ 153 : : "r" (temp), "r" (start), "r" (end), \ 159 static void __flush_icache_range_msr_irq(unsigned long start, unsigned long end) in __flush_icache_range_msr_irq() argument [all …]
|
/openbmc/linux/lib/ |
H A D | vsprintf.c | 456 char *number(char *buf, char *end, unsigned long long num, in number() argument 520 if (buf < end) in number() 527 if (buf < end) in number() 534 if (buf < end) in number() 539 if (buf < end) in number() 549 if (buf < end) in number() 556 if (buf < end) in number() 562 if (buf < end) in number() 568 if (buf < end) in number() 577 char *special_hex_number(char *buf, char *end, unsigned long long num, int size) in special_hex_number() argument [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | extent-io-tree.c | 47 state->start, state->end, state->state, in btrfs_extent_state_leak_debug_check() 55 #define btrfs_debug_check_extent_io_range(tree, start, end) \ argument 56 __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end)) 59 u64 start, u64 end) in __btrfs_debug_check_extent_io_range() argument 68 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) { in __btrfs_debug_check_extent_io_range() 71 caller, btrfs_ino(inode), isize, start, end); in __btrfs_debug_check_extent_io_range() 92 u64 end; member 190 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset() 191 ret = ulist_add(&changeset->range_changed, state->start, state->end, in add_extent_changeset() 249 else if (offset > entry->end) in tree_search_for_insert() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | block-range.c | 22 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug() 24 old = entry->end; in block_range__debug() 41 else if (addr > entry->end) in block_range__find() 77 struct block_range_iter block_range__create(u64 start, u64 end) in block_range__create() argument 90 else if (start > entry->end) in block_range__create() 108 if (entry->end < start) { in block_range__create() 115 if (next->start <= end) { /* add head: [start...][n->start...] */ in block_range__create() 122 .end = next->start - 1, in block_range__create() 145 .end = end, in block_range__create() 155 iter.end = entry; in block_range__create() [all …]
|
H A D | time-utils.c | 21 char *end; in parse_nsec_time() local 23 time_sec = strtoull(str, &end, 10); in parse_nsec_time() 24 if (*end != '.' && *end != '\0') in parse_nsec_time() 27 if (*end == '.') { in parse_nsec_time() 31 if (strlen(++end) > 9) in parse_nsec_time() 34 strncpy(nsec_buf, end, 9); in parse_nsec_time() 41 time_nsec = strtoull(nsec_buf, &end, 10); in parse_nsec_time() 42 if (*end != '\0') in parse_nsec_time() 60 (parse_nsec_time(end_str, &ptime->end) != 0)) { in parse_timestr_sec_nsec() 67 static int split_start_end(char **start, char **end, const char *ostr, char ch) in split_start_end() argument [all …]
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | unaccepted_memory.c | 15 unsigned long end; member 32 void accept_memory(phys_addr_t start, phys_addr_t end) in accept_memory() argument 52 if (end < unaccepted->phys_base) in accept_memory() 57 end -= unaccepted->phys_base; in accept_memory() 84 if (!(end % unit_size)) in accept_memory() 85 end += unit_size; in accept_memory() 88 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in accept_memory() 89 end = unaccepted->size * unit_size * BITS_PER_BYTE; in accept_memory() 92 range.end = DIV_ROUND_UP(end, unit_size); in accept_memory() 104 if (entry->end <= range.start) in accept_memory() [all …]
|
/openbmc/linux/arch/arm/mach-pxa/ |
H A D | devices.c | 39 .end = IRQ_PMU, 53 .end = 0x41100fff, 58 .end = IRQ_MMC, 88 .end = 0x4060ffff, 93 .end = IRQ_USB, 125 .end = 0x4400ffff, 130 .end = IRQ_LCD, 157 .end = 0x40100023, 161 .end = IRQ_FFUART, 181 .end = 0x40200023, [all …]
|
/openbmc/qemu/include/hw/ppc/ |
H A D | xive2_regs.h | 112 #define xive2_end_is_valid(end) (be32_to_cpu((end)->w0) & END2_W0_VALID) argument 113 #define xive2_end_is_enqueue(end) (be32_to_cpu((end)->w0) & END2_W0_ENQUEUE) argument 114 #define xive2_end_is_notify(end) \ argument 115 (be32_to_cpu((end)->w0) & END2_W0_UCOND_NOTIFY) 116 #define xive2_end_is_backlog(end) (be32_to_cpu((end)->w0) & END2_W0_BACKLOG) argument 117 #define xive2_end_is_precluded_escalation(end) \ argument 118 (be32_to_cpu((end)->w0) & END2_W0_PRECL_ESC_CTL) 119 #define xive2_end_is_escalate(end) \ argument 120 (be32_to_cpu((end)->w0) & END2_W0_ESCALATE_CTL) 121 #define xive2_end_is_uncond_escalation(end) \ argument [all …]
|
/openbmc/linux/arch/nios2/mm/ |
H A D | cacheflush.c | 19 static void __flush_dcache(unsigned long start, unsigned long end) in __flush_dcache() argument 24 end += (cpuinfo.dcache_line_size - 1); in __flush_dcache() 25 end &= ~(cpuinfo.dcache_line_size - 1); in __flush_dcache() 27 if (end > start + cpuinfo.dcache_size) in __flush_dcache() 28 end = start + cpuinfo.dcache_size; in __flush_dcache() 30 for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { in __flush_dcache() 38 static void __invalidate_dcache(unsigned long start, unsigned long end) in __invalidate_dcache() argument 43 end += (cpuinfo.dcache_line_size - 1); in __invalidate_dcache() 44 end &= ~(cpuinfo.dcache_line_size - 1); in __invalidate_dcache() 46 for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { in __invalidate_dcache() [all …]
|
/openbmc/linux/tools/workqueue/ |
H A D | wq_dump.py | 103 print(' pod_cpus', end='') 105 print(f' [{pod}]={cpumask_str(pt.pod_cpus[pod])}', end='') 108 print(' pod_node', end='') 110 print(f' [{pod}]={pt.pod_node[pod].value_()}', end='') 113 print(f' cpu_pod ', end='') 115 print(f' [{cpu}]={pt.cpu_pod[cpu].value_()}', end='') 136 …ool_id_len}}] ref={pool.refcnt.value_():{max_ref_len}} nice={pool.attrs.nice.value_():3} ', end='') 137 print(f'idle/workers={pool.nr_idle.value_():3}/{pool.nr_workers.value_():3} ', end='') 139 print(f'cpu={pool.cpu.value_():3}', end='') 141 print(f'cpus={cpumask_str(pool.attrs.cpumask)}', end='') [all …]
|
/openbmc/linux/arch/x86/pci/ |
H A D | amd_bus.c | 80 u64 end; in early_root_info_init() local 169 end = (reg & 0xfff000) | 0xfff; in early_root_info_init() 176 node, link, start, end); in early_root_info_init() 179 if (end > 0xffff) in early_root_info_init() 180 end = 0xffff; in early_root_info_init() 181 update_res(info, start, end, IORESOURCE_IO, 1); in early_root_info_init() 182 subtract_range(range, RANGE_NUM, start, end + 1); in early_root_info_init() 189 if (!range[i].end) in early_root_info_init() 192 update_res(info, range[i].start, range[i].end - 1, in early_root_info_init() 199 end = cap_resource((0xfdULL<<32) - 1); in early_root_info_init() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | guest_sprintf.c | 6 #define APPEND_BUFFER_SAFE(str, end, v) \ argument 8 GUEST_ASSERT(str < end); \ 43 static char *number(char *str, const char *end, long num, int base, int size, in number() argument 94 APPEND_BUFFER_SAFE(str, end, ' '); in number() 96 APPEND_BUFFER_SAFE(str, end, sign); in number() 99 APPEND_BUFFER_SAFE(str, end, '0'); in number() 101 APPEND_BUFFER_SAFE(str, end, '0'); in number() 102 APPEND_BUFFER_SAFE(str, end, 'x'); in number() 107 APPEND_BUFFER_SAFE(str, end, c); in number() 109 APPEND_BUFFER_SAFE(str, end, '0'); in number() [all …]
|
/openbmc/linux/arch/csky/mm/ |
H A D | cachev2.c | 24 void icache_inv_range(unsigned long start, unsigned long end) in icache_inv_range() argument 28 for (; i < end; i += L1_CACHE_BYTES) in icache_inv_range() 35 unsigned long end; member 54 for (; i < param->end; i += L1_CACHE_BYTES) in local_icache_inv_range() 62 void icache_inv_range(unsigned long start, unsigned long end) in icache_inv_range() argument 64 struct cache_range param = { start, end }; in icache_inv_range() 79 void dcache_wb_range(unsigned long start, unsigned long end) in dcache_wb_range() argument 83 for (; i < end; i += L1_CACHE_BYTES) in dcache_wb_range() 88 void cache_wbinv_range(unsigned long start, unsigned long end) in cache_wbinv_range() argument 90 dcache_wb_range(start, end); in cache_wbinv_range() [all …]
|
/openbmc/linux/arch/arm/mm/ |
H A D | cache-feroceon-l2.c | 70 static inline void l2_clean_pa_range(unsigned long start, unsigned long end) in l2_clean_pa_range() argument 79 BUG_ON((start ^ end) >> PAGE_SHIFT); in l2_clean_pa_range() 82 va_end = va_start + (end - start); in l2_clean_pa_range() 101 static inline void l2_inv_pa_range(unsigned long start, unsigned long end) in l2_inv_pa_range() argument 110 BUG_ON((start ^ end) >> PAGE_SHIFT); in l2_inv_pa_range() 113 va_end = va_start + (end - start); in l2_inv_pa_range() 139 static unsigned long calc_range_end(unsigned long start, unsigned long end) in calc_range_end() argument 144 BUG_ON(end & (CACHE_LINE_SIZE - 1)); in calc_range_end() 149 range_end = end; in calc_range_end() 168 static void feroceon_l2_inv_range(unsigned long start, unsigned long end) in feroceon_l2_inv_range() argument [all …]
|
/openbmc/linux/arch/x86/mm/ |
H A D | numa_emulation.c | 32 static u64 __init mem_hole_size(u64 start, u64 end) in mem_hole_size() argument 35 unsigned long end_pfn = PFN_DOWN(end); in mem_hole_size() 60 eb->end = pb->start + size; in emu_setup_memblk() 67 if (pb->start >= pb->end) { in emu_setup_memblk() 68 WARN_ON_ONCE(pb->start > pb->end); in emu_setup_memblk() 73 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); in emu_setup_memblk() 129 u64 start, limit, end; in split_nodes_interleave() local 138 limit = pi->blk[phys_blk].end; in split_nodes_interleave() 139 end = start + size; in split_nodes_interleave() 142 end += FAKE_NODE_MIN_SIZE; in split_nodes_interleave() [all …]
|