KB
#define MB (1024*KB)
#define MB (1024*KB)
#define MB (1024*KB)
#define MB (1024*KB)
#define MB(x) (KB (KB (x)))
return KB(512);
case I845_TSEG_SIZE_512K: return KB(512);
return toud * KB(64) + i845_tseg_size();
case I830_GMCH_GMS_STOLEN_512: return KB(512);
DEFINE_REG(2, 1, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(3, 0, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(4, 0, 0x10, (128*KB), reg_init, reg_read, reg_write)
DEFINE_REG(4, 1, 0x10, (128*KB), reg_init, reg_read, reg_write)
DEFINE_REG(6, 0, 0x10, (512*KB), reg_init, reg_read, reg_write)
DEFINE_REG(6, 1, 0x10, (512*KB), reg_init, reg_read, reg_write)
DEFINE_REG(6, 2, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(8, 1, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(8, 2, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(9, 0, 0x14, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(11, 5, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(11, 7, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(12, 0, 0x10, (128*KB), reg_init, reg_read, reg_write)
DEFINE_REG(13, 0, 0x10, (32*KB), reg_init, ehci_reg_read, reg_write)
DEFINE_REG(13, 1, 0x10, (32*KB), reg_init, ehci_reg_read, reg_write)
DEFINE_REG(15, 0, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(15, 0, 0x14, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(16, 0, 0x10, (64*KB), reg_init, reg_read, reg_write)
DEFINE_REG(17, 0, 0x10, (128*KB), reg_init, reg_read, reg_write)
DEFINE_REG(18, 0, 0x10, (1*KB), reg_init, reg_read, reg_write)
#define MB(x) (KB (KB (x)))
#define GB(x) (MB (KB (x)))
int size = KB(512);
intel_private.gtt_phys_addr = reg_addr + KB(512);
intel_private.registers = ioremap(reg_addr, KB(64));
stolen_size = KB(512);
(u64)stolen_size / KB(1), local ? "local" : "stolen");
size = KB(128);
size = KB(256);
size = KB(512);
size = KB(1024);
size = KB(2048);
size = KB(1024 + 512);
size = KB(512);
intel_private.registers = ioremap(reg_addr, KB(64));
case KB(2):
case KB(4):
case KB(8):
case KB(16):
#define MB(x) (KB(x) * 1024UL)
stats->hiwater_rss = get_mm_hiwater_rss(mm) * PAGE_SIZE / KB;
stats->hiwater_vm = get_mm_hiwater_vm(mm) * PAGE_SIZE / KB;
#define MB (1024*KB)
#define KB_MASK (~(KB-1))
do_div(stats->coremem, 1000 * KB);
do_div(stats->virtmem, 1000 * KB);
static const int LZ4_64Klimit = ((64 * KB) + (MFLIMIT - 1));
if ((dictEnd - p) > 64 * KB)
p = dictEnd - 64 * KB;
dict->currentOffset += 64 * KB;
U32 const delta = LZ4_dict->currentOffset - 64 * KB;
LZ4_dict->currentOffset = 64 * KB;
if (LZ4_dict->dictSize > 64 * KB)
LZ4_dict->dictSize = 64 * KB;
if ((U32)dictSize > 64 * KB) {
dictSize = 64 * KB;
if (streamPtr->dictSize > 64 * KB)
streamPtr->dictSize = 64 * KB;
if ((streamPtr->dictSize < 64 * KB) &&
if ((streamPtr->dictSize < 64 * KB) &&
(BYTE *)dest - 64 * KB, NULL, 0);
(BYTE *)dest - 64 * KB, NULL, 0);
if (lz4sd->prefixSize >= 64 * KB - 1)
if (lz4sd->prefixSize >= 64 * KB - 1 ||
if (dictSize >= 64 * KB - 1)
const int checkOffset = ((safeDecode) && (dictSize < (int)(64 * KB)));
const U32 lowLimit = (hc4->lowLimit + 64 * KB > (U32)(ip - base))
: (U32)(ip - base) - (64 * KB - 1);
const U32 lowLimit = (hc4->lowLimit + 64 * KB > (U32)(ip - base))
: (U32)(ip - base) - (64 * KB - 1);
if (dictSize > 64 * KB) {
dictionary += dictSize - 64 * KB;
dictSize = 64 * KB;
hc4->nextToUpdate = 64 * KB;
hc4->base = start - 64 * KB;
hc4->dictBase = start - 64 * KB;
hc4->dictLimit = 64 * KB;
if (dictSize > 64 * KB)
dictSize = 64 * KB;
hc4->lowLimit = 64 * KB;
if (dictSize > 64 * KB)
dictSize = 64 * KB;
static const unsigned long long srcSizeTiers[4] = {16 KB, 128 KB, 256 KB, ZSTD_CONTENTSIZE_UNKNOWN};
8 KB, /* unused */
8 KB, /* ZSTD_fast */
16 KB, /* ZSTD_dfast */
32 KB, /* ZSTD_greedy */
32 KB, /* ZSTD_lazy */
32 KB, /* ZSTD_lazy2 */
32 KB, /* ZSTD_btlazy2 */
32 KB, /* ZSTD_btopt */
8 KB, /* ZSTD_btultra */
8 KB /* ZSTD_btultra2 */
size_t literalSectionHeaderSize = 3 + (litSize >= 1 KB) + (litSize >= 16 KB);
if (srcSize < 128 KB || blockSizeMax < 128 KB)
return 128 KB;
if (splitLevel == 1) return 128 KB;
if (dictContentSize <= ((U32)-1) - 128 KB) {
U32 const maxOffset = (U32)dictContentSize + 128 KB; /* The maximum offset that must be supported */
#define ZSTD_USE_CDICT_PARAMS_SRCSIZE_CUTOFF (128 KB)
U32 const tableID = (rSize <= 256 KB) + (rSize <= 128 KB) + (rSize <= 16 KB);
assert(seqStorePtr->maxNbLit <= 128 KB);
size_t const lhSize = 3 + (srcSize >= 1 KB) + (srcSize >= 16 KB);
size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header));
if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) {
return 64 KB;
return (distFromBegin > distFromEnd) ? 32 KB : 96 KB;