Home
last modified time | relevance | path

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

1234

/Linux-v6.6/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.6/fs/xfs/
Dxfs_discard.c152 xfs_daddr_t minlen, in xfs_trim_gather_extents() argument
232 if (dlen < minlen) { in xfs_trim_gather_extents()
302 xfs_daddr_t minlen, in xfs_trim_extents() argument
324 error = xfs_trim_gather_extents(pag, start, end, minlen, in xfs_trim_extents()
372 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local
392 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
393 minlen = BTOBB(range.minlen); in xfs_ioc_trim()
402 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim()
414 error = xfs_trim_extents(pag, 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.c66 xfs_extlen_t minlen = *longest; in xfs_filestream_pick_ag() local
104 if (((minlen && *longest >= minlen) || in xfs_filestream_pick_ag()
105 (!minlen && pag->pagf_freeblks >= minfree)) && in xfs_filestream_pick_ag()
/Linux-v6.6/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.6/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.6/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.6/lib/
Dnlattr.c382 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local
447 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla()
449 minlen = attrlen; in validate_nla()
451 if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) { in validate_nla()
535 minlen = pt->len; in validate_nla()
537 minlen = nla_attr_minlen[pt->type]; in validate_nla()
539 if (attrlen < minlen) in validate_nla()
812 int minlen = min_t(int, count, nla_len(src)); in nla_memcpy() local
814 memcpy(dest, nla_data(src), minlen); in nla_memcpy()
815 if (count > minlen) in nla_memcpy()
[all …]
/Linux-v6.6/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.6/fs/btrfs/
Dfree-space-cache.h145 u64 *trimmed, u64 start, u64 end, u64 minlen);
147 u64 *trimmed, u64 start, u64 end, u64 minlen,
150 u64 *trimmed, u64 start, u64 end, u64 minlen,
Ddiscard.c489 u64 minlen = 0; in btrfs_discard_workfn() local
504 minlen = discard_minlen[discard_index]; in btrfs_discard_workfn()
521 minlen, maxlen, true); in btrfs_discard_workfn()
527 minlen, true); in btrfs_discard_workfn()
/Linux-v6.6/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.6/drivers/media/rc/img-ir/
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-sanyo.c104 .minlen = 42,
118 .minlen = 0, /* repeat code has no data */
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.6/fs/xfs/libxfs/
Dxfs_alloc.c344 if (args->alignment > 1 && len >= args->minlen) { in xfs_alloc_compute_aligned()
443 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len()
456 if ((int)rlen < (int)args->minlen) in xfs_alloc_fix_len()
458 ASSERT(rlen >= args->minlen && rlen <= args->maxlen); in xfs_alloc_fix_len()
903 if (len < args->minlen) { in xfs_alloc_cur_check()
918 if (lena < args->minlen) in xfs_alloc_cur_check()
923 ASSERT(args->len >= args->minlen); in xfs_alloc_cur_check()
1109 if (args->minlen != 1 || args->alignment != 1 || in xfs_alloc_ag_vextent_small()
1159 if (flen < args->minlen) { in xfs_alloc_ag_vextent_small()
1210 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact()
[all …]
/Linux-v6.6/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.6/arch/arm/boot/compressed/
Dfdt_check_mem_start.c9 const char *property, int minlen) in get_prop() argument
19 if (!prop || len < minlen) in get_prop()
/Linux-v6.6/drivers/net/ethernet/cavium/thunder/
Dnic_reg.h218 u64 minlen:16; /* Min frame size */ member
220 u64 minlen:16;
/Linux-v6.6/net/openvswitch/
Dconntrack.c39 int minlen; member
1186 [OVS_CT_ATTR_COMMIT] = { .minlen = 0, .maxlen = 0 },
1187 [OVS_CT_ATTR_FORCE_COMMIT] = { .minlen = 0, .maxlen = 0 },
1188 [OVS_CT_ATTR_ZONE] = { .minlen = sizeof(u16),
1190 [OVS_CT_ATTR_MARK] = { .minlen = sizeof(struct md_mark),
1192 [OVS_CT_ATTR_LABELS] = { .minlen = sizeof(struct md_labels),
1194 [OVS_CT_ATTR_HELPER] = { .minlen = 1,
1198 [OVS_CT_ATTR_NAT] = { .minlen = 0, .maxlen = INT_MAX },
1200 [OVS_CT_ATTR_EVENTMASK] = { .minlen = sizeof(u32),
1202 [OVS_CT_ATTR_TIMEOUT] = { .minlen = 1,
[all …]

1234