/openbmc/u-boot/fs/btrfs/ |
H A D | compression.c | 13 static u32 decompress_lzo(const u8 *cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_lzo() argument 19 if (clen < 4) in decompress_lzo() 24 clen -= 4; in decompress_lzo() 37 clen -= 4; in decompress_lzo() 39 if (in_len > clen || tot_len < 4 + in_len) in decompress_lzo() 50 clen -= in_len; in decompress_lzo() 63 static u32 decompress_zlib(const u8 *_cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_zlib() argument 81 if (clen > 2 && !(cbuf[1] & PRESET_DICT) && in decompress_zlib() 86 clen -= 2; in decompress_zlib() 92 while (stream.total_in < clen) { in decompress_zlib() [all …]
|
H A D | extent-io.c | 16 u32 clen, dlen, orig_size = size, res; in btrfs_read_extent_inline() local 22 clen = btrfs_path_item_size(path) - data_off; in btrfs_read_extent_inline() 45 res = btrfs_decompress(extent->compression, cbuf, clen, dbuf, dlen); in btrfs_read_extent_inline() 68 u64 physical, clen, dlen, orig_size = size; in btrfs_read_extent_reg() local 72 clen = extent->disk_num_bytes; in btrfs_read_extent_reg() 93 cbuf = malloc_cache_aligned(dlen > size ? clen + dlen : clen); in btrfs_read_extent_reg() 98 dbuf = cbuf + clen; in btrfs_read_extent_reg() 102 if (!btrfs_devread(physical, clen, cbuf)) in btrfs_read_extent_reg() 105 res = btrfs_decompress(extent->compression, cbuf, clen, dbuf, dlen); in btrfs_read_extent_reg()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | printk.c | 31 size_t clen, i; in utf8_to_utf32() local 38 for (clen = 0; cx & 0x80; ++clen) in utf8_to_utf32() 46 if (clen < 2 || clen > 4) in utf8_to_utf32() 49 c32 = cx >> clen--; in utf8_to_utf32() 50 for (i = 0; i < clen; ++i) { in utf8_to_utf32() 65 clen != (c32 >= 0x80) + (c32 >= 0x800) + (c32 >= 0x10000)) in utf8_to_utf32() 67 *s8 += clen; in utf8_to_utf32()
|
H A D | vsprintf.c | 245 size_t len, clen; in utf16s_utf8nlen() local 247 for (len = 0; len < maxlen && *s16; len += clen) { in utf16s_utf8nlen() 251 clen = 1 + (c0 >= 0x80) + (c0 >= 0x800); in utf16s_utf8nlen() 252 if (len + clen > maxlen) in utf16s_utf8nlen() 261 if (len + clen == maxlen) in utf16s_utf8nlen() 265 ++clen; in utf16s_utf8nlen() 511 size_t clen; in vsnprintf() local 519 clen = 1 + (c32 >= 0x800) + (c32 >= 0x10000); in vsnprintf() 521 len -= clen; in vsnprintf() 526 pos += clen; in vsnprintf() [all …]
|
/openbmc/linux/crypto/ |
H A D | testmgr.h | 117 unsigned int clen; member 15262 .clen = 80, 15268 .clen = 16, 15278 .clen = 32, 15304 .clen = 80, 15334 .clen = 76, 15364 .clen = 76, 15554 .clen = 735, 15588 .clen = 80, 15605 .clen = 31, [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | reservations.c | 280 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() argument 288 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart() 463 unsigned int cstart, clen; in __ocfs2_resv_find_window() local 484 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window() 486 &cstart, &clen); in __ocfs2_resv_find_window() 492 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window() 494 if (clen == 0) in __ocfs2_resv_find_window() 498 resv->r_len = clen; in __ocfs2_resv_find_window() 537 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window() 539 &cstart, &clen); in __ocfs2_resv_find_window() [all …]
|
H A D | reservations.h | 96 unsigned int clen, char *disk_bitmap); 123 int *cstart, int *clen); 142 u32 cstart, u32 clen);
|
/openbmc/linux/lib/crypto/ |
H A D | aesgcm.c | 554 int clen; member 561 .clen = sizeof(ctext0), 567 .clen = sizeof(ctext1), 577 .clen = sizeof(ctext2), 591 .clen = sizeof(ctext3), 595 .clen = sizeof(ctext4), 601 .clen = sizeof(ctext5), 612 .clen = sizeof(ctext6), 616 .clen = sizeof(ctext7), 622 .clen = sizeof(ctext8), [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libexecinfo/libexecinfo/ |
H A D | 0002-execinfo-Fix-compiler-errors-found-with-newer-gcc-cl.patch | 21 - int i, clen, alen, offset; 22 + size_t clen, alen; 28 rval = malloc(clen); 44 rval = realloc_safe(rval, clen + alen); 48 + snprintf((char *) rval + clen, alen, "%p <%s+%d> at %s", 53 rval = realloc_safe(rval, clen + alen); 57 + snprintf((char *) rval + clen, alen, "%p", buffer[i]); 61 + rval[i] = (char *) clen; 62 + clen += alen;
|
/openbmc/linux/mm/ |
H A D | early_ioremap.c | 250 unsigned long slop, clen; in copy_from_early_mem() local 255 clen = size; in copy_from_early_mem() 256 if (clen > MAX_MAP_CHUNK - slop) in copy_from_early_mem() 257 clen = MAX_MAP_CHUNK - slop; in copy_from_early_mem() 258 p = early_memremap(src & PAGE_MASK, clen + slop); in copy_from_early_mem() 259 memcpy(dest, p + slop, clen); in copy_from_early_mem() 260 early_memunmap(p, clen + slop); in copy_from_early_mem() 261 dest += clen; in copy_from_early_mem() 262 src += clen; in copy_from_early_mem() 263 size -= clen; in copy_from_early_mem()
|
/openbmc/linux/fs/ubifs/ |
H A D | crypto.c | 69 unsigned int clen = le16_to_cpu(dn->compr_size); in ubifs_decrypt() local 72 if (clen <= 0 || clen > UBIFS_BLOCK_SIZE || clen > dlen) { in ubifs_decrypt() 73 ubifs_err(c, "bad compr_size: %i", clen); in ubifs_decrypt() 85 *out_len = clen; in ubifs_decrypt()
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-akcipher.c | 685 size_t clen; member 801 .clen = sizeof(exp_ciphertext_rsa1024_raw), 822 .clen = sizeof(exp_ciphertext_rsa1024_pkcs1), 846 .clen = sizeof(exp_ciphertext_rsa2048_raw), 867 .clen = sizeof(exp_ciphertext_rsa2048_pkcs1), 900 ciphertext = g_new0(uint8_t, data->clen); in test_akcipher() 902 ciphertext, data->clen, in test_akcipher() 910 plaintext = g_new0(uint8_t, data->clen); in test_akcipher() 912 data->clen, plaintext, in test_akcipher()
|
/openbmc/qemu/chardev/ |
H A D | wctablet.c | 212 unsigned int i, clen; in wctablet_chr_write() local 249 clen = pos - (char *)tablet->query; in wctablet_chr_write() 253 clen == 2) { in wctablet_chr_write() 260 clen == 2) { in wctablet_chr_write() 267 clen == 2) { in wctablet_chr_write() 273 clen == 3) { in wctablet_chr_write() 289 tablet->query[clen] = 0; /* terminate line for printing */ in wctablet_chr_write() 291 wctablet_shift_input(tablet, clen + 1); in wctablet_chr_write()
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | declance.c | 332 unsigned short clen; in cp_to_buf() local 339 clen = len >> 1; in cp_to_buf() 343 while (clen--) { in cp_to_buf() 348 clen = len & 1; in cp_to_buf() 351 while (clen--) { in cp_to_buf() 358 clen = len >> 4; in cp_to_buf() 361 while (clen--) { in cp_to_buf() 376 clen = len & 15; in cp_to_buf() 379 while (clen--) { in cp_to_buf() 391 unsigned short clen; in cp_from_buf() local [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | compress.c | 184 cc->clen = lzo1x_worst_compress(PAGE_SIZE << cc->log_cluster_size); in lzo_init_compress_ctx() 199 &cc->clen, cc->private); in lzo_compress_pages() 212 ret = lzo1x_decompress_safe(dic->cbuf->cdata, dic->clen, in lzo_decompress_pages() 256 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in lz4_init_compress_ctx() 273 cc->clen, cc->private); in lz4_compress_pages() 277 cc->clen, level, cc->private); in lz4_compress_pages() 284 cc->clen = len; in lz4_compress_pages() 293 dic->clen, dic->rlen); in lz4_decompress_pages() 359 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in zstd_init_compress_ctx() 410 cc->clen = outbuf.pos; in zstd_compress_pages() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | via-ac97.c | 20 #define CLEN_IS_EOL(x) ((x)->clen & BIT(31)) 21 #define CLEN_IS_FLAG(x) ((x)->clen & BIT(30)) 22 #define CLEN_IS_STOP(x) ((x)->clen & BIT(29)) 23 #define CLEN_LEN(x) ((x)->clen & 0xffffff) 166 c->clen = le32_to_cpu(b[1]); in fetch_sgd() 185 if (!c->clen) { in out_cb() 200 c->clen -= copied; in out_cb() 228 c->clen = 0; in out_cb() 326 s->aur.clen = 0; in sgd_write()
|
/openbmc/linux/drivers/crypto/ |
H A D | omap-aes-gcm.c | 48 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local 52 clen = ALIGN(dd->total, AES_BLOCK_SIZE); in omap_aes_gcm_done_task() 76 omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, in omap_aes_gcm_done_task() 94 int alen, clen, cryptlen, assoclen, ret; in omap_aes_gcm_copy_buffers() local 111 clen = ALIGN(cryptlen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers() 171 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers() 172 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
|
H A D | mxs-dcp.c | 316 unsigned int i, len, clen, tlen = 0; in mxs_dcp_aes_block_crypt() local 345 clen = out_off - actx->fill; in mxs_dcp_aes_block_crypt() 347 clen = len; in mxs_dcp_aes_block_crypt() 349 memcpy(in_buf + actx->fill, src_buf, clen); in mxs_dcp_aes_block_crypt() 350 len -= clen; in mxs_dcp_aes_block_crypt() 351 src_buf += clen; in mxs_dcp_aes_block_crypt() 352 actx->fill += clen; in mxs_dcp_aes_block_crypt() 630 unsigned int i, len, clen, oft = 0; in dcp_sha_req_to_buf() local 642 clen = DCP_BUF_SZ - actx->fill; in dcp_sha_req_to_buf() 644 clen = len; in dcp_sha_req_to_buf() [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | attrib.c | 97 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() local 103 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex() 111 if (clen > len) in run_deallocate_ex() 112 clen = len; in run_deallocate_ex() 114 if (!clen) { in run_deallocate_ex() 122 mark_as_free_ex(sbi, lcn, clen, trim); in run_deallocate_ex() 124 dn += clen; in run_deallocate_ex() 127 len -= clen; in run_deallocate_ex() 131 vcn_next = vcn + clen; in run_deallocate_ex() 132 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex() [all …]
|
H A D | fsntfs.c | 452 bool ntfs_check_for_free_space(struct ntfs_sb_info *sbi, CLST clen, CLST mlen) in ntfs_check_for_free_space() argument 463 if (free < zlen + clen) in ntfs_check_for_free_space() 466 avail = free - (zlen + clen); in ntfs_check_for_free_space() 1133 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; in ntfs_sb_write_run() local 1137 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) in ntfs_sb_write_run() 1144 len = ((u64)clen << cluster_bits) - off; in ntfs_sb_write_run() 1157 vcn_next = vcn + clen; in ntfs_sb_write_run() 1158 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in ntfs_sb_write_run() 1169 len = ((u64)clen << cluster_bits); in ntfs_sb_write_run() 1201 CLST lcn, clen; in ntfs_read_run_nb() local [all …]
|
H A D | file.c | 120 CLST vcn, lcn, clen; in ntfs_extend_initialized_size() local 126 err = attr_data_get_block(ni, vcn, 1, &lcn, &clen, NULL, in ntfs_extend_initialized_size() 132 pos = ((loff_t)clen + vcn) << bits; in ntfs_extend_initialized_size() 609 CLST lcn, clen; in ntfs_fallocate() local 619 for (; vcn < cend_v; vcn += clen) { in ntfs_fallocate() 621 &lcn, &clen, &new, in ntfs_fallocate() 629 for (; vcn < cend; vcn += clen) { in ntfs_fallocate() 631 &lcn, &clen, &new, in ntfs_fallocate() 888 CLST lcn, clen; in ntfs_compress_write() local 895 &clen, NULL, false); in ntfs_compress_write() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | tables.c | 682 phys_addr_t slop, clen; in acpi_table_upgrade() local 689 clen = size; in acpi_table_upgrade() 690 if (clen > MAP_CHUNK_SIZE - slop) in acpi_table_upgrade() 691 clen = MAP_CHUNK_SIZE - slop; in acpi_table_upgrade() 693 clen + slop); in acpi_table_upgrade() 694 memcpy(dest_p + slop, src_p, clen); in acpi_table_upgrade() 695 early_memunmap(dest_p, clen + slop); in acpi_table_upgrade() 696 src_p += clen; in acpi_table_upgrade() 697 dest_addr += clen; in acpi_table_upgrade() 698 size -= clen; in acpi_table_upgrade()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | vio.c | 297 int err, tlen, clen; in vio_create_one() local 318 compat = mdesc_get_property(hp, mp, "device-type", &clen); in vio_create_one() 320 clen = 0; in vio_create_one() 321 } else if (clen > VIO_MAX_COMPAT_LEN) { in vio_create_one() 323 clen, type); in vio_create_one() 336 memcpy(vdev->compat, compat, clen); in vio_create_one() 339 vdev->compat_len = clen; in vio_create_one()
|
/openbmc/linux/drivers/tty/ |
H A D | n_gsm.c | 1680 static void gsm_control_modem(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_modem() argument 1685 int len = clen; in gsm_control_modem() 1686 int cl = clen; in gsm_control_modem() 1718 gsm_control_reply(gsm, CMD_MSC, data, clen); in gsm_control_modem() 1799 static void gsm_control_rls(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_rls() argument 1804 int len = clen; in gsm_control_rls() 1836 gsm_control_reply(gsm, CMD_RLS, data, clen); in gsm_control_rls() 1854 const u8 *data, int clen) in gsm_control_message() argument 1871 gsm_control_reply(gsm, CMD_TEST, data, clen); in gsm_control_message() 1887 gsm_control_modem(gsm, data, clen); in gsm_control_message() [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | scan.c | 73 int clen, srlen; in ieee80211_inform_bss() local 116 clen = IEEE80211_MAX_SUPP_RATES; in ieee80211_inform_bss() 117 if (clen > elems->supp_rates_len) in ieee80211_inform_bss() 118 clen = elems->supp_rates_len; in ieee80211_inform_bss() 119 memcpy(bss->supp_rates, elems->supp_rates, clen); in ieee80211_inform_bss() 120 srlen += clen; in ieee80211_inform_bss() 123 clen = IEEE80211_MAX_SUPP_RATES - srlen; in ieee80211_inform_bss() 124 if (clen > elems->ext_supp_rates_len) in ieee80211_inform_bss() 125 clen = elems->ext_supp_rates_len; in ieee80211_inform_bss() 127 clen); in ieee80211_inform_bss() [all …]
|