/fs/logfs/ |
D | gc.c | 96 static u32 logfs_valid_bytes(struct super_block *sb, u32 segno, u32 *ec, in logfs_valid_bytes() argument 108 *ec = ec_level >> 4; in logfs_valid_bytes() 234 u32 get_best_cand(struct super_block *sb, struct candidate_list *list, u32 *ec) in get_best_cand() argument 244 if (ec) in get_best_cand() 245 *ec = cand->erase_count; in get_best_cand() 298 static int add_candidate(struct super_block *sb, u32 segno, u32 valid, u32 ec, in add_candidate() argument 310 cand->erase_count = ec; in add_candidate() 332 u32 valid, ec = 0; in scan_segment() local 340 valid = logfs_valid_bytes(sb, segno, &ec, &gc_level); in scan_segment() 345 add_candidate(sb, segno, valid, ec, dist); in scan_segment() [all …]
|
D | super.c | 144 u8 level, u32 segno, u32 ec) in set_segment_header() argument 150 sh->ec = cpu_to_be32(ec); in set_segment_header() 156 u32 segno, u32 ec) in logfs_write_ds() argument 163 set_segment_header(sh, SEG_SUPER, 0, segno, ec); in logfs_write_ds() 195 u32 ec, segno; in write_one_sb() local 204 ec = be32_to_cpu(se.ec_level) >> 4; in write_one_sb() 205 ec++; in write_one_sb() 206 logfs_set_segment_erased(sb, segno, ec, 0); in write_one_sb() 207 logfs_write_ds(sb, ds, segno, ec); in write_one_sb()
|
D | journal.c | 106 struct logfs_je_journal_ec *ec) in read_erasecount() argument 112 super->s_journal_ec[i] = be32_to_cpu(ec->ec[i]); in read_erasecount() 407 u.sh.ec = cpu_to_be32(area->a_erase_count); in journal_erase_segment() 454 struct logfs_je_journal_ec *ec = _ec; in logfs_write_erasecount() local 458 ec->ec[i] = cpu_to_be32(super->s_journal_ec[i]); in logfs_write_erasecount() 461 return ec; in logfs_write_erasecount() 810 u32 segno, ec; in do_logfs_journal_wl_pass() local 826 segno = get_best_cand(sb, &super->s_reserve_list, &ec); in do_logfs_journal_wl_pass() 828 super->s_journal_ec[i] = ec; in do_logfs_journal_wl_pass()
|
D | logfs_abi.h | 190 __be32 ec; member 546 __be32 ec[0]; member 556 __be32 ec; member
|
D | logfs.h | 512 u32 get_best_cand(struct super_block *sb, struct candidate_list *list, u32 *ec); 568 void logfs_set_segment_erased(struct super_block *sb, u32 segno, u32 ec, 571 void logfs_set_segment_unreserved(struct super_block *sb, u32 segno, u32 ec);
|
D | readwrite.c | 2093 void logfs_set_segment_erased(struct super_block *sb, u32 segno, u32 ec, in logfs_set_segment_erased() argument 2096 u32 ec_level = ec << 4 | (__force u8)gc_level; in logfs_set_segment_erased() 2118 void logfs_set_segment_unreserved(struct super_block *sb, u32 segno, u32 ec) in logfs_set_segment_unreserved() argument 2120 u32 ec_level = ec << 4; in logfs_set_segment_unreserved()
|
D | segment.c | 839 sh.ec = cpu_to_be32(area->a_erase_count); in ostore_erase_segment()
|
/fs/ncpfs/ |
D | ncplib_kernel.c | 1123 wchar_t ec; in ncp__io2vol() local 1133 ec = u; in ncp__io2vol() 1141 ec = 0; in ncp__io2vol() 1152 ec = (ec << 4) | nc; in ncp__io2vol() 1157 if ( (chl = in->char2uni(iname, iname_end - iname, &ec)) < 0) in ncp__io2vol() 1165 chl = out->uni2char(ec, vname, vname_end - vname); in ncp__io2vol() 1216 wchar_t ec; in ncp__vol2io() local 1219 if ( (chl = in->char2uni(vname, vname_end - vname, &ec)) < 0) { in ncp__vol2io() 1230 k = utf32_to_utf8(ec, iname, iname_end - iname); in ncp__vol2io() 1237 if ( (chl = out->uni2char(ec, iname, iname_end - iname)) >= 0) { in ncp__vol2io() [all …]
|
/fs/fat/ |
D | namei_vfat.c | 510 unsigned int ec; in xlate_to_uni() local 530 ec = 0; in xlate_to_uni() 533 ec <<= 4; in xlate_to_uni() 535 ec |= nc - '0'; in xlate_to_uni() 539 ec |= nc - ('a' - 10); in xlate_to_uni() 543 ec |= nc - ('A' - 10); in xlate_to_uni() 548 *op++ = ec & 0xFF; in xlate_to_uni() 549 *op++ = ec >> 8; in xlate_to_uni()
|
D | dir.c | 144 wchar_t ec; in uni16_to_x8() local 152 ec = *ip++; in uni16_to_x8() 153 if ((charlen = nls->uni2char(ec, op, NLS_MAX_CHARSET_SIZE)) > 0) { in uni16_to_x8() 159 op = hex_byte_pack(op, ec >> 8); in uni16_to_x8() 160 op = hex_byte_pack(op, ec); in uni16_to_x8()
|