/openbmc/linux/include/uapi/linux/ |
H A D | cec.h | 80 return msg->msg[0] >> 4; in cec_msg_initiator() 89 return msg->msg[0] & 0xf; in cec_msg_destination() 98 return msg->len > 1 ? msg->msg[1] : -1; in cec_msg_opcode() 107 return (msg->msg[0] & 0xf) == 0xf; in cec_msg_is_broadcast() 122 memset(msg, 0, sizeof(*msg)); in cec_msg_init() 123 msg->msg[0] = (initiator << 4) | destination; in cec_msg_init() 124 msg->len = 1; in cec_msg_init() 142 msg->msg[0] = (cec_msg_destination(orig) << 4) | in cec_msg_set_reply_to() 156 return msg->sequence && msg->tx_status && !msg->rx_status; in cec_msg_recv_is_tx_result() 166 return msg->sequence && !msg->tx_status && msg->rx_status; in cec_msg_recv_is_rx_result() [all …]
|
/openbmc/linux/sound/soc/intel/atom/sst/ |
H A D | sst_pvt.c | 158 struct ipc_post *msg; in sst_create_ipc_msg() local 160 msg = kzalloc(sizeof(*msg), GFP_ATOMIC); in sst_create_ipc_msg() 161 if (!msg) in sst_create_ipc_msg() 165 if (!msg->mailbox_data) { in sst_create_ipc_msg() 166 kfree(msg); in sst_create_ipc_msg() 170 msg->mailbox_data = NULL; in sst_create_ipc_msg() 172 msg->is_large = large; in sst_create_ipc_msg() 173 *arg = msg; in sst_create_ipc_msg() 226 struct ipc_post *msg = NULL; in sst_prepare_and_post_msg() local 318 dsp->cmd_id = msg; in sst_fill_header_dsp() [all …]
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_i2c.c | 53 struct cros_ec_command *msg) in cros_ec_pkt_xfer_i2c() argument 117 switch (msg->result) { in cros_ec_pkt_xfer_i2c() 123 msg->command); in cros_ec_pkt_xfer_i2c() 128 msg->command, msg->result); in cros_ec_pkt_xfer_i2c() 155 msg->insize, in cros_ec_pkt_xfer_i2c() 166 memcpy(msg->data, in cros_ec_pkt_xfer_i2c() 170 sum += msg->data[i]; in cros_ec_pkt_xfer_i2c() 229 out_buf[1] = msg->command; in cros_ec_cmd_xfer_i2c() 230 out_buf[2] = msg->outsize; in cros_ec_cmd_xfer_i2c() 258 if (len > msg->insize) { in cros_ec_cmd_xfer_i2c() [all …]
|
H A D | cros_ec_debugfs.c | 217 msg = &ec_buf.msg; in cros_ec_pdinfo_read() 222 msg->version = 1; in cros_ec_pdinfo_read() 254 } __packed msg = {}; in cros_ec_uptime_is_supported() local 258 msg.cmd.insize = sizeof(msg.resp); in cros_ec_uptime_is_supported() 327 msg = kzalloc(sizeof(*msg) + max(sizeof(*params), sizeof(*response)), in ec_read_version_supported() 329 if (!msg) in ec_read_version_supported() 332 msg->version = 1; in ec_read_version_supported() 344 kfree(msg); in ec_read_version_supported() 416 msg = kzalloc(sizeof(*msg) + data_size, GFP_KERNEL); in cros_ec_get_panicinfo() 417 if (!msg) in cros_ec_get_panicinfo() [all …]
|
/openbmc/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix-i2c-dptx.c | 102 struct drm_dp_aux_msg *msg) in anx_dp_aux_transfer() argument 104 u8 ctrl1 = msg->request; in anx_dp_aux_transfer() 106 u8 *buffer = msg->buffer; in anx_dp_aux_transfer() 110 if (WARN_ON(msg->size > AUX_CH_BUFFER_SIZE)) in anx_dp_aux_transfer() 114 if (msg->size < 1) in anx_dp_aux_transfer() 119 if ((msg->size > 0) && ((msg->request & DP_AUX_I2C_READ) == 0)) { in anx_dp_aux_transfer() 123 msg->size); in anx_dp_aux_transfer() 147 msg->reply = DP_AUX_I2C_REPLY_ACK; in anx_dp_aux_transfer() 149 if ((msg->size > 0) && (msg->request & DP_AUX_I2C_READ)) { in anx_dp_aux_transfer() 153 msg->size); in anx_dp_aux_transfer() [all …]
|
/openbmc/u-boot/board/raspberrypi/rpi/ |
H A D | rpi.c | 272 ALLOC_CACHE_ALIGN_BUFFER(struct msg_get_arm_mem, msg, 1); in dram_init() 275 BCM2835_MBOX_INIT_HDR(msg); in dram_init() 276 BCM2835_MBOX_INIT_TAG(&msg->get_arm_mem, GET_ARM_MEMORY); in dram_init() 284 gd->ram_size = msg->get_arm_mem.body.resp.mem_size; in dram_init() 336 BCM2835_MBOX_INIT_HDR(msg); in set_usbethaddr() 379 BCM2835_MBOX_INIT_HDR(msg); in set_serial_number() 390 msg->get_board_serial.body.resp.serial); in set_serial_number() 409 ALLOC_CACHE_ALIGN_BUFFER(struct msg_get_board_rev, msg, 1); in get_board_rev() 414 BCM2835_MBOX_INIT_HDR(msg); in get_board_rev() 415 BCM2835_MBOX_INIT_TAG(&msg->get_board_rev, GET_BOARD_REV); in get_board_rev() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-log-userspace-transfer.c | 64 msg->id.idx = ulog_cn_id.idx; in dm_ulog_sendto_server() 65 msg->id.val = ulog_cn_id.val; in dm_ulog_sendto_server() 66 msg->ack = 0; in dm_ulog_sendto_server() 67 msg->seq = tfr->seq; in dm_ulog_sendto_server() 85 uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; in fill_pkg() 102 if (msg) { in fill_pkg() 103 pkg->error = -msg->ack; in fill_pkg() 141 if (msg->len == 0) in cn_ulog_callback() 142 fill_pkg(msg, NULL); in cn_ulog_callback() 143 else if (msg->len < sizeof(*tfr)) in cn_ulog_callback() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | xilinx_xiic.c | 107 struct i2c_msg *msg, int nmsgs) in xiic_read_rx() argument 113 while (pos < msg->len) { in xiic_read_rx() 122 if (bytes_in_fifo > msg->len) in xiic_read_rx() 123 bytes_in_fifo = msg->len; in xiic_read_rx() 144 int len = msg->len; in xiic_fill_tx_fifo() 150 u16 data = msg->buf[pos++]; in xiic_fill_tx_fifo() 194 rx_watermark = msg->len; in xilinx_xiic_read_common() 200 xilinx_xiic_set_addr(dev, msg->addr, msg->flags, msg->len, nmsgs); in xilinx_xiic_read_common() 220 xilinx_xiic_set_addr(dev, msg->addr, msg->flags, msg->len, nmsgs); in xilinx_xiic_write_common() 271 for (; nmsgs > 0; nmsgs--, msg++) { in xilinx_xiic_xfer() [all …]
|
H A D | tegra186_bpmp_i2c.c | 51 if (!(msg[i].flags & I2C_M_RD)) in tegra186_bpmp_i2c_xfer() 52 len += msg[i].len; in tegra186_bpmp_i2c_xfer() 59 serialize_u16(&p, msg[i].addr); in tegra186_bpmp_i2c_xfer() 60 serialize_u16(&p, msg[i].flags); in tegra186_bpmp_i2c_xfer() 61 serialize_u16(&p, msg[i].len); in tegra186_bpmp_i2c_xfer() 62 if (!(msg[i].flags & I2C_M_RD)) { in tegra186_bpmp_i2c_xfer() 63 memcpy(p, msg[i].buf, msg[i].len); in tegra186_bpmp_i2c_xfer() 64 p += msg[i].len; in tegra186_bpmp_i2c_xfer() 79 if (msg[i].flags & I2C_M_RD) { in tegra186_bpmp_i2c_xfer() 80 memcpy(msg[i].buf, p, msg[i].len); in tegra186_bpmp_i2c_xfer() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/core/tests/ |
H A D | test_loader.py | 24 msg = 'Expected ImportError exception for having duplicated module' 28 self.fail(msg) 31 self.assertTrue(result, msg=msg) 39 msg = 'Expected just %s modules' % ', '.join(expected_modules) 40 self.assertEqual(modules, expected_modules, msg=msg) 48 msg = 'Expected just %s cases' % ', '.join(expected_cases) 49 self.assertEqual(cases, expected_cases, msg=msg) 59 msg = 'Expected modules from two different paths' 60 self.assertEqual(modules, expected_modules, msg=msg)
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-i2c.c | 81 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() 101 if (msg->len > 1) in i2c_sendbytes() 150 return msg->len; in i2c_sendbytes() 172 if (msg->len == 0) { in i2c_readbytes() 215 return msg->len; in i2c_readbytes() 324 struct i2c_msg msg; 335 msg.addr = 0x44; 337 msg.len = 3; [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_mailbox.c | 38 union octeon_mbox_message msg; in octeon_mbox_read() local 45 if ((msg.u64 == OCTEON_PFVFACK) || (msg.u64 == OCTEON_PFVFSIG)) { in octeon_mbox_read() 56 msg.u64; in octeon_mbox_read() 64 mbox->mbox_req.msg.u64 = msg.u64; in octeon_mbox_read() 76 mbox->mbox_resp.msg.u64 = msg.u64; in octeon_mbox_read() 101 mbox->mbox_resp.msg.s.len) { in octeon_mbox_read() 241 switch (mbox_cmd->msg.s.cmd) { in octeon_mbox_process_cmd() 245 mbox_cmd->msg.s.resp_needed = 1; in octeon_mbox_process_cmd() 246 mbox_cmd->msg.s.len = 2; in octeon_mbox_process_cmd() 275 mbox_cmd->msg.s.resp_needed = 1; in octeon_mbox_process_cmd() [all …]
|
/openbmc/linux/drivers/fpga/ |
H A D | machxo2-spi.c | 68 struct spi_message msg; in get_status() local 79 spi_message_init(&msg); in get_status() 138 struct spi_message msg; in machxo2_cleanup() local 145 spi_message_init(&msg); in machxo2_cleanup() 157 spi_message_init(&msg); in machxo2_cleanup() 192 struct spi_message msg; in machxo2_write_init() local 209 spi_message_init(&msg); in machxo2_write_init() 234 spi_message_init(&msg); in machxo2_write_init() 256 struct spi_message msg; in machxo2_write() local 295 struct spi_message msg; in machxo2_write_complete() local [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_mbox.c | 70 struct mbox_msghdr *msg) in process_pfvf_mbox_mbox_msg() argument 79 if (msg->id >= MBOX_MSG_MAX) { in process_pfvf_mbox_mbox_msg() 87 msg->sig, msg->id); in process_pfvf_mbox_mbox_msg() 90 switch (msg->id) { in process_pfvf_mbox_mbox_msg() 97 if (!msg->rc) in process_pfvf_mbox_mbox_msg() 102 if (!msg->rc) in process_pfvf_mbox_mbox_msg() 112 if (msg->rc) { in process_pfvf_mbox_mbox_msg() 116 msg->rc); in process_pfvf_mbox_mbox_msg() 132 msg->id); in process_pfvf_mbox_mbox_msg() 143 struct mbox_msghdr *msg; in otx2_cptvf_pfvf_mbox_handler() local [all …]
|
/openbmc/linux/net/ieee802154/ |
H A D | nl-mac.c | 53 struct sk_buff *msg; in ieee802154_nl_start_confirm() local 58 if (!msg) in ieee802154_nl_start_confirm() 70 nlmsg_free(msg); in ieee802154_nl_start_confirm() 134 genlmsg_end(msg, hdr); in ieee802154_nl_fill_iface() 139 genlmsg_cancel(msg, hdr); in ieee802154_nl_fill_iface() 409 struct sk_buff *msg; in ieee802154_list_iface() local 420 if (!msg) in ieee802154_list_iface() 432 nlmsg_free(msg); in ieee802154_list_iface() 645 struct sk_buff *msg; in ieee802154_llsec_getparams() local 665 if (!msg) in ieee802154_llsec_getparams() [all …]
|
H A D | nl802154.c | 662 struct sk_buff *msg; in nl802154_get_wpan_phy() local 666 if (!msg) in nl802154_get_wpan_phy() 671 nlmsg_free(msg); in nl802154_get_wpan_phy() 905 struct sk_buff *msg; in nl802154_get_interface() local 910 if (!msg) in nl802154_get_interface() 915 nlmsg_free(msg); in nl802154_get_interface() 1380 struct sk_buff *msg; in nl802154_scan_event() local 1384 if (!msg) in nl802154_scan_event() 1391 nlmsg_free(msg); in nl802154_scan_event() 1519 if (!msg) in nl802154_send_scan_msg() [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | hyperv_fb.c | 294 msg->pipe_hdr.size = msg->vid_hdr.size; in synthvid_send() 312 struct synthvid_msg msg; in synthvid_send_situ() local 322 msg.situ.user_ctx = 0; in synthvid_send_situ() 339 struct synthvid_msg msg; in synthvid_send_ptr() local 347 msg.ptr_pos.image_x = 0; in synthvid_send_ptr() 348 msg.ptr_pos.image_y = 0; in synthvid_send_ptr() 357 msg.ptr_shape.width = 1; in synthvid_send_ptr() 359 msg.ptr_shape.hot_x = 0; in synthvid_send_ptr() 390 msg.dirt.rect[0].x2 = in synthvid_update() 392 msg.dirt.rect[0].y2 = in synthvid_update() [all …]
|
/openbmc/linux/drivers/net/can/usb/ |
H A D | ems_usb.c | 120 u8 msg[8]; member 207 } msg; member 310 cf->can_id = le32_to_cpu(msg->msg.can_msg.id); in ems_usb_rx_can_msg() 322 cf->data[i] = msg->msg.can_msg.msg[i]; in ems_usb_rx_can_msg() 340 u8 state = msg->msg.can_state; in ems_usb_rx_err() 357 u8 ecc = msg->msg.error.cc.regs.sja1000.ecc; in ems_usb_rx_err() 358 u8 txerr = msg->msg.error.cc.regs.sja1000.txerr; in ems_usb_rx_err() 359 u8 rxerr = msg->msg.error.cc.regs.sja1000.rxerr; in ems_usb_rx_err() 776 msg->msg.can_msg.length = cf->len; in ems_usb_start_xmit() 788 msg->msg.can_msg.msg[i] = cf->data[i]; in ems_usb_start_xmit() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | messenger.c | 1416 msg, le64_to_cpu(msg->hdr.seq), in ceph_con_process_message() 1707 msg->con->ops->put(msg->con); in msg_con_set() 1869 BUG_ON(msg->num_data_items >= msg->max_data_items); in ceph_msg_data_add() 1870 return &msg->data[msg->num_data_items++]; in ceph_msg_data_add() 2079 if (msg) in ceph_con_in_msg_alloc() 2083 if (msg) { in ceph_con_in_msg_alloc() 2187 return msg; in ceph_msg_get() 2202 msg->front_alloc_len, msg->data_length); in ceph_msg_dump() 2205 &msg->hdr, sizeof(msg->hdr), true); in ceph_msg_dump() 2208 msg->front.iov_base, msg->front.iov_len, true); in ceph_msg_dump() [all …]
|
/openbmc/linux/tools/perf/ui/gtk/ |
H A D | util.c | 33 char *msg; in perf_gtk__error() local 37 vasprintf(&msg, format, args) < 0) { in perf_gtk__error() 48 "<b>Error</b>\n\n%s", msg); in perf_gtk__error() 52 free(msg); in perf_gtk__error() 59 char *msg; in perf_gtk__warning_info_bar() local 62 vasprintf(&msg, format, args) < 0) { in perf_gtk__warning_info_bar() 74 free(msg); in perf_gtk__warning_info_bar() 80 char *msg, *p; in perf_gtk__warning_statusbar() local 94 p = strchr(msg, '\n'); in perf_gtk__warning_statusbar() 99 pgctx->statbar_ctx_id, msg); in perf_gtk__warning_statusbar() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | overlayfs.py | 48 self.assertTrue("overlayfs" in res.output, msg=res.output) 49 self.assertTrue("systemd" in res.output, msg=res.output) 297 self.assertTrue(line, msg=res.output) 302 self.assertTrue(line, msg=res.output) 307 self.assertTrue(line, msg=res.output) 367 self.assertFalse(line, msg=output) 406 self.assertTrue("/data" in output, msg=output) 414 self.assertTrue(line, msg=output) 461 self.assertTrue(line, msg=output) 463 self.assertTrue(line, msg=output) [all …]
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | ipmi_ssif.c | 341 msg->rsp[0] = msg->data[0] | 4; in return_hosed_msg() 342 msg->rsp[1] = msg->data[1]; in return_hosed_msg() 750 if (msg) { in msg_done_handler() 831 msg->done(msg); in msg_done_handler() 840 msg->rsp[0], msg->rsp[1]); in msg_done_handler() 841 msg->done(msg); in msg_done_handler() 863 msg->done(msg); in msg_done_handler() 872 msg->rsp[0], msg->rsp[1]); in msg_done_handler() 873 msg->done(msg); in msg_done_handler() 1089 msg->data[0], msg->data[1], in sender() [all …]
|
/openbmc/qemu/hw/remote/ |
H A D | message.c | 26 MPQemuMsg *msg, Error **errp); 42 MPQemuMsg msg = {0}; in mpqemu_remote_msg_loop_co() local 44 if (!mpqemu_msg_recv(&msg, com->ioc, &local_err)) { in mpqemu_remote_msg_loop_co() 48 if (!mpqemu_msg_valid(&msg)) { in mpqemu_remote_msg_loop_co() 55 switch (msg.cmd) { in mpqemu_remote_msg_loop_co() 63 process_bar_write(com->ioc, &msg, &local_err); in mpqemu_remote_msg_loop_co() 66 process_bar_read(com->ioc, &msg, &local_err); in mpqemu_remote_msg_loop_co() 69 remote_sysmem_reconfig(&msg, &local_err); in mpqemu_remote_msg_loop_co() 72 process_set_irqfd_msg(pci_dev, &msg); in mpqemu_remote_msg_loop_co() 144 BarAccessMsg *bar_access = &msg->data.bar_access; in process_bar_write() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | testmode.c | 48 struct ftm_rsp_msg *msg, *rsp = NULL; in wcn36xx_tm_cmd_ptt() local 56 msg = (struct ftm_rsp_msg *)buf; in wcn36xx_tm_cmd_ptt() 60 msg->msg_id, msg->msg_body_length, in wcn36xx_tm_cmd_ptt() 68 msg->msg_response; in wcn36xx_tm_cmd_ptt() 77 rsp = msg; in wcn36xx_tm_cmd_ptt() 82 msg->msg_body_length); in wcn36xx_tm_cmd_ptt() 84 msg->resp_status = wcn36xx_smd_process_ptt_msg(wcn, vif, msg, in wcn36xx_tm_cmd_ptt() 89 msg->resp_status); in wcn36xx_tm_cmd_ptt() 97 rsp = msg; in wcn36xx_tm_cmd_ptt() 105 nla_total_size(msg->msg_body_length)); in wcn36xx_tm_cmd_ptt() [all …]
|
/openbmc/ipmitool/src/plugins/dbus/ |
H A D | dbus.c | 62 sd_bus_message *msg; in ipmi_dbus_sendrecv() local 77 rc = sd_bus_message_append(msg, "yyyy", in ipmi_dbus_sendrecv() 79 req->msg.netfn, in ipmi_dbus_sendrecv() 80 req->msg.lun, in ipmi_dbus_sendrecv() 81 req->msg.cmd); in ipmi_dbus_sendrecv() 87 rc = sd_bus_message_append_array(msg, 'y', req->msg.data, in ipmi_dbus_sendrecv() 88 req->msg.data_len); in ipmi_dbus_sendrecv() 94 rc = sd_bus_send(bus, msg, NULL); in ipmi_dbus_sendrecv() 107 sd_bus_message_unref(msg); in ipmi_dbus_sendrecv() 130 rc = sd_bus_message_read_array(msg, 'y', &data, &n); in ipmi_dbus_method_send_message() [all …]
|