/linux/net/ipv6/ |
H A D | ah6.c | 283 int extlen; in ah6_output_done() local 293 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done() 294 if (extlen) in ah6_output_done() 295 extlen += sizeof(*iph_ext); in ah6_output_done() 299 icv = ah_tmp_icv(iph_ext, extlen); in ah6_output_done() 304 if (extlen) { in ah6_output_done() 306 memcpy(&top_iph->saddr, iph_ext, extlen); in ah6_output_done() 308 memcpy(&top_iph->daddr, iph_ext, extlen); in ah6_output_done() 320 int extlen; in ah6_output() local 346 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output() [all …]
|
H A D | exthdrs.c | 304 int extlen; in ipv6_destopt_rcv() local 316 extlen = (skb_transport_header(skb)[1] + 1) << 3; in ipv6_destopt_rcv() 317 if (extlen > net->ipv6.sysctl.max_dst_opts_len) in ipv6_destopt_rcv() 326 skb->transport_header += extlen; in ipv6_destopt_rcv() 1037 int extlen; in ipv6_parse_hopopts() local 1053 extlen = (skb_transport_header(skb)[1] + 1) << 3; in ipv6_parse_hopopts() 1054 if (extlen > net->ipv6.sysctl.max_hbh_opts_len) in ipv6_parse_hopopts() 1059 skb->transport_header += extlen; in ipv6_parse_hopopts()
|
/linux/fs/gfs2/ |
H A D | meta_io.c | 518 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) in gfs2_meta_ra() argument 525 BUG_ON(!extlen); in gfs2_meta_ra() 529 if (extlen > max_ra) in gfs2_meta_ra() 530 extlen = max_ra; in gfs2_meta_ra() 539 extlen--; in gfs2_meta_ra() 541 while (extlen) { in gfs2_meta_ra() 547 extlen--; in gfs2_meta_ra()
|
H A D | bmap.h | 57 unsigned int *extlen); 59 unsigned *extlen, bool *new);
|
H A D | recovery.c | 38 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 D | dir.c | 158 u32 extlen = 0; in gfs2_dir_write_data() local 191 if (!extlen) { in gfs2_dir_write_data() 192 extlen = 1; in gfs2_dir_write_data() 194 &extlen, &new); in gfs2_dir_write_data() 218 extlen--; in gfs2_dir_write_data() 272 u32 extlen = 0; in gfs2_dir_read_data() local 294 if (!extlen) { in gfs2_dir_read_data() 295 extlen = 32; in gfs2_dir_read_data() 297 &dblock, &extlen); in gfs2_dir_read_data() 300 BUG_ON(extlen < 1); in gfs2_dir_read_data() [all …]
|
H A D | meta_io.h | 75 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
|
H A D | bmap.c | 1252 unsigned int *extlen) in gfs2_get_extent() argument 1259 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, in gfs2_get_extent() 1267 if (len < *extlen) in gfs2_get_extent() 1268 *extlen = len; in gfs2_get_extent() 1273 unsigned int *extlen, bool *new) in gfs2_alloc_extent() argument 1280 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, in gfs2_alloc_extent() 1288 if (len < *extlen) in gfs2_alloc_extent() 1289 *extlen = len; in gfs2_alloc_extent()
|
H A D | quota.c | 1399 u32 extlen = 0; in gfs2_quota_init() local 1420 if (!extlen) { in gfs2_quota_init() 1421 extlen = 32; in gfs2_quota_init() 1422 error = gfs2_get_extent(&ip->i_inode, x, &dblock, &extlen); in gfs2_quota_init() 1427 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_quota_init() 1496 extlen--; in gfs2_quota_init()
|
H A D | log.c | 860 unsigned int extlen; in gfs2_write_log_header() local 863 extlen = 1; in gfs2_write_log_header() 864 ret = gfs2_get_extent(jd->jd_inode, lblock, &dblock, &extlen); in gfs2_write_log_header()
|
/linux/sound/core/seq/ |
H A D | seq_memory.c | 344 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()
|
H A D | seq_clientmgr.c | 1085 int extlen = ev->data.ext.len & ~SNDRV_SEQ_EXT_MASK; in snd_seq_write() local 1086 if ((size_t)(extlen + len) > count) { in snd_seq_write() 1092 ev->data.ext.len = extlen | SNDRV_SEQ_EXT_USRPTR; in snd_seq_write() 1094 len += extlen; /* increment data length */ in snd_seq_write()
|
/linux/tools/lib/subcmd/ |
H A D | help.c | 174 size_t extlen = strlen(ext); in has_extension() local 176 return len > extlen && !memcmp(filename + len - extlen, ext, extlen); in has_extension()
|
/linux/tools/testing/selftests/net/ |
H A D | gro.c | 402 static void recompute_packet(char *buf, char *no_ext, int extlen) in recompute_packet() argument 409 memmove(buf + total_hdr_len + extlen, in recompute_packet() 412 tcphdr->doff = tcphdr->doff + (extlen / 4); in recompute_packet() 414 tcphdr->check = tcp_checksum(tcphdr, PAYLOAD_LEN + extlen); in recompute_packet() 416 iph->tot_len = htons(ntohs(iph->tot_len) + extlen); in recompute_packet() 420 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen); in recompute_packet() 857 int extlen = sizeof(struct ip6_frag); in send_fragment6() local 859 int extpkt_len = bufpkt_len + extlen; in send_fragment6() 871 ip6h->payload_len = htons(ntohs(ip6h->payload_len) + extlen); in send_fragment6() 875 memcpy(extpkt + tcp_offset + extlen, buf + tcp_offset, in send_fragment6()
|
/linux/fs/fat/ |
H A D | namei_vfat.c | 333 int sz = 0, extlen, baselen, i, numtail_baselen, numtail2_baselen; in vfat_create_shortname() local 405 extlen = 0; in vfat_create_shortname() 407 for (p = ext, ip = ext_start; extlen < 3 && ip < end; ip++) { in vfat_create_shortname() 413 if ((extlen + chl) > 3) { in vfat_create_shortname() 419 extlen++; in vfat_create_shortname() 421 if (extlen >= 3) { in vfat_create_shortname() 428 ext[extlen] = '\0'; in vfat_create_shortname() 442 memcpy(name_res + 8, ext, extlen); in vfat_create_shortname()
|
/linux/fs/ocfs2/ |
H A D | extent_map.c | 879 u64 extoff, extlen; in ocfs2_seek_data_hole_offset() 942 extlen = clen; in ocfs2_seek_data_hole_offset() 943 extlen <<= cs_bits; in ocfs2_seek_data_hole_offset() 945 if ((extoff + extlen) > i_size_read(inode)) in ocfs2_seek_data_hole_offset() 946 extlen = i_size_read(inode) - extoff; in ocfs2_seek_data_hole_offset() 947 extoff += extlen; in ocfs2_seek_data_hole_offset() 869 u64 extoff, extlen; ocfs2_seek_data_hole_offset() local
|
/linux/fs/smb/server/ |
H A D | smb_common.c | 505 int extlen = 0, len = 0; in ksmbd_extract_shortname() local 522 while (*p && extlen < 3) { in ksmbd_extract_shortname() 524 extension[extlen++] = toupper(*p); in ksmbd_extract_shortname() 527 extension[extlen] = '\0'; in ksmbd_extract_shortname()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_refcount.c | 491 unsigned long long extlen, in xfs_refcount_merge_center_extents() argument 551 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
|