Searched refs:distance (Results 1 - 25 of 57) sorted by last modified time

123

/linux-master/kernel/sched/
H A Dsched.h1764 extern bool find_numa_distance(int distance);
H A Dtopology.c817 * Given a node-distance table, for example:
1752 bool find_numa_distance(int distance) argument
1757 if (distance == node_distance(0, 0))
1765 if (distances[i] == distance) {
1795 * - If the maximum distance between any nodes is 1 hop, the system
1860 int distance = node_distance(i, j); local
1862 if (distance < LOCAL_DISTANCE || distance >= NR_DISTANCE_VALUES) {
1863 sched_numa_warn("Invalid distance value range");
1868 bitmap_set(distance_map, distance,
[all...]
/linux-master/fs/btrfs/
H A Dextent_io.c4829 unsigned long distance = (src > dst) ? src - dst : dst - src; local
4830 return distance < len;
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c1109 int distance; local
1130 distance = offset - r->offset;
1149 start_aligned = (distance / step) * step + r->offset;
/linux-master/drivers/scsi/bfa/
H A Dbfa_svc.c6536 cpu_to_be32(msg->info.testcomp.distance);
/linux-master/drivers/cxl/core/
H A Dregion.c1175 int distance)
1188 * then that endpoint, at index 'position - distance', must also be
1191 if (pos < distance) {
1197 cxled_peer = p->targets[pos - distance];
1242 int i, distance; local
1245 * Passthrough decoders impose no distance requirements between
1249 distance = 0;
1251 distance = p->nr_targets / cxl_rr->nr_targets;
1255 distance);
1173 check_last_peer(struct cxl_endpoint_decoder *cxled, struct cxl_ep *ep, struct cxl_region_ref *cxl_rr, int distance) argument
/linux-master/drivers/crypto/hisilicon/
H A Dqm.c371 int distance; member in struct:hisi_qm_resource
3335 res->distance = node_distance(dev_node, node);
3338 if (res->distance < tmp->distance) {
3357 * This function will sort all available device according to numa distance.
/linux-master/drivers/base/
H A Dnode.c559 * at the most (distance + space or newline).
571 static DEVICE_ATTR(distance, 0444, node_read_distance, NULL);
/linux-master/arch/powerpc/mm/
H A Dnuma.c252 int distance = LOCAL_DISTANCE; local
263 /* Double the distance for each NUMA level */
264 distance *= 2;
267 return distance;
319 * broken hierarchy, return with broken distance table
340 * Used to update distance information w.r.t newly added node.
365 * With FORM2 we expect NUMA distance of all possible NUMA
369 "NUMA distance details for node %d not provided\n", nid);
375 * ibm,numa-distance-table = { N, 1, 2, 4, 5, 1, 6, .... N elements}
397 form2_distances = of_get_property(root, "ibm,numa-distance
[all...]
/linux-master/tools/perf/util/
H A Dmachine.c2523 u64 cur_base, distance; local
2531 distance = (prev_stack->hw_idx > cur_base) ? (prev_stack->hw_idx - cur_base) :
2534 if (distance + 1 > prev_stack->nr)
2545 for (i = distance, j = cur_stack->nr - 1; (i >= 0) && (j >= 0); i--, j--) {
2561 for (i = prev_stack->nr - 1; i > (int)distance; i--) {
/linux-master/mm/
H A Dmemory-tiers.c18 * 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...]
H A Dcompaction.c445 /* Leave no distance if no suitable block was reset */
1567 unsigned long distance; local
1589 distance = (cc->free_pfn - cc->migrate_pfn);
1590 low_pfn = pageblock_start_pfn(cc->free_pfn - (distance >> 2));
1591 min_pfn = pageblock_start_pfn(cc->free_pfn - (distance >> 1));
1978 unsigned long distance; local
2026 distance = (cc->free_pfn - cc->migrate_pfn) >> 1;
2028 distance >>= 2;
2029 high_pfn = pageblock_start_pfn(cc->migrate_pfn + distance);
/linux-master/fs/xfs/
H A Dxfs_log_recover.c608 * <---------> less than scan distance
649 * <---------> less than scan distance
901 * Calculate distance from head to tail (i.e., unused space in the log).
1614 int distance; local
1623 * Figure out the distance between the new head of the log
1631 * so the distance from the head to the tail is the
1632 * distance from the head to the end of the log plus
1633 * the distance from the beginning of the log to the
1644 * so the distance from the head to the tail is just
1666 * we could have and the distance t
[all...]
/linux-master/fs/xfs/libxfs/
H A Dxfs_bmap.c3829 xfs_fileoff_t distance; local
3839 distance = bno - irec->br_startoff;
3844 irec->br_startblock += distance;
3845 irec->br_startoff += distance;
3846 irec->br_blockcount -= distance;
3850 distance = irec->br_startoff + irec->br_blockcount - end;
3851 irec->br_blockcount -= distance;
/linux-master/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; local
707 map = calc_map_type_and_dist(provider, pci_client, &distance,
718 total_dist += distance;
765 int distance; local
[all...]
/linux-master/drivers/md/dm-vdo/
H A Dint-map.c429 * 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/drivers/hid/
H A Dwacom_wac.c410 /* Compute distance between mouse and tablet */
902 unsigned int x, y, distance, t; local
940 distance = data[9] >> 2;
944 distance >>= 1;
947 distance = features->distance_max - distance;
950 input_report_abs(input, ABS_DISTANCE, distance);
3189 * Convert distance from out prox to distance from tablet.
3190 * distance wil
[all...]
/linux-master/drivers/gpu/drm/bridge/
H A Dsii902x.c541 int distance = 100000; local
547 if (d >= distance)
551 distance = d;
/linux-master/net/rxrpc/
H A Dconn_client.c209 int id_cursor, id, distance, limit; local
231 distance = id - id_cursor;
232 if (distance < 0)
233 distance = -distance;
235 if (distance > limit)
/linux-master/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, argument
136 BUG_ON(distance > 0);
143 if (distance + runlen >= 0) {
167 distance += runlen + 1;
/linux-master/drivers/nvme/host/
H A Dmultipath.c243 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/drivers/net/phy/
H A Dmarvell.c2083 static u32 marvell_vct5_distance2cm(int distance) argument
2085 return distance * 805 / 10;
2094 int distance, int pair)
2102 distance);
2133 int distance; local
2163 for (distance = priv->first;
2164 distance <= priv->last;
2165 distance += priv->step) {
2166 err = marvell_vct5_amplitude_distance(phydev, distance,
2171 if (distance > TDR_SHORT_CABLE_LENGT
2093 marvell_vct5_amplitude_distance(struct phy_device *phydev, int distance, int pair) argument
2291 marvell_vct7_distance_to_length(int distance, bool meter) argument
[all...]
/linux-master/fs/erofs/
H A Ddecompressor.c31 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 Dnuma.c349 * 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/arch/powerpc/platforms/pseries/
H A Dlpar.c293 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...]

Completed in 682 milliseconds

123