/drivers/isdn/pcbit/ |
D | layer2.h | 182 int dist; in pcbit_writew() local 184 dist = BANKLEN - (dev->writeptr - dev->sh_mem); in pcbit_writew() 185 switch (dist) { in pcbit_writew() 238 int dist; in pcbit_readw() local 241 dist = BANKLEN - (dev->readptr - (dev->sh_mem + BANK2)); in pcbit_readw() 242 switch (dist) { in pcbit_readw()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | events.c | 442 int dist; in ptlrpc_uuid_to_peer() local 453 dist = LNetDist(dst_nid, &src_nid, &order); in ptlrpc_uuid_to_peer() 454 if (dist < 0) in ptlrpc_uuid_to_peer() 457 if (dist == 0) { /* local! use loopback LND */ in ptlrpc_uuid_to_peer() 464 dist < best_dist || in ptlrpc_uuid_to_peer() 465 (dist == best_dist && order < best_order)) { in ptlrpc_uuid_to_peer() 466 best_dist = dist; in ptlrpc_uuid_to_peer()
|
/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/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgm204.c | 953 u32 dist[TPC_MAX / 4] = {}; in gm204_grctx_generate_405b60() local 970 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); in gm204_grctx_generate_405b60() 975 nvkm_wr32(device, 0x405b60 + (i * 4), dist[i]); in gm204_grctx_generate_405b60()
|
/drivers/ata/ |
D | sata_sx4.c | 1005 long dist; in pdc20621_get_from_dimm() local 1023 dist = ((long) (window_size - (offset + size))) >= 0 ? size : in pdc20621_get_from_dimm() 1025 memcpy_fromio(psource, dimm_mmio + offset / 4, dist); in pdc20621_get_from_dimm() 1027 psource += dist; in pdc20621_get_from_dimm() 1028 size -= dist; in pdc20621_get_from_dimm() 1057 long dist; in pdc20621_put_to_dimm() local 1072 dist = ((long)(s32)(window_size - (offset + size))) >= 0 ? size : in pdc20621_put_to_dimm() 1074 memcpy_toio(dimm_mmio + offset / 4, psource, dist); in pdc20621_put_to_dimm() 1078 psource += dist; in pdc20621_put_to_dimm() 1079 size -= dist; in pdc20621_put_to_dimm()
|
/drivers/irqchip/ |
D | irq-gic.c | 1307 struct acpi_madt_generic_distributor *dist; in gic_validate_dist() local 1308 dist = (struct acpi_madt_generic_distributor *)header; in gic_validate_dist() 1310 return (dist->version == ape->driver_data && in gic_validate_dist() 1311 (dist->version != ACPI_MADT_GIC_VERSION_NONE || in gic_validate_dist() 1321 struct acpi_madt_generic_distributor *dist; in gic_v2_acpi_init() local 1340 dist = (struct acpi_madt_generic_distributor *)header; in gic_v2_acpi_init() 1341 dist_base = ioremap(dist->base_address, ACPI_GICV2_DIST_MEM_SIZE); in gic_v2_acpi_init()
|
/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/staging/lustre/lnet/selftest/ |
D | console.h | 230 int concur, int dist, int span,
|
D | conrpc.c | 722 int dist, int span, int nkiov, lnet_kiov_t *kiov) in lstcon_dstnodes_prep() argument 731 LASSERT(dist >= 1); in lstcon_dstnodes_prep() 738 start = ((idx / dist) * span) % grp->grp_nnode; in lstcon_dstnodes_prep() 739 end = ((idx / dist) * span + span - 1) % grp->grp_nnode; in lstcon_dstnodes_prep()
|
D | console.c | 1274 int concur, int dist, int span, in lstcon_test_add() argument 1321 test->tes_dist = dist; in lstcon_test_add()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | alloc.c | 485 u32 dist = (u32)-1; in __mlx4_find_zone_by_uid_unique() local 500 if (curr_dist < dist) { in __mlx4_find_zone_by_uid_unique() 501 dist = curr_dist; in __mlx4_find_zone_by_uid_unique()
|
/drivers/mtd/ |
D | mtdswap.c | 824 unsigned int h, x, y, dist, base; in mtdswap_wlfreq() local 832 dist = maxdiff - MAX_ERASE_DIFF; in mtdswap_wlfreq() 833 if (dist > COLLECT_NONDIRTY_BASE) in mtdswap_wlfreq() 834 dist = COLLECT_NONDIRTY_BASE; in mtdswap_wlfreq() 844 x = dist - base; in mtdswap_wlfreq()
|
/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 118 __u32 best = -1, dist; in uvc_try_frame_interval() local 121 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 125 if (dist > best) in uvc_try_frame_interval() 128 best = dist; in uvc_try_frame_interval()
|
/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 814 int dist = abs(fs->width - fmt->width) + in s5c73m3_find_frame_size() local 816 if (dist < best_dist) { in s5c73m3_find_frame_size() 817 best_dist = dist; in s5c73m3_find_frame_size()
|
/drivers/media/dvb-frontends/ |
D | mb86a16.c | 1802 u8 dist; in mb86a16_read_ucblocks() local 1805 if (mb86a16_read(state, MB86A16_DISTMON, &dist) != 2) { in mb86a16_read_ucblocks() 1809 *ucblocks = dist; in mb86a16_read_ucblocks()
|
/drivers/staging/lustre/lustre/libcfs/ |
D | hash.c | 2056 int dist[8] = { 0, }; in cfs_hash_debug_str() local 2100 dist[min(fls(bd.bd_bucket->hsb_count / max(theta, 1)), 7)]++; in cfs_hash_debug_str() 2106 seq_printf(m, "%d%c", dist[i], (i == 7) ? '\n' : '/'); in cfs_hash_debug_str()
|
/drivers/md/ |
D | raid1.c | 553 sector_t dist; in read_balance() local 619 dist = abs(this_sector - conf->mirrors[disk].head_position); in read_balance() 626 || dist == 0) { in read_balance() 668 if (dist < best_dist) { in read_balance() 669 best_dist = dist; in read_balance()
|
/drivers/video/fbdev/ |
D | sh_mobile_lcdcfb.c | 1991 unsigned int dist; in sh_mobile_lcdc_check_var() local 1997 dist = var->xres * var->yres + mode->xres * mode->yres in sh_mobile_lcdc_check_var() 2001 if (dist < best_dist) { in sh_mobile_lcdc_check_var() 2004 best_dist = dist; in sh_mobile_lcdc_check_var()
|
/drivers/scsi/lpfc/ |
D | lpfc_hw.h | 2819 uint32_t dist:2; /* Dist Type */ member 2823 uint32_t dist:2; /* Dist Type */
|
D | lpfc_init.c | 290 char dist = ' '; in lpfc_dump_wakeup_param_cmpl() local 305 if (prg->dist < 4) in lpfc_dump_wakeup_param_cmpl() 306 dist = dist_char[prg->dist]; in lpfc_dump_wakeup_param_cmpl() 308 if ((prg->dist == 3) && (prg->num == 0)) in lpfc_dump_wakeup_param_cmpl() 314 dist, prg->num); in lpfc_dump_wakeup_param_cmpl()
|