Home
last modified time | relevance | path

Searched refs:fm_idx (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/net/fm/
H A Dfm.c26 void *fm_muram_base(int fm_idx) in fm_muram_base() argument
28 return muram[fm_idx].base; in fm_muram_base()
31 void *fm_muram_alloc(int fm_idx, size_t size, ulong align) in fm_muram_alloc() argument
39 save = muram[fm_idx].alloc; in fm_muram_alloc()
43 muram[fm_idx].alloc += (align - off); in fm_muram_alloc()
47 if ((muram[fm_idx].alloc + size) >= muram[fm_idx].top) { in fm_muram_alloc()
48 muram[fm_idx].alloc = save; in fm_muram_alloc()
53 ret = muram[fm_idx].alloc; in fm_muram_alloc()
54 muram[fm_idx].alloc += size; in fm_muram_alloc()
60 static void fm_init_muram(int fm_idx, void *reg) in fm_init_muram() argument
[all …]
H A Dfm.h97 void *fm_muram_alloc(int fm_idx, size_t size, ulong align);
98 void *fm_muram_base(int fm_idx);