Home
last modified time | relevance | path

Searched refs:elen (Results 1 – 25 of 46) sorted by relevance

12

/openbmc/linux/fs/udf/
H A Dtruncate.c26 struct kernel_lb_addr *eloc, int8_t etype, uint32_t elen, in extent_trunc() argument
30 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc()
45 if (elen != nelen) { in extent_trunc()
67 uint32_t elen, nelen; in udf_truncate_tail_extent() local
90 ret = udf_next_aext(inode, &epos, &eloc, &elen, &netype, 1); in udf_truncate_tail_extent()
94 lbcount += elen; in udf_truncate_tail_extent()
103 (unsigned)elen); in udf_truncate_tail_extent()
104 nelen = elen - (lbcount - inode->i_size); in udf_truncate_tail_extent()
106 extent_trunc(inode, &epos, &eloc, etype, elen, nelen); in udf_truncate_tail_extent()
108 if (udf_next_aext(inode, &epos, &eloc, &elen, in udf_truncate_tail_extent()
[all …]
H A Dballoc.c385 uint32_t elen; in udf_table_free_blocks() local
400 elen = 0; in udf_table_free_blocks()
405 ret = udf_next_aext(table, &epos, &eloc, &elen, &etype, 1); in udf_table_free_blocks()
411 (elen >> sb->s_blocksize_bits)) == start)) { in udf_table_free_blocks()
412 if ((0x3FFFFFFF - elen) < in udf_table_free_blocks()
414 uint32_t tmp = ((0x3FFFFFFF - elen) >> in udf_table_free_blocks()
418 elen = (etype << 30) | in udf_table_free_blocks()
421 elen = (etype << 30) | in udf_table_free_blocks()
422 (elen + in udf_table_free_blocks()
427 udf_write_aext(table, &oepos, &eloc, elen, 1); in udf_table_free_blocks()
[all …]
H A Dsymlink.c32 int elen = 0; in udf_pc_to_char() local
38 while (elen < fromlen) { in udf_pc_to_char()
39 pc = (struct pathComponent *)(from + elen); in udf_pc_to_char()
40 elen += sizeof(struct pathComponent); in udf_pc_to_char()
48 elen += pc->lengthComponentIdent; in udf_pc_to_char()
75 elen += pc->lengthComponentIdent; in udf_pc_to_char()
76 if (elen > fromlen) in udf_pc_to_char()
H A Ddirectory.c135 if (iter->loffset + ralen > (iter->elen >> iter->dir->i_blkbits)) in udf_readahead_dir()
136 ralen = (iter->elen >> iter->dir->i_blkbits) - iter->loffset; in udf_readahead_dir()
173 if (iter->loffset < DIV_ROUND_UP(iter->elen, 1<<iter->dir->i_blkbits)) in udf_fiiter_advance_blk()
178 &iter->elen, &etype, 1); in udf_fiiter_advance_blk()
183 iter->elen = 0; in udf_fiiter_advance_blk()
202 if (!iter->bh[0] && iter->elen) { in udf_fiiter_load_bhs()
254 iter->elen = 0; in udf_fiiter_init()
270 &iter->eloc, &iter->elen, &iter->loffset, &etype); in udf_fiiter_init()
443 int diff = new_elen - iter->elen; in udf_fiiter_update_elen()
446 if (!iter->elen) in udf_fiiter_update_elen()
[all …]
H A Dinode.c420 uint32_t elen; in udf_map_block() local
426 ret = inode_bmap(inode, map->lblk, &epos, &eloc, &elen, &offset, in udf_map_block()
650 uint32_t elen; in udf_extend_file() local
675 err = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset, &etype); in udf_extend_file()
681 elen > ((loff_t)offset + 1) << inode->i_blkbits); in udf_extend_file()
726 uint32_t elen = 0, tmpelen; in inode_getblk() local
760 lbcount += elen; in inode_getblk()
768 ret = udf_next_aext(inode, &next_epos, &eloc, &elen, &etype, 1); in inode_getblk()
778 laarr[c].extLength = (etype << 30) | elen; in inode_getblk()
783 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk()
[all …]
H A Dudfdecl.h92 uint32_t elen; /* Length of extent containing 'pos' */ member
162 uint32_t *elen, sector_t *offset, int8_t *etype);
167 struct kernel_lb_addr *eloc, uint32_t elen, int inc);
174 struct kernel_lb_addr *eloc, uint32_t *elen,
177 struct kernel_lb_addr *eloc, uint32_t *elen,
H A Dnamei.c279 ((iter->elen - 1) >> dir->i_blkbits); in udf_fiiter_add_entry()
297 ((iter->elen - 1) >> dir->i_blkbits); in udf_fiiter_add_entry()
317 udf_fiiter_update_elen(iter, iter->elen - in udf_fiiter_add_entry()
581 int eoffset, elen = 0; in udf_symlink()
658 elen += sizeof(struct pathComponent); in udf_symlink()
664 if (elen + sizeof(struct pathComponent) > eoffset) in udf_symlink()
667 pc = (struct pathComponent *)(ea + elen); in udf_symlink()
693 if (elen + sizeof(struct pathComponent) + namelen > in udf_symlink()
702 elen += sizeof(struct pathComponent) + pc->lengthComponentIdent; in udf_symlink()
712 inode->i_size = elen; in udf_symlink()
577 int eoffset, elen = 0; udf_symlink() local
[all...]
H A Dpartition.c281 uint32_t elen; in udf_try_read_meta() local
288 err = inode_bmap(inode, block, &epos, &eloc, &elen, &ext_offset, &etype); in udf_try_read_meta()
/openbmc/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ieee80211.c765 static int rtw_ieee802_11_parse_vendor_specific(u8 *pos, uint elen, in rtw_ieee802_11_parse_vendor_specific() argument
774 if (elen < 4) in rtw_ieee802_11_parse_vendor_specific()
787 elems->wpa_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
790 if (elen < 5) in rtw_ieee802_11_parse_vendor_specific()
797 elems->wme_len = elen; in rtw_ieee802_11_parse_vendor_specific()
801 elems->wme_tspec_len = elen; in rtw_ieee802_11_parse_vendor_specific()
810 elems->wps_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
821 elems->vendor_ht_cap_len = elen; in rtw_ieee802_11_parse_vendor_specific()
854 u8 id, elen; in rtw_ieee802_11_parse_elems() local
857 elen = *pos++; in rtw_ieee802_11_parse_elems()
[all …]
/openbmc/qemu/hw/s390x/
H A Devent-facility.c112 unsigned elen = 0; in write_event_length_check() local
117 for (slen = sccb_data_len(sccb); slen > 0; slen -= elen) { in write_event_length_check()
118 elen = be16_to_cpu(event->length); in write_event_length_check()
119 if (elen < sizeof(*event) || elen > slen) { in write_event_length_check()
122 event = (void *) event + elen; in write_event_length_check()
158 unsigned elen = 0; in handle_sccb_write_events() local
166 for (slen = sccb_data_len(sccb); slen > 0; slen -= elen) { in handle_sccb_write_events()
167 elen = be16_to_cpu(event_buf->length); in handle_sccb_write_events()
176 event_buf = (void *) event_buf + elen; in handle_sccb_write_events()
206 unsigned elen; in handle_sccb_read_events() local
[all …]
/openbmc/linux/fs/ceph/
H A Dcrypto.c268 int elen; in ceph_encode_encrypted_dname() local
287 elen = d_name->len; in ceph_encode_encrypted_dname()
298 elen = -ENAMETOOLONG; in ceph_encode_encrypted_dname()
306 elen = -ENOMEM; in ceph_encode_encrypted_dname()
312 elen = ret; in ceph_encode_encrypted_dname()
331 elen = ceph_base64_encode(cryptbuf, len, buf); in ceph_encode_encrypted_dname()
332 dout("base64-encoded ciphertext name = %.*s\n", elen, buf); in ceph_encode_encrypted_dname()
335 WARN_ON(elen > 240); in ceph_encode_encrypted_dname()
336 if ((elen > 0) && (dir != parent)) { in ceph_encode_encrypted_dname()
339 elen = snprintf(tmp_buf, sizeof(tmp_buf), "_%.*s_%ld", in ceph_encode_encrypted_dname()
[all …]
/openbmc/linux/lib/
H A Dtest_printf.c46 do_test(int bufsize, const char *expect, int elen, in do_test() argument
59 if (ret != elen) { in do_test()
61 bufsize, fmt, ret, elen); in do_test()
79 written = min(bufsize-1, elen); in do_test()
106 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
112 if (elen >= BUF_SIZE) { in __test()
114 elen, fmt); in __test()
127 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
128 rand = get_random_u32_inclusive(1, elen + 1); in __test()
130 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
[all …]
/openbmc/linux/net/mac80211/
H A Dutil.c1027 u8 elen = elem->datalen; in _ieee802_11_parse_elems_full() local
1088 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_full()
1094 if (elen + 2 < sizeof(struct ieee80211_tdls_lnkie)) { in _ieee802_11_parse_elems_full()
1101 if (elen < sizeof(struct ieee80211_ch_switch_timing)) { in _ieee802_11_parse_elems_full()
1109 elems->ext_capab_len = elen; in _ieee802_11_parse_elems_full()
1113 elems->ssid_len = elen; in _ieee802_11_parse_elems_full()
1117 elems->supp_rates_len = elen; in _ieee802_11_parse_elems_full()
1120 if (elen >= 1) in _ieee802_11_parse_elems_full()
1126 if (elen >= sizeof(struct ieee80211_tim_ie)) { in _ieee802_11_parse_elems_full()
1128 elems->tim_len = elen; in _ieee802_11_parse_elems_full()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Drammap.h19 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx,
24 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx,
H A Dpower_budget.h17 u8 elen; member
H A Dvpstate.h10 u8 elen; member
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Drammap.c147 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx, u8 *ver, u8 *hdr) in nvbios_rammapSe() argument
150 data = data + ehdr + (idx * elen); in nvbios_rammapSe()
152 *hdr = elen; in nvbios_rammapSe()
191 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx, in nvbios_rammapSp() argument
194 data = nvbios_rammapSe(bios, data, ever, ehdr, ecnt, elen, idx, ver, hdr); in nvbios_rammapSp()
H A Dvpstate.c55 h->elen = nvbios_rd08(b, h->offset + 0x2); in nvbios_vpstate_parse()
84 offset = h->offset + h->hlen + idx * (h->elen + (h->slen * h->scount)); in nvbios_vpstate_entry()
H A Dpower_budget.c93 budget->elen = len; in nvbios_power_budget_header()
112 entry_offset = budget->offset + budget->hlen + idx * budget->elen; in nvbios_power_budget_entry()
/openbmc/linux/net/ipv4/
H A Desp4.c707 int alen, hlen, elen; in esp_remove_trailer() local
715 elen = skb->len - hlen; in esp_remove_trailer()
722 if (padlen + 2 + alen >= elen) { in esp_remove_trailer()
724 padlen + 2, elen - alen); in esp_remove_trailer()
883 int elen = skb->len - sizeof(struct ip_esp_hdr) - ivlen; in esp_input() local
896 if (elen <= 0) in esp_input()
954 aead_request_set_crypt(req, sg, sg, elen + ivlen, iv); in esp_input()
/openbmc/linux/net/ipv6/
H A Desp6.c745 int alen, hlen, elen; in esp_remove_trailer() local
753 elen = skb->len - hlen; in esp_remove_trailer()
760 if (padlen + 2 + alen >= elen) { in esp_remove_trailer()
762 padlen + 2, elen - alen); in esp_remove_trailer()
927 int elen = skb->len - sizeof(struct ip_esp_hdr) - ivlen; in esp6_input() local
942 if (elen <= 0) { in esp6_input()
1002 aead_request_set_crypt(req, sg, sg, elen + ivlen, iv); in esp6_input()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Datmel_nand_ecc.h124 u32 elen; /* 0x08 Error Location Enable Register */ member
/openbmc/phosphor-logging/extensions/openpower-pels/tools/
H A Dpeltool.cpp202 size_t slen = str.size(), elen = pelID.size(); in endsWithPelID() local
203 if (slen < elen) in endsWithPelID()
205 while (elen) in endsWithPelID()
207 if (str[--slen] != pelID[--elen]) in endsWithPelID()
/openbmc/linux/net/sctp/
H A Dulpevent.c383 int elen; in sctp_ulpevent_make_remote_error() local
387 elen = SCTP_PAD4(ntohs(ch->length)) - sizeof(*ch); in sctp_ulpevent_make_remote_error()
398 skb_pull(chunk->skb, elen); in sctp_ulpevent_make_remote_error()
409 skb_trim(skb, sizeof(*sre) + elen); in sctp_ulpevent_make_remote_error()
/openbmc/qemu/target/riscv/
H A Dcpu_cfg.h168 uint16_t elen; member

12