Home
last modified time | relevance | path

Searched refs:minlen (Results 1 – 25 of 84) sorted by relevance

1234

/Linux-v6.1/fs/jfs/
Djfs_discard.c71 u64 start, end, minlen; in jfs_ioc_trim() local
82 minlen = range->minlen >> sb->s_blocksize_bits; in jfs_ioc_trim()
83 if (minlen == 0) in jfs_ioc_trim()
84 minlen = 1; in jfs_ioc_trim()
86 if (minlen > bmp->db_agsize || in jfs_ioc_trim()
100 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim()
Dioctl.c128 range.minlen = max_t(unsigned int, range.minlen, in jfs_ioctl()
/Linux-v6.1/fs/xfs/
Dxfs_discard.c28 xfs_daddr_t minlen, in xfs_trim_extents() argument
92 if (dlen < minlen) { in xfs_trim_extents()
158 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local
178 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
179 minlen = BTOBB(range.minlen); in xfs_ioc_trim()
188 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim()
202 error = xfs_trim_extents(mp, agno, start, end, minlen, in xfs_ioc_trim()
Dxfs_rtalloc.c225 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_block() argument
280 if (minlen < maxlen) { in xfs_rtallocate_extent_block()
284 if (thislen >= minlen && thislen > bestlen) { in xfs_rtallocate_extent_block()
303 if (minlen < maxlen && besti != -1) { in xfs_rtallocate_extent_block()
345 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_exact() argument
358 ASSERT(minlen % prod == 0 && maxlen % prod == 0); in xfs_rtallocate_extent_exact()
382 if (maxlen < minlen) { in xfs_rtallocate_extent_exact()
394 if (maxlen < minlen) { in xfs_rtallocate_extent_exact()
424 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_near() argument
441 ASSERT(minlen % prod == 0 && maxlen % prod == 0); in xfs_rtallocate_extent_near()
[all …]
Dxfs_filestream.c103 xfs_extlen_t minlen) in xfs_filestream_pick_ag() argument
160 if (((minlen && longest >= minlen) || in xfs_filestream_pick_ag()
161 (!minlen && pag->pagf_freeblks >= minfree)) && in xfs_filestream_pick_ag()
327 xfs_extlen_t minlen = ap->length; in xfs_filestream_new_ag() local
351 err = xfs_filestream_pick_ag(pip, startag, agp, flags, minlen); in xfs_filestream_new_ag()
/Linux-v6.1/tools/lib/bpf/
Dnlattr.c49 unsigned int minlen = 0; in validate_nla() local
60 if (pt->minlen) in validate_nla()
61 minlen = pt->minlen; in validate_nla()
63 minlen = nla_attr_minlen[pt->type]; in validate_nla()
65 if (libbpf_nla_len(nla) < minlen) in validate_nla()
/Linux-v6.1/drivers/isdn/mISDN/
Dhwchannel.c76 unsigned short minlen) in mISDN_initbchannel() argument
79 ch->minlen = minlen; in mISDN_initbchannel()
80 ch->next_minlen = minlen; in mISDN_initbchannel()
81 ch->init_minlen = minlen; in mISDN_initbchannel()
138 ch->minlen = ch->init_minlen; in mISDN_clear_bchannel()
188 cq->p1 = bch->minlen; in mISDN_ctrl_bchannel()
264 (bch->rx_skb->len < bch->minlen) && !force) in recv_Bchannel()
493 if (unlikely(bch->minlen != bch->next_minlen)) in bchannel_get_rxbuf()
494 bch->minlen = bch->next_minlen; in bchannel_get_rxbuf()
498 if (reqlen >= bch->minlen) { in bchannel_get_rxbuf()
[all …]
/Linux-v6.1/net/netfilter/
Dnft_rt.c23 u32 minlen = sizeof(struct ipv6hdr), mtu = dst_mtu(skbdst); in get_tcpmss() local
33 minlen = sizeof(struct iphdr) + sizeof(struct tcphdr); in get_tcpmss()
37 minlen = sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in get_tcpmss()
47 if (mtu <= minlen || mtu > 0xffff) in get_tcpmss()
50 return mtu - minlen; in get_tcpmss()
Dxt_TCPMSS.c75 unsigned int minlen) in tcpmss_mangle_packet() argument
107 if (min_mtu <= minlen) { in tcpmss_mangle_packet()
112 newmss = min_mtu - minlen; in tcpmss_mangle_packet()
/Linux-v6.1/lib/
Dnlattr.c375 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local
439 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla()
441 minlen = attrlen; in validate_nla()
443 if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) { in validate_nla()
527 minlen = pt->len; in validate_nla()
529 minlen = nla_attr_minlen[pt->type]; in validate_nla()
531 if (attrlen < minlen) in validate_nla()
803 int minlen = min_t(int, count, nla_len(src)); in nla_memcpy() local
805 memcpy(dest, nla_data(src), minlen); in nla_memcpy()
806 if (count > minlen) in nla_memcpy()
[all …]
/Linux-v6.1/Documentation/admin-guide/
Djfs.rst52 discard=minlen, discard/nodiscard(*)
58 The value of minlen specifies the minimum blockcount, when
62 The minlen value of discard overrides the minlen value given
/Linux-v6.1/fs/btrfs/
Dfree-space-cache.h134 u64 *trimmed, u64 start, u64 end, u64 minlen);
136 u64 *trimmed, u64 start, u64 end, u64 minlen,
139 u64 *trimmed, u64 start, u64 end, u64 minlen,
Ddiscard.c444 u64 minlen = 0; in btrfs_discard_workfn() local
459 minlen = discard_minlen[discard_index]; in btrfs_discard_workfn()
476 minlen, maxlen, true); in btrfs_discard_workfn()
482 minlen, true); in btrfs_discard_workfn()
/Linux-v6.1/drivers/virtio/
Dvirtio_pci_modern_dev.c23 size_t minlen, u32 align, u32 start, u32 size, in vp_modern_map_capability() argument
53 if (length - start < minlen) { in vp_modern_map_capability()
56 length, minlen); in vp_modern_map_capability()
84 if (minlen + offset < minlen || in vp_modern_map_capability()
85 minlen + offset > pci_resource_len(dev, bar)) { in vp_modern_map_capability()
89 minlen, offset, in vp_modern_map_capability()
/Linux-v6.1/drivers/media/rc/img-ir/
Dimg-ir-sanyo.c104 .minlen = 42,
118 .minlen = 0, /* repeat code has no data */
Dimg-ir-hw.c234 unsigned int minlen, maxlen, ft_min; in img_ir_free_timing() local
236 if (timing->minlen < 30) in img_ir_free_timing()
237 minlen = timing->minlen & -2; in img_ir_free_timing()
239 minlen = 30; in img_ir_free_timing()
250 (minlen << IMG_IR_MINLEN_SHIFT) | in img_ir_free_timing()
263 unsigned int minlen, maxlen, newminlen, newmaxlen; in img_ir_free_timing_dynamic() local
266 newminlen = filter->minlen & -2; in img_ir_free_timing_dynamic()
269 minlen = (st_ft & IMG_IR_MINLEN) >> IMG_IR_MINLEN_SHIFT; in img_ir_free_timing_dynamic()
272 if (newminlen > minlen) { in img_ir_free_timing_dynamic()
485 filter.minlen = 0; in img_ir_set_filter()
Dimg-ir-sony.c116 out->minlen = len; in img_ir_sony_filter()
153 .minlen = 12,
Dimg-ir-hw.h82 u8 minlen; member
111 u8 minlen; member
Dimg-ir-nec.c152 .minlen = 32,
166 .minlen = 0, /* repeat code has no data */
Dimg-ir-rc5.c75 .minlen = 14,
/Linux-v6.1/fs/xfs/libxfs/
Dxfs_alloc.c314 if (args->alignment > 1 && len >= args->minlen) { in xfs_alloc_compute_aligned()
413 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len()
426 if ((int)rlen < (int)args->minlen) in xfs_alloc_fix_len()
428 ASSERT(rlen >= args->minlen && rlen <= args->maxlen); in xfs_alloc_fix_len()
862 if (len < args->minlen) { in xfs_alloc_cur_check()
877 if (lena < args->minlen) in xfs_alloc_cur_check()
882 ASSERT(args->len >= args->minlen); in xfs_alloc_cur_check()
1069 if (args->minlen != 1 || args->alignment != 1 || in xfs_alloc_ag_vextent_small()
1119 if (flen < args->minlen) { in xfs_alloc_ag_vextent_small()
1149 ASSERT(args->minlen > 0); in xfs_alloc_ag_vextent()
[all …]
/Linux-v6.1/fs/hpfs/
Dalloc.c503 …, secno start, unsigned len, secno limit_start, secno limit_end, unsigned minlen, unsigned *result) in do_trim() argument
516 if (end - start < minlen) in do_trim()
525 int hpfs_trim_fs(struct super_block *s, u64 start, u64 end, u64 minlen, unsigned *result) in hpfs_trim_fs() argument
538 if (minlen > 0x4000) in hpfs_trim_fs()
552 err = do_trim(s, sbi->sb_dirband_start + idx * 4, len * 4, start, end, minlen, result); in hpfs_trim_fs()
573 err = do_trim(s, (start_bmp << 14) + idx, len, start, end, minlen, result); in hpfs_trim_fs()
/Linux-v6.1/arch/arm/boot/compressed/
Dfdt_check_mem_start.c8 const char *property, int minlen) in get_prop() argument
18 if (!prop || len < minlen) in get_prop()
/Linux-v6.1/drivers/net/ethernet/cavium/thunder/
Dnic_reg.h218 u64 minlen:16; /* Min frame size */ member
220 u64 minlen:16;
/Linux-v6.1/net/openvswitch/
Dconntrack.c37 int minlen; member
1517 [OVS_CT_ATTR_COMMIT] = { .minlen = 0, .maxlen = 0 },
1518 [OVS_CT_ATTR_FORCE_COMMIT] = { .minlen = 0, .maxlen = 0 },
1519 [OVS_CT_ATTR_ZONE] = { .minlen = sizeof(u16),
1521 [OVS_CT_ATTR_MARK] = { .minlen = sizeof(struct md_mark),
1523 [OVS_CT_ATTR_LABELS] = { .minlen = sizeof(struct md_labels),
1525 [OVS_CT_ATTR_HELPER] = { .minlen = 1,
1529 [OVS_CT_ATTR_NAT] = { .minlen = 0, .maxlen = INT_MAX },
1531 [OVS_CT_ATTR_EVENTMASK] = { .minlen = sizeof(u32),
1533 [OVS_CT_ATTR_TIMEOUT] = { .minlen = 1,
[all …]

1234