Home
last modified time | relevance | path

Searched refs:extlen (Results 1 – 16 of 16) sorted by relevance

/linux/net/ipv6/
H A Dah6.c51 struct ipv6hdr *top_iph, int extlen) in ah6_save_hdrs() argument
53 if (!extlen) in ah6_save_hdrs()
60 memcpy(&iph_ext->hdrs, top_iph + 1, extlen - sizeof(*iph_ext)); in ah6_save_hdrs()
65 struct tmp_ext *iph_ext, int extlen) in ah6_restore_hdrs() argument
67 if (!extlen) in ah6_restore_hdrs()
74 memcpy(top_iph + 1, &iph_ext->hdrs, extlen - sizeof(*iph_ext)); in ah6_restore_hdrs()
311 int extlen; in ah6_output_done() local
321 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
322 if (extlen) in ah6_output_done()
323 extlen += sizeof(*iph_ext); in ah6_output_done()
[all …]
H A Dexthdrs.c304 int extlen; in ipv6_destopt_rcv() local
316 extlen = (skb_transport_header(skb)[1] + 1) << 3; in ipv6_destopt_rcv()
317 if (extlen > READ_ONCE(net->ipv6.sysctl.max_dst_opts_len)) in ipv6_destopt_rcv()
327 skb->transport_header += extlen; in ipv6_destopt_rcv()
1041 int extlen; in ipv6_parse_hopopts() local
1057 extlen = (skb_transport_header(skb)[1] + 1) << 3; in ipv6_parse_hopopts()
1058 if (extlen > READ_ONCE(net->ipv6.sysctl.max_hbh_opts_len)) in ipv6_parse_hopopts()
1064 skb->transport_header += extlen; in ipv6_parse_hopopts()
/linux/sound/core/seq/
H A Dseq_memory.c344 unsigned int extlen; in snd_seq_event_dup() local
351 extlen = 0; in snd_seq_event_dup()
353 extlen = event->data.ext.len & ~SNDRV_SEQ_EXT_MASK; in snd_seq_event_dup()
354 ncells = DIV_ROUND_UP(extlen, sizeof(struct snd_seq_event)); in snd_seq_event_dup()
373 int len = extlen; in snd_seq_event_dup()
379 cell->event.data.ext.len = extlen | SNDRV_SEQ_EXT_CHAINED; in snd_seq_event_dup()
/linux/fs/gfs2/
H A Dbmap.h58 unsigned int *extlen);
60 unsigned *extlen, bool *new);
H A Drgrp.c1568 u32 extlen; in rg_mblk_search() local
1583 extlen = 1; in rg_mblk_search()
1585 extlen = max_t(u32, atomic_read(&ip->i_sizehint), ap->target); in rg_mblk_search()
1586 extlen = clamp(extlen, (u32)RGRP_RSRV_MINBLKS, free_blocks); in rg_mblk_search()
1588 if (free_blocks < extlen || blocks_available < extlen) in rg_mblk_search()
1600 ret = gfs2_rbm_find(&rbm, GFS2_BLKST_FREE, &extlen, &ip->i_res, true); in rg_mblk_search()
1603 rs->rs_requested = extlen; in rg_mblk_search()
1681 u32 extlen = 1; in gfs2_reservation_check_and_update() local
1689 extlen = gfs2_free_extlen(rbm, minext); in gfs2_reservation_check_and_update()
1690 if (extlen <= maxext->len) in gfs2_reservation_check_and_update()
[all …]
H A Drecovery.c38 u32 extlen; in gfs2_replay_read_block() local
41 extlen = 32; in gfs2_replay_read_block()
42 error = gfs2_get_extent(&ip->i_inode, blk, &dblock, &extlen); in gfs2_replay_read_block()
50 *bh = gfs2_meta_ra(gl, dblock, extlen); in gfs2_replay_read_block()
H A Ddir.c159 u32 extlen = 0; in gfs2_dir_write_data() local
192 if (!extlen) { in gfs2_dir_write_data()
193 extlen = 1; in gfs2_dir_write_data()
195 &extlen, &new); in gfs2_dir_write_data()
219 extlen--; in gfs2_dir_write_data()
273 u32 extlen = 0; in gfs2_dir_read_data() local
295 if (!extlen) { in gfs2_dir_read_data()
296 extlen = 32; in gfs2_dir_read_data()
298 &dblock, &extlen); in gfs2_dir_read_data()
301 BUG_ON(extlen < 1); in gfs2_dir_read_data()
[all …]
H A Dbmap.c1267 unsigned int *extlen) in gfs2_get_extent() argument
1274 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent()
1282 if (len < *extlen) in gfs2_get_extent()
1283 *extlen = len; in gfs2_get_extent()
1288 unsigned int *extlen, bool *new) in gfs2_alloc_extent() argument
1295 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent()
1303 if (len < *extlen) in gfs2_alloc_extent()
1304 *extlen = len; in gfs2_alloc_extent()
H A Dquota.c1400 u32 extlen = 0; in gfs2_quota_init() local
1421 if (!extlen) { in gfs2_quota_init()
1422 extlen = 32; in gfs2_quota_init()
1423 error = gfs2_get_extent(&ip->i_inode, x, &dblock, &extlen); in gfs2_quota_init()
1428 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_quota_init()
1497 extlen--; in gfs2_quota_init()
/linux/tools/lib/subcmd/
H A Dhelp.c181 size_t extlen = strlen(ext); in has_extension() local
183 return len > extlen && !memcmp(filename + len - extlen, ext, extlen); in has_extension()
/linux/tools/testing/selftests/drivers/net/
H A Dgro.c469 static void recompute_packet(char *buf, char *no_ext, int extlen) in tcp_write_options()
476 memmove(buf + total_hdr_len + extlen, in tcp_write_options()
479 tcphdr->doff = tcphdr->doff + (extlen / 4); in tcp_write_options()
481 tcphdr->check = tcp_checksum(tcphdr, PAYLOAD_LEN + extlen);
483 iph->tot_len = htons(ntohs(iph->tot_len) + extlen);
489 iph->tot_len = htons(ntohs(iph->tot_len) + extlen); in add_standard_tcp_options()
494 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen); in add_standard_tcp_options()
924 int extlen = sizeof(struct ip6_frag); in set_timeout()
926 int extpkt_len = bufpkt_len + extlen; in set_timeout()
938 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen); in check_recv_pkts()
416 recompute_packet(char * buf,char * no_ext,int extlen) recompute_packet() argument
878 int extlen = sizeof(struct ip6_frag); send_fragment6() local
[all...]
/linux/drivers/net/hyperv/
H A Drndis_filter.c795 u32 extlen = sizeof(struct rndis_config_parameter_info) + in rndis_filter_set_device_mac() local
800 RNDIS_MESSAGE_SIZE(struct rndis_set_request) + extlen); in rndis_filter_set_device_mac()
806 set->info_buflen = extlen; in rndis_filter_set_device_mac()
859 u32 extlen = sizeof(struct ndis_offload_params); in rndis_filter_set_offload_params() local
864 extlen = VERSION_4_OFFLOAD_SIZE; in rndis_filter_set_offload_params()
873 RNDIS_MESSAGE_SIZE(struct rndis_set_request) + extlen); in rndis_filter_set_offload_params()
879 set->info_buflen = extlen; in rndis_filter_set_offload_params()
888 offload_params->header.size = extlen; in rndis_filter_set_offload_params()
915 u32 extlen = sizeof(struct ndis_recv_scale_param) + in rndis_set_rss_param_msg() local
924 RNDIS_MESSAGE_SIZE(struct rndis_set_request) + extlen); in rndis_set_rss_param_msg()
[all …]
/linux/fs/fat/
H A Dnamei_vfat.c334 int sz = 0, extlen, baselen, i, numtail_baselen, numtail2_baselen; in vfat_create_shortname() local
406 extlen = 0; in vfat_create_shortname()
408 for (p = ext, ip = ext_start; extlen < 3 && ip < end; ip++) { in vfat_create_shortname()
414 if ((extlen + chl) > 3) { in vfat_create_shortname()
420 extlen++; in vfat_create_shortname()
422 if (extlen >= 3) { in vfat_create_shortname()
429 ext[extlen] = '\0'; in vfat_create_shortname()
443 memcpy(name_res + 8, ext, extlen); in vfat_create_shortname()
/linux/fs/ocfs2/
H A Dextent_map.c887 u64 extoff, extlen; in ocfs2_seek_data_hole_offset() local
950 extlen = clen; in ocfs2_seek_data_hole_offset()
951 extlen <<= cs_bits; in ocfs2_seek_data_hole_offset()
953 if ((extoff + extlen) > i_size_read(inode)) in ocfs2_seek_data_hole_offset()
954 extlen = i_size_read(inode) - extoff; in ocfs2_seek_data_hole_offset()
955 extoff += extlen; in ocfs2_seek_data_hole_offset()
/linux/fs/smb/server/
H A Dsmb_common.c529 int extlen = 0, len = 0; in ksmbd_extract_shortname() local
546 while (*p && extlen < 3) { in ksmbd_extract_shortname()
548 extension[extlen++] = toupper(*p); in ksmbd_extract_shortname()
551 extension[extlen] = '\0'; in ksmbd_extract_shortname()
/linux/fs/xfs/libxfs/
H A Dxfs_refcount.c491 unsigned long long extlen, in xfs_refcount_merge_center_extents() argument
551 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()