/linux-2.6.39/arch/x86/mm/ |
D | amdtopology_64.c | 98 unsigned long base, limit; in amd_numa_init() local 101 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init() 103 nodeids[i] = nodeid = limit & 7; in amd_numa_init() 111 base, limit); in amd_numa_init() 115 if (!limit) { in amd_numa_init() 120 if ((base >> 8) & 3 || (limit >> 8) & 3) { in amd_numa_init() 122 nodeid, (base >> 8) & 3, (limit >> 8) & 3); in amd_numa_init() 131 limit >>= 16; in amd_numa_init() 132 limit <<= 24; in amd_numa_init() 133 limit |= (1<<24)-1; in amd_numa_init() [all …]
|
D | numa_emulation.c | 112 u64 start, limit, end; in split_nodes_interleave() local 121 limit = pi->blk[phys_blk].end; in split_nodes_interleave() 134 if (end > limit) { in split_nodes_interleave() 135 end = limit; in split_nodes_interleave() 154 if (limit - end - in split_nodes_interleave() 155 memblock_x86_hole_size(end, limit) < size) in split_nodes_interleave() 156 end = limit; in split_nodes_interleave() 160 min(end, limit) - start); in split_nodes_interleave() 230 u64 start, limit, end; in split_nodes_size_interleave() local 239 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave() [all …]
|
/linux-2.6.39/net/sched/ |
D | sch_fifo.c | 24 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= sch->limit)) in bfifo_enqueue() 32 if (likely(skb_queue_len(&sch->q) < sch->limit)) in pfifo_enqueue() 40 if (likely(skb_queue_len(&sch->q) < sch->limit)) in pfifo_tail_enqueue() 57 u32 limit = qdisc_dev(sch)->tx_queue_len ? : 1; in fifo_init() local 60 limit *= psched_mtu(qdisc_dev(sch)); in fifo_init() 62 sch->limit = limit; in fifo_init() 69 sch->limit = ctl->limit; in fifo_init() 73 bypass = sch->limit >= psched_mtu(qdisc_dev(sch)); in fifo_init() 75 bypass = sch->limit >= 1; in fifo_init() 86 struct tc_fifo_qopt opt = { .limit = sch->limit }; in fifo_dump() [all …]
|
/linux-2.6.39/net/netfilter/ |
D | nf_conntrack_sip.c | 111 const char *limit, int *shift) in string_len() argument 115 while (dptr < limit && isalpha(*dptr)) { in string_len() 123 const char *limit, int *shift) in digits_len() argument 126 while (dptr < limit && isdigit(*dptr)) { in digits_len() 143 static int word_len(const char *dptr, const char *limit) in word_len() argument 146 while (dptr < limit && iswordc(*dptr)) { in word_len() 154 const char *limit, int *shift) in callid_len() argument 158 len = word_len(dptr, limit); in callid_len() 160 if (!len || dptr == limit || *dptr != '@') in callid_len() 165 domain_len = word_len(dptr, limit); in callid_len() [all …]
|
/linux-2.6.39/fs/romfs/ |
D | storage.c | 135 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument 144 while (limit > 0) { in romfs_blk_strnlen() 146 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen() 155 limit -= segment; in romfs_blk_strnlen() 221 size_t limit; in romfs_dev_read() local 223 limit = romfs_maxsize(sb); in romfs_dev_read() 224 if (pos >= limit) in romfs_dev_read() 226 if (buflen > limit - pos) in romfs_dev_read() 227 buflen = limit - pos; in romfs_dev_read() 246 size_t limit; in romfs_dev_strnlen() local [all …]
|
/linux-2.6.39/arch/frv/mm/ |
D | elf-fdpic.c | 63 unsigned long limit; in arch_get_unmapped_area() local 83 limit = (current->mm->start_stack - 0x00200000); in arch_get_unmapped_area() 84 if (addr + len <= limit) { in arch_get_unmapped_area() 85 limit -= len; in arch_get_unmapped_area() 87 if (addr <= limit) { in arch_get_unmapped_area() 90 if (addr > limit) in arch_get_unmapped_area() 101 limit = TASK_SIZE - len; in arch_get_unmapped_area() 102 if (addr <= limit) { in arch_get_unmapped_area() 105 if (addr > limit) in arch_get_unmapped_area() 112 if (!vma && addr <= limit) in arch_get_unmapped_area()
|
/linux-2.6.39/mm/ |
D | nobootmem.c | 36 u64 goal, u64 limit) in __alloc_memory_core_early() argument 41 if (limit > memblock.current_limit) in __alloc_memory_core_early() 42 limit = memblock.current_limit; in __alloc_memory_core_early() 44 addr = find_memory_core_early(nid, size, align, goal, limit); in __alloc_memory_core_early() 196 unsigned long limit) in ___alloc_bootmem_nopanic() argument 205 ptr = __alloc_memory_core_early(MAX_NUMNODES, size, align, goal, limit); in ___alloc_bootmem_nopanic() 234 unsigned long limit = -1UL; in __alloc_bootmem_nopanic() local 236 return ___alloc_bootmem_nopanic(size, align, goal, limit); in __alloc_bootmem_nopanic() 240 unsigned long goal, unsigned long limit) in ___alloc_bootmem() argument 242 void *mem = ___alloc_bootmem_nopanic(size, align, goal, limit); in ___alloc_bootmem() [all …]
|
D | bootmem.c | 474 unsigned long goal, unsigned long limit) in alloc_bootmem_core() argument 481 align, goal, limit); in alloc_bootmem_core() 485 BUG_ON(limit && goal + size > limit); in alloc_bootmem_core() 494 limit >>= PAGE_SHIFT; in alloc_bootmem_core() 496 if (limit && max > limit) in alloc_bootmem_core() 497 max = limit; in alloc_bootmem_core() 581 unsigned long goal, unsigned long limit) in alloc_arch_preferred_bootmem() argument 591 goal, limit); in alloc_arch_preferred_bootmem() 594 goal, limit); in alloc_arch_preferred_bootmem() 603 unsigned long limit) in ___alloc_bootmem_nopanic() argument [all …]
|
/linux-2.6.39/security/keys/ |
D | gc.c | 68 static bool key_gc_keyring(struct key *keyring, time_t limit) in key_gc_keyring() argument 89 (key->expiry > 0 && key->expiry <= limit)) in key_gc_keyring() 104 keyring_gc(keyring, limit); in key_gc_keyring() 119 time_t new_timer = LONG_MAX, limit, now; in key_garbage_collector() local 130 limit = now; in key_garbage_collector() 131 if (limit > key_gc_delay) in key_garbage_collector() 132 limit -= key_gc_delay; in key_garbage_collector() 134 limit = key_gc_delay; in key_garbage_collector() 176 if (key->expiry > limit && key->expiry < new_timer) { in key_garbage_collector() 178 key_serial(key), key->expiry - limit); in key_garbage_collector() [all …]
|
/linux-2.6.39/fs/xfs/quota/ |
D | xfs_qm_bhv.c | 45 __uint64_t limit; in xfs_fill_statvfs_from_dquot() local 47 limit = dp->d_blk_softlimit ? in xfs_fill_statvfs_from_dquot() 50 if (limit && statp->f_blocks > limit) { in xfs_fill_statvfs_from_dquot() 51 statp->f_blocks = limit; in xfs_fill_statvfs_from_dquot() 57 limit = dp->d_ino_softlimit ? in xfs_fill_statvfs_from_dquot() 60 if (limit && statp->f_files > limit) { in xfs_fill_statvfs_from_dquot() 61 statp->f_files = limit; in xfs_fill_statvfs_from_dquot()
|
/linux-2.6.39/arch/powerpc/mm/ |
D | subpage-prot.c | 99 unsigned long next, limit; in subpage_prot_clear() local 102 limit = addr + len; in subpage_prot_clear() 103 if (limit > spt->maxaddr) in subpage_prot_clear() 104 limit = spt->maxaddr; in subpage_prot_clear() 105 for (; addr < limit; addr = next) { in subpage_prot_clear() 106 next = pmd_addr_end(addr, limit); in subpage_prot_clear() 148 unsigned long next, limit; in sys_subpage_prot() local 169 for (limit = addr + len; addr < limit; addr = next) { in sys_subpage_prot() 170 next = pmd_addr_end(addr, limit); in sys_subpage_prot() 212 if (limit > spt->maxaddr) in sys_subpage_prot() [all …]
|
D | fsl_booke_mmu.c | 65 unsigned long limit; member 73 return tlbcam_addrs[idx].limit - tlbcam_addrs[idx].start + 1; in tlbcam_sz() 83 if (va >= tlbcam_addrs[b].start && va < tlbcam_addrs[b].limit) in v_mapped_by_tlbcam() 96 && pa < (tlbcam_addrs[b].limit-tlbcam_addrs[b].start) in p_mapped_by_tlbcam() 143 tlbcam_addrs[index].limit = virt + size - 1; in settlbcam() 192 return tlbcam_addrs[tlbcam_index - 1].limit - PAGE_OFFSET + 1; in mmu_mapin_ram() 225 phys_addr_t limit = first_memblock_base + first_memblock_size; in setup_initial_memory_limit() local 228 memblock_set_current_limit(min_t(u64, limit, 0x04000000)); in setup_initial_memory_limit()
|
/linux-2.6.39/arch/powerpc/kernel/ |
D | paca.c | 55 static void allocate_lppacas(int nr_cpus, unsigned long limit) in allocate_lppacas() argument 63 PAGE_SIZE, limit)); in allocate_lppacas() 97 static inline void allocate_lppacas(int nr_cpus, unsigned long limit) { } in allocate_lppacas() argument 170 int nr_cpus, cpu, limit; in allocate_pacas() local 178 limit = min(0x10000000ULL, ppc64_rma_size); in allocate_pacas() 180 limit = min(limit, HvPagesToMap * HVPAGESIZE); in allocate_pacas() 189 paca = __va(memblock_alloc_base(paca_size, PAGE_SIZE, limit)); in allocate_pacas() 195 allocate_lppacas(nr_cpus, limit); in allocate_pacas()
|
/linux-2.6.39/fs/dlm/ |
D | midcomms.c | 35 unsigned len, unsigned limit) in copy_from_cb() argument 39 if ((copy + offset) > limit) in copy_from_cb() 40 copy = limit - offset; in copy_from_cb() 59 unsigned offset, unsigned len, unsigned limit) in dlm_process_incoming_buffer() argument 79 limit); in dlm_process_incoming_buffer() 120 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer() 126 offset &= (limit - 1); in dlm_process_incoming_buffer()
|
/linux-2.6.39/arch/sparc/mm/ |
D | io-unit.c | 49 iounit->limit[0] = IOUNIT_BMAP1_START; in iounit_iommu_init() 50 iounit->limit[1] = IOUNIT_BMAP2_START; in iounit_iommu_init() 51 iounit->limit[2] = IOUNIT_BMAPM_START; in iounit_iommu_init() 52 iounit->limit[3] = IOUNIT_BMAPM_END; in iounit_iommu_init() 94 unsigned long rotor, scan, limit; in iounit_get_area() local 110 limit = iounit->limit[j]; in iounit_get_area() 112 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area() 113 if (scan + npages > limit) { in iounit_get_area() 114 if (limit != rotor) { in iounit_get_area() 115 limit = rotor; in iounit_get_area() [all …]
|
/linux-2.6.39/drivers/net/wireless/ath/ath9k/ |
D | calib.c | 50 struct ath_nf_limits *limit; in ath9k_hw_get_nf_limits() local 53 limit = &ah->nf_2g; in ath9k_hw_get_nf_limits() 55 limit = &ah->nf_5g; in ath9k_hw_get_nf_limits() 57 return limit; in ath9k_hw_get_nf_limits() 72 struct ath_nf_limits *limit; in ath9k_hw_update_nfcal_hist_buffer() local 78 limit = ath9k_hw_get_nf_limits(ah, ah->curchan); in ath9k_hw_update_nfcal_hist_buffer() 97 if (h[i].privNF > limit->max) { in ath9k_hw_update_nfcal_hist_buffer() 102 i, h[i].privNF, limit->max, in ath9k_hw_update_nfcal_hist_buffer() 115 h[i].privNF = limit->max; in ath9k_hw_update_nfcal_hist_buffer() 309 struct ath_nf_limits *limit; in ath9k_hw_nf_sanitize() local [all …]
|
/linux-2.6.39/arch/powerpc/sysdev/ |
D | dart_iommu.c | 81 unsigned long limit; in dart_tlb_invalidate_all() local 92 limit = 0; in dart_tlb_invalidate_all() 101 while ((DART_IN(DART_CNTL) & inv_bit) && l < (1L << limit)) in dart_tlb_invalidate_all() 103 if (l == (1L << limit)) { in dart_tlb_invalidate_all() 104 if (limit < 4) { in dart_tlb_invalidate_all() 105 limit++; in dart_tlb_invalidate_all() 119 unsigned int l, limit; in dart_tlb_invalidate_one() local 125 limit = 0; in dart_tlb_invalidate_one() 128 while ((DART_IN(DART_CNTL) & DART_CNTL_U4_IONE) && l < (1L << limit)) { in dart_tlb_invalidate_one() 133 if (l == (1L << limit)) { in dart_tlb_invalidate_one() [all …]
|
/linux-2.6.39/fs/gfs2/ |
D | lops.h | 33 unsigned int limit; in buf_limit() local 35 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit() 36 return limit; in buf_limit() 41 unsigned int limit; in databuf_limit() local 43 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit() 44 return limit; in databuf_limit()
|
/linux-2.6.39/fs/configfs/ |
D | item.c | 68 int limit = CONFIGFS_ITEM_NAME_LEN; in config_item_set_name() local 77 need = vsnprintf(item->ci_namebuf,limit,fmt,args); in config_item_set_name() 79 if (need < limit) in config_item_set_name() 85 limit = need + 1; in config_item_set_name() 86 name = kmalloc(limit,GFP_KERNEL); in config_item_set_name() 92 need = vsnprintf(name,limit,fmt,args); in config_item_set_name() 96 if (need >= limit) { in config_item_set_name()
|
/linux-2.6.39/include/linux/ |
D | res_counter.h | 36 unsigned long long limit; member 145 margin = cnt->limit - cnt->usage; in res_counter_margin() 191 unsigned long long limit) in res_counter_set_limit() argument 197 if (cnt->usage <= limit) { in res_counter_set_limit() 198 cnt->limit = limit; in res_counter_set_limit()
|
/linux-2.6.39/arch/x86/include/asm/ |
D | desc.h | 12 desc->limit0 = info->limit & 0x0ffff; in fill_ldt() 21 desc->limit = (info->limit & 0xf0000) >> 16; in fill_ldt() 146 unsigned long limit, unsigned char type, in pack_descriptor() argument 149 desc->a = ((base & 0xffff) << 16) | (limit & 0xffff); in pack_descriptor() 151 (limit & 0x000f0000) | ((type & 0xff) << 8) | in pack_descriptor() 255 (info)->limit == 0 && \ 303 return desc->limit0 | (desc->limit << 16); in get_desc_limit() 306 static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit) in set_desc_limit() argument 308 desc->limit0 = limit & 0xffff; in set_desc_limit() 309 desc->limit = (limit >> 16) & 0xf; in set_desc_limit()
|
/linux-2.6.39/arch/arm/mach-rpc/include/mach/ |
D | acornfb.h | 18 u_long limit; in acornfb_valid_pixrate() local 28 limit = 6578; in acornfb_valid_pixrate() 30 limit = 13157; in acornfb_valid_pixrate() 32 limit = 26315; in acornfb_valid_pixrate() 35 return acornfb_bandwidth(var) >= limit; in acornfb_valid_pixrate()
|
/linux-2.6.39/drivers/infiniband/hw/qib/ |
D | qib_diag.c | 338 u32 limit; in qib_read_umem64() local 341 reg_addr = (const u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit); in qib_read_umem64() 342 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) { in qib_read_umem64() 346 if (count >= limit) in qib_read_umem64() 347 count = limit; in qib_read_umem64() 382 u32 limit; in qib_write_umem64() local 385 reg_addr = (u64 __iomem *)qib_remap_ioaddr32(dd, regoffs, &limit); in qib_write_umem64() 386 if (reg_addr == NULL || limit == 0 || !(dd->flags & QIB_PRESENT)) { in qib_write_umem64() 390 if (count >= limit) in qib_write_umem64() 391 count = limit; in qib_write_umem64() [all …]
|
/linux-2.6.39/Documentation/hwmon/ |
D | adm9240 | 39 microprocessor-based systems, providing measurement and limit comparison 43 for limit comparisons can be programmed in over the same serial bus. The 45 analog channels to ensure a fast interrupt response to any out-of-limit 77 Temperature alarm is asserted once the temperature exceeds the high limit, 89 * User sets 0 to fan_min limit 94 * User sets fan_min limit too low 108 * User sets unreasonably high low fan speed limit 109 - resolution of the low speed limit may be reduced 164 0 +2.5 V_Error high or low limit exceeded 165 1 VCCP_Error high or low limit exceeded [all …]
|
/linux-2.6.39/drivers/usb/host/ |
D | xhci-ext-caps.h | 136 int limit = XHCI_MAX_EXT_CAPS; in xhci_find_ext_cap_by_id() local 138 while (ext_offset && limit > 0) { in xhci_find_ext_cap_by_id() 143 limit--; in xhci_find_ext_cap_by_id() 145 if (limit > 0) in xhci_find_ext_cap_by_id()
|