Lines Matching refs:state_fdt
18 void *blob = state->state_fdt; in state_ensure_space()
41 state->state_fdt = buf; in state_ensure_space()
56 state->state_fdt = os_malloc(size); in state_read_file()
57 if (!state->state_fdt) { in state_read_file()
67 if (os_read(fd, state->state_fdt, size) != size) { in state_read_file()
78 os_free(state->state_fdt); in state_read_file()
79 state->state_fdt = NULL; in state_read_file()
158 blob = state->state_fdt; in sandbox_read_state()
205 blob = state->state_fdt; in sandbox_write_state_node()
243 if (!state->state_fdt) { in sandbox_write_state()
245 state->state_fdt = os_malloc(size); in sandbox_write_state()
246 if (!state->state_fdt) { in sandbox_write_state()
250 ret = fdt_create_empty_tree(state->state_fdt, size); in sandbox_write_state()
276 ret = fdt_pack(state->state_fdt); in sandbox_write_state()
282 size = fdt_totalsize(state->state_fdt); in sandbox_write_state()
289 if (os_write(fd, state->state_fdt, size) != size) { in sandbox_write_state()
303 os_free(state->state_fdt); in sandbox_write_state()
314 fdt_getprop(state->state_fdt, node, prop_name, &len); in state_setprop()
322 blob = state->state_fdt; in state_setprop()
407 if (state->state_fdt) in state_uninit()
408 os_free(state->state_fdt); in state_uninit()