/openbmc/linux/net/rxrpc/ |
H A D | output.c | 190 struct msghdr msg; in rxrpc_send_ack_packet() local 206 msg.msg_flags = 0; in rxrpc_send_ack_packet() 264 struct msghdr msg; in rxrpc_send_abort_packet() local 288 msg.msg_flags = 0; in rxrpc_send_abort_packet() 328 struct msghdr msg; in rxrpc_send_data_packet() local 353 msg.msg_flags = 0; in rxrpc_send_data_packet() 528 struct msghdr msg; in rxrpc_send_conn_abort() local 539 msg.msg_flags = 0; in rxrpc_send_conn_abort() 586 struct msghdr msg; in rxrpc_reject_packet() local 602 msg.msg_flags = 0; in rxrpc_reject_packet() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | base.h | 307 struct pldm_msg_hdr *msg); 319 uint8_t unpack_pldm_header(const struct pldm_msg_hdr *msg, 367 struct pldm_msg *msg); 405 struct pldm_msg *msg); 462 const bitfield8_t *types, struct pldm_msg *msg); 489 const bitfield8_t *commands, struct pldm_msg *msg); 510 size_t version_size, struct pldm_msg *msg); 550 uint8_t tid, struct pldm_msg *msg); 579 int decode_multipart_receive_req(const struct pldm_msg *msg, 597 uint8_t cc, struct pldm_msg *msg); [all …]
|
/openbmc/linux/drivers/xen/xenbus/ |
H A D | xenbus_dev_frontend.c | 85 char msg[]; member 110 struct xsd_sockmsg msg; member 397 rc = queue_reply(&staging_q, &req->msg, sizeof(req->msg)); in xenbus_dev_queue_reply() 425 } msg; in xenbus_command_reply() local 428 msg.hdr = u->u.msg; in xenbus_command_reply() 431 if (msg.hdr.len > sizeof(msg.body)) in xenbus_command_reply() 433 memcpy(&msg.body, reply, msg.hdr.len); in xenbus_command_reply() 436 rc = queue_reply(&u->read_buffers, &msg, sizeof(msg.hdr) + msg.hdr.len); in xenbus_command_reply() 469 (!strcmp(msg->body, "T") || !strcmp(msg->body, "F")))) in xenbus_write_transaction() 607 if ((sizeof(u->u.msg) + u->u.msg.len) > sizeof(u->u.buffer)) { in xenbus_file_write() [all …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_tis_i2c.c | 108 struct i2c_msg *msg) in tpm_tis_i2c_retry_transfer_until_ack() argument 115 if (msg->flags & I2C_M_RD) in tpm_tis_i2c_retry_transfer_until_ack() 196 msg.len = sizeof(reg); in tpm_tis_i2c_read_bytes() 197 msg.buf = ® in tpm_tis_i2c_read_bytes() 198 msg.flags = 0; in tpm_tis_i2c_read_bytes() 204 msg.buf = result + read; in tpm_tis_i2c_read_bytes() 205 msg.len = len - read; in tpm_tis_i2c_read_bytes() 206 msg.flags = I2C_M_RD; in tpm_tis_i2c_read_bytes() 212 read += msg.len; in tpm_tis_i2c_read_bytes() 239 msg.buf = phy->io_buf; in tpm_tis_i2c_write_bytes() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-tegra-bpmp.c | 91 struct i2c_msg *msg = &msgs[i]; in tegra_bpmp_serialize_i2c_msg() local 96 buf[pos++] = msg->addr & 0xff; in tegra_bpmp_serialize_i2c_msg() 100 buf[pos++] = msg->len & 0xff; in tegra_bpmp_serialize_i2c_msg() 104 for (j = 0; j < msg->len; j++) in tegra_bpmp_serialize_i2c_msg() 105 buf[pos++] = msg->buf[j]; in tegra_bpmp_serialize_i2c_msg() 179 struct tegra_bpmp_message msg; in tegra_bpmp_i2c_msg_xfer() local 185 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_i2c_msg_xfer() 186 msg.mrq = MRQ_I2C; in tegra_bpmp_i2c_msg_xfer() 187 msg.tx.data = request; in tegra_bpmp_i2c_msg_xfer() 189 msg.rx.data = response; in tegra_bpmp_i2c_msg_xfer() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-backend.c | 225 struct vhost_msg_v2 msg; in vhost_kernel_iotlb_read() local 227 while ((len = read((uintptr_t)dev->opaque, &msg, sizeof msg)) > 0) { in vhost_kernel_iotlb_read() 228 if (len < sizeof msg) { in vhost_kernel_iotlb_read() 240 struct vhost_msg msg; in vhost_kernel_iotlb_read() local 242 while ((len = read((uintptr_t)dev->opaque, &msg, sizeof msg)) > 0) { in vhost_kernel_iotlb_read() 243 if (len < sizeof msg) { in vhost_kernel_iotlb_read() 264 msg.iotlb = *imsg; in vhost_kernel_send_device_iotlb_msg() 266 if (write((uintptr_t)dev->opaque, &msg, sizeof msg) != sizeof msg) { in vhost_kernel_send_device_iotlb_msg() 271 struct vhost_msg msg = {}; in vhost_kernel_send_device_iotlb_msg() local 274 msg.iotlb = *imsg; in vhost_kernel_send_device_iotlb_msg() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-cros-ec.c | 41 } __packed msg; in cros_ec_rtc_get() local 43 memset(&msg, 0, sizeof(msg)); in cros_ec_rtc_get() 44 msg.msg.command = command; in cros_ec_rtc_get() 45 msg.msg.insize = sizeof(msg.data); in cros_ec_rtc_get() 47 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_rtc_get() 63 } __packed msg; in cros_ec_rtc_set() local 65 memset(&msg, 0, sizeof(msg)); in cros_ec_rtc_set() 66 msg.msg.command = command; in cros_ec_rtc_set() 67 msg.msg.outsize = sizeof(msg.data); in cros_ec_rtc_set() 68 msg.data.time = param; in cros_ec_rtc_set() [all …]
|
/openbmc/phosphor-led-manager/manager/ |
H A D | config-validator.hpp | 40 const std::string& msg) : in ConfigValidationException() argument 41 std::runtime_error(msg), reason(err) in ConfigValidationException() 43 lg2::error(msg.c_str()); in ConfigValidationException() 48 const std::string& msg) : in ConfigValidationException() argument 49 std::runtime_error(msg), reason(err) in ConfigValidationException() 52 "GROUP", groupName, "MSG", msg.c_str()); in ConfigValidationException() 58 const std::string& msg) : in ConfigValidationException() argument 59 std::runtime_error(msg), reason(err) in ConfigValidationException() 63 "GROUP", groupName, "LED", ledName, "MSG", msg.c_str()); in ConfigValidationException()
|
/openbmc/qemu/hw/remote/ |
H A D | proxy.c | 53 MPQemuMsg msg; in setup_irqfd() local 59 memset(&msg, 0, sizeof(MPQemuMsg)); in setup_irqfd() 60 msg.cmd = MPQEMU_CMD_SET_IRQFD; in setup_irqfd() 61 msg.num_fds = 2; in setup_irqfd() 64 msg.size = 0; in setup_irqfd() 147 MPQemuMsg msg = { 0 }; in config_op_send() local 151 msg.cmd = op; in config_op_send() 236 MPQemuMsg msg = { 0 }; in type_init() local 240 msg.size = sizeof(BarAccessMsg); in type_init() 371 MPQemuMsg msg = { 0 }; in proxy_device_reset() local [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_aux.c | 48 struct drm_dp_aux_msg *msg) in dp_aux_write() argument 53 u8 *msgdata = msg->buffer; in dp_aux_write() 60 len = msg->size; in dp_aux_write() 121 ret = dp_aux_write(aux, msg); in dp_aux_cmd_fifo_tx() 134 struct drm_dp_aux_msg *msg) in dp_aux_cmd_fifo_rx() argument 139 u32 len = msg->size; in dp_aux_cmd_fifo_rx() 149 dp = msg->buffer; in dp_aux_cmd_fifo_rx() 281 if (msg->size == 0 || !msg->buffer) { in dp_aux_transfer() 282 msg->reply = aux->native ? in dp_aux_transfer() 284 return msg->size; in dp_aux_transfer() [all …]
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_lpc.c | 75 const u8 *msg) in cros_ec_lpc_write_bytes() argument 81 outb(msg[i], offset + i); in cros_ec_lpc_write_bytes() 82 sum += msg[i]; in cros_ec_lpc_write_bytes() 113 const u8 *msg) in cros_ec_lpc_mec_write_bytes() argument 123 length, (u8 *)msg) : in cros_ec_lpc_mec_write_bytes() 179 msg->result = response.result; in cros_ec_pkt_xfer_lpc() 192 msg->data); in cros_ec_pkt_xfer_lpc() 219 msg->outsize, msg->insize); in cros_ec_cmd_xfer_lpc() 233 msg->data); in cros_ec_cmd_xfer_lpc() 241 sum = msg->command; in cros_ec_cmd_xfer_lpc() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | kona_i2c.c | 449 addr = msg->addr << 1; in bcm_kona_i2c_do_addr() 644 msg[0].addr = chip; in kona_i2c_read() 645 msg[0].flags = 0; in kona_i2c_read() 646 msg[0].len = 1; in kona_i2c_read() 649 msg[1].addr = chip; in kona_i2c_read() 650 msg[1].flags = I2C_M_RD; in kona_i2c_read() 654 msg[1].buf = buffer; in kona_i2c_read() 655 msg[1].len = len; in kona_i2c_read() 673 msg[0].addr = chip; in kona_i2c_write() 674 msg[0].flags = 0; in kona_i2c_write() [all …]
|
H A D | i2c-uclass.c | 35 msg->addr, msg->len); in i2c_dump_msgs() 60 msg->buf = offset_buf; in i2c_setup_offset() 85 ptr = msg + 1; in i2c_read_bytewise() 92 ret = ops->xfer(bus, msg, ptr - msg); in i2c_read_bytewise() 106 struct i2c_msg msg[1]; in i2c_write_bytewise() local 137 ptr = msg; in dm_i2c_read() 149 msg_count = ptr - msg; in dm_i2c_read() 189 msg->len += len; in dm_i2c_write() 201 msg->len += len; in dm_i2c_write() 268 msg->len = 0; in i2c_probe_chip() [all …]
|
/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_protocol_ops.c | 15 union ipc_mem_msg_entry *msg; in ipc_protocol_free_msg_get() local 26 memset(msg, 0, sizeof(*msg)); in ipc_protocol_free_msg_get() 31 return msg; in ipc_protocol_free_msg_get() 57 union ipc_mem_msg_entry *msg = in ipc_protocol_msg_prepipe_open() local 63 if (!msg) { in ipc_protocol_msg_prepipe_open() 109 union ipc_mem_msg_entry *msg = in ipc_protocol_msg_prepipe_close() local 113 if (!msg) in ipc_protocol_msg_prepipe_close() 120 msg->close_pipe.pipe_nr); in ipc_protocol_msg_prepipe_close() 132 if (!msg) { in ipc_protocol_msg_prep_sleep() 145 msg->host_sleep.target, msg->host_sleep.state); in ipc_protocol_msg_prep_sleep() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 176 if (!msg->msg_control) in add_zcopy_cookie() 199 memset(&msg->msg_control, 0, sizeof(msg->msg_control)); in do_sendmsg() 222 msg->msg_control = NULL; in do_sendmsg() 367 struct msghdr msg; in do_recvmsg_completion() local 370 memset(&msg, 0, sizeof(msg)); in do_recvmsg_completion() 380 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { in do_recvmsg_completion() 398 struct msghdr msg = {}; in do_recv_completion() local 510 msg.msg_iovlen++; in do_tx() 534 msg.msg_iovlen++; in do_tx() 546 msg.msg_iovlen++; in do_tx() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | netlink.h | 11 TP_PROTO(const char *msg), 13 TP_ARGS(msg), 16 __string( msg, msg ) 20 __assign_str(msg, msg); 23 TP_printk("msg=%s", __get_str(msg))
|
/openbmc/linux/net/tipc/ |
H A D | eth_media.c | 52 static int tipc_eth_addr2msg(char *msg, struct tipc_media_addr *addr) in tipc_eth_addr2msg() argument 54 memset(msg, 0, TIPC_MEDIA_INFO_SIZE); in tipc_eth_addr2msg() 55 msg[TIPC_MEDIA_TYPE_OFFSET] = TIPC_MEDIA_TYPE_ETH; in tipc_eth_addr2msg() 56 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg() 63 const char *msg) in tipc_eth_raw2addr() argument 66 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr() 75 char *msg) in tipc_eth_msg2addr() argument 78 msg += TIPC_MEDIA_ADDR_OFFSET; in tipc_eth_msg2addr() 79 return tipc_eth_raw2addr(b, addr, msg); in tipc_eth_msg2addr()
|
/openbmc/linux/drivers/firmware/imx/ |
H A D | rm.c | 26 struct imx_sc_msg_rm_rsrc_owned msg; in imx_sc_rm_is_resource_owned() local 27 struct imx_sc_rpc_msg *hdr = &msg.hdr; in imx_sc_rm_is_resource_owned() 34 msg.resource = resource; in imx_sc_rm_is_resource_owned() 41 imx_scu_call_rpc(ipc, &msg, true); in imx_sc_rm_is_resource_owned() 70 struct imx_sc_msg_rm_get_resource_owner msg; in imx_sc_rm_get_resource_owner() local 71 struct imx_sc_rpc_msg *hdr = &msg.hdr; in imx_sc_rm_get_resource_owner() 79 msg.data.req.resource = resource; in imx_sc_rm_get_resource_owner() 81 ret = imx_scu_call_rpc(ipc, &msg, true); in imx_sc_rm_get_resource_owner() 86 *pt = msg.data.resp.val; in imx_sc_rm_get_resource_owner()
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | ethtool_extended_state.sh | 47 local msg 53 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \ 55 check_err $? "$msg" 64 local msg 78 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \ 80 check_err $? "$msg" 82 msg=$(busywait $TIMEOUT ethtool_ext_state $swp2 \ 84 check_err $? "$msg" 97 local msg 103 msg=$(busywait $TIMEOUT ethtool_ext_state $swp3 "No cable") [all …]
|
/openbmc/bmcweb/redfish-core/include/ |
H A D | registries.hpp | 58 const std::span<const std::string_view> messageArgs, std::string_view msg) in fillMessageArgs() argument 61 size_t reserve = msg.size(); in fillMessageArgs() 68 for (size_t stringIndex = msg.find('%'); stringIndex != std::string::npos; in fillMessageArgs() 69 stringIndex = msg.find('%')) in fillMessageArgs() 71 ret += msg.substr(0, stringIndex); in fillMessageArgs() 72 msg.remove_prefix(stringIndex + 1); in fillMessageArgs() 74 auto it = std::from_chars(msg.data(), &*msg.end(), number); in fillMessageArgs() 79 msg.remove_prefix(1); in fillMessageArgs() 88 ret += msg; in fillMessageArgs() 99 std::string msg = in getLogFromRegistry() local [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_picmg.c | 563 req.msg.data_len = 2; in ipmi_picmg_getaddr() 644 req.msg.data_len = 1; in ipmi_picmg_properties() 696 req.msg.data_len = 3; in ipmi_picmg_fru_activation() 730 req.msg.data_len = 2; in ipmi_picmg_fru_activation_policy_get() 769 req.msg.data_len = 4; in ipmi_picmg_fru_activation_policy_set() 825 req.msg.data_len = 2; in ipmi_picmg_portstate_get() 964 req.msg.data_len = 6; in ipmi_picmg_portstate_set() 1158 req.msg.data_len = 6; in ipmi_picmg_amc_portstate_set() 1196 req.msg.data_len = 2; in ipmi_picmg_get_led_properties() 1236 req.msg.data_len = 3; in ipmi_picmg_get_led_capabilities() [all …]
|
/openbmc/phosphor-fan-presence/control/json/triggers/ |
H A D | handlers.hpp | 28 static bool propertiesChanged(message& msg, const SignalObject& obj, in propertiesChanged() 32 msg.read(intf); in propertiesChanged() 40 msg.read(props); in propertiesChanged() 65 msg.read(op); in interfacesAdded() 74 msg.read(intfProps); in interfacesAdded() 106 msg.read(op); in interfacesRemoved() 114 msg.read(intfs); in interfacesRemoved() 134 static bool nameOwnerChanged(message& msg, const SignalObject&, in nameOwnerChanged() 140 msg.read(serv); in nameOwnerChanged() 143 msg.read(oldOwner); in nameOwnerChanged() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_tlv.h | 96 #define fm10k_tlv_attr_put_u8(msg, attr_id, val) \ argument 97 fm10k_tlv_attr_put_value(msg, attr_id, val, 1) 98 #define fm10k_tlv_attr_put_u16(msg, attr_id, val) \ argument 99 fm10k_tlv_attr_put_value(msg, attr_id, val, 2) 101 fm10k_tlv_attr_put_value(msg, attr_id, val, 4) 103 fm10k_tlv_attr_put_value(msg, attr_id, val, 8) 104 #define fm10k_tlv_attr_put_s8(msg, attr_id, val) \ argument 105 fm10k_tlv_attr_put_value(msg, attr_id, val, 1) 107 fm10k_tlv_attr_put_value(msg, attr_id, val, 2) 109 fm10k_tlv_attr_put_value(msg, attr_id, val, 4) [all …]
|
/openbmc/u-boot/drivers/misc/imx8/ |
H A D | scu.c | 65 writel(msg, &base->tr[reg_index]); in mu_hal_sendmsg() 85 *msg = readl(&base->rr[reg_index]); in mu_hal_receivemsg() 96 if (!msg) in sc_ipc_read() 106 if (msg->size > SC_RPC_MAX_MSG) { in sc_ipc_read() 107 *((u32 *)msg) = 0; in sc_ipc_read() 112 while (count < msg->size) { in sc_ipc_read() 114 &msg->DATA.u32[count - 1]); in sc_ipc_read() 129 if (!msg) in sc_ipc_write() 133 if (msg->size > SC_RPC_MAX_MSG) in sc_ipc_write() 143 while (count < msg->size) { in sc_ipc_write() [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" 6 kvm_failed_fpscr_set(const char *msg) "Unable to set FPSCR 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" 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" 14 kvm_failed_vpa_addr_get(const char *msg) "Unable to get VPA address from KVM: %s" 15 kvm_failed_slb_get(const char *msg) "Unable to get SLB shadow state from KVM: %s" 17 kvm_failed_vpa_addr_set(const char *msg) "Unable to set VPA address to KVM: %s" [all …]
|