/linux-3.4.99/lib/ |
D | cpu_rmap.c | 58 rmap->near[cpu].dist = CPU_RMAP_DIST_INF; in alloc_cpu_rmap() 70 const struct cpumask *mask, u16 dist) in cpu_rmap_copy_neigh() argument 75 if (rmap->near[cpu].dist > dist && in cpu_rmap_copy_neigh() 76 rmap->near[neigh].dist <= dist) { in cpu_rmap_copy_neigh() 78 rmap->near[cpu].dist = dist; in cpu_rmap_copy_neigh() 96 cpu, index, rmap->near[cpu].dist); in debug_print_rmap() 144 rmap->near[cpu].dist = CPU_RMAP_DIST_INF; in cpu_rmap_update() 156 rmap->near[cpu].dist = 0; in cpu_rmap_update()
|
/linux-3.4.99/lib/zlib_inflate/ |
D | inffast.c | 113 unsigned dist; /* match distance */ in inflate_fast() local 180 dist = (unsigned)(this.val); in inflate_fast() 190 dist += (unsigned)hold & ((1U << op) - 1); in inflate_fast() 192 if (dist > dmax) { in inflate_fast() 201 if (dist > op) { /* see if copy from window */ in inflate_fast() 202 op = dist - op; /* distance back in window */ in inflate_fast() 216 from = out - dist; /* rest from output */ in inflate_fast() 234 from = out - dist; /* rest from output */ in inflate_fast() 245 from = out - dist; /* rest from output */ in inflate_fast() 264 from = out - dist; /* copy direct from output */ in inflate_fast() [all …]
|
D | inflate.c | 119 unsigned copy, dist; in zlib_updatewindow() local 131 dist = state->wsize - state->write; in zlib_updatewindow() 132 if (dist > copy) dist = copy; in zlib_updatewindow() 133 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow() 134 copy -= dist; in zlib_updatewindow() 141 state->write += dist; in zlib_updatewindow() 143 if (state->whave < state->wsize) state->whave += dist; in zlib_updatewindow()
|
/linux-3.4.99/arch/hexagon/kernel/ |
D | module.c | 115 int dist = (int)(value - (uint32_t)location); in apply_relocate_add() local 116 if ((dist < -0x00800000) || in apply_relocate_add() 117 (dist >= 0x00800000)) { in apply_relocate_add() 122 dist, value, (uint32_t)location, in apply_relocate_add() 129 *location |= 0x00003fff & dist; in apply_relocate_add() 130 *location |= 0x01ff0000 & (dist<<2); in apply_relocate_add()
|
/linux-3.4.99/arch/microblaze/kernel/ |
D | heartbeat.c | 22 static unsigned int cnt, period, dist; in heartbeat() local 25 if (cnt == 0 || cnt == dist) in heartbeat() 27 else if (cnt == 7 || cnt == dist + 7) in heartbeat() 40 dist = period / 4; in heartbeat()
|
/linux-3.4.99/lib/zlib_deflate/ |
D | deftree.c | 165 #define d_code(dist) \ argument 166 ((dist) < 256 ? dist_code[dist] : dist_code[256+((dist)>>7)]) 232 int dist; /* distance index */ in tr_static_init() local 254 dist = 0; in tr_static_init() 256 base_dist[code] = dist; in tr_static_init() 258 dist_code[dist++] = (uch)code; in tr_static_init() 261 Assert (dist == 256, "tr_static_init: dist != 256"); in tr_static_init() 262 dist >>= 7; /* from now on, all distances are divided by 128 */ in tr_static_init() 264 base_dist[code] = dist << 7; in tr_static_init() 266 dist_code[256 + dist++] = (uch)code; in tr_static_init() [all …]
|
D | defutil.h | 277 int zlib_tr_tally (deflate_state *s, unsigned dist, unsigned lc);
|
/linux-3.4.99/arch/m68k/kernel/ |
D | time.c | 46 static unsigned cnt = 0, period = 0, dist = 0; in timer_interrupt() local 48 if (cnt == 0 || cnt == dist) in timer_interrupt() 50 else if (cnt == 7 || cnt == dist+7) in timer_interrupt() 60 dist = period / 4; in timer_interrupt()
|
/linux-3.4.99/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()
|
/linux-3.4.99/fs/logfs/ |
D | gc.c | 288 cand = add_list(cand, &super->s_low_list[cand->dist]); in __add_candidate() 299 u8 dist) in add_candidate() argument 311 cand->dist = dist; in add_candidate() 334 u8 dist; in scan_segment() local 344 dist = root_distance(sb, gc_level); in scan_segment() 345 add_candidate(sb, segno, valid, ec, dist); in scan_segment() 389 u8 dist; in __logfs_gc_once() local 397 dist = cand->dist; in __logfs_gc_once() 402 dist, no_free_segments(sb), valid, in __logfs_gc_once()
|
/linux-3.4.99/arch/arm/include/asm/hardware/ |
D | gic.h | 50 void __iomem *dist , void __iomem *cpu) in gic_init() argument 52 gic_init_bases(nr, start, dist, cpu, 0, NULL); in gic_init()
|
/linux-3.4.99/net/ipv4/ |
D | tcp_bic.c | 106 __u32 dist = (ca->last_max_cwnd - cwnd) in bictcp_update() local 109 if (dist > max_increment) in bictcp_update() 112 else if (dist <= 1U) in bictcp_update() 117 ca->cnt = cwnd / dist; in bictcp_update()
|
/linux-3.4.99/fs/gfs2/ |
D | log.c | 389 int dist; in log_distance() local 391 dist = newer - older; in log_distance() 392 if (dist < 0) in log_distance() 393 dist += sdp->sd_jdesc->jd_blocks; in log_distance() 395 return dist; in log_distance() 482 unsigned int dist = log_distance(sdp, new_tail, sdp->sd_log_tail); in log_pull_tail() local 486 atomic_add(dist, &sdp->sd_log_blks_free); in log_pull_tail() 487 trace_gfs2_log_blocks(sdp, dist); in log_pull_tail()
|
/linux-3.4.99/arch/x86/mm/ |
D | numa_emulation.c | 419 int dist; in numa_emulation() local 422 dist = physi == physj ? in numa_emulation() 425 dist = phys_dist[physi * numa_dist_cnt + physj]; in numa_emulation() 427 numa_set_distance(i, j, dist); in numa_emulation()
|
/linux-3.4.99/drivers/ata/ |
D | sata_sx4.c | 1006 long dist; in pdc20621_get_from_dimm() local 1024 dist = ((long) (window_size - (offset + size))) >= 0 ? size : in pdc20621_get_from_dimm() 1027 dist); in pdc20621_get_from_dimm() 1029 psource += dist; in pdc20621_get_from_dimm() 1030 size -= dist; in pdc20621_get_from_dimm() 1061 long dist; in pdc20621_put_to_dimm() local 1076 dist = ((long)(s32)(window_size - (offset + size))) >= 0 ? size : in pdc20621_put_to_dimm() 1078 memcpy_toio(dimm_mmio + offset / 4, psource, dist); in pdc20621_put_to_dimm() 1082 psource += dist; in pdc20621_put_to_dimm() 1083 size -= dist; in pdc20621_put_to_dimm()
|
/linux-3.4.99/lib/xz/ |
D | xz_dec_lzma2.c | 320 static inline uint32_t dict_get(const struct dictionary *dict, uint32_t dist) in dict_get() argument 322 size_t offset = dict->pos - dist - 1; in dict_get() 324 if (dist >= dict->pos) in dict_get() 346 static bool dict_repeat(struct dictionary *dict, uint32_t *len, uint32_t dist) in dict_repeat() argument 351 if (dist >= dict->full || dist >= dict->size) in dict_repeat() 357 back = dict->pos - dist - 1; in dict_repeat() 358 if (dist >= dict->pos) in dict_repeat()
|
/linux-3.4.99/include/linux/ |
D | cpu_rmap.h | 27 u16 dist; member
|
/linux-3.4.99/sound/pci/ctxfi/ |
D | cttimer.c | 75 unsigned int position, dist, interval; in ct_systimer_callback() local 78 dist = (position + buffer_size - ti->position) % buffer_size; in ct_systimer_callback() 79 if (dist >= period_size || in ct_systimer_callback()
|
/linux-3.4.99/net/sched/ |
D | sch_netem.c | 287 const struct disttable *dist) in tabledist() argument 299 if (dist == NULL) in tabledist() 302 t = dist->table[rnd % dist->size]; in tabledist()
|
/linux-3.4.99/arch/ia64/kernel/ |
D | ptrace.c | 81 unsigned long dist; \ in ia64_get_scratch_nat_bits() 83 dist = 64 + bit - first; \ in ia64_get_scratch_nat_bits() 85 dist = bit - first; \ in ia64_get_scratch_nat_bits() 86 ia64_rotr(unat, dist) & mask; \ in ia64_get_scratch_nat_bits() 120 long dist; \ in ia64_put_scratch_nat_bits() 122 dist = 64 + bit - first; \ in ia64_put_scratch_nat_bits() 124 dist = bit - first; \ in ia64_put_scratch_nat_bits() 125 ia64_rotl(nat & mask, dist); \ in ia64_put_scratch_nat_bits()
|
/linux-3.4.99/drivers/net/wireless/ath/ath6kl/ |
D | htc.c | 1184 bool dist = false; in ath6kl_htc_indicate_activity_change() local 1196 dist = true; in ath6kl_htc_indicate_activity_change() 1201 dist = true; in ath6kl_htc_indicate_activity_change() 1205 if (dist) { in ath6kl_htc_indicate_activity_change() 1220 if (dist && !active) in ath6kl_htc_indicate_activity_change() 1573 bool dist = false; in htc_proc_cred_rpt() local 1614 dist = true; in htc_proc_cred_rpt() 1628 if (dist) { in htc_proc_cred_rpt()
|
/linux-3.4.99/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()
|
/linux-3.4.99/drivers/media/video/uvc/ |
D | uvc_v4l2.c | 117 __u32 best = -1, dist; in uvc_try_frame_interval() local 120 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 124 if (dist > best) in uvc_try_frame_interval() 127 best = dist; in uvc_try_frame_interval()
|
/linux-3.4.99/drivers/video/ |
D | sh_mobile_lcdcfb.c | 1214 unsigned int dist; in sh_mobile_check_var() local 1220 dist = var->xres * var->yres + mode->xres * mode->yres in sh_mobile_check_var() 1224 if (dist < best_dist) { in sh_mobile_check_var() 1227 best_dist = dist; in sh_mobile_check_var()
|
/linux-3.4.99/drivers/md/ |
D | raid1.c | 525 sector_t dist; in read_balance() local 590 dist = abs(this_sector - conf->mirrors[disk].head_position); in read_balance() 594 || dist == 0 in read_balance() 600 if (dist < best_dist) { in read_balance() 601 best_dist = dist; in read_balance()
|