memtype
static inline u64 vmx_basic_encode_vmcs_info(u32 revision, u16 size, u8 memtype)
return revision | ((u64)size << 32) | ((u64)memtype << 50);
struct memtype *entry_print = (struct memtype *)v;
enum page_cache_mode memtype)
switch (memtype) {
enum page_cache_mode memtype)
struct memtype *entry_new;
entry_new = kzalloc_obj(struct memtype);
struct memtype *entry_old;
struct memtype *entry;
static struct memtype *memtype_get_idx(loff_t pos)
struct memtype *entry_print;
entry_print = kzalloc_obj(struct memtype);
extern int memtype_check_insert(struct memtype *entry_new,
extern struct memtype *memtype_erase(u64 start, u64 end);
extern struct memtype *memtype_lookup(u64 addr);
extern int memtype_copy_nth_element(struct memtype *entry_out, loff_t pos);
static inline int memtype_check_insert(struct memtype *entry_new,
static inline struct memtype *memtype_erase(u64 start, u64 end)
static inline struct memtype *memtype_lookup(u64 addr)
static inline int memtype_copy_nth_element(struct memtype *out, loff_t pos)
struct memtype *memtype_erase(u64 start, u64 end)
struct memtype *entry = interval_iter_first(&memtype_rbroot, start, end - 1);
struct memtype *memtype_lookup(u64 addr)
int memtype_copy_nth_element(struct memtype *entry_out, loff_t pos)
struct memtype *entry_match;
static inline u64 interval_start(struct memtype *entry)
static inline u64 interval_end(struct memtype *entry)
INTERVAL_TREE_DEFINE(struct memtype, rb, u64, subtree_max_end,
struct memtype *entry_match;
int memtype_check_insert(struct memtype *entry_new, enum page_cache_mode *ret_type)
int i, j, ranks_of_dimm[DNV_MAX_DIMMS], banks, rowbits, colbits, memtype;
memtype = MEM_DDR4;
memtype = MEM_DDR3;
if (memtype == MEM_DDR3) {
dimm->mtype = memtype;
u32 width, memtype;
memtype = readl(priv->baseaddr + CTRL_OFST);
width = (memtype & ECC_CTRL_BUSWIDTH_MASK) >> ECC_CTRL_BUSWIDTH_SHIFT;
if (memtype & MEM_TYPE_LPDDR3) {
if (memtype & MEM_TYPE_LPDDR3) {
if (memtype & MEM_TYPE_LPDDR3) {
u32 memtype;
memtype = readl(base + T_ZQ_OFST);
if (memtype & T_ZQ_DDRMODE_MASK)
u32 memtype;
memtype = readl(base + CTRL_OFST);
if ((memtype & MEM_TYPE_DDR3) || (memtype & MEM_TYPE_LPDDR3))
else if (memtype & MEM_TYPE_DDR2)
else if ((memtype & MEM_TYPE_LPDDR4) || (memtype & MEM_TYPE_DDR4))
int memtype = install_cfg_tbl ? EFI_ACPI_RECLAIM_MEMORY
status = efi_bs_call(allocate_pool, memtype, sizeof(*m) + size,
.memtype = {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
.memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
.memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
.memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
u32 memtype[MAX_XIN_COUNT];
vbif, j, vbif->cap->memtype[j]);
hbdev->memtype = HYPERFLASH;
uinfo->mem[0].memtype = UIO_MEM_PHYS;
uinfo->mem[1].memtype = UIO_MEM_DMA_COHERENT;
uinfo->mem[2].memtype = UIO_MEM_DMA_COHERENT;
uinfo->mem[3].memtype = UIO_MEM_DMA_COHERENT;
dparams->memtype, dparams->start,
u32 memtype; /* which memory (EDC0, EDC1, MC) */
ret = t4_memory_rw(adap, adap->params.drv_memwin, dparams->memtype,
u32 offset, memtype, memaddr;
memtype = MEM_EDC0;
memtype = MEM_EDC1;
memtype = MEM_HMA;
memtype = MEM_MC0;
memtype = MEM_MC1;
ret = t4_memory_rw(adap, 0, memtype, memaddr, 32, tpte, T4_MEMORY_READ);
dparams->memtype = PCIE_FW_PF_DEVLOG_MEMTYPE_G(pf_dparams);
dparams->memtype = FW_DEVLOG_CMD_MEMTYPE_DEVLOG_G(devlog_meminfo);
bfa_trc(sfp, req->memtype);
bfa_sfp_getdata(struct bfa_sfp_s *sfp, enum bfi_sfp_mem_e memtype)
sfp->memtype = memtype;
req->memtype = memtype;
bfa_trc(sfp, sfp->memtype);
if (sfp->memtype == BFI_SFP_MEM_DIAGEXT) {
req->memtype = 0;
enum bfi_sfp_mem_e memtype; /* mem access type */
u8 memtype;
uinfo->mem[0].memtype = UIO_MEM_LOGICAL;
uinfo->mem[1].memtype = UIO_MEM_LOGICAL;
uinfo->mem[2].memtype = UIO_MEM_LOGICAL;
info->mem[0].memtype = UIO_MEM_NONE;
if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL)
if (idev->info->mem[mi].memtype == UIO_MEM_PHYS)
switch (idev->info->mem[mi].memtype) {
info->mem[0].memtype = UIO_MEM_PHYS;
info->mem[1].memtype = UIO_MEM_PHYS;
uiomem->memtype = UIO_MEM_PHYS;
uiomem->memtype = UIO_MEM_PHYS;
uiomem->memtype = UIO_MEM_DMA_COHERENT;
info->mem[0].memtype = UIO_MEM_PHYS;
pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA;
pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL;
pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL;
pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL;
pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL;
mem->memtype = UIO_MEM_PHYS;
info->mem[0].memtype = UIO_MEM_PHYS;
uiomem->memtype = UIO_MEM_PHYS;
uiomem->memtype = UIO_MEM_PHYS;
uiomem->memtype = UIO_MEM_PHYS;
info->mem[n].memtype = UIO_MEM_PHYS;
if (minfo->devflags.memtype == -1)
hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10;
if (minfo->devflags.memtype == -1)
hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10;
static int memtype = -1; /* "matroxfb:memtype:xxx" */
minfo->devflags.memtype = memtype;
if (memtype != -1)
memtype = simple_strtoul(this_opt+8, NULL, 0);
module_param(memtype, int, 0);
MODULE_PARM_DESC(memtype, "Memory type for G200/G400 (see Documentation/fb/matroxfb.rst for explanation) (default=3 for G200, 0 for G400)");
int memtype;
u16 index, rindex, memtype = 0;
memtype = bios[0x52];
memtype = SiS_GetReg(SISSR, 0x3a);
memtype &= 0x07;
index = memtype * 5;
memtype += 0xa5;
v1 = bios[memtype];
v2 = bios[memtype + 8];
v3 = bios[memtype + 16];
v4 = bios[memtype + 24];
v5 = bios[memtype + 32];
v6 = bios[memtype + 40];
v7 = bios[memtype + 48];
v8 = bios[memtype + 56];
cxt->memtype, flags, label);
cxt->memtype, PRZ_FLAG_ZAP_OLD, label);
cxt->memtype = pdata->mem_type;
unsigned int memtype;
unsigned int memtype)
switch (memtype) {
pr_err("invalid mem_type=%d\n", memtype);
unsigned int memtype, char *label)
if (memtype)
struct persistent_ram_zone *prz, int memtype)
prz->vaddr = persistent_ram_vmap(start, size, memtype);
prz->vaddr = persistent_ram_iomap(start, size, memtype,
unsigned int memtype, u32 flags, char *label)
ret = persistent_ram_buffer_map(start, size, prz, memtype);
unsigned int memtype, u32 flags, char *label);
void put_memory_type(struct memory_dev_type *memtype);
void clear_node_memory_type(int node, struct memory_dev_type *memtype);
static inline void put_memory_type(struct memory_dev_type *memtype)
static inline void clear_node_memory_type(int node, struct memory_dev_type *memtype)
enum hyperbus_memtype memtype;
int memtype;
struct memory_dev_type *memtype;
list_for_each_entry(memtype, &memtier->memory_types, tier_sibling)
nodes_or(nodes, nodes, memtype->nodes);
static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memtype)
int adistance = memtype->adistance;
if (!list_empty(&memtype->tier_sibling)) {
list_add(&memtype->tier_sibling, &memtier->memory_types);
struct memory_dev_type *memtype;
static inline void __init_node_memory_type(int node, struct memory_dev_type *memtype)
if (!node_memory_types[node].memtype)
node_memory_types[node].memtype = memtype;
if (node_memory_types[node].memtype == memtype) {
kref_get(&memtype->kref);
struct memory_dev_type *memtype = default_dram_type;
if (!node_memory_types[node].memtype) {
memtype = mt_find_alloc_memory_type(adist, &default_memory_types);
if (IS_ERR(memtype)) {
memtype = default_dram_type;
__init_node_memory_type(node, memtype);
memtype = node_memory_types[node].memtype;
node_set(node, memtype->nodes);
memtier = find_create_memory_tier(memtype);
struct memory_dev_type *memtype;
memtype = node_memory_types[node].memtype;
node_clear(node, memtype->nodes);
if (nodes_empty(memtype->nodes)) {
list_del_init(&memtype->tier_sibling);
struct memory_dev_type *memtype;
memtype = container_of(kref, struct memory_dev_type, kref);
kfree(memtype);
struct memory_dev_type *memtype;
memtype = kmalloc_obj(*memtype);
if (!memtype)
memtype->adistance = adistance;
INIT_LIST_HEAD(&memtype->tier_sibling);
memtype->nodes = NODE_MASK_NONE;
kref_init(&memtype->kref);
return memtype;
void put_memory_type(struct memory_dev_type *memtype)
kref_put(&memtype->kref, release_memtype);
void init_node_memory_type(int node, struct memory_dev_type *memtype)
__init_node_memory_type(node, memtype);
void clear_node_memory_type(int node, struct memory_dev_type *memtype)
if (node_memory_types[node].memtype == memtype || !memtype)
memtype = node_memory_types[node].memtype;
node_memory_types[node].memtype = NULL;
put_memory_type(memtype);
if (node_memory_types[nid].memtype)