/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/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/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 | 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 …]
|
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 …]
|
/openbmc/u-boot/tools/patman/ |
H A D | tout.py | 59 def Progress(msg, warning=False, trailer='...'): argument 63 msg: Message to display. 68 _progress = msg + trailer 77 def _Output(level, msg, color=None): argument 83 msg; Message to display. 89 msg = _color.Color(color, msg) 90 _stdout.write(msg + '\n') 92 def DoOutput(level, msg): argument 98 msg; Message to display. 100 _Output(level, msg) [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/core/decorator/ |
H A D | data.py | 37 with msg as the reason. 40 attrs = ('var', 'value', 'msg') 43 msg = ('Checking if %r value is %r to skip test' % 45 self.logger.debug(msg) 47 self.case.skipTest(self.msg) 56 test with msg as the reason. 59 attrs = ('var', 'value', 'msg') 62 msg = ('Checking if %r value is not %r to skip test' % 64 self.logger.debug(msg) 66 self.case.skipTest(self.msg) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-xfce/recipes-panel-plugins/weather/xfce4-weather-plugin/ |
H A D | 0002-parsers-Generalise-input-to-array-of-gchar.patch | 33 + if (G_LIKELY(msg->response_body && msg->response_body->data)) { 34 + body = msg->response_body->data; 35 + len = msg->response_body->length; 44 - parse_xml_document(msg, (XmlParseFunc) parse_altitude); 56 + if (G_LIKELY(msg->response_body && msg->response_body->data)) { 57 + body = msg->response_body->data; 58 + len = msg->response_body->length; 67 - parse_xml_document(msg, (XmlParseFunc) parse_timezone); 80 -get_xml_document(SoupMessage *msg) 83 - if (G_LIKELY(msg && msg->response_body && msg->response_body->data)) { [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
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 | 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 | 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 | 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/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/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/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 …]
|
/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 …]
|
/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/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/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/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() 226 lprintf(LOG_NOTICE, "msg.data_len: %i", in ipmi_dummyipmi_send_cmd() 227 req_dummy.msg.data_len); in ipmi_dummyipmi_send_cmd() [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/qemu/target/ppc/ |
H A D | trace-events | 4 kvm_failed_spr_set(int spr, const char *msg) "Warning: Unable to set SPR %d to KVM: %s" 5 kvm_failed_spr_get(int spr, const char *msg) "Warning: Unable to retrieve SPR %d from KVM: %s" 6 kvm_failed_fpscr_set(const char *msg) "Unable to set FPSCR to KVM: %s" 7 kvm_failed_fp_set(const char *fpname, int fpnum, const char *msg) "Unable to set %s%d to KVM: %s" 8 kvm_failed_vscr_set(const char *msg) "Unable to set VSCR to KVM: %s" 9 kvm_failed_vr_set(int vr, const char *msg) "Unable to set VR%d to KVM: %s" 10 kvm_failed_fpscr_get(const char *msg) "Unable to get FPSCR from KVM: %s" 11 kvm_failed_fp_get(const char *fpname, int fpnum, const char *msg) "Unable to get %s%d from KVM: %s" 12 kvm_failed_vscr_get(const char *msg) "Unable to get VSCR from KVM: %s" 13 kvm_failed_vr_get(int vr, const char *msg) "Unable to get VR%d from KVM: %s" [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | rtnetlink.cpp | 13 static void parseVlanInfo(InterfaceInfo& info, std::string_view msg) in parseVlanInfo() argument 15 if (msg.data() == nullptr) in parseVlanInfo() 19 while (!msg.empty()) in parseVlanInfo() 21 auto [hdr, data] = netlink::extractRtAttr(msg); in parseVlanInfo() 31 static void parseLinkInfo(InterfaceInfo& info, std::string_view msg) in parseLinkInfo() argument 34 while (!msg.empty()) in parseLinkInfo() 36 auto [hdr, data] = netlink::extractRtAttr(msg); in parseLinkInfo() 54 InterfaceInfo intfFromRtm(std::string_view msg) in intfFromRtm() argument 56 const auto& ifinfo = netlink::extractRtData<ifinfomsg>(msg); in intfFromRtm() 61 while (!msg.empty()) in intfFromRtm() [all …]
|