Lines Matching refs:mc
34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count) in memcons_copy() argument
41 if (!mc) in memcons_copy()
44 out_pos = be32_to_cpu(READ_ONCE(mc->out_pos)); in memcons_copy()
50 conbuf = phys_to_virt(be64_to_cpu(mc->obuf_phys)); in memcons_copy()
58 avail = be32_to_cpu(mc->obuf_size) - out_pos; in memcons_copy()
76 if (out_pos > be32_to_cpu(mc->obuf_size)) { in memcons_copy()
111 struct memcons *mc; in memcons_init() local
119 mc = phys_to_virt(mcaddr); in memcons_init()
120 if (!mc) { in memcons_init()
125 if (be64_to_cpu(mc->magic) != MEMCONS_MAGIC) { in memcons_init()
130 return mc; in memcons_init()
136 u32 __init memcons_get_size(struct memcons *mc) in memcons_get_size() argument
138 return be32_to_cpu(mc->ibuf_size) + be32_to_cpu(mc->obuf_size); in memcons_get_size()