Home
last modified time | relevance | path

Searched refs:distance (Results 1 - 25 of 117) sorted by relevance

12345

/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Djump_label.c29 int distance = target - addr; in arch_jump_label_transform() local
36 distance -= 8; in arch_jump_label_transform()
37 BUG_ON(distance > 262143 || distance < -262144); in arch_jump_label_transform()
38 insn = 0xe8000002 | reassemble_17(distance >> 2); in arch_jump_label_transform()
/kernel/linux/linux-6.6/arch/parisc/kernel/
H A Djump_label.c29 int distance = target - addr; in arch_jump_label_transform() local
36 distance -= 8; in arch_jump_label_transform()
37 BUG_ON(distance > 262143 || distance < -262144); in arch_jump_label_transform()
38 insn = 0xe8000002 | reassemble_17(distance >> 2); in arch_jump_label_transform()
/kernel/linux/linux-6.6/arch/csky/lib/
H A Dstring.c34 int distance = 0; in memcpy() local
43 distance = s.as_uptr & WORD_MASK; in memcpy()
45 if (distance) { in memcpy()
49 * s is distance bytes ahead of d, and d just reached in memcpy()
51 * and shift data to compensate for distance, in order to do in memcpy()
54 s.as_u8 -= distance; in memcpy()
61 d.as_ulong[0] = last >> (distance * 8) | in memcpy()
62 next << ((BYTES_LONG - distance) * 8); in memcpy()
69 s.as_u8 += distance; in memcpy()
/kernel/linux/linux-5.10/drivers/of/
H A Dof_numa.c83 pr_info("parsing numa-distance-map-v1\n"); in of_numa_parse_distance_map_v1()
85 matrix = of_get_property(map, "distance-matrix", NULL); in of_numa_parse_distance_map_v1()
87 pr_err("No distance-matrix property in distance-map\n"); in of_numa_parse_distance_map_v1()
91 entry_count = of_property_count_u32_elems(map, "distance-matrix"); in of_numa_parse_distance_map_v1()
93 pr_err("Invalid distance-matrix\n"); in of_numa_parse_distance_map_v1()
98 u32 nodea, nodeb, distance; in of_numa_parse_distance_map_v1() local
104 distance = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1()
107 if ((nodea == nodeb && distance != LOCAL_DISTANCE) || in of_numa_parse_distance_map_v1()
108 (nodea != nodeb && distance < in of_numa_parse_distance_map_v1()
[all...]
/kernel/linux/linux-6.6/drivers/of/
H A Dof_numa.c83 pr_info("parsing numa-distance-map-v1\n"); in of_numa_parse_distance_map_v1()
85 matrix = of_get_property(map, "distance-matrix", NULL); in of_numa_parse_distance_map_v1()
87 pr_err("No distance-matrix property in distance-map\n"); in of_numa_parse_distance_map_v1()
91 entry_count = of_property_count_u32_elems(map, "distance-matrix"); in of_numa_parse_distance_map_v1()
93 pr_err("Invalid distance-matrix\n"); in of_numa_parse_distance_map_v1()
98 u32 nodea, nodeb, distance; in of_numa_parse_distance_map_v1() local
104 distance = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1()
107 if ((nodea == nodeb && distance != LOCAL_DISTANCE) || in of_numa_parse_distance_map_v1()
108 (nodea != nodeb && distance < in of_numa_parse_distance_map_v1()
[all...]
/kernel/linux/linux-5.10/drivers/iio/proximity/
H A Dmb1232.c45 s16 distance; member
64 s16 distance; in mb1232_read_distance() local
98 distance = __be16_to_cpu(buf); in mb1232_read_distance()
100 if (distance < 0) { in mb1232_read_distance()
101 dev_err(&client->dev, "distance=%d\n", distance); in mb1232_read_distance()
108 return distance; in mb1232_read_distance()
122 data->scan.distance = mb1232_read_distance(data); in mb1232_trigger_handler()
123 if (data->scan.distance < 0) in mb1232_trigger_handler()
/kernel/linux/linux-6.6/drivers/iio/proximity/
H A Dmb1232.c47 s16 distance; member
66 s16 distance; in mb1232_read_distance() local
100 distance = __be16_to_cpu(buf); in mb1232_read_distance()
102 if (distance < 0) { in mb1232_read_distance()
103 dev_err(&client->dev, "distance=%d\n", distance); in mb1232_read_distance()
110 return distance; in mb1232_read_distance()
124 data->scan.distance = mb1232_read_distance(data); in mb1232_trigger_handler()
125 if (data->scan.distance < 0) in mb1232_trigger_handler()
/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Darcfb.c248 unsigned int left, unsigned int right, unsigned int distance) in arcfb_lcd_update_page()
302 unsigned int distance, upper, lower; in arcfb_lcd_update_vert() local
304 distance = (bottom - top) + 1; in arcfb_lcd_update_vert()
308 while (distance > 0) { in arcfb_lcd_update_vert()
309 distance -= 8; in arcfb_lcd_update_vert()
324 unsigned int distance, upper, lower; in arcfb_lcd_update_horiz() local
326 distance = h; in arcfb_lcd_update_horiz()
328 lower = min(upper + distance - 1, ceil64(upper)); in arcfb_lcd_update_horiz()
330 while (distance > 0) { in arcfb_lcd_update_horiz()
331 distance in arcfb_lcd_update_horiz()
247 arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, unsigned int left, unsigned int right, unsigned int distance) arcfb_lcd_update_page() argument
346 unsigned int left, right, distance, y; arcfb_lcd_update() local
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Darcfb.c249 unsigned int left, unsigned int right, unsigned int distance) in arcfb_lcd_update_page()
303 unsigned int distance, upper, lower; in arcfb_lcd_update_vert() local
305 distance = (bottom - top) + 1; in arcfb_lcd_update_vert()
309 while (distance > 0) { in arcfb_lcd_update_vert()
310 distance -= 8; in arcfb_lcd_update_vert()
325 unsigned int distance, upper, lower; in arcfb_lcd_update_horiz() local
327 distance = h; in arcfb_lcd_update_horiz()
329 lower = min(upper + distance - 1, ceil64(upper)); in arcfb_lcd_update_horiz()
331 while (distance > 0) { in arcfb_lcd_update_horiz()
332 distance in arcfb_lcd_update_horiz()
248 arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, unsigned int left, unsigned int right, unsigned int distance) arcfb_lcd_update_page() argument
347 unsigned int left, right, distance, y; arcfb_lcd_update() local
[all...]
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dacpi.c231 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
233 if ((u8)distance != distance || (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
234 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
235 from, to, distance); in numa_set_distance()
239 node_distances[from][to] = distance; in numa_set_distance()
/kernel/linux/linux-5.10/arch/arm64/mm/
H A Dnuma.c274 * Create a new NUMA distance table.
299 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt); in numa_alloc_distance()
305 * numa_set_distance() - Set inter node NUMA distance from node to node.
306 * @from: the 'from' node to set distance
307 * @to: the 'to' node to set distance
308 * @distance: NUMA distance
310 * Set the distance from node @from to @to to @distance.
311 * If distance tabl
316 numa_set_distance(int from, int to, int distance) numa_set_distance() argument
[all...]
/kernel/linux/linux-6.6/drivers/base/
H A Darch_numa.c271 * Create a new NUMA distance table.
291 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt); in numa_alloc_distance()
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) numa_set_distance() argument
[all...]
/kernel/linux/linux-5.10/drivers/pci/
H A Dp2pdma.c466 * Find the distance through the nearest common upstream bridge between
485 * The distance is 4 because we traverse from Device A through the downstream
560 * pci_p2pdma_distance_many - Determine the cumulative distance between
582 int distance; in pci_p2pdma_distance_many() local
608 pci_client, &distance); in pci_p2pdma_distance_many()
611 &distance, NULL, NULL); in pci_p2pdma_distance_many()
621 total_dist += distance; in pci_p2pdma_distance_many()
643 * the specified list of clients and shortest distance (as determined
652 * distance away, one will be chosen at random.
661 int distance; in pci_p2pmem_find_many() local
[all...]
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dacpi.c416 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
418 if ((u8)distance != distance || (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
419 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
420 from, to, distance); in numa_set_distance()
424 node_distances[from][to] = distance; in numa_set_distance()
/kernel/linux/linux-6.6/drivers/pci/
H A Dp2pdma.c539 * 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; in pci_p2pdma_distance_many() local
707 map = calc_map_type_and_dist(provider, pci_client, &distance, in pci_p2pdma_distance_many()
718 total_dist += distance; in pci_p2pdma_distance_many()
765 int distance; pci_p2pmem_find_many() local
[all...]
/kernel/linux/linux-5.10/arch/x86/mm/
H A Dnuma.c347 * numa_reset_distance - Reset NUMA distance table
382 pr_warn("Warning: can't allocate distance table!\n"); in numa_alloc_distance()
397 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
403 * numa_set_distance - Set NUMA distance from one NUMA to another
404 * @from: the 'from' node to set distance
405 * @to: the 'to' node to set distance
406 * @distance: NUMA distance
408 * Set the distance from node @from to @to to @distance
421 numa_set_distance(int from, int to, int distance) numa_set_distance() argument
[all...]
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dnuma.c348 * numa_reset_distance - Reset NUMA distance table
383 pr_warn("Warning: can't allocate distance table!\n"); in numa_alloc_distance()
397 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
403 * numa_set_distance - Set NUMA distance from one NUMA to another
404 * @from: the 'from' node to set distance
405 * @to: the 'to' node to set distance
406 * @distance: NUMA distance
408 * Set the distance from node @from to @to to @distance
421 numa_set_distance(int from, int to, int distance) numa_set_distance() argument
[all...]
/kernel/linux/linux-5.10/net/dccp/
H A Dackvec.c127 * @distance: negative or zero distance of @seqno from buf_ackno downward
131 static void dccp_ackvec_update_old(struct dccp_ackvec *av, s64 distance, in dccp_ackvec_update_old() argument
136 BUG_ON(distance > 0); in dccp_ackvec_update_old()
143 if (distance + runlen >= 0) { in dccp_ackvec_update_old()
167 distance += runlen + 1; in dccp_ackvec_update_old()
/kernel/linux/linux-6.6/net/dccp/
H A Dackvec.c127 * @distance: negative or zero distance of @seqno from buf_ackno downward
131 static void dccp_ackvec_update_old(struct dccp_ackvec *av, s64 distance, in dccp_ackvec_update_old() argument
136 BUG_ON(distance > 0); in dccp_ackvec_update_old()
143 if (distance + runlen >= 0) { in dccp_ackvec_update_old()
167 distance += runlen + 1; in dccp_ackvec_update_old()
/kernel/linux/linux-6.6/fs/erofs/
H A Ddecompressor.c32 u16 distance; in z_erofs_load_lz4_config() local
39 distance = le16_to_cpu(lz4->max_distance); in z_erofs_load_lz4_config()
51 distance = le16_to_cpu(dsb->u1.lz4_max_distance); in z_erofs_load_lz4_config()
55 sbi->lz4.max_distance_pages = distance ? in z_erofs_load_lz4_config()
56 DIV_ROUND_UP(distance, PAGE_SIZE) + 1 : in z_erofs_load_lz4_config()
/kernel/linux/linux-6.6/net/rxrpc/
H A Dconn_client.c202 int id_cursor, id, distance, limit; in rxrpc_may_reuse_conn() local
224 distance = id - id_cursor; in rxrpc_may_reuse_conn()
225 if (distance < 0) in rxrpc_may_reuse_conn()
226 distance = -distance; in rxrpc_may_reuse_conn()
228 if (distance > limit) in rxrpc_may_reuse_conn()
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/
H A Dradeon_monitor.c947 * This is used when looking for modes. We assign a "distance" value
956 int distance = 0; in radeon_compare_modes() local
958 distance = mode->yres - var->yres; in radeon_compare_modes()
959 distance += (mode->xres - var->xres)/2; in radeon_compare_modes()
960 return distance; in radeon_compare_modes()
982 int distance = INT_MAX; in radeon_match_mode() local
1028 if (d < distance) { in radeon_match_mode()
1030 distance = d; in radeon_match_mode()
/kernel/linux/linux-5.10/drivers/nvme/host/
H A Dmultipath.c164 int found_distance = INT_MAX, fallback_distance = INT_MAX, distance; in __nvme_find_path() local
172 distance = node_distance(node, ns->ctrl->numa_node); in __nvme_find_path()
174 distance = LOCAL_DISTANCE; in __nvme_find_path()
178 if (distance < found_distance) { in __nvme_find_path()
179 found_distance = distance; in __nvme_find_path()
184 if (distance < fallback_distance) { in __nvme_find_path()
185 fallback_distance = distance; in __nvme_find_path()
/kernel/linux/linux-6.6/drivers/video/fbdev/aty/
H A Dradeon_monitor.c945 * This is used when looking for modes. We assign a "distance" value
954 int distance = 0; in radeon_compare_modes() local
956 distance = mode->yres - var->yres; in radeon_compare_modes()
957 distance += (mode->xres - var->xres)/2; in radeon_compare_modes()
958 return distance; in radeon_compare_modes()
980 int distance = INT_MAX; in radeon_match_mode() local
1026 if (d < distance) { in radeon_match_mode()
1028 distance = d; in radeon_match_mode()
/kernel/linux/linux-6.6/drivers/nvme/host/
H A Dmultipath.c242 int found_distance = INT_MAX, fallback_distance = INT_MAX, distance; in __nvme_find_path() local
250 distance = node_distance(node, ns->ctrl->numa_node); in __nvme_find_path()
252 distance = LOCAL_DISTANCE; in __nvme_find_path()
256 if (distance < found_distance) { in __nvme_find_path()
257 found_distance = distance; in __nvme_find_path()
262 if (distance < fallback_distance) { in __nvme_find_path()
263 fallback_distance = distance; in __nvme_find_path()

Completed in 18 milliseconds

12345