/linux-master/arch/parisc/kernel/ |
H A D | jump_label.c | 29 int distance = target - addr; local 36 distance -= 8; 37 BUG_ON(distance > 262143 || distance < -262144); 38 insn = 0xe8000002 | reassemble_17(distance >> 2);
|
/linux-master/drivers/of/ |
H A D | of_numa.c | 83 pr_info("parsing numa-distance-map-v1\n"); 85 matrix = of_get_property(map, "distance-matrix", NULL); 87 pr_err("No distance-matrix property in distance-map\n"); 91 entry_count = of_property_count_u32_elems(map, "distance-matrix"); 93 pr_err("Invalid distance-matrix\n"); 98 u32 nodea, nodeb, distance; local 104 distance = of_read_number(matrix, 1); 107 if ((nodea == nodeb && distance != LOCAL_DISTANCE) || 108 (nodea != nodeb && distance < [all...] |
/linux-master/arch/csky/lib/ |
H A D | string.c | 34 int distance = 0; local 43 distance = s.as_uptr & WORD_MASK; 45 if (distance) { 49 * s is distance bytes ahead of d, and d just reached 51 * and shift data to compensate for distance, in order to do 54 s.as_u8 -= distance; 61 d.as_ulong[0] = last >> (distance * 8) | 62 next << ((BYTES_LONG - distance) * 8); 69 s.as_u8 += distance;
|
/linux-master/arch/sh/lib/ |
H A D | memcpy.S | 20 sub r4,r5 ! From here, r5 has the distance to r0
|
H A D | memmove.S | 26 sub r5,r4 ! From here, r4 has the distance to r0
|
/linux-master/drivers/iio/proximity/ |
H A D | mb1232.c | 47 s16 distance; member in struct:mb1232_data::__anon116 66 s16 distance; local 100 distance = __be16_to_cpu(buf); 102 if (distance < 0) { 103 dev_err(&client->dev, "distance=%d\n", distance); 110 return distance; 124 data->scan.distance = mb1232_read_distance(data); 125 if (data->scan.distance < 0)
|
/linux-master/arch/loongarch/include/asm/ |
H A D | topology.h | 23 void numa_set_distance(int from, int to, int distance);
|
/linux-master/include/asm-generic/ |
H A D | numa.h | 35 void __init numa_set_distance(int from, int to, int distance);
|
/linux-master/drivers/video/fbdev/ |
H A D | arcfb.c | 249 unsigned int left, unsigned int right, unsigned int distance) 303 unsigned int distance, upper, lower; local 305 distance = (bottom - top) + 1; 309 while (distance > 0) { 310 distance -= 8; 325 unsigned int distance, upper, lower; local 327 distance = h; 329 lower = min(upper + distance - 1, ceil64(upper)); 331 while (distance > 0) { 332 distance 248 arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, unsigned int left, unsigned int right, unsigned int distance) argument 347 unsigned int left, right, distance, y; local [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | acpi.c | 231 void __init numa_set_distance(int from, int to, int distance) argument 233 if ((u8)distance != distance || (from == to && distance != LOCAL_DISTANCE)) { 234 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", 235 from, to, distance); 239 node_distances[from][to] = distance;
|
/linux-master/drivers/base/ |
H A D | arch_numa.c | 271 * Create a new NUMA distance table. 291 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt); 297 * numa_set_distance() - Set inter node NUMA distance from node to node. 298 * @from: the 'from' node to set distance 299 * @to: the 'to' node to set distance 300 * @distance: NUMA distance 302 * Set the distance from node @from to @to to @distance. 303 * If distance tabl 308 numa_set_distance(int from, int to, int distance) argument [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | numa.h | 29 extern void __init numa_set_distance(int from, int to, int distance);
|
/linux-master/net/dccp/ |
H A D | ackvec.c | 127 * @distance: negative or zero distance of @seqno from buf_ackno downward 131 static void dccp_ackvec_update_old(struct dccp_ackvec *av, s64 distance, argument 136 BUG_ON(distance > 0); 143 if (distance + runlen >= 0) { 167 distance += runlen + 1;
|
/linux-master/fs/erofs/ |
H A D | decompressor.c | 31 u16 distance; local 38 distance = le16_to_cpu(lz4->max_distance); 50 distance = le16_to_cpu(dsb->u1.lz4_max_distance); 54 sbi->lz4.max_distance_pages = distance ? 55 DIV_ROUND_UP(distance, PAGE_SIZE) + 1 :
|
/linux-master/arch/x86/mm/ |
H A D | numa.c | 349 * numa_reset_distance - Reset NUMA distance table 384 pr_warn("Warning: can't allocate distance table!\n"); 398 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); 404 * numa_set_distance - Set NUMA distance from one NUMA to another 405 * @from: the 'from' node to set distance 406 * @to: the 'to' node to set distance 407 * @distance: NUMA distance 409 * Set the distance from node @from to @to to @distance 422 numa_set_distance(int from, int to, int distance) argument [all...] |
/linux-master/drivers/pci/ |
H A D | p2pdma.c | 539 * Calculate the P2PDMA mapping type and distance between two PCI devices. 542 * PCI_P2PDMA_MAP_BUS_ADDR and a distance of 0. 545 * PCI_P2PDMA_MAP_BUS_ADDR and a distance of 2 (one hop up to the bridge, 549 * return a distance of 4. This corresponds to the following PCI tree: 558 * The distance is 4 because we traverse from Device A to Downstream Port 0 570 * PCI_P2PDMA_MAP_THRU_HOST_BRIDGE with the distance set to the number of 670 * pci_p2pdma_distance_many - Determine the cumulative distance between 693 int i, distance; local 707 map = calc_map_type_and_dist(provider, pci_client, &distance, 718 total_dist += distance; 765 int distance; local [all...] |
/linux-master/drivers/hid/amd-sfh-hid/sfh1_1/ |
H A D | amd_sfh_interface.h | 157 u32 distance : 16; member in struct:hpd_status::__anon928::__anon929
|
/linux-master/lib/ |
H A D | decompress_unlzma.c | 427 uint32_t distance; local 433 distance = cst->rep1; 439 distance = cst->rep2; 442 distance = cst->rep3; 448 cst->rep0 = distance;
|
/linux-master/drivers/video/fbdev/aty/ |
H A D | radeon_monitor.c | 945 * This is used when looking for modes. We assign a "distance" value 954 int distance = 0; local 956 distance = mode->yres - var->yres; 957 distance += (mode->xres - var->xres)/2; 958 return distance; 980 int distance = INT_MAX; local 1026 if (d < distance) { 1028 distance = d;
|
/linux-master/drivers/nvme/host/ |
H A D | multipath.c | 243 int found_distance = INT_MAX, fallback_distance = INT_MAX, distance; local 251 distance = node_distance(node, ns->ctrl->numa_node); 253 distance = LOCAL_DISTANCE; 257 if (distance < found_distance) { 258 found_distance = distance; 263 if (distance < fallback_distance) { 264 fallback_distance = distance;
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | lpar.c | 293 int distance; local 308 distance = cpu_relative_dispatch_distance(disp->last_disp_cpu, 310 if (distance < 0) 314 switch (distance) { 325 pr_debug_ratelimited("vcpudispatch_stats: cpu %d (%d -> %d): unexpected relative dispatch distance %d\n", 329 distance); 334 distance = cpu_home_node_dispatch_distance(disp_cpu); 335 if (distance < 0) 339 switch (distance) { 350 pr_debug_ratelimited("vcpudispatch_stats: cpu %d on %d: unexpected numa dispatch distance [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | process_64.c | 429 unsigned long fp, distance, rval; local 447 distance = fp - psp; 448 rval = (csp - distance); 449 if (raw_copy_in_user((void __user *)rval, (void __user *)psp, distance))
|
/linux-master/mm/ |
H A D | memory-tiers.c | 18 * start value of abstract distance. memory tier maps 19 * an abstract distance range, 392 int distance, best_distance; local 423 * Find all the nodes in the memory tier node list of same best distance. 432 distance = node_distance(node, target); 433 if (distance == best_distance || best_distance == -1) { 434 best_distance = distance; 454 * abstract distance below the max value of this memtier 661 * will be used as base to calculate the abstract distance of 681 " disable default DRAM node performance based abstract distance algorith [all...] |
/linux-master/drivers/md/dm-vdo/ |
H A D | int-map.c | 429 * Limit the search to either the nearer of the end of the bucket array or a fixed distance 573 int distance = hole - neighborhood; local 575 if (distance < NEIGHBORHOOD) {
|
/linux-master/net/rxrpc/ |
H A D | conn_client.c | 209 int id_cursor, id, distance, limit; local 231 distance = id - id_cursor; 232 if (distance < 0) 233 distance = -distance; 235 if (distance > limit)
|