/linux/arch/mips/pci/ |
H A D | pci-malta.c | 30 .start = 0x00000000UL, 81 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local 103 start = GT_READ(GT_PCI0M0LD_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() 113 start = start1; in mips_pcibios_init() 117 mask = ~(start ^ end); in mips_pcibios_init() 119 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init() 121 gt64120_mem_resource.start = start; in mips_pcibios_init() 123 gt64120_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init() [all …]
|
/linux/drivers/usb/core/ |
H A D | devices.c | 142 static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end, in usb_dump_endpoint_descriptor() argument 148 if (start > end) in usb_dump_endpoint_descriptor() 149 return start; in usb_dump_endpoint_descriptor() 172 return start; in usb_dump_endpoint_descriptor() 183 start += sprintf(start, format_endpt, desc->bEndpointAddress, dir, in usb_dump_endpoint_descriptor() 188 return start; in usb_dump_endpoint_descriptor() 191 static char *usb_dump_interface_descriptor(char *start, char *end, in usb_dump_interface_descriptor() argument 200 if (start > end) in usb_dump_interface_descriptor() 201 return start; in usb_dump_interface_descriptor() 209 start += sprintf(start, format_iface, in usb_dump_interface_descriptor() [all …]
|
/linux/include/trace/events/ |
H A D | osnoise.h | 11 TP_PROTO(struct task_struct *t, u64 start, u64 duration), 13 TP_ARGS(t, start, duration), 17 __field( u64, start ) 25 __entry->start = start; 29 TP_printk("%8s:%d start %llu.%09u duration %llu ns", 32 __print_ns_to_secs(__entry->start), 33 __print_ns_without_secs(__entry->start), 39 TP_PROTO(int vector, u64 start, u64 duration), 41 TP_ARGS(vector, start, duratio [all...] |
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_ethtool.c | 84 int start; member 95 .start = 31, 102 .start = 23, 109 .start = 15, 116 .start = 7, 124 .start = 27, 131 .start = 26, 138 .start = 25, 145 .start = 24, 152 .start = 23, [all …]
|
/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() 21 range[nr_range].start = start; in add_range() 30 u64 start, u64 end) in add_range_with_merge() argument 34 if (start >= end) in add_range_with_merge() 44 common_start = max(range[i].start, start); in add_range_with_merge() 50 start = min(range[i].start, start); in add_range_with_merge() 55 range[nr_range - 1].start = 0; in add_range_with_merge() 62 return add_range(range, az, nr_range, start, end); in add_range_with_merge() 65 void subtract_range(struct range *range, int az, u64 start, u64 end) in subtract_range() argument [all …]
|
H A D | resource.c | 37 .start = 0, 45 .start = 0, 104 unsigned long long start, end; in r_show() local 113 start = r->start; in r_show() 116 start = end = 0; in r_show() 121 width, start, in r_show() 128 .start = r_start, 165 resource_size_t start = new->start; in __request_resource() local 169 if (end < start) in __request_resource() 171 if (start < root->start) in __request_resource() [all …]
|
/linux/fs/btrfs/ |
H A D | extent-io-tree.c | 47 state->start, state->end, state->state, in btrfs_extent_state_leak_debug_check() 56 #define btrfs_debug_check_extent_io_range(tree, start, end) \ argument 57 __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end)) 60 u64 start, u64 end) in __btrfs_debug_check_extent_io_range() argument 73 caller, btrfs_ino(inode), isize, start, end); in __btrfs_debug_check_extent_io_range() 215 changeset->bytes_changed += state->end - state->start + 1; in add_extent_changeset() 216 ret = ulist_add(&changeset->range_changed, state->start, state->end, in add_extent_changeset() 272 if (offset < entry->start) in tree_search_for_insert() 320 if (offset < entry->start) in tree_search_prev_next() 334 while (entry && offset < entry->start) in tree_search_prev_next() [all …]
|
H A D | extent-io-tree.h | 119 u64 start; member 140 int __lock_extent(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, 142 bool __try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, 145 static inline int lock_extent(struct extent_io_tree *tree, u64 start, u64 end, in lock_extent() argument 148 return __lock_extent(tree, start, end, EXTENT_LOCKED, cached); in lock_extent() 151 static inline bool try_lock_extent(struct extent_io_tree *tree, u64 start, in try_lock_extent() argument 154 return __try_lock_extent(tree, start, end, EXTENT_LOCKED, cached); in try_lock_extent() 161 u64 *start, u64 search_end, 166 bool test_range_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bit, 168 bool test_range_bit_exists(struct extent_io_tree *tree, u64 start, u64 end, u32 bit); [all …]
|
/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() 81 va_start = l2_get_va(start); 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() 112 va_start = l2_get_va(start); 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 143 BUG_ON(start & (CACHE_LINE_SIZE - 1)); in calc_range_end() [all …]
|
/linux/arch/nios2/mm/ |
H A D | cacheflush.c | 19 static void __flush_dcache(unsigned long start, unsigned long end) in __flush_dcache() argument 23 start &= ~(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 42 start &= ~(cpuinfo.dcache_line_size - 1); in __invalidate_dcache() 46 for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { in __invalidate_dcache() 54 static void __flush_icache(unsigned long start, unsigned long end) in __flush_icache() argument 58 start &= ~(cpuinfo.icache_line_size - 1); in __flush_icache() [all …]
|
/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 …]
|
/linux/arch/x86/kernel/ |
H A D | probe_roms.c | 28 .start = 0xf0000, 35 .start = 0xe0000, 42 .start = 0xc8000, 47 .start = 0, 52 .start = 0, 57 .start = 0, 62 .start = 0, 67 .start = 0, 74 .start = 0xc0000, 128 rom = isa_bus_to_virt(res->start); in find_oprom() [all …]
|
/linux/mm/ |
H A D | numa_memblks.c | 27 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo() 133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument 137 if (start == end) in numa_add_memblk_to() 141 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to() 143 nid, start, end - 1); in numa_add_memblk_to() 152 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to() 198 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument 200 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk() 225 bi->start, bi->end - bi->start)) { in numa_cleanup_meminfo() 231 bi->start = max(bi->start, low); in numa_cleanup_meminfo() [all …]
|
/linux/arch/hexagon/mm/ |
H A D | cache.c | 12 #define spanlines(start, end) \ argument 13 (((end - (start & ~(LINESIZE - 1))) >> LINEBITS) + 1) 15 void flush_dcache_range(unsigned long start, unsigned long end) in flush_dcache_range() argument 17 unsigned long lines = spanlines(start, end-1); in flush_dcache_range() 20 start &= ~(LINESIZE - 1); in flush_dcache_range() 28 : "r" (start) in flush_dcache_range() 30 start += LINESIZE; in flush_dcache_range() 35 void flush_icache_range(unsigned long start, unsigned long end) in flush_icache_range() argument 37 unsigned long lines = spanlines(start, end-1); in flush_icache_range() 40 start &= ~(LINESIZE - 1); in flush_icache_range() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_res_cursor.h | 41 u64 start; member 69 u64 start, u64 size, in xe_res_first() argument 76 XE_WARN_ON(start + size > res->size); in xe_res_first() 96 while (start >= drm_buddy_block_size(mm, block)) { in xe_res_first() 97 start -= drm_buddy_block_size(mm, block); in xe_res_first() 106 cur->start = drm_buddy_block_offset(block) + start; in xe_res_first() 107 cur->size = min(drm_buddy_block_size(mm, block) - start, in xe_res_first() 120 cur->start = start; in xe_res_first() 125 XE_WARN_ON(res && start + size > res->size); in xe_res_first() 131 u64 start = cur->start; in __xe_res_sg_next() local [all …]
|
/linux/drivers/nvdimm/ |
H A D | badrange.c | 30 bre->start = addr; in append_badrange_entry() 69 if (bre->start == addr) { in add_badrange() 101 void badrange_forget(struct badrange *badrange, phys_addr_t start, in badrange_forget() argument 105 u64 clr_end = start + len - 1; in badrange_forget() 119 u64 bre_end = bre->start + bre->length - 1; in badrange_forget() 122 if (bre_end < start) in badrange_forget() 124 if (bre->start > clr_end) in badrange_forget() 127 if ((bre->start >= start) && (bre_end <= clr_end)) { in badrange_forget() 133 if ((start <= bre->start) && (clr_end > bre->start)) { in badrange_forget() 134 bre->length -= clr_end - bre->start + 1; in badrange_forget() [all …]
|
/linux/include/linux/ |
H A D | ioport.h | 22 resource_size_t start; member 159 .start = (_start), \ 236 resource_size_t start, resource_size_t end, 248 struct resource *lookup_resource(struct resource *root, resource_size_t start); 249 int adjust_resource(struct resource *res, resource_size_t start, 254 return res->end - res->start + 1; in resource_size() 271 return r1->start <= r2->start && r1->end >= r2->end; in resource_contains() 277 return r1->start <= r2->end && r1->end >= r2->start; in resource_overlaps() 285 r->start = max(r1->start, r2->start); in resource_intersection() 295 r->start = min(r1->start, r2->start); in resource_union() [all …]
|
/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 32 em->start, em->len, em->disk_bytenr, in free_extent_map_tree() 66 u64 start = 0; in test_case_1() local 78 em->start = 0; in test_case_1() 84 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_1() 100 em->start = SZ_16K; in test_case_1() 106 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_1() 122 em->start = start; in test_case_1() 124 em->disk_bytenr = start; in test_case_1() 128 ret = btrfs_add_extent_mapping(inode, &em, em->start, em->len); in test_case_1() 131 test_err("case1 [%llu %llu]: ret %d", start, start + len, ret); in test_case_1() [all …]
|
/linux/arch/powerpc/lib/ |
H A D | pmem.c | 13 static inline void __clean_pmem_range(unsigned long start, unsigned long stop) in __clean_pmem_range() argument 17 void *addr = (void *)(start & ~(bytes - 1)); in __clean_pmem_range() 25 static inline void __flush_pmem_range(unsigned long start, unsigned long stop) in __flush_pmem_range() argument 29 void *addr = (void *)(start & ~(bytes - 1)); in __flush_pmem_range() 37 static inline void clean_pmem_range(unsigned long start, unsigned long stop) in clean_pmem_range() argument 40 return __clean_pmem_range(start, stop); in clean_pmem_range() 43 static inline void flush_pmem_range(unsigned long start, unsigned long stop) in flush_pmem_range() argument 46 return __flush_pmem_range(start, stop); in flush_pmem_range() 54 unsigned long start = (unsigned long) addr; in arch_wb_cache_pmem() local 55 clean_pmem_range(start, start + size); in arch_wb_cache_pmem() [all …]
|
/linux/arch/arm/mach-omap1/ |
H A D | mcbsp.c | 95 .start = OMAP1510_MCBSP1_BASE, 101 .start = INT_McBSP1RX, 106 .start = INT_McBSP1TX, 111 .start = 9, 116 .start = 8, 122 .start = OMAP1510_MCBSP2_BASE, 128 .start = INT_1510_SPI_RX, 133 .start = INT_1510_SPI_TX, 138 .start = 17, 143 .start = 16, [all …]
|
/linux/fs/bcachefs/ |
H A D | journal_seq_blacklist.c | 43 return (sizeof(*bl) + sizeof(bl->start[0]) * nr) / sizeof(u64); in sb_blacklist_u64s() 46 int bch2_journal_seq_blacklist_add(struct bch_fs *c, u64 start, u64 end) in bch2_journal_seq_blacklist_add() argument 58 bl->start + i; in bch2_journal_seq_blacklist_add() 60 if (end < le64_to_cpu(e->start)) in bch2_journal_seq_blacklist_add() 63 if (start > le64_to_cpu(e->end)) { in bch2_journal_seq_blacklist_add() 73 start = min(start, le64_to_cpu(e->start)); in bch2_journal_seq_blacklist_add() 75 array_remove_item(bl->start, nr, i); in bch2_journal_seq_blacklist_add() 85 array_insert_item(bl->start, nr, i, ((struct journal_seq_blacklist_entry) { in bch2_journal_seq_blacklist_add() 86 .start = cpu_to_le64(start), in bch2_journal_seq_blacklist_add() 103 return cmp_int(l->start, r->start); in journal_seq_blacklist_table_cmp() [all …]
|
/linux/tools/perf/util/ |
H A D | block-range.c | 21 assert(old < entry->start); in block_range__debug() 22 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug() 39 if (addr < entry->start) in block_range__find() 77 struct block_range_iter block_range__create(u64 start, u64 end) in block_range__create() argument 88 if (start < entry->start) in block_range__create() 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() 121 .start = start, in block_range__create() 122 .end = next->start - 1, in block_range__create() [all …]
|
/linux/arch/x86/boot/compressed/ |
H A D | kaslr.c | 105 if (one->start + one->size <= two->start) in mem_overlaps() 108 if (one->start >= two->start + two->size) in mem_overlaps() 123 parse_memmap(char *p, u64 *start, u64 *size) in parse_memmap() argument 143 *start = memparse(p + 1, &p); in parse_memmap() 158 *start = 0; in parse_memmap() 174 u64 start, size; in mem_avoid_memmap() local 180 rc = parse_memmap(str, &start, &size); in mem_avoid_memmap() 185 if (start == 0) { in mem_avoid_memmap() 193 mem_avoid[MEM_AVOID_MEMMAP_BEGIN + i].start = start; in mem_avoid_memmap() 369 mem_avoid[MEM_AVOID_ZO_RANGE].start = input; in mem_avoid_init() [all …]
|
/linux/arch/riscv/kernel/ |
H A D | hibernate.c | 168 static int temp_pgtable_map_pte(pmd_t *dst_pmdp, pmd_t *src_pmdp, unsigned long start, in temp_pgtable_map_pte() argument 182 dst_ptep = pte_offset_kernel(dst_pmdp, start); in temp_pgtable_map_pte() 183 src_ptep = pte_offset_kernel(src_pmdp, start); in temp_pgtable_map_pte() 190 } while (dst_ptep++, src_ptep++, start += PAGE_SIZE, start < end); in temp_pgtable_map_pte() 195 static int temp_pgtable_map_pmd(pud_t *dst_pudp, pud_t *src_pudp, unsigned long start, in temp_pgtable_map_pmd() argument 211 dst_pmdp = pmd_offset(dst_pudp, start); in temp_pgtable_map_pmd() 212 src_pmdp = pmd_offset(src_pudp, start); in temp_pgtable_map_pmd() 217 next = pmd_addr_end(start, end); in temp_pgtable_map_pmd() 225 ret = temp_pgtable_map_pte(dst_pmdp, src_pmdp, start, next, prot); in temp_pgtable_map_pmd() 229 } while (dst_pmdp++, src_pmdp++, start = next, start != end); in temp_pgtable_map_pmd() [all …]
|
/linux/arch/mips/bcm63xx/ |
H A D | dev-enet.c | 48 .start = -1, /* filled at runtime */ 53 .start = -1, /* filled at runtime */ 58 .start = -1, /* filled at runtime */ 77 .start = -1, /* filled at runtime */ 82 .start = -1, /* filled at runtime */ 86 .start = -1, /* filled at runtime */ 90 .start = -1, /* filled at runtime */ 111 .start = -1, /* filled at runtime */ 116 .start = -1, /* filled at runtime */ 120 .start = -1, /* filled at runtime */ [all …]
|