Lines Matching full:window

138 	struct window_context *window = find_largest_window(context);  in get_suggested_timeout()  local
139 uint32_t max_size_mb = window ? (window->size >> 20) : 0; in get_suggested_timeout()
144 MSG_DBG("Suggested Timeout: %us, max window size: %uMB, for %dms/MB\n", in get_suggested_timeout()
151 * Get the API version, default window size and block size
153 * this command must be called before any window manipulation
159 * RESP[1:2]: Default read window size (number of blocks)
160 * RESP[3:4]: Default write window size (number of blocks)
167 * RESP[1:2]: Default read window size (number of blocks)
168 * RESP[3:4]: Default write window size (number of blocks)
210 /* Now we know the blocksize we can allocate the window dirty_bytemap */ in mbox_handle_mbox_info()
214 /* Reset if we were V1 since this required exact window mapping */ in mbox_handle_mbox_info()
218 * window -> In which case we are better off notifying the in mbox_handle_mbox_info()
276 * get_lpc_addr_shifted() - Get lpc address of the current window
285 /* Offset of the current window in the reserved memory region */ in get_lpc_addr_shifted()
290 MSG_DBG("LPC address of current window: 0x%.8x\n", lpc_addr); in get_lpc_addr_shifted()
297 * Opens a read window
298 * First checks if any current window with the requested data, if so we just
303 * ARGS[0:1]: Window Location as Offset into Flash (number of blocks)
305 * RESP[0:1]: LPC bus address for host to access this window (number of blocks)
308 * ARGS[0:1]: Window Location as Offset into Flash (number of blocks)
309 * ARGS[2:3]: Requested window size (number of blocks)
311 * RESP[0:1]: LPC bus address for host to access this window (number of blocks)
312 * RESP[2:3]: Actual window size that the host can access (number of blocks)
320 /* Close the current window if there is one */ in mbox_handle_read_window()
322 /* There is an implicit flush if it was a write window */ in mbox_handle_read_window()
326 MSG_ERR("Couldn't Flush Write Window\n"); in mbox_handle_read_window()
336 /* Check if we have an existing window */ in mbox_handle_read_window()
340 if (!context->current) { /* No existing window */ in mbox_handle_read_window()
341 MSG_DBG("No existing window which maps that flash offset\n"); in mbox_handle_read_window()
345 MSG_ERR("Couldn't create window mapping for offset 0x%.8x\n" in mbox_handle_read_window()
351 MSG_INFO("Window @ %p for size 0x%.8x maps flash offset 0x%.8x\n", in mbox_handle_read_window()
370 * Opens a write window
371 * First checks if any current window with the requested data, if so we just
376 * ARGS[0:1]: Window Location as Offset into Flash (number of blocks)
378 * RESP[0:1]: LPC bus address for host to access this window (number of blocks)
381 * ARGS[0:1]: Window Location as Offset into Flash (number of blocks)
382 * ARGS[2:3]: Requested window size (number of blocks)
384 * RESP[0:1]: LPC bus address for host to access this window (number of blocks)
385 * RESP[2:3]: Actual window size that was mapped/host can access (n.o. blocks)
393 * This is very similar to opening a read window (exactly the same in mbox_handle_write_window()
407 * Marks a portion of the current (write) window dirty, informing the daemon
411 * called or the window closed
418 * ARGS[0:1]: Where within window to start (number of blocks)
427 MSG_ERR("Tried to call mark dirty without open write window\n"); in mbox_handle_dirty_window()
438 /* For V1 offset given relative to flash - we want the window */ in mbox_handle_dirty_window()
441 if (off > offset) { /* Underflow - before current window */ in mbox_handle_dirty_window()
442 MSG_ERR("Tried to mark dirty before start of window\n"); in mbox_handle_dirty_window()
443 MSG_ERR("requested offset: 0x%x window start: 0x%x\n", in mbox_handle_dirty_window()
459 MSG_INFO("Dirty window @ 0x%.8x for 0x%.8x\n", in mbox_handle_dirty_window()
469 * Erases a portion of the current window
471 * called or the window closed
477 * ARGS[0:1]: Where within window to start (number of blocks)
492 MSG_ERR("Tried to call erase without open write window\n"); in mbox_handle_erase_window()
499 MSG_INFO("Erase window @ 0x%.8x for 0x%.8x\n", in mbox_handle_erase_window()
518 * Flushes any dirty or erased blocks in the current window back to the backing
527 * ARGS[0:1]: Where within window to start (number of blocks)
540 MSG_ERR("Tried to call flush without open write window\n"); in mbox_handle_flush_window()
549 * window because we might not have the required args in req. in mbox_handle_flush_window()
563 MSG_INFO("Flush window @ %p for size 0x%.8x which maps flash @ 0x%.8x\n", in mbox_handle_flush_window()
620 * Close the current window
635 /* Close the current window if there is one */ in mbox_handle_close_window()
637 /* There is an implicit flush if it was a write window */ in mbox_handle_close_window()
641 MSG_ERR("Couldn't Flush Write Window\n"); in mbox_handle_close_window()