/linux-master/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-regs.h | 345 const struct mdp_limit *limit; member in struct:mdp_frameparam 370 const struct mdp_limit *limit);
|
/linux-master/drivers/mtd/ubi/ |
H A D | build.c | 549 int limit, device_pebs; local 556 * limit if it is supported by the device. 558 limit = mtd_max_bad_blocks(ubi->mtd, 0, ubi->mtd->size); 559 if (limit < 0) 561 return limit; 575 limit = mult_frac(device_pebs, max_beb_per1024, 1024); 578 if (mult_frac(limit, 1024, max_beb_per1024) < device_pebs) 579 limit += 1; 581 return limit;
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_rtbitmap.h | 319 xfs_rtxnum_t limit, xfs_rtxnum_t *rtblock); 321 xfs_rtxnum_t limit, xfs_rtxnum_t *rtblock);
|
/linux-master/lib/lz4/ |
H A D | lz4_compress.c | 230 /* Size too large (not within 64K limit) */ 340 const BYTE *limit; local 343 limit = ip + (dictEnd - match); 345 if (limit > matchlimit) 346 limit = matchlimit; 349 match + MINMATCH, limit); 353 if (ip == limit) { 555 /* Size too large (not within 64K limit) */
|
/linux-master/drivers/net/wireless/intersil/p54/ |
H A D | p54pci.c | 138 u32 limit, idx, i; local 141 limit = idx; 142 limit -= index; 143 limit = ring_limit - limit; 146 while (limit-- > 1) {
|
/linux-master/drivers/regulator/ |
H A D | da9063-regulator.c | 457 * When enabling overdrive, do it before changing the current limit to 496 * When disabling overdrive, do it after changing the current limit to 514 * Attempt to restore original current limit, ignore failure- 548 int val, ret, limit; local 551 limit = regulator_get_current_limit_regmap(rdev); 552 if (limit < 0) 553 return limit; 560 limit *= 2; 562 return limit;
|
/linux-master/lib/ |
H A D | debugobjects.c | 34 * We limit the freeing of debug objects via workqueue at a maximum 499 static int limit; local 510 if (limit < 5 && descr != descr_test) { 513 limit++; 540 static int limit; local 542 if (limit > 4) 549 limit++;
|
/linux-master/net/sched/ |
H A D | sch_fq_codel.c | 217 if (++sch->q.qlen <= sch->limit && !memory_limited) 228 * with a 64 packets limit to not add a too big cpu spike here. 425 WRITE_ONCE(sch->limit, 443 while (sch->q.qlen > sch->limit || 475 sch->limit = 10*1024; 517 if (sch->limit >= 1) 544 READ_ONCE(sch->limit)) ||
|
/linux-master/fs/ |
H A D | coredump.c | 331 /* core limit size */ 500 * Note that it also sets the core limit to 1. This 540 .limit = rlimit(RLIMIT_CORE), 594 if (cprm.limit == 1) { 599 * cprm.limit of 1 here as a special value, this is a 616 cprm.limit = RLIM_INFINITY; 657 if (cprm.limit < binfmt->min_coredump) 810 if (cprm->written + nr > cprm->limit) 886 if (cprm->written + PAGE_SIZE > cprm->limit)
|
H A D | exec.c | 390 /* Save current stack limit for all calculations made during exec. */ 491 unsigned long limit, ptr_size; local 501 limit = _STK_LIM / 4 * 3; 502 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); 507 limit = max_t(unsigned long, limit, ARG_MAX); 522 if (limit <= ptr_size) 524 limit -= ptr_size; 526 bprm->argmin = bprm->p - limit; [all...] |
/linux-master/drivers/iommu/ |
H A D | virtio-iommu.c | 387 u64 limit = vdomain->domain.geometry.aperture_end; local 392 limit = ALIGN_DOWN(limit + 1, granule) - 1; 398 if (resv_end < iova || resv_start > limit) 409 if (resv_end >= limit) 415 ret = viommu_add_mapping(vdomain, iova, limit, (phys_addr_t)iova,
|
/linux-master/arch/x86/kvm/svm/ |
H A D | svm.c | 1134 seg->limit = 0xffff; 1142 seg->limit = 0xffff; 1316 save->cs.limit = 0xffff; 1319 save->gdtr.limit = 0xffff; 1321 save->idtr.limit = 0xffff; 1715 var->limit = s->limit; 1733 var->g = s->limit > 0xfffff; 1798 dt->size = svm->vmcb->save.idtr.limit; 1806 svm->vmcb->save.idtr.limit [all...] |
/linux-master/arch/s390/mm/ |
H A D | gmap.c | 42 * @limit: maximum address of the gmap address space 46 static struct gmap *gmap_alloc(unsigned long limit) argument 53 if (limit < _REGION3_SIZE) { 54 limit = _REGION3_SIZE - 1; 57 } else if (limit < _REGION2_SIZE) { 58 limit = _REGION2_SIZE - 1; 61 } else if (limit < _REGION1_SIZE) { 62 limit = _REGION1_SIZE - 1; 66 limit = -1UL; 92 gmap->asce_end = limit; 108 gmap_create(struct mm_struct *mm, unsigned long limit) argument 1677 unsigned long limit; local [all...] |
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | mr.c | 347 target = ent->limit * 2; 391 if (target < ent->limit || target > ent->limit*2) { 442 * the limit. 445 ent->limit = var; 460 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->limit); 484 ret = ent->mkeys_queue.ci < ent->limit; 506 if (ent->mkeys_queue.ci < ent->limit) { 510 ent->mkeys_queue.ci + ent->pending < 2 * ent->limit) { 516 } else if (ent->mkeys_queue.ci == 2 * ent->limit) { [all...] |
/linux-master/drivers/net/ethernet/atheros/ |
H A D | ag71xx.c | 1616 static int ag71xx_rx_packets(struct ag71xx *ag, int limit) argument 1631 netif_dbg(ag, rx_status, ndev, "rx packets, limit=%d, curr=%u, dirty=%u\n", 1632 limit, ring->curr, ring->dirty); 1636 while (done < limit) { 1698 static int ag71xx_poll(struct napi_struct *napi, int limit) argument 1707 tx_done = ag71xx_tx_packets(ag, false, limit); 1710 rx_done = ag71xx_rx_packets(ag, limit); 1724 if (rx_done < limit) { 1732 netif_dbg(ag, rx_status, ndev, "disable polling mode, rx=%d, tx=%d,limit=%d\n", 1733 rx_done, tx_done, limit); [all...] |
/linux-master/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 515 int start, limit; local 518 limit = txring->next_to_fill; 521 if (start > limit) 522 limit += TX_RING_SIZE; 524 for (i = start; i < limit; i += freed) { 577 const int limit) 583 if (limit <= 0) 587 for (count = 0; count < limit; count++) { 693 const int limit) 715 for (count = 0; count < limit; coun 576 pasemi_mac_replenish_rx_ring(struct net_device *dev, const int limit) argument 692 pasemi_mac_clean_rx(struct pasemi_mac_rxring *rx, const int limit) argument [all...] |
/linux-master/drivers/gpu/drm/amd/pm/swsmu/ |
H A D | amdgpu_smu.c | 71 static int smu_set_power_limit(void *handle, uint32_t limit); 439 * Restore the saved user power configurations include power limit, 456 /* set the user dpm power limit */ 460 dev_err(smu->adev->dev, "Failed to set power limit value\n"); 2662 * @limit: requested limit is written back to this variable 2663 * @pp_limit_level: &pp_power_limit_level which limit of the power to return 2669 uint32_t *limit, 2712 ret = smu->ppt_funcs->get_ppt_limit(smu, limit, limit_type, limit_level); 2730 *limit 2668 smu_get_power_limit(void *handle, uint32_t *limit, enum pp_power_limit_level pp_limit_level, enum pp_power_type pp_power_type) argument 2749 smu_set_power_limit(void *handle, uint32_t limit) argument 2973 smu_get_apu_thermal_limit(void *handle, uint32_t *limit) argument 2984 smu_set_apu_thermal_limit(void *handle, uint32_t limit) argument [all...] |
/linux-master/net/ipv4/ |
H A D | tcp_output.c | 1605 long limit; local 1619 limit = sk->sk_sndbuf + 2 * SKB_TRUESIZE(GSO_LEGACY_MAX_SIZE); 1620 if (unlikely((sk->sk_wmem_queued >> 1) > limit && 1893 * and if application hit its sndbuf limit recently. 1953 * 4) application is hitting buffer limit (SOCK_NOSPACE) 2215 u32 send_win, cong_win, limit, in_flight; local 2243 limit = min(send_win, cong_win); 2246 if (limit >= max_segs * tp->mss_cache) 2250 if ((skb != tcp_write_queue_tail(sk)) && (limit >= skb->len)) 2261 if (limit > 2607 unsigned long limit; local 2761 unsigned int limit; local [all...] |
/linux-master/security/keys/ |
H A D | keyring.c | 25 * When plumbing the depths of the key tree, this sets a hard limit 878 * limit (KEYRING_SEARCH_MAX_DEPTH). The caller must hold the RCU read lock to 1693 time64_t *limit = iterator_data; local 1695 if (key_is_dead(key, *limit)) 1704 time64_t *limit = iterator_data; local 1707 return key_is_dead(key, *limit); 1716 void keyring_gc(struct key *keyring, time64_t limit) argument 1729 keyring_gc_check_iterator, &limit); 1741 keyring_gc_select_iterator, &limit);
|
/linux-master/drivers/ntb/hw/amd/ |
H A D | ntb_hw_amd.c | 126 u64 base_addr, limit, reg_val; local 151 /* Set the limit if supported */ 152 limit = size; 162 /* set and verify setting the limit */ 163 write64(limit, peer_mmio + limit_reg); 165 if (reg_val != limit) { 174 /* Set the limit if supported */ 175 limit = size; 185 /* set and verify setting the limit */ 186 writel(limit, peer_mmi [all...] |
/linux-master/arch/powerpc/kernel/ |
H A D | iommu.c | 222 unsigned long limit; local 264 limit = pool->end; 270 if (start >= limit) 273 if (limit + tbl->it_offset > mask) { 274 limit = mask - tbl->it_offset + 1; 279 if ((start & mask) >= limit || pass > 0) { 289 n = iommu_area_alloc(tbl->it_map, limit, start, npages, tbl->it_offset,
|
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | bcm63xx_enet.c | 126 int limit; local 135 limit = 1000; 140 } while (limit-- > 0); 142 return (limit < 0) ? 1 : 0; 1145 int limit; local 1152 limit = 1000; 1160 } while (limit--); 1168 int limit; local 1172 limit = 1000; 1180 } while (limit 1665 int limit; local [all...] |
/linux-master/drivers/pci/ |
H A D | probe.c | 351 unsigned long io_mask, io_granularity, base, limit; local 365 limit = (io_limit_lo & io_mask) << 8; 373 limit |= ((unsigned long) io_limit_hi << 16); 376 if (base <= limit) { 379 region.end = limit + io_granularity - 1; 390 unsigned long base, limit; local 396 limit = ((unsigned long) mem_limit_lo & PCI_MEMORY_RANGE_MASK) << 16; 397 if (base <= limit) { 400 region.end = limit + 0xfffff; 412 pci_bus_addr_t base, limit; local [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | iommu.c | 324 int limit; local 372 limit = 100000; 374 limit--; 375 if (!limit) 380 if (!limit)
|
/linux-master/arch/s390/crypto/ |
H A D | prng.c | 62 MODULE_PARM_DESC(prng_reseed_limit, "PRNG reseed limit"); 740 /* reseed limit attribute (rw) */ 751 unsigned limit; local 753 if (sscanf(buf, "%u\n", &limit) != 1) 757 if (limit < PRNG_RESEED_LIMIT_SHA512_LOWER) 760 if (limit < PRNG_RESEED_LIMIT_TDES_LOWER) 764 prng_reseed_limit = limit;
|