| /openbmc/u-boot/drivers/misc/imx8/ |
| H A D | scu_api.c | 22 struct sc_rpc_msg_s msg; in sc_pm_set_clock_rate() local 25 RPC_VER(&msg) = SC_RPC_VERSION; in sc_pm_set_clock_rate() 26 RPC_SVC(&msg) = (u8)SC_RPC_SVC_PM; in sc_pm_set_clock_rate() 27 RPC_FUNC(&msg) = (u8)PM_FUNC_SET_CLOCK_RATE; in sc_pm_set_clock_rate() 28 RPC_U32(&msg, 0U) = *(u32 *)rate; in sc_pm_set_clock_rate() 29 RPC_U16(&msg, 4U) = (u16)resource; in sc_pm_set_clock_rate() 30 RPC_U8(&msg, 6U) = (u8)clk; in sc_pm_set_clock_rate() 31 RPC_SIZE(&msg) = 3U; in sc_pm_set_clock_rate() 33 ret = misc_call(dev, SC_FALSE, &msg, size, &msg, size); in sc_pm_set_clock_rate() 36 __func__, *rate, resource, clk, RPC_R8(&msg)); in sc_pm_set_clock_rate() [all …]
|
| /openbmc/phosphor-networkd/test/ |
| H A D | test_rtnetlink.cpp | 26 } msg; in TEST() local 27 msg.hdr.ifi_type = 3; in TEST() 28 msg.hdr.ifi_index = 1; in TEST() 29 msg.hdr.ifi_flags = 2; in TEST() 30 EXPECT_EQ(intfFromRtm(stdplus::raw::asView<char>(msg)), in TEST() 46 } msg; in TEST() local 47 msg.hdr.ifi_type = 4; in TEST() 48 msg.hdr.ifi_index = 1; in TEST() 49 msg.hdr.ifi_flags = 2; in TEST() 50 msg.addr_hdr.rta_type = IFLA_ADDRESS; in TEST() [all …]
|
| /openbmc/qemu/hw/remote/ |
| H A D | mpqemu-link.c | 34 bool mpqemu_msg_send(MPQemuMsg *msg, QIOChannel *ioc, Error **errp) in mpqemu_msg_send() argument 43 send[0].iov_base = msg; in mpqemu_msg_send() 46 send[1].iov_base = (void *)&msg->data; in mpqemu_msg_send() 47 send[1].iov_len = msg->size; in mpqemu_msg_send() 49 if (msg->num_fds) { in mpqemu_msg_send() 50 nfds = msg->num_fds; in mpqemu_msg_send() 51 fds = msg->fds; in mpqemu_msg_send() 74 trace_mpqemu_send_io_error(msg->cmd, msg->size, nfds); in mpqemu_msg_send() 122 bool mpqemu_msg_recv(MPQemuMsg *msg, QIOChannel *ioc, Error **errp) in mpqemu_msg_recv() argument 130 len = mpqemu_read(ioc, msg, MPQEMU_MSG_HDR_SIZE, &fds, &nfds, errp); in mpqemu_msg_recv() [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
| H A D | logrotate.py | 31 msg = ('Could not create/update /var/log/wtmp with touch') 32 self.assertEqual(status, 0, msg = msg) 35 msg = ('Could not create logrotate_dir. Output: %s' % output) 36 self.assertEqual(status, 0, msg = msg) 39 msg = ('Could not write to /tmp/logrotate-test.conf') 40 self.assertEqual(status, 0, msg = msg) 45 …msg = ("logrotate did not successfully rotate the wtmp log. Output from logrotate -vf: \n%s" % (lo… 46 self.assertEqual(status, 0, msg = msg) 52 msg = ('Could not create logrotate test file in /var/log') 53 self.assertEqual(status, 0, msg = msg) [all …]
|
| H A D | rpm.py | 23 msg = 'status and output: %s and %s' % (status, output) 24 self.assertEqual(status, 0, msg=msg) 32 msg = 'status and output: %s and %s' % (status, output) 33 self.assertEqual(status, 0, msg=msg) 42 msg = 'Failed to create new user: %s' % output 43 self.assertTrue(status == 0, msg=msg) 47 msg = 'Failed to execute as new user' 48 self.assertTrue("({0})".format(u) in output, msg=msg) 51 msg = 'status: %s. Cannot run rpm -qa: %s' % (status, output) 52 self.assertEqual(status, 0, msg=msg) [all …]
|
| H A D | rust.py | 31 msg = 'rust compile failed, output: %s' % output 32 self.assertEqual(status, 0, msg=msg) 35 msg = 'running compiled file failed, output: %s' % output 36 self.assertEqual(status, 0, msg=msg) 43 msg = 'cargo new failed, output: %s' % output 44 self.assertEqual(status, 0, msg=msg) 47 msg = 'cargo build failed, output: %s' % output 48 self.assertEqual(status, 0, msg=msg) 51 msg = 'running compiled file failed, output: %s' % output 52 self.assertEqual(status, 0, msg=msg) [all …]
|
| H A D | gcc.py | 36 msg = 'gcc compile failed, output: %s' % output 37 self.assertEqual(status, 0, msg=msg) 40 msg = 'running compiled file failed, output: %s' % output 41 self.assertEqual(status, 0, msg=msg) 47 msg = 'g++ compile failed, output: %s' % output 48 self.assertEqual(status, 0, msg=msg) 51 msg = 'running compiled file failed, output: %s' % output 52 self.assertEqual(status, 0, msg=msg) 58 msg = 'g++ compile failed, output: %s' % output 59 self.assertEqual(status, 0, msg=msg) [all …]
|
| H A D | storage.py | 19 msg = ('Mount failed: %s.' % status) 20 cls.assertFalse(output, msg = msg) 25 msg = ('Device %s not mounted.' % cls.device) 26 cls.assertTrue(match, msg = msg) 31 msg = ('Failed to cleanup files @ %s/*' % cls.test_dir) 32 cls.assertFalse(output, msg = msg) 38 msg = ('File %s not created on %s' % (cls.test_file, cls.device)) 39 cls.assertFalse(status, msg = msg) 43 msg = ('File %s not moved to %s' % (cls.test_file, cls.device)) 44 cls.assertFalse(status, msg = msg) [all …]
|
| /openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
| H A D | host-powercycle | 25 msg="Execute host$CHASSIS_ID DC power cycle" 26 echo "${msg}" 27 add_sel "${msg}" "Info" 31 msg="Wait power control flock release for host$CHASSIS_ID DC cycle" 32 echo "${msg}" 33 add_sel "${msg}" "Info" 48 msg="Host$CHASSIS_ID system DC power is off" 49 echo "${msg}" 50 add_sel "${msg}" "Info" 60 msg="Host$CHASSIS_ID DC power cycle failed, fail to set host$CHASSIS_ID DC power off" [all …]
|
| H A D | chassis-poweron | 29 msg="Failed to set chassis$1 AC power on" 30 echo "${msg}" 31 add_sel "${msg}" "Error" 54 msg="Failed to AC power on Chassis$CHASSIS_ID, Chassis$CHASSIS_ID is AC power off" 55 echo "${msg}" 56 add_sel "${msg}" "Error" 61 msg="Execute chassis$CHASSIS_ID AC power on" 62 echo "${msg}" 63 add_sel "${msg}" "Info" 71 msg="Chassis$1 is already AC power on" [all …]
|
| /openbmc/u-boot/drivers/i2c/ |
| H A D | mv_i2c.c | 125 static int i2c_transfer(struct mv_i2c *base, struct mv_i2c_msg *msg) in i2c_transfer() argument 129 if (!msg) in i2c_transfer() 132 switch (msg->direction) { in i2c_transfer() 141 writel(msg->data, &base->idbr); in i2c_transfer() 142 if (msg->condition == I2C_COND_START) in i2c_transfer() 144 if (msg->condition == I2C_COND_STOP) in i2c_transfer() 146 if (msg->acknack == I2C_ACKNAK_SENDNAK) in i2c_transfer() 148 if (msg->acknack == I2C_ACKNAK_SENDACK) in i2c_transfer() 161 if (msg->acknack == I2C_ACKNAK_WAITACK) in i2c_transfer() 175 if (msg->condition == I2C_COND_START) in i2c_transfer() [all …]
|
| /openbmc/ipmitool/src/plugins/open/ |
| H A D | open.c | 195 fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn ); in ipmi_openipmi_send_cmd() 196 fprintf(stderr, " cmd = 0x%x\n", req->msg.cmd); in ipmi_openipmi_send_cmd() 197 printbuf(req->msg.data, req->msg.data_len, "OpenIPMI Request Message Data"); in ipmi_openipmi_send_cmd() 212 ipmb_addr.lun = req->msg.lun; in ipmi_openipmi_send_cmd() 215 req->msg.cmd, in ipmi_openipmi_send_cmd() 235 fprintf(stderr, " netfn = 0x%x\n", req->msg.netfn ); in ipmi_openipmi_send_cmd() 236 fprintf(stderr, " cmd = 0x%x\n", req->msg.cmd); in ipmi_openipmi_send_cmd() 237 if (req->msg.data && req->msg.data_len) { in ipmi_openipmi_send_cmd() 238 fprintf(stderr, " data_len = %d\n", req->msg.data_len); in ipmi_openipmi_send_cmd() 240 buf2str(req->msg.data,req->msg.data_len)); in ipmi_openipmi_send_cmd() [all …]
|
| /openbmc/libpldm/src/dsp/ |
| H A D | base.c | 16 struct pldm_msg_hdr *msg) in pack_pldm_header_errno() argument 18 if (msg == NULL || hdr == NULL) { in pack_pldm_header_errno() 38 msg->request = PLDM_RESPONSE; in pack_pldm_header_errno() 41 msg->request = PLDM_REQUEST; in pack_pldm_header_errno() 43 msg->datagram = datagram; in pack_pldm_header_errno() 44 msg->reserved = 0; in pack_pldm_header_errno() 45 msg->instance_id = hdr->instance; in pack_pldm_header_errno() 46 msg->header_ver = PLDM_CURRENT_VERSION; in pack_pldm_header_errno() 47 msg->type = hdr->pldm_type; in pack_pldm_header_errno() 48 msg->command = hdr->command; in pack_pldm_header_errno() [all …]
|
| H A D | file.c | 19 struct pldm_msg *msg, size_t *payload_length) in encode_pldm_file_df_open_req() argument 24 if (req == NULL || msg == NULL) { in encode_pldm_file_df_open_req() 34 rc = pack_pldm_header_errno(&header, &(msg->hdr)); in encode_pldm_file_df_open_req() 39 rc = pldm_msgbuf_init_errno(buf, PLDM_DF_OPEN_REQ_BYTES, msg->payload, in encode_pldm_file_df_open_req() 52 int decode_pldm_file_df_open_req(const struct pldm_msg *msg, in decode_pldm_file_df_open_req() argument 59 if (!msg || !req) { in decode_pldm_file_df_open_req() 63 rc = pldm_msgbuf_init_errno(buf, PLDM_DF_OPEN_REQ_BYTES, msg->payload, in decode_pldm_file_df_open_req() 78 struct pldm_msg *msg, size_t *payload_length) in encode_pldm_file_df_open_resp() argument 83 if (!msg || !resp) { in encode_pldm_file_df_open_resp() 93 rc = pack_pldm_header_errno(&header, &(msg->hdr)); in encode_pldm_file_df_open_resp() [all …]
|
| H A D | bios.c | 10 int encode_get_date_time_req(uint8_t instance_id, struct pldm_msg *msg) in encode_get_date_time_req() argument 12 if (msg == NULL) { in encode_get_date_time_req() 21 return pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_req() 28 struct pldm_msg *msg) in encode_get_date_time_resp() argument 30 if (msg == NULL) { in encode_get_date_time_resp() 40 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_resp() 46 (struct pldm_get_date_time_resp *)msg->payload; in encode_get_date_time_resp() 61 int decode_get_date_time_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_date_time_resp() argument 66 if (msg == NULL || seconds == NULL || minutes == NULL || in decode_get_date_time_resp() 72 *completion_code = msg->payload[0]; in decode_get_date_time_resp() [all …]
|
| /openbmc/ipmitool/src/plugins/serial/ |
| H A D | serial_basic.c | 90 struct ipmb_msg_hdr msg; member 121 uint8_t * msg; member 374 serial_bm_send_msg(struct ipmi_intf * intf, uint8_t * msg, int msg_len) in serial_bm_send_msg() argument 381 fprintf(stderr, " rsSA = 0x%x\n", msg[0]); in serial_bm_send_msg() 382 fprintf(stderr, " NetFN/rsLUN = 0x%x\n", msg[1]); in serial_bm_send_msg() 383 fprintf(stderr, " rqSA = 0x%x\n", msg[3]); in serial_bm_send_msg() 384 fprintf(stderr, " rqSeq/rqLUN = 0x%x\n", msg[4]); in serial_bm_send_msg() 385 fprintf(stderr, " cmd = 0x%x\n", msg[5]); in serial_bm_send_msg() 389 buf2str(msg + 6, msg_len - 7)); in serial_bm_send_msg() 395 fprintf(stderr, " %s\n", buf2str(msg, msg_len)); in serial_bm_send_msg() [all …]
|
| H A D | serial_terminal.c | 88 struct ipmb_msg_hdr msg; member 467 const struct ipmi_rq * req, uint8_t * msg, size_t max_len, in serial_term_build_msg() argument 470 uint8_t * data = msg, seq; in serial_term_build_msg() 471 struct serial_term_hdr * term_hdr = (struct serial_term_hdr *) msg; in serial_term_build_msg() 488 if(req->msg.data_len + 3 + bridging_level * 8 > max_len) { in serial_term_build_msg() 509 outer_rq->msg.rsSA = intf->transit_addr; in serial_term_build_msg() 510 outer_rq->msg.netFn = 0x18; in serial_term_build_msg() 511 outer_rq->msg.csum1 = -(outer_rq->msg.rsSA + outer_rq->msg.netFn); in serial_term_build_msg() 512 outer_rq->msg.rqSA = intf->my_addr; in serial_term_build_msg() 513 outer_rq->msg.rqSeq = seq; in serial_term_build_msg() [all …]
|
| /openbmc/u-boot/tools/patman/ |
| H A D | tout.py | 59 def Progress(msg, warning=False, trailer='...'): argument 68 _progress = msg + trailer 77 def _Output(level, msg, color=None): argument 89 msg = _color.Color(color, msg) 90 _stdout.write(msg + '\n') 92 def DoOutput(level, msg): argument 100 _Output(level, msg) 102 def Error(msg): argument 108 _Output(0, msg, _color.RED) 110 def Warning(msg): argument [all …]
|
| /openbmc/ipmitool/src/plugins/dummy/ |
| H A D | dummy.c | 156 req.msg.netfn = 0x3f; in ipmi_dummyipmi_close() 157 req.msg.cmd = 0xff; in ipmi_dummyipmi_close() 218 req_dummy.msg.netfn = req->msg.netfn; in ipmi_dummyipmi_send_cmd() 219 req_dummy.msg.lun = req->msg.lun; in ipmi_dummyipmi_send_cmd() 220 req_dummy.msg.cmd = req->msg.cmd; in ipmi_dummyipmi_send_cmd() 221 req_dummy.msg.target_cmd = req->msg.target_cmd; in ipmi_dummyipmi_send_cmd() 222 req_dummy.msg.data_len = req->msg.data_len; in ipmi_dummyipmi_send_cmd() 223 req_dummy.msg.data = req->msg.data; in ipmi_dummyipmi_send_cmd() 227 req_dummy.msg.data_len); in ipmi_dummyipmi_send_cmd() 228 lprintf(LOG_NOTICE, "msg.netfn: %x", req_dummy.msg.netfn); in ipmi_dummyipmi_send_cmd() [all …]
|
| /openbmc/qemu/hw/vfio-user/ |
| H A D | proxy.c | 31 static void vfio_user_recycle(VFIOUserProxy *proxy, VFIOUserMsg *msg); 62 static ssize_t vfio_user_send_qio(VFIOUserProxy *proxy, VFIOUserMsg *msg, in vfio_user_send_qio() argument 65 VFIOUserFDs *fds = msg->fds; in vfio_user_send_qio() 67 .iov_base = msg->hdr, in vfio_user_send_qio() 68 .iov_len = msg->hdr->size, in vfio_user_send_qio() 82 vfio_user_set_error(msg->hdr, EIO); in vfio_user_send_qio() 85 trace_vfio_user_send_write(msg->hdr->id, ret); in vfio_user_send_qio() 93 VFIOUserMsg *msg; in vfio_user_getmsg() local 95 msg = QTAILQ_FIRST(&proxy->free); in vfio_user_getmsg() 96 if (msg != NULL) { in vfio_user_getmsg() [all …]
|
| /openbmc/libpldm/tests/transport/ |
| H A D | transport.cpp | 19 const uint8_t msg[] = {0x81, 0x00, 0x01, 0x01}; in TEST() local 26 .msg = msg, in TEST() 27 .len = sizeof(msg), in TEST() 37 rc = pldm_transport_send_msg(ctx, 1, msg, sizeof(msg)); in TEST() 44 uint8_t msg[] = {0x01, 0x00, 0x01, 0x00}; in TEST() local 52 .msg = msg, in TEST() 53 .len = sizeof(msg), in TEST() 68 EXPECT_EQ(len, sizeof(msg)); in TEST() 69 EXPECT_EQ(memcmp(recvd, msg, len), 0); in TEST() 86 .msg = unwanted, in TEST() [all …]
|
| /openbmc/libpldm/src/oem/ibm/ |
| H A D | file_io.c | 9 int decode_rw_file_memory_req(const struct pldm_msg *msg, size_t payload_length, in decode_rw_file_memory_req() argument 13 if (msg == NULL || file_handle == NULL || offset == NULL || in decode_rw_file_memory_req() 23 (struct pldm_read_write_file_memory_req *)msg->payload; in decode_rw_file_memory_req() 36 struct pldm_msg *msg) in encode_rw_file_memory_resp() argument 38 if (msg == NULL) { in encode_rw_file_memory_resp() 47 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_rw_file_memory_resp() 53 (struct pldm_read_write_file_memory_resp *)msg->payload; in encode_rw_file_memory_resp() 66 struct pldm_msg *msg) in encode_rw_file_memory_req() argument 68 if (msg == NULL) { in encode_rw_file_memory_req() 77 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_rw_file_memory_req() [all …]
|
| /openbmc/openbmc/meta-security/lib/oeqa/runtime/cases/ |
| H A D | suricata.py | 33 msg = ('suricata command does not work as expected. ' 35 self.assertEqual(status, 1, msg = msg) 42 msg = 'File could not be copied. Output: %s' % output 43 self.assertEqual(status, 0, msg=msg) 46 msg = ('ping openinfosecfoundation.org failed: output is:\n%s' % output) 47 self.assertEqual(status, 0, msg = msg) 53 msg = ('suricata-update had an unexpected failure. ' 55 self.assertEqual(status, 0, msg = msg) 60 msg = ('suricata-update list-sources had an unexpected failure. ' 62 self.assertEqual(status, 0, msg = msg) [all …]
|
| /openbmc/qemu/python/qemu/qmp/ |
| H A D | qmp_client.py | 113 def __init__(self, error_message: str, msg: Message): 116 self.msg: Message = msg 152 def __init__(self, error_message: str, msg: Message, sent: Message): 153 super().__init__(error_message, msg) 270 msg = await self._recv() 271 return Greeting(msg) 298 msg = self.make_execute_msg('qmp_capabilities', arguments=arguments) 304 await self._send(msg) 342 async def _on_message(self, msg: Message) -> None: 351 if 'event' in msg: [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/common/i2c/ |
| H A D | i2c.cpp | 46 struct i2c_msg msg[2]; in sendReceive() local 52 msg[msgIndex].addr = deviceNode; in sendReceive() 53 msg[msgIndex].flags = 0; in sendReceive() 54 msg[msgIndex].len = writeSize; in sendReceive() 55 msg[msgIndex].buf = writeData; in sendReceive() 61 msg[msgIndex].addr = deviceNode; in sendReceive() 62 msg[msgIndex].flags = I2C_M_RD; in sendReceive() 63 msg[msgIndex].len = readSize; in sendReceive() 64 msg[msgIndex].buf = readData; in sendReceive() 68 readWriteData.msgs = msg; in sendReceive() [all …]
|