/openbmc/ipmitool/src/plugins/bmc/ |
H A D | bmc.c | 142 memcpy(reqrsp.req.data, req->msg.data, req->msg.data_len); in ipmi_bmc_send_cmd_ioctl() 196 bmc_req_t *request = (bmc_req_t *)&msg->msg[0]; in ipmi_bmc_send_cmd_putmsg() 202 msg->m_id = msg_seq++; in ipmi_bmc_send_cmd_putmsg() 207 memcpy(request->data, req->msg.data, req->msg.data_len); in ipmi_bmc_send_cmd_putmsg() 220 free(msg); in ipmi_bmc_send_cmd_putmsg() 221 msg = NULL; in ipmi_bmc_send_cmd_putmsg() 225 free(msg); in ipmi_bmc_send_cmd_putmsg() 226 msg = NULL; in ipmi_bmc_send_cmd_putmsg() 241 printf("Got msg (id 0x%x) type 0x%x\n", msg->m_id, msg->m_type); in ipmi_bmc_send_cmd_putmsg() 249 response = (bmc_rsp_t *)&msg->msg[0]; in ipmi_bmc_send_cmd_putmsg() [all …]
|
/openbmc/linux/include/net/ |
H A D | scm.h | 88 if (msg->msg_controllen <= 0) in scm_send() 90 return __scm_send(sock, msg, scm); in scm_send() 132 if (msg->msg_flags & MSG_CMSG_COMPAT) in scm_pidfd_recv() 137 if (msg->msg_controllen < len) { in scm_pidfd_recv() 138 msg->msg_flags |= MSG_CTRUNC; in scm_pidfd_recv() 163 if (!msg->msg_control) { in __scm_recv_common() 167 msg->msg_flags |= MSG_CTRUNC; in __scm_recv_common() 182 scm_passec(sock, msg, scm); in __scm_recv_common() 185 scm_detach_fds(msg, scm); in __scm_recv_common() 193 if (!__scm_recv_common(sock, msg, scm, flags)) in scm_recv() [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | restrack.c | 75 err = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, len, data); in fill_res_raw() 89 table_attr = nla_nest_start(msg, in fill_stat_mr_entry() 95 if (rdma_nl_stat_hwcounter_entry(msg, "page_faults", in fill_stat_mr_entry() 99 msg, "page_invalidations", in fill_stat_mr_entry() 102 if (rdma_nl_stat_hwcounter_entry(msg, "page_prefetch", in fill_stat_mr_entry() 106 nla_nest_end(msg, table_attr); in fill_stat_mr_entry() 110 nla_nest_cancel(msg, table_attr); in fill_stat_mr_entry() 136 if (rdma_nl_put_driver_string(msg, "odp", "implicit")) in fill_res_mr_entry() 139 if (rdma_nl_put_driver_string(msg, "odp", "explicit")) in fill_res_mr_entry() 143 nla_nest_end(msg, table_attr); in fill_res_mr_entry() [all …]
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | msg.c | 58 msg->msg_header = cpu_to_le32(pack_scmi_header(&xfer->hdr)); in msg_tx_prepare() 60 memcpy(msg->msg_payload, xfer->tx.buf, xfer->tx.len); in msg_tx_prepare() 70 u32 msg_read_header(struct scmi_msg_payld *msg) in msg_read_header() argument 72 return le32_to_cpu(msg->msg_header); in msg_read_header() 82 void msg_fetch_response(struct scmi_msg_payld *msg, size_t len, in msg_fetch_response() argument 85 size_t prefix_len = sizeof(*msg) + sizeof(msg->msg_payload[0]); in msg_fetch_response() 87 xfer->hdr.status = le32_to_cpu(msg->msg_payload[0]); in msg_fetch_response() 92 memcpy(xfer->rx.buf, &msg->msg_payload[1], xfer->rx.len); in msg_fetch_response() 103 void msg_fetch_notification(struct scmi_msg_payld *msg, size_t len, in msg_fetch_notification() argument 107 len >= sizeof(*msg) ? len - sizeof(*msg) : 0); in msg_fetch_notification() [all …]
|
/openbmc/linux/drivers/hv/ |
H A D | hv_trace.h | 150 TP_ARGS(msg, ret), 177 TP_ARGS(msg, ret), 192 TP_ARGS(msg, ret), 202 __entry->gpadl = msg->gpadl; 216 TP_ARGS(msg, ret), 224 __entry->gpadl = msg->gpadl; 234 TP_ARGS(msg, ret), 252 TP_ARGS(msg, ret), 278 TP_ARGS(msg, ret), 295 TP_ARGS(msg, ret), [all …]
|
/openbmc/linux/samples/connector/ |
H A D | cn_test.c | 28 __func__, jiffies, msg->id.idx, msg->id.val, in cn_test_callback() 29 msg->seq, msg->ack, msg->len, in cn_test_callback() 30 msg->len ? (char *)msg->data : ""); in cn_test_callback() 43 struct cn_msg *msg = NULL; 65 msg = nlmsg_data(nlh); 67 memset(msg, 0, size0); 69 msg->id.idx = -1; 70 msg->id.val = -1; 71 msg->seq = 0x123; 72 msg->ack = 0x345; [all …]
|
/openbmc/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-i2c.c | 82 if (msg->len == 0) { in i2c_sendbytes() 96 addr = (msg->addr << 25) | msg->buf[0]; in i2c_sendbytes() 97 wdata = msg->buf[0]; in i2c_sendbytes() 100 if (msg->len > 1) in i2c_sendbytes() 112 printk(KERN_DEBUG " <W %02x %02x", msg->addr << 1, msg->buf[0]); in i2c_sendbytes() 139 return msg->len; in i2c_sendbytes() 161 if (msg->len == 0) { in i2c_readbytes() 200 return msg->len; in i2c_readbytes() 368 msg.addr = 0x44; in cx23885_av_clk() 370 msg.len = 3; in cx23885_av_clk() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | ipmi-bt-test.c | 228 uint8_t msg[100]; in emu_msg_handler() local 237 if ((msg[1] == get_dev_id_cmd[0]) && (msg[2] == get_dev_id_cmd[1])) { in emu_msg_handler() 240 msg[msg_len] = -ipmb_checksum(msg, msg_len, 0); in emu_msg_handler() 242 msg[msg_len++] = 0xa0; in emu_msg_handler() 249 msg[msg_len] = -ipmb_checksum(msg, msg_len, 0); in emu_msg_handler() 251 msg[msg_len++] = 0xa0; in emu_msg_handler() 312 uint8_t msg[100]; in test_connect() local 337 msglen = sizeof(msg); in test_connect() 338 get_emu_msg(msg, &msglen); in test_connect() 341 msglen = sizeof(msg); in test_connect() [all …]
|
/openbmc/linux/net/devlink/ |
H A D | sb.c | 209 struct sk_buff *msg; in devlink_nl_sb_get_doit() local 217 if (!msg) in devlink_nl_sb_get_doit() 224 nlmsg_free(msg); in devlink_nl_sb_get_doit() 311 struct sk_buff *msg; in devlink_nl_sb_pool_get_doit() local 328 if (!msg) in devlink_nl_sb_pool_get_doit() 335 nlmsg_free(msg); in devlink_nl_sb_pool_get_doit() 512 struct sk_buff *msg; in devlink_nl_sb_port_pool_get_doit() local 529 if (!msg) in devlink_nl_sb_port_pool_get_doit() 537 nlmsg_free(msg); in devlink_nl_sb_port_pool_get_doit() 744 if (!msg) in devlink_nl_sb_tc_pool_bind_get_doit() [all …]
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_kunit_util.c | 24 int cros_kunit_ec_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_xfer_mock() argument 30 msg->result = cros_kunit_ec_xfer_mock_default_result; in cros_kunit_ec_xfer_mock() 36 memcpy(&mock->msg, msg, sizeof(*msg)); in cros_kunit_ec_xfer_mock() 37 if (msg->outsize) { in cros_kunit_ec_xfer_mock() 38 mock->i_data = kunit_kzalloc(mock->test, msg->outsize, GFP_KERNEL); in cros_kunit_ec_xfer_mock() 40 memcpy(mock->i_data, msg->data, msg->outsize); in cros_kunit_ec_xfer_mock() 43 msg->result = mock->result; in cros_kunit_ec_xfer_mock() 44 if (msg->insize) in cros_kunit_ec_xfer_mock() 45 memcpy(msg->data, mock->o_data, min(msg->insize, mock->o_data_len)); in cros_kunit_ec_xfer_mock() 55 return cros_kunit_ec_xfer_mock(ec_dev, msg); in cros_kunit_ec_cmd_xfer_mock() [all …]
|
/openbmc/linux/drivers/scsi/libfc/ |
H A D | fc_elsct.c | 81 const char *msg; in fc_els_resp_type() local 88 msg = "response no error"; in fc_els_resp_type() 91 msg = "response timeout"; in fc_els_resp_type() 94 msg = "response closed"; in fc_els_resp_type() 106 msg = "accept"; in fc_els_resp_type() 109 msg = "reject"; in fc_els_resp_type() 112 msg = "response unknown ELS"; in fc_els_resp_type() 121 msg = "CT accept"; in fc_els_resp_type() 124 msg = "CT reject"; in fc_els_resp_type() 131 msg = "short CT response"; in fc_els_resp_type() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
H A D | pam.py | 23 msg = ('login command does not work as expected. ' 25 self.assertEqual(status, 1, msg = msg) 28 msg = ('passwd command does not work as expected. ' 30 self.assertEqual(status, 0, msg = msg) 33 msg = ('su command does not work as expected. ' 35 self.assertEqual(status, 0, msg = msg) 38 msg = ('useradd command does not work as expected. ' 40 self.assertEqual(status, 0, msg = msg)
|
H A D | oe_syslog.py | 19 msg = "Failed to execute %s" % self.tc.target_cmds['ps'] 20 self.assertEqual(status, 0, msg=msg) 23 self.assertTrue(hasdaemon, msg=msg) 53 self.assertEqual(status, 0, msg) 79 msg = ('%s didn\'t appear to restart: %s' % (names, status)) 80 self.assertTrue(restarted, msg) 87 msg = "Can't log into syslog. Output: %s " % output 88 self.assertEqual(status, 0, msg=msg) 101 self.assertEqual(status, 0, msg=msg) 128 msg = 'Logger command failed, %s. Output: %s ' % (status, output) [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/sec2/ |
H A D | ga102.c | 32 struct nv_sec2_init_msg_v1 msg; in ga102_sec2_initmsg() local 35 ret = nvkm_falcon_msgq_recv_initmsg(sec2->msgq, &msg, sizeof(msg)); in ga102_sec2_initmsg() 39 if (msg.hdr.unit_id != NV_SEC2_UNIT_INIT || in ga102_sec2_initmsg() 40 msg.msg_type != NV_SEC2_INIT_MSG_INIT) in ga102_sec2_initmsg() 46 msg.queue_info[i].offset, in ga102_sec2_initmsg() 47 msg.queue_info[i].size); in ga102_sec2_initmsg() 50 msg.queue_info[i].offset, in ga102_sec2_initmsg() 51 msg.queue_info[i].size); in ga102_sec2_initmsg() 77 container_of(hdr, typeof(*msg), msg.hdr); in ga102_sec2_acr_bootstrap_falcon_callback() 81 if (msg->error_code) { in ga102_sec2_acr_bootstrap_falcon_callback() [all …]
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | ipmi_devintf.c | 155 msg.netfn = req->msg.netfn; in handle_send_req() 156 msg.cmd = req->msg.cmd; in handle_send_req() 245 rsp->msg.netfn = msg->msg.netfn; in handle_recv() 246 rsp->msg.cmd = msg->msg.cmd; in handle_recv() 248 if (msg->msg.data_len > 0) { in handle_recv() 249 if (rsp->msg.data_len < msg->msg.data_len) { in handle_recv() 252 msg->msg.data_len = rsp->msg.data_len; in handle_recv() 260 msg->msg.data, in handle_recv() 261 msg->msg.data_len)) { in handle_recv() 265 rsp->msg.data_len = msg->msg.data_len; in handle_recv() [all …]
|
H A D | ipmi_powernv.c | 47 msg->rsp[0] = msg->data[0] | 0x4; in send_error_reply() 48 msg->rsp[1] = msg->data[1]; in send_error_reply() 49 msg->rsp[2] = completion_code; in send_error_reply() 50 msg->rsp_size = 3; in send_error_reply() 69 if (msg->data_size < 2) { in ipmi_powernv_send() 85 opal_msg->cmd = msg->data[1]; in ipmi_powernv_send() 86 if (msg->data_size > 2) in ipmi_powernv_send() 87 memcpy(opal_msg->data, msg->data + 2, msg->data_size - 2); in ipmi_powernv_send() 98 smi->cur_msg = msg; in ipmi_powernv_send() 113 struct ipmi_smi_msg *msg; in ipmi_powernv_recv() local [all …]
|
/openbmc/linux/net/core/ |
H A D | drop_monitor.c | 165 memset(msg, 0, al); in reset_per_cpu_data() 254 msg->entries++; in trace_drop_common() 421 if (!msg) in net_dm_hw_summary_work() 426 nlmsg_free(msg); in net_dm_hw_summary_work() 708 if (!msg) in net_dm_packet_report() 713 nlmsg_free(msg); in net_dm_packet_report() 925 if (!msg) in net_dm_hw_packet_report() 1424 if (!msg) in net_dm_cmd_config_get() 1434 nlmsg_free(msg); in net_dm_cmd_config_get() 1559 if (!msg) in net_dm_cmd_stats_get() [all …]
|
/openbmc/linux/net/ieee802154/ |
H A D | netlink.c | 30 if (!msg) in ieee802154_nl_create() 38 nlmsg_free(msg); in ieee802154_nl_create() 42 return msg; in ieee802154_nl_create() 47 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_mcast() 50 genlmsg_end(msg, hdr); in ieee802154_nl_mcast() 61 if (!msg) in ieee802154_nl_new_reply() 64 hdr = genlmsg_put_reply(msg, info, in ieee802154_nl_new_reply() 67 nlmsg_free(msg); in ieee802154_nl_new_reply() 71 return msg; in ieee802154_nl_new_reply() 79 genlmsg_end(msg, hdr); in ieee802154_nl_reply() [all …]
|
/openbmc/libpldm/src/dsp/ |
H A D | firmware_update.c | 630 if (msg == NULL) { in encode_query_device_identifiers_req() 695 if (msg == NULL) { in encode_get_firmware_parameters_req() 780 msg->payload + in decode_get_firmware_parameters_resp() 792 msg->payload + in decode_get_firmware_parameters_resp() 886 if (msg == NULL) { in encode_query_downstream_devices_req() 954 if (msg == NULL) { in encode_query_downstream_identifiers_req() 1049 if (msg == NULL) { in encode_get_downstream_firmware_params_req() 1244 msg == NULL) { in encode_request_update_req() 1597 if (msg == NULL) { in encode_transfer_complete_resp() 1640 if (msg == NULL) { in encode_verify_complete_resp() [all …]
|
/openbmc/libpldm/include/libpldm/oem/ibm/ |
H A D | file_io.h | 154 struct pldm_msg *msg); 172 struct pldm_msg *msg); 260 struct pldm_msg *msg); 346 struct pldm_msg *msg); 412 struct pldm_msg *msg); 568 struct pldm_msg *msg); 581 struct pldm_msg *msg); 646 struct pldm_msg *msg); 719 struct pldm_msg *msg); 732 struct pldm_msg *msg); [all …]
|
/openbmc/libpldm/src/oem/ibm/ |
H A D | host.c | 11 struct pldm_msg *msg, size_t payload_length) in encode_get_alert_status_req() argument 13 if (msg == NULL) { in encode_get_alert_status_req() 26 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_alert_status_req() 31 msg->payload[0] = version_id; in encode_get_alert_status_req() 47 *completion_code = msg->payload[0]; in decode_get_alert_status_resp() 57 (struct pldm_get_alert_status_resp *)msg->payload; in decode_get_alert_status_resp() 69 if (msg == NULL || version_id == NULL) { in decode_get_alert_status_req() 77 *version_id = msg->payload[0]; in decode_get_alert_status_req() 85 struct pldm_msg *msg, size_t payload_length) in encode_get_alert_status_resp() argument 87 if (msg == NULL) { in encode_get_alert_status_resp() [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | virtio_uml.c | 125 return full_read(fd, msg, sizeof(msg->header), true); in vhost_user_recv_header() 203 if (msg.header.size != sizeof(msg.payload.integer)) in vhost_user_recv_u64() 230 size_t size = sizeof(msg->header) + msg->header.size; in vhost_user_send() 376 } msg; in vu_req_read_message() local 381 rc = vhost_user_recv_req(vu_dev, &msg.msg, in vu_req_read_message() 382 sizeof(msg.msg.payload) + in vu_req_read_message() 387 switch (msg.msg.header.request) { in vu_req_read_message() 407 msg.msg.header.request); in vu_req_read_message() 414 vhost_user_reply(vu_dev, &msg.msg, response); in vu_req_read_message() 536 if (!msg) in vhost_user_get_config() [all …]
|
/openbmc/linux/sound/soc/intel/atom/sst/ |
H A D | sst_ipc.c | 30 struct sst_block *msg; in sst_create_block() local 33 msg = kzalloc(sizeof(*msg), GFP_KERNEL); in sst_create_block() 34 if (!msg) in sst_create_block() 36 msg->condition = false; in sst_create_block() 37 msg->on = true; in sst_create_block() 38 msg->msg_id = msg_id; in sst_create_block() 39 msg->drv_id = drv_id; in sst_create_block() 44 return msg; in sst_create_block() 165 msg->mailbox_data, in sst_post_message_mrfld() 173 kfree(msg); in sst_post_message_mrfld() [all …]
|
/openbmc/linux/net/wireless/ |
H A D | nl80211.c | 3148 if (!msg) in nl80211_get_wiphy() 4067 if (!msg) in nl80211_get_interface() 4316 if (!msg) in _nl80211_new_interface() 4566 if (!msg) in nl80211_get_key() 4574 cookie.msg = msg; in nl80211_get_key() 5913 if (!msg) in nl80211_send_ap_started() 7848 if (!msg) in nl80211_get_mpath() 7956 if (!msg) in nl80211_get_mpp() 8177 if (!msg) in nl80211_get_mesh_config() 8629 if (!msg) in nl80211_get_reg_do() [all …]
|
/openbmc/linux/drivers/media/firewire/ |
H A D | firedtv-ci.c | 84 return avc_ca_info(fdtv, reply->msg, &reply->length); in fdtv_ca_info() 91 return avc_ca_get_mmi(fdtv, reply->msg, &reply->length); in fdtv_ca_get_mmi() 124 struct ca_msg *msg = arg; in fdtv_ca_pmt() local 130 if (msg->msg[3] & 0x80) { in fdtv_ca_pmt() 132 for (i = 0; i < (msg->msg[3] & 0x7f); i++) in fdtv_ca_pmt() 133 data_length = (data_length << 8) + msg->msg[data_pos++]; in fdtv_ca_pmt() 135 data_length = msg->msg[3]; in fdtv_ca_pmt() 137 if (data_length > sizeof(msg->msg) - data_pos) in fdtv_ca_pmt() 140 return avc_ca_pmt(fdtv, &msg->msg[data_pos], data_length); in fdtv_ca_pmt() 145 struct ca_msg *msg = arg; in fdtv_ca_send_msg() local [all …]
|