Lines Matching refs:mi

63 static void readNanohubMemInfo(MessageBuf &buf, NanohubMemInfo &mi)  in readNanohubMemInfo()  argument
71 mi.flashSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
72 mi.blSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
73 mi.osSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
74 mi.sharedSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
75 mi.eeSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
76 mi.ramSz = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
78 mi.blUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
79 mi.osUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
80 mi.sharedUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
81 mi.eeUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
82 mi.ramUse = NANOHUB_MEM_SZ_UNKNOWN; in readNanohubMemInfo()
96 if (len == sizeof(mi.ramSz)) in readNanohubMemInfo()
97 mi.ramSz = buf.readU32(); in readNanohubMemInfo()
102 if (len == sizeof(mi.ramSz)) in readNanohubMemInfo()
103 mi.eeSz = buf.readU32(); in readNanohubMemInfo()
114 if (len == sizeof(mi.osSz)) in readNanohubMemInfo()
115 mi.osSz = buf.readU32(); in readNanohubMemInfo()
126 if (len == sizeof(mi.sharedSz)) in readNanohubMemInfo()
127 mi.sharedSz = buf.readU32(); in readNanohubMemInfo()
159 if (mi.ramSz != NANOHUB_MEM_SZ_UNKNOWN && ramFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
160 mi.ramUse = mi.ramSz - ramFree; in readNanohubMemInfo()
161 if (mi.eeSz != NANOHUB_MEM_SZ_UNKNOWN && eeFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
162 mi.eeUse = mi.eeSz - eeFree; in readNanohubMemInfo()
163 if (mi.osSz != NANOHUB_MEM_SZ_UNKNOWN && osFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
164 mi.osUse = mi.osSz - osFree; in readNanohubMemInfo()
165 if (mi.sharedSz != NANOHUB_MEM_SZ_UNKNOWN && sharedFree != NANOHUB_MEM_SZ_UNKNOWN) in readNanohubMemInfo()
166 mi.sharedUse = mi.sharedSz - sharedFree; in readNanohubMemInfo()
264 NanohubMemInfo mi; in handleRx() local
265 readNanohubMemInfo(buf, mi); in handleRx()
268 if (mi.sharedSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
269 mi.sharedUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
271 .total_bytes = mi.sharedSz, in handleRx()
272 .free_bytes = mi.sharedSz - mi.sharedUse, in handleRx()
276 if (mi.osSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
277 mi.osUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
279 .total_bytes = mi.osSz, in handleRx()
280 .free_bytes = mi.osSz - mi.osUse, in handleRx()
284 if (mi.eeSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
285 mi.eeUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
287 .total_bytes = mi.eeSz, in handleRx()
288 .free_bytes = mi.eeSz - mi.eeUse, in handleRx()
292 if (mi.ramSz != NANOHUB_MEM_SZ_UNKNOWN && in handleRx()
293 mi.ramUse != NANOHUB_MEM_SZ_UNKNOWN) in handleRx()
295 .total_bytes = mi.ramSz, in handleRx()
296 .free_bytes = mi.ramSz - mi.ramUse, in handleRx()