Home
last modified time | relevance | path

Searched refs:dist (Results 1 – 25 of 33) sorted by relevance

12

/drivers/staging/lustre/lustre/ptlrpc/
Devents.c455 int dist; in ptlrpc_uuid_to_peer() local
464 dist = LNetDist(dst_nid, &src_nid, &order); in ptlrpc_uuid_to_peer()
465 if (dist < 0) in ptlrpc_uuid_to_peer()
468 if (dist == 0) { /* local! use loopback LND */ in ptlrpc_uuid_to_peer()
475 dist < best_dist || in ptlrpc_uuid_to_peer()
476 (dist == best_dist && order < best_order)) { in ptlrpc_uuid_to_peer()
477 best_dist = dist; in ptlrpc_uuid_to_peer()
/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxgm200.c53 u32 dist[TPC_MAX / 4] = {}; in gm200_grctx_generate_405b60() local
70 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); in gm200_grctx_generate_405b60()
75 nvkm_wr32(device, 0x405b60 + (i * 4), dist[i]); in gm200_grctx_generate_405b60()
Dctxgp100.c99 u32 dist[TPC_MAX / 4] = {}; in gp100_grctx_generate_405b60() local
116 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); in gp100_grctx_generate_405b60()
121 nvkm_wr32(device, 0x405b60 + (i * 4), dist[i]); in gp100_grctx_generate_405b60()
/drivers/base/regmap/
Dregcache-rbtree.c406 unsigned int dist, best_dist = UINT_MAX; in regcache_rbtree_write() local
427 dist = base_reg - reg; in regcache_rbtree_write()
429 dist = reg - top_reg; in regcache_rbtree_write()
431 dist = 0; in regcache_rbtree_write()
432 if (dist < best_dist) { in regcache_rbtree_write()
434 best_dist = dist; in regcache_rbtree_write()
/drivers/acpi/
Dnuma.c115 int min_dist = INT_MAX, dist, n; in acpi_map_pxm_to_online_node() local
118 dist = node_distance(node, n); in acpi_map_pxm_to_online_node()
119 if (dist < min_dist) { in acpi_map_pxm_to_online_node()
120 min_dist = dist; in acpi_map_pxm_to_online_node()
/drivers/ata/
Dsata_sx4.c1003 long dist; in pdc20621_get_from_dimm() local
1021 dist = ((long) (window_size - (offset + size))) >= 0 ? size : in pdc20621_get_from_dimm()
1023 memcpy_fromio(psource, dimm_mmio + offset / 4, dist); in pdc20621_get_from_dimm()
1025 psource += dist; in pdc20621_get_from_dimm()
1026 size -= dist; in pdc20621_get_from_dimm()
1055 long dist; in pdc20621_put_to_dimm() local
1070 dist = ((long)(s32)(window_size - (offset + size))) >= 0 ? size : in pdc20621_put_to_dimm()
1072 memcpy_toio(dimm_mmio + offset / 4, psource, dist); in pdc20621_put_to_dimm()
1076 psource += dist; in pdc20621_put_to_dimm()
1077 size -= dist; in pdc20621_put_to_dimm()
/drivers/media/i2c/et8ek8/
Det8ek8_driver.c432 unsigned int dist; in et8ek8_reglist_find_mode_fmt() local
439 dist = min(fmt->width, format.width) in et8ek8_reglist_find_mode_fmt()
441 dist = format.width * format.height in et8ek8_reglist_find_mode_fmt()
442 + fmt->width * fmt->height - 2 * dist; in et8ek8_reglist_find_mode_fmt()
446 if (dist < max_dist_match || !best_match) { in et8ek8_reglist_find_mode_fmt()
448 max_dist_match = dist; in et8ek8_reglist_find_mode_fmt()
451 if (dist < max_dist_other || !best_other) { in et8ek8_reglist_find_mode_fmt()
453 max_dist_other = dist; in et8ek8_reglist_find_mode_fmt()
/drivers/irqchip/
Dirq-gic.c1494 struct acpi_madt_generic_distributor *dist; in gic_validate_dist() local
1495 dist = (struct acpi_madt_generic_distributor *)header; in gic_validate_dist()
1497 return (dist->version == ape->driver_data && in gic_validate_dist()
1498 (dist->version != ACPI_MADT_GIC_VERSION_NONE || in gic_validate_dist()
1543 struct acpi_madt_generic_distributor *dist; in gic_v2_acpi_init() local
1562 dist = (struct acpi_madt_generic_distributor *)header; in gic_v2_acpi_init()
1563 gic->raw_dist_base = ioremap(dist->base_address, in gic_v2_acpi_init()
Dirq-gic-v3.c1395 struct acpi_madt_generic_distributor *dist; in acpi_validate_gic_table() local
1398 dist = (struct acpi_madt_generic_distributor *)header; in acpi_validate_gic_table()
1399 if (dist->version != ape->driver_data) in acpi_validate_gic_table()
1495 struct acpi_madt_generic_distributor *dist; in gic_acpi_init() local
1501 dist = (struct acpi_madt_generic_distributor *)header; in gic_acpi_init()
1502 acpi_data.dist_base = ioremap(dist->base_address, in gic_acpi_init()
/drivers/media/i2c/
Dov5670.c2179 int dist; in ov5670_find_best_fit() local
2185 dist = ov5670_get_reso_dist(&supported_modes[i], framefmt); in ov5670_find_best_fit()
2186 if (cur_best_fit_dist == -1 || dist < cur_best_fit_dist) { in ov5670_find_best_fit()
2187 cur_best_fit_dist = dist; in ov5670_find_best_fit()
Dov13858.c1362 int i, dist, cur_best_fit = 0, cur_best_fit_dist = -1; in ov13858_find_best_fit() local
1366 dist = ov13858_get_resolution_dist(&supported_modes[i], in ov13858_find_best_fit()
1368 if (cur_best_fit_dist == -1 || dist < cur_best_fit_dist) { in ov13858_find_best_fit()
1369 cur_best_fit_dist = dist; in ov13858_find_best_fit()
/drivers/staging/media/atomisp/i2c/
Dgc2235.c710 int dist; in nearest_resolution_index() local
716 dist = distance(tmp_res, w, h); in nearest_resolution_index()
717 if (dist == -1) in nearest_resolution_index()
719 if (dist < min_dist) { in nearest_resolution_index()
720 min_dist = dist; in nearest_resolution_index()
Dov2722.c824 int dist; in nearest_resolution_index() local
830 dist = distance(tmp_res, w, h); in nearest_resolution_index()
831 if (dist == -1) in nearest_resolution_index()
833 if (dist < min_dist) { in nearest_resolution_index()
834 min_dist = dist; in nearest_resolution_index()
Dgc0310.c925 int dist; in nearest_resolution_index() local
931 dist = distance(tmp_res, w, h); in nearest_resolution_index()
932 if (dist == -1) in nearest_resolution_index()
934 if (dist < min_dist) { in nearest_resolution_index()
935 min_dist = dist; in nearest_resolution_index()
Dov2680.c1028 int dist; in nearest_resolution_index() local
1034 dist = distance(tmp_res, w, h); in nearest_resolution_index()
1035 if (dist == -1) in nearest_resolution_index()
1037 if (dist < min_dist) { in nearest_resolution_index()
1038 min_dist = dist; in nearest_resolution_index()
Dov8858.c1277 int dist; in nearest_resolution_index() local
1289 dist = distance(tmp_res, w, h); in nearest_resolution_index()
1292 i, tmp_res->width, tmp_res->height, dist); in nearest_resolution_index()
1293 if (dist == -1) in nearest_resolution_index()
1295 if (dist < min_dist) { in nearest_resolution_index()
1296 min_dist = dist; in nearest_resolution_index()
1302 if (dist == min_dist) { in nearest_resolution_index()
Dmt9m114.c630 int dist; in nearest_resolution_index() local
636 dist = distance(tmp_res, w, h); in nearest_resolution_index()
637 if (dist == -1) in nearest_resolution_index()
639 if (dist < min_dist) { in nearest_resolution_index()
640 min_dist = dist; in nearest_resolution_index()
/drivers/staging/media/atomisp/i2c/ov5693/
Dov5693.c1508 int dist; in nearest_resolution_index() local
1515 dist = distance(tmp_res, w, h); in nearest_resolution_index()
1516 if (dist == -1) in nearest_resolution_index()
1518 if (dist < min_dist) { in nearest_resolution_index()
1519 min_dist = dist; in nearest_resolution_index()
1524 if (dist == min_dist && ov5693_res[i].width < min_res_w) in nearest_resolution_index()
/drivers/net/wireless/ath/ath6kl/
Dhtc_mbox.c1210 bool dist = false; in ath6kl_htc_mbox_activity_changed() local
1222 dist = true; in ath6kl_htc_mbox_activity_changed()
1227 dist = true; in ath6kl_htc_mbox_activity_changed()
1231 if (dist) { in ath6kl_htc_mbox_activity_changed()
1246 if (dist && !active) in ath6kl_htc_mbox_activity_changed()
1599 bool dist = false; in htc_proc_cred_rpt() local
1640 dist = true; in htc_proc_cred_rpt()
1654 if (dist) { in htc_proc_cred_rpt()
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c483 u32 dist = (u32)-1; in __mlx4_find_zone_by_uid_unique() local
498 if (curr_dist < dist) { in __mlx4_find_zone_by_uid_unique()
499 dist = curr_dist; in __mlx4_find_zone_by_uid_unique()
/drivers/mtd/
Dmtdswap.c822 unsigned int h, x, y, dist, base; in mtdswap_wlfreq() local
830 dist = maxdiff - MAX_ERASE_DIFF; in mtdswap_wlfreq()
831 if (dist > COLLECT_NONDIRTY_BASE) in mtdswap_wlfreq()
832 dist = COLLECT_NONDIRTY_BASE; in mtdswap_wlfreq()
842 x = dist - base; in mtdswap_wlfreq()
/drivers/staging/lustre/lnet/selftest/
Dconrpc.c717 int dist, int span, int nkiov, struct bio_vec *kiov) in lstcon_dstnodes_prep() argument
726 LASSERT(dist >= 1); in lstcon_dstnodes_prep()
733 start = ((idx / dist) * span) % grp->grp_nnode; in lstcon_dstnodes_prep()
734 end = ((idx / dist) * span + span - 1) % grp->grp_nnode; in lstcon_dstnodes_prep()
Dconsole.h239 int concur, int dist, int span,
/drivers/staging/media/atomisp/i2c/imx/
Dimx.c1541 int dist; in nearest_resolution_index() local
1551 dist = distance(tmp_res, w, h, again); in nearest_resolution_index()
1552 if (dist == -1) in nearest_resolution_index()
1554 if (dist < min_dist) { in nearest_resolution_index()
1555 min_dist = dist; in nearest_resolution_index()
1558 if (dist == min_dist) { in nearest_resolution_index()
/drivers/media/usb/uvc/
Duvc_v4l2.c113 __u32 best = -1, dist; in uvc_try_frame_interval() local
116 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval()
120 if (dist > best) in uvc_try_frame_interval()
123 best = dist; in uvc_try_frame_interval()

12