Home
last modified time | relevance | path

Searched refs:MBOX_FD (Results 1 – 9 of 9) sorted by relevance

/openbmc/phosphor-mboxd/test/
H A Dmbox.c69 fd = context->fds[MBOX_FD].fd; in mbox_cmp()
96 fd = context->fds[MBOX_FD].fd; in mbox_rspcpy()
115 fd = context->fds[MBOX_FD].fd; in mbox_command_write()
185 rc = lseek(context->fds[MBOX_FD].fd, -1, SEEK_CUR); in mbox_command_dispatch()
189 rc = read(context->fds[MBOX_FD].fd, &status, sizeof(status)); in mbox_command_dispatch()
241 rc = close(test.context.fds[MBOX_FD].fd); in mbox_create_test_context()
243 test.context.fds[MBOX_FD].fd = test.mbox.fd; in mbox_create_test_context()
H A Dbmc_event_ack_v2.c45 rc = fstat(ctx->fds[MBOX_FD].fd, &details); in main()
51 ctx->fds[MBOX_FD].fd, 0); in main()
/openbmc/hiomapd/test/
H A Dmbox.c71 fd = context->fds[MBOX_FD].fd; in mbox_cmp()
100 fd = context->fds[MBOX_FD].fd; in mbox_rspcpy()
119 fd = context->fds[MBOX_FD].fd; in mbox_command_write()
189 rc = lseek(context->fds[MBOX_FD].fd, -1, SEEK_CUR); in mbox_command_dispatch()
193 rc = read(context->fds[MBOX_FD].fd, &status, sizeof(status)); in mbox_command_dispatch()
249 rc = close(test.context.fds[MBOX_FD].fd); in mbox_create_frontend_context()
251 test.context.fds[MBOX_FD].fd = test.mbox.fd; in mbox_create_frontend_context()
H A Dbmc_event_ack_v2.c58 rc = fstat(ctx->fds[MBOX_FD].fd, &details); in main()
62 ctx->fds[MBOX_FD].fd, 0); in main()
/openbmc/hiomapd/
H A Dtransport_mbox.c101 rc = lseek(context->fds[MBOX_FD].fd, MBOX_BMC_EVENT, SEEK_SET); in transport_mbox_flush_events()
109 rc = write(context->fds[MBOX_FD].fd, &events, 1); in transport_mbox_flush_events()
117 rc = lseek(context->fds[MBOX_FD].fd, 0, SEEK_SET); in transport_mbox_flush_events()
593 len = write(context->fds[MBOX_FD].fd, &resp, sizeof(resp)); in handle_mbox_req()
619 rc = read(context->fds[MBOX_FD].fd, msg, sizeof(msg->raw)); in get_message()
673 context->fds[MBOX_FD].fd = fd; in __transport_mbox_init()
696 close(context->fds[MBOX_FD].fd); in transport_mbox_free()
H A Dmboxd.h50 #define MBOX_FD 1 macro
/openbmc/phosphor-mboxd/
H A Dmboxd_msg.c44 rc = lseek(context->fds[MBOX_FD].fd, MBOX_BMC_EVENT, SEEK_SET); in write_bmc_event_reg()
52 rc = write(context->fds[MBOX_FD].fd, &context->bmc_events, 1); in write_bmc_event_reg()
60 rc = lseek(context->fds[MBOX_FD].fd, 0, SEEK_SET); in write_bmc_event_reg()
769 len = write(context->fds[MBOX_FD].fd, &resp, sizeof(resp)); in handle_mbox_req()
789 rc = read(context->fds[MBOX_FD].fd, msg, sizeof(msg->raw)); in get_message()
844 context->fds[MBOX_FD].fd = fd; in __init_mbox_dev()
856 close(context->fds[MBOX_FD].fd); in free_mbox_dev()
H A Dmbox.h81 #define MBOX_FD 1 macro
H A Dmboxd.c117 if (context->fds[MBOX_FD].revents & POLLIN) { /* MBOX */ in poll_loop()