/drivers/staging/lustre/lustre/ptlrpc/ |
D | events.c | 455 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/ |
D | ctxgm200.c | 53 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()
|
D | ctxgp100.c | 99 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/ |
D | regcache-rbtree.c | 406 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/ |
D | numa.c | 115 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/ |
D | sata_sx4.c | 1003 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/ |
D | et8ek8_driver.c | 432 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/ |
D | irq-gic.c | 1494 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()
|
D | irq-gic-v3.c | 1395 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/ |
D | ov5670.c | 2179 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()
|
D | ov13858.c | 1362 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/ |
D | gc2235.c | 710 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()
|
D | ov2722.c | 824 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()
|
D | gc0310.c | 925 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()
|
D | ov2680.c | 1028 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()
|
D | ov8858.c | 1277 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()
|
D | mt9m114.c | 630 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/ |
D | ov5693.c | 1508 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/ |
D | htc_mbox.c | 1210 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/ |
D | alloc.c | 483 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/ |
D | mtdswap.c | 822 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/ |
D | conrpc.c | 717 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()
|
D | console.h | 239 int concur, int dist, int span,
|
/drivers/staging/media/atomisp/i2c/imx/ |
D | imx.c | 1541 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/ |
D | uvc_v4l2.c | 113 __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()
|