Searched refs:readfile (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/soc/mediatek/mt8xxx/ |
D | mtk_adsp_load.py | 46 compat = readfile(glob("/proc/device-tree/**/adsp@*/compatible", recursive=True)[0], "r") 61 rnames = readfile(path + "reg-names", "r").split('\0')[:-1] 62 regs = struct.unpack(f">{2 * len(rnames)}Q", readfile(path + "reg")) 64 for i, ph in enumerate(struct.unpack(">II", readfile(path + "memory-region"))): 67 if os.path.exists(phf) and struct.unpack(">I", readfile(phf))[0] == ph: 68 (addr, sz) = struct.unpack(">QQ", readfile(rmem + "reg")) 212 def readfile(f, mode="rb"): function
|