Lines Matching refs:mi

62 static void readNanohubMemInfo(MessageBuf &buf, NanohubMemInfo &mi)  in readNanohubMemInfo()  argument
70 mi.flashSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
71 mi.blSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
72 mi.osSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
73 mi.sharedSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
74 mi.eeSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
75 mi.ramSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
77 mi.blUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
78 mi.osUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
79 mi.sharedUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
80 mi.eeUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
81 mi.ramUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
95 if (len == sizeof(mi.ramSz)) in readNanohubMemInfo()
96 mi.ramSz = buf.readU32(); in readNanohubMemInfo()
101 if (len == sizeof(mi.ramSz)) in readNanohubMemInfo()
102 mi.eeSz = buf.readU32(); in readNanohubMemInfo()
113 if (len == sizeof(mi.osSz)) in readNanohubMemInfo()
114 mi.osSz = buf.readU32(); in readNanohubMemInfo()
125 if (len == sizeof(mi.sharedSz)) in readNanohubMemInfo()
126 mi.sharedSz = buf.readU32(); in readNanohubMemInfo()
158 if (mi.ramSz != NANOHUB_MEM_SZ_UNKNOWN && ramFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
159 mi.ramUse = mi.ramSz - ramFree; in readNanohubMemInfo()
160 if (mi.eeSz != NANOHUB_MEM_SZ_UNKNOWN && eeFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
161 mi.eeUse = mi.eeSz - eeFree; in readNanohubMemInfo()
162 if (mi.osSz != NANOHUB_MEM_SZ_UNKNOWN && osFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
163 mi.osUse = mi.osSz - osFree; in readNanohubMemInfo()
164 if (mi.sharedSz != NANOHUB_MEM_SZ_UNKNOWN && sharedFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
165 mi.sharedUse = mi.sharedSz - sharedFree; in readNanohubMemInfo()
263 NanohubMemInfo mi; in handleRx() local
264 readNanohubMemInfo(buf, mi); in handleRx()
267 if (mi.sharedSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
268 mi.sharedUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
270 .total_bytes = mi.sharedSz, in handleRx()
271 .free_bytes = mi.sharedSz - mi.sharedUse, in handleRx()
275 if (mi.osSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
276 mi.osUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
278 .total_bytes = mi.osSz, in handleRx()
279 .free_bytes = mi.osSz - mi.osUse, in handleRx()
283 if (mi.eeSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
284 mi.eeUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
286 .total_bytes = mi.eeSz, in handleRx()
287 .free_bytes = mi.eeSz - mi.eeUse, in handleRx()
291 if (mi.ramSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
292 mi.ramUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
294 .total_bytes = mi.ramSz, in handleRx()
295 .free_bytes = mi.ramSz - mi.ramUse, in handleRx()