Home
last modified time | relevance | path

Searched refs:mbox_context (Results 1 – 25 of 147) sorted by relevance

123456

/openbmc/hiomapd/
H A Dcontrol_dbus.h4 struct mbox_context;
7 int control_dbus_init(struct mbox_context *context);
8 void control_dbus_free(struct mbox_context *context);
10 int control_legacy_init(struct mbox_context *context);
11 void control_legacy_free(struct mbox_context *context);
14 int control_ping(struct mbox_context *context);
16 int control_lpc_state(struct mbox_context *context);
17 int control_reset(struct mbox_context *context);
18 int control_kill(struct mbox_context *context);
19 int control_modified(struct mbox_context *context);
[all …]
H A Dprotocol.h7 struct mbox_context;
104 int (*reset)(struct mbox_context *context);
105 int (*get_info)(struct mbox_context *context,
107 int (*get_flash_info)(struct mbox_context *context,
109 int (*create_window)(struct mbox_context *context,
111 int (*mark_dirty)(struct mbox_context *context,
119 int protocol_init(struct mbox_context *context);
120 void protocol_free(struct mbox_context *context);
123 int __protocol_reset(struct mbox_context *context);
126 int protocol_reset(struct mbox_context *context);
[all …]
H A Dwindows.h12 struct mbox_context;
37 int windows_init(struct mbox_context *context);
38 void windows_free(struct mbox_context *context);
40 int window_flush_v1(struct mbox_context *context,
42 int window_flush(struct mbox_context *context, uint32_t offset,
45 void windows_alloc_dirty_bytemap(struct mbox_context *context);
48 void windows_close_current(struct mbox_context *context, uint8_t flags);
50 bool windows_reset_all(struct mbox_context *context);
51 struct window_context *windows_find_oldest(struct mbox_context *context);
53 struct window_context *windows_search(struct mbox_context *context,
[all …]
H A Dcontrol.c14 int control_ping(struct mbox_context *context __attribute__((unused))) in control_ping()
19 int control_daemon_state(struct mbox_context *context) in control_daemon_state()
25 int control_lpc_state(struct mbox_context *context) in control_lpc_state()
37 int control_reset(struct mbox_context *context) in control_reset()
53 int control_kill(struct mbox_context *context) in control_kill()
62 int control_modified(struct mbox_context *context) in control_modified()
76 int control_suspend(struct mbox_context *context) in control_suspend()
96 int control_resume(struct mbox_context *context, bool modified) in control_resume()
120 int control_set_backend(struct mbox_context *context, struct backend *backend, in control_set_backend()
H A Dprotocol.c40 int protocol_events_put(struct mbox_context *context, in protocol_events_put()
89 static int protocol_v1_reset(struct mbox_context *context) in protocol_v1_reset()
97 static int protocol_v1_get_info(struct mbox_context *context, in protocol_v1_get_info()
372 static int generic_flush(struct mbox_context *context) in generic_flush()
437 static int protocol_v1_flush(struct mbox_context *context, in protocol_v1_flush()
464 static int protocol_v1_close(struct mbox_context *context, in protocol_v1_close()
489 static int protocol_v1_ack(struct mbox_context *context, in protocol_v1_ack()
595 static int protocol_v2_erase(struct mbox_context *context, in protocol_v2_erase()
705 int protocol_init(struct mbox_context *context) in protocol_init()
718 int __protocol_reset(struct mbox_context *context) in __protocol_reset()
[all …]
H A Dcontrol_legacy.c43 static int control_legacy_ping(struct mbox_context *context, in control_legacy_ping()
75 static int control_legacy_lpc_state(struct mbox_context *context, in control_legacy_lpc_state()
95 static int control_legacy_reset(struct mbox_context *context, in control_legacy_reset()
120 static int control_legacy_kill(struct mbox_context *context, in control_legacy_kill()
137 static int control_legacy_modified(struct mbox_context *context, in control_legacy_modified()
153 static int control_legacy_suspend(struct mbox_context *context, in control_legacy_suspend()
175 static int control_legacy_resume(struct mbox_context *context, in control_legacy_resume()
194 typedef int (*control_action)(struct mbox_context *context,
212 struct mbox_context *context; in method_cmd()
217 context = (struct mbox_context *) userdata; in method_cmd()
[all …]
H A Dlpc.h7 struct mbox_context;
9 int lpc_dev_init(struct mbox_context *context);
10 void lpc_dev_free(struct mbox_context *context);
11 int lpc_map_flash(struct mbox_context *context);
12 int lpc_map_memory(struct mbox_context *context);
H A Dtransport_mbox.c73 static inline int mbox_xlate_errno(struct mbox_context *context, in mbox_xlate_errno()
127 static int transport_mbox_put_events(struct mbox_context *context, in transport_mbox_put_events()
153 static int mbox_handle_reset(struct mbox_context *context, in mbox_handle_reset()
182 static int mbox_handle_mbox_info(struct mbox_context *context, in mbox_handle_mbox_info()
225 static int mbox_handle_flash_info(struct mbox_context *context, in mbox_handle_flash_info()
318 static int mbox_handle_read_window(struct mbox_context *context, in mbox_handle_read_window()
343 static int mbox_handle_write_window(struct mbox_context *context, in mbox_handle_write_window()
365 static int mbox_handle_dirty_window(struct mbox_context *context, in mbox_handle_dirty_window()
644 int transport_mbox_dispatch(struct mbox_context *context) in transport_mbox_dispatch()
682 int transport_mbox_init(struct mbox_context *context, in transport_mbox_init()
[all …]
H A Dtransport_dbus.c76 struct mbox_context *context = userdata; in transport_dbus_reset()
104 struct mbox_context *context = userdata; in transport_dbus_get_info()
159 struct mbox_context *context = userdata; in transport_dbus_get_flash_info()
242 struct mbox_context *context = userdata; in transport_dbus_create_read_window()
250 struct mbox_context *context = userdata; in transport_dbus_create_write_window()
258 struct mbox_context *context = userdata; in transport_dbus_close_window()
294 struct mbox_context *context = userdata; in transport_dbus_mark_dirty()
329 struct mbox_context *context = userdata; in transport_dbus_write_flush()
357 struct mbox_context *context = userdata; in transport_dbus_ack()
392 struct mbox_context *context = userdata; in transport_dbus_erase()
[all …]
H A Dtransport.h7 struct mbox_context;
10 int (*put_events)(struct mbox_context *context, uint8_t mask);
11 int (*set_events)(struct mbox_context *context, uint8_t events,
13 int (*clear_events)(struct mbox_context *context, uint8_t events,
H A Dcontrol_dbus.c13 typedef int (*control_action)(struct mbox_context *context);
19 struct mbox_context *context; in control_dbus_directive()
28 context = (struct mbox_context *) userdata; in control_dbus_directive()
84 struct mbox_context *context; in control_dbus_resume()
89 context = (struct mbox_context *) userdata; in control_dbus_resume()
117 struct mbox_context *context; in control_dbus_set_backend()
123 context = (struct mbox_context *) userdata; in control_dbus_set_backend()
207 struct mbox_context *context = userdata; in control_dbus_get_u8()
247 int control_dbus_init(struct mbox_context *context) in control_dbus_init()
256 void control_dbus_free(struct mbox_context *context __unused) in control_dbus_free()
H A Dtransport_mbox.h9 struct mbox_context;
55 int transport_mbox_dispatch(struct mbox_context *context);
56 int transport_mbox_init(struct mbox_context *context,
58 void transport_mbox_free(struct mbox_context *context);
H A Dwindows.c59 static int init_window_mem(struct mbox_context *context) in init_window_mem()
94 int windows_init(struct mbox_context *context) in windows_init()
130 void windows_free(struct mbox_context *context) in windows_free()
160 int window_flush_v1(struct mbox_context *context, in window_flush_v1()
281 int window_flush(struct mbox_context *context, uint32_t offset, in window_flush()
342 void windows_alloc_dirty_bytemap(struct mbox_context *context) in windows_alloc_dirty_bytemap()
395 void windows_close_current(struct mbox_context *context, uint8_t flags) in windows_close_current()
430 bool windows_reset_all(struct mbox_context *context) in windows_reset_all()
458 struct window_context *windows_find_oldest(struct mbox_context *context) in windows_find_oldest()
514 struct window_context *windows_search(struct mbox_context *context, in windows_search()
[all …]
/openbmc/phosphor-mboxd/
H A Dmboxd_msg.h20 int dispatch_mbox(struct mbox_context *context);
21 int init_mbox_dev(struct mbox_context *context);
22 void free_mbox_dev(struct mbox_context *context);
25 int mbox_handle_reset(struct mbox_context *context,
27 int mbox_handle_mbox_info(struct mbox_context *context,
29 int mbox_handle_flash_info(struct mbox_context *context,
31 int mbox_handle_read_window(struct mbox_context *context,
33 int mbox_handle_close_window(struct mbox_context *context,
35 int mbox_handle_write_window(struct mbox_context *context,
37 int mbox_handle_dirty_window(struct mbox_context *context,
[all …]
H A Dmboxd_windows.h13 int init_windows(struct mbox_context *context);
14 void free_windows(struct mbox_context *context);
16 int write_from_window_v1(struct mbox_context *context,
18 int write_from_window(struct mbox_context *context, uint32_t offset,
21 void alloc_window_dirty_bytemap(struct mbox_context *context);
24 void close_current_window(struct mbox_context *context, bool set_bmc_event,
27 void reset_all_windows(struct mbox_context *context, bool set_bmc_event);
28 struct window_context *find_oldest_window(struct mbox_context *context);
29 struct window_context *find_largest_window(struct mbox_context *context);
30 struct window_context *search_windows(struct mbox_context *context,
[all …]
H A Dmboxd_flash.h16 int init_flash_dev(struct mbox_context *context);
17 void free_flash_dev(struct mbox_context *context);
18 int64_t copy_flash(struct mbox_context *context, uint32_t offset, void *mem,
20 int set_flash_bytemap(struct mbox_context *context, uint32_t offset,
22 int erase_flash(struct mbox_context *context, uint32_t offset, uint32_t count);
23 int write_flash(struct mbox_context *context, uint32_t offset, void *buf,
H A Dmboxd_lpc.h11 int init_lpc_dev(struct mbox_context *context);
12 void free_lpc_dev(struct mbox_context *context);
13 int point_to_flash(struct mbox_context *context);
14 int point_to_memory(struct mbox_context *context);
15 int reset_lpc(struct mbox_context *context);
H A Dmboxd_dbus.c49 static int dbus_handle_ping(struct mbox_context *context, in dbus_handle_ping()
82 static int dbus_handle_lpc_state(struct mbox_context *context, in dbus_handle_lpc_state()
108 static int dbus_handle_reset(struct mbox_context *context, in dbus_handle_reset()
140 static int dbus_handle_kill(struct mbox_context *context, in dbus_handle_kill()
161 static int dbus_handle_modified(struct mbox_context *context, in dbus_handle_modified()
183 static int dbus_handle_suspend(struct mbox_context *context, in dbus_handle_suspend()
212 static int dbus_handle_resume(struct mbox_context *context, in dbus_handle_resume()
258 struct mbox_context *context; in method_cmd()
262 context = (struct mbox_context *) userdata; in method_cmd()
343 int init_mboxd_dbus(struct mbox_context *context) in init_mboxd_dbus()
[all …]
H A Dmboxd_msg.c39 static int write_bmc_event_reg(struct mbox_context *context) in write_bmc_event_reg()
122 int mbox_handle_reset(struct mbox_context *context, in mbox_handle_reset()
171 int mbox_handle_mbox_info(struct mbox_context *context, in mbox_handle_mbox_info()
250 int mbox_handle_flash_info(struct mbox_context *context, in mbox_handle_flash_info()
314 int mbox_handle_read_window(struct mbox_context *context, in mbox_handle_read_window()
387 int mbox_handle_write_window(struct mbox_context *context, in mbox_handle_write_window()
421 int mbox_handle_dirty_window(struct mbox_context *context, in mbox_handle_dirty_window()
480 int mbox_handle_erase_window(struct mbox_context *context, in mbox_handle_erase_window()
814 int dispatch_mbox(struct mbox_context *context) in dispatch_mbox()
849 int init_mbox_dev(struct mbox_context *context) in init_mbox_dev()
[all …]
H A Dmboxd_windows.c56 static int init_window_mem(struct mbox_context *context) in init_window_mem()
91 int init_windows(struct mbox_context *context) in init_windows()
127 void free_windows(struct mbox_context *context) in free_windows()
157 int write_from_window_v1(struct mbox_context *context, in write_from_window_v1()
278 int write_from_window(struct mbox_context *context, uint32_t offset, in write_from_window()
337 void alloc_window_dirty_bytemap(struct mbox_context *context) in alloc_window_dirty_bytemap()
430 void reset_all_windows(struct mbox_context *context, bool set_bmc_event) in reset_all_windows()
452 struct window_context *find_oldest_window(struct mbox_context *context) in find_oldest_window()
476 struct window_context *find_largest_window(struct mbox_context *context) in find_largest_window()
508 struct window_context *search_windows(struct mbox_context *context, in search_windows()
[all …]
/openbmc/hiomapd/test/
H A Dmbox.h16 struct mbox_context *mbox_create_test_context(int n_windows, size_t len);
17 struct mbox_context *mbox_create_frontend_context(int n_windows, size_t len);
19 int mbox_set_mtd_data(struct mbox_context *context, const void *data,
22 void mbox_dump(struct mbox_context *context);
24 void mbox_rspcpy(struct mbox_context *context, struct mbox_msg *msg);
26 int mbox_cmp(struct mbox_context *context, const uint8_t *expected, size_t len);
28 int mbox_command_write(struct mbox_context *context, const uint8_t *command,
31 int mbox_command_dispatch(struct mbox_context *context, const uint8_t *command,
H A Dmbox.c64 int mbox_cmp(struct mbox_context *context, const uint8_t *expected, size_t len) in mbox_cmp()
94 void mbox_rspcpy(struct mbox_context *context, struct mbox_msg *msg) in mbox_rspcpy()
112 int mbox_command_write(struct mbox_context *context, const uint8_t *command, in mbox_command_write()
140 int mbox_command_dispatch(struct mbox_context *context, const uint8_t *command, in mbox_command_dispatch()
204 struct mbox_context context;
214 int __transport_mbox_init(struct mbox_context *context, const char *path,
216 int __lpc_dev_init(struct mbox_context *context, const char *path);
218 struct mbox_context *mbox_create_frontend_context(int n_windows, size_t len) in mbox_create_frontend_context()
277 struct mbox_context *mbox_create_test_context(int n_windows, size_t len) in mbox_create_test_context()
279 struct mbox_context *ctx; in mbox_create_test_context()
[all …]
/openbmc/phosphor-mboxd/test/
H A Dmbox.h16 struct mbox_context *mbox_create_test_context(int n_windows, size_t len);
18 int mbox_set_mtd_data(struct mbox_context *context, const void *data,
21 void mbox_dump(struct mbox_context *context);
23 void mbox_rspcpy(struct mbox_context *context, struct mbox_msg *msg);
25 int mbox_cmp(struct mbox_context *context, const uint8_t *expected, size_t len);
27 int mbox_command_write(struct mbox_context *context, const uint8_t *command,
30 int mbox_command_dispatch(struct mbox_context *context, const uint8_t *command,
H A Dmbox.c62 int mbox_cmp(struct mbox_context *context, const uint8_t *expected, size_t len) in mbox_cmp()
90 void mbox_rspcpy(struct mbox_context *context, struct mbox_msg *msg) in mbox_rspcpy()
108 int mbox_command_write(struct mbox_context *context, const uint8_t *command, in mbox_command_write()
136 int mbox_command_dispatch(struct mbox_context *context, const uint8_t *command, in mbox_command_dispatch()
200 struct mbox_context context;
210 int __init_mbox_dev(struct mbox_context *context, const char *path);
211 int __init_lpc_dev(struct mbox_context *context, const char *path);
213 struct mbox_context *mbox_create_test_context(int n_windows, size_t len) in mbox_create_test_context()
282 int mbox_set_mtd_data(struct mbox_context *context, const void *data, in mbox_set_mtd_data()
/openbmc/phosphor-mboxd/vpnor/
H A Dmboxd_pnor_partition_table.h10 struct mbox_context;
35 int init_vpnor(struct mbox_context *context);
47 int init_vpnor_from_paths(struct mbox_context *context);
55 int vpnor_copy_bootloader_partition(const struct mbox_context *context);
61 void destroy_vpnor(struct mbox_context *context);

123456