diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-08-08 17:18:24 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2018-09-05 17:44:24 +0930 |
commit | b65bb4c509703e264ba630c3e20f5b28a83b65a8 (patch) | |
tree | f8b7ff5a1e417917d465faa54a826c7ec931aa28 | |
parent | 7d5ada63a2855c315bb0c53f0d325be4367f4542 (diff) | |
download | phosphor-mboxbridge-b65bb4c509703e264ba630c3e20f5b28a83b65a8.tar.gz phosphor-mboxbridge-b65bb4c509703e264ba630c3e20f5b28a83b65a8.zip |
windows: Rename close_current_window to windows_close_current
Change-Id: I77f54a95dca865b91c7ba4f51212e43a049bc62a
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r-- | mboxd_msg.c | 4 | ||||
-rw-r--r-- | windows.c | 6 | ||||
-rw-r--r-- | windows.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/mboxd_msg.c b/mboxd_msg.c index ea07a0d..cc23fe3 100644 --- a/mboxd_msg.c +++ b/mboxd_msg.c @@ -327,7 +327,7 @@ int mbox_handle_read_window(struct mbox_context *context, return rc; } } - close_current_window(context, NO_BMC_EVENT, FLAGS_NONE); + windows_close_current(context, NO_BMC_EVENT, FLAGS_NONE); } /* Offset the host has requested */ @@ -662,7 +662,7 @@ int mbox_handle_close_window(struct mbox_context *context, } /* Host asked for it -> Don't set the BMC Event */ - close_current_window(context, NO_BMC_EVENT, flags); + windows_close_current(context, NO_BMC_EVENT, flags); } return 0; @@ -377,7 +377,7 @@ int window_set_bytemap(struct mbox_context *context, struct window_context *cur, } /* - * close_current_window() - Close the current (active) window + * windows_close_current() - Close the current (active) window * @context: The mbox context pointer * @set_bmc_event: Whether to set the bmc event bit * @flags: Flags as defined for a close command in the protocol @@ -388,7 +388,7 @@ int window_set_bytemap(struct mbox_context *context, struct window_context *cur, * without the host requesting it the bmc event bit must be set to indicate this * to the host (set_bmc_event == true). */ -void close_current_window(struct mbox_context *context, bool set_bmc_event, +void windows_close_current(struct mbox_context *context, bool set_bmc_event, uint8_t flags) { MSG_DBG("Close current window, flags: 0x%.2x\n", flags); @@ -434,7 +434,7 @@ void reset_all_windows(struct mbox_context *context, bool set_bmc_event) MSG_DBG("Resetting all windows\n"); /* We might have an open window which needs closing */ if (context->current) { - close_current_window(context, set_bmc_event, FLAGS_NONE); + windows_close_current(context, set_bmc_event, FLAGS_NONE); } for (i = 0; i < context->windows.num; i++) { reset_window(context, &context->windows.window[i]); @@ -21,7 +21,7 @@ int window_flush(struct mbox_context *context, uint32_t offset, void windows_alloc_dirty_bytemap(struct mbox_context *context); int window_set_bytemap(struct mbox_context *context, struct window_context *cur, uint32_t offset, uint32_t size, uint8_t val); -void close_current_window(struct mbox_context *context, bool set_bmc_event, +void windows_close_current(struct mbox_context *context, bool set_bmc_event, uint8_t flags); void reset_window(struct mbox_context *context, struct window_context *window); void reset_all_windows(struct mbox_context *context, bool set_bmc_event); |