/openbmc/linux/net/devlink/ |
H A D | health.c | 259 devlink_nl_health_reporter_fill(struct sk_buff *msg, in devlink_nl_health_reporter_fill() argument 268 hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); in devlink_nl_health_reporter_fill() 272 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_health_reporter_fill() 276 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, reporter->devlink_port->index)) in devlink_nl_health_reporter_fill() 279 reporter_attr = nla_nest_start_noflag(msg, in devlink_nl_health_reporter_fill() 283 if (nla_put_string(msg, DEVLINK_ATTR_HEALTH_REPORTER_NAME, in devlink_nl_health_reporter_fill() 286 if (nla_put_u8(msg, DEVLINK_ATTR_HEALTH_REPORTER_STATE, in devlink_nl_health_reporter_fill() 289 if (nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT, in devlink_nl_health_reporter_fill() 292 if (nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT, in devlink_nl_health_reporter_fill() 296 nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD, in devlink_nl_health_reporter_fill() [all …]
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | i2c_pmic_emul.c | 81 static int sandbox_i2c_pmic_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_pmic_xfer() argument 86 for (; nmsgs > 0; nmsgs--, msg++) { in sandbox_i2c_pmic_xfer() 87 bool next_is_read = nmsgs > 1 && (msg[1].flags & I2C_M_RD); in sandbox_i2c_pmic_xfer() 88 if (msg->flags & I2C_M_RD) { in sandbox_i2c_pmic_xfer() 89 ret = sandbox_i2c_pmic_read_data(emul, msg->addr, in sandbox_i2c_pmic_xfer() 90 msg->buf, msg->len); in sandbox_i2c_pmic_xfer() 92 ret = sandbox_i2c_pmic_write_data(emul, msg->addr, in sandbox_i2c_pmic_xfer() 93 msg->buf, msg->len, in sandbox_i2c_pmic_xfer()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-vpu.c | 83 struct mdp_ipi_init_msg *msg = (struct mdp_ipi_init_msg *)data; in mdp_vpu_ipi_handle_init_ack() local 85 (struct mdp_vpu_dev *)(unsigned long)msg->drv_data; in mdp_vpu_ipi_handle_init_ack() 88 vpu->work_size = msg->work_size; in mdp_vpu_ipi_handle_init_ack() 90 vpu->status = msg->status; in mdp_vpu_ipi_handle_init_ack() 97 struct mdp_ipi_deinit_msg *msg = (struct mdp_ipi_deinit_msg *)data; in mdp_vpu_ipi_handle_deinit_ack() local 99 (struct mdp_vpu_dev *)(unsigned long)msg->drv_data; in mdp_vpu_ipi_handle_deinit_ack() 101 vpu->status = msg->status; in mdp_vpu_ipi_handle_deinit_ack() 196 struct mdp_ipi_init_msg msg = { in mdp_vpu_dev_init() local 206 err = mdp_vpu_sendmsg(vpu, SCP_IPI_MDP_INIT, &msg, sizeof(msg)); in mdp_vpu_dev_init() 228 msg.work_addr = vpu->work_addr; in mdp_vpu_dev_init() [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | functor.hpp | 105 void operator()(sdbusplus::bus_t&, sdbusplus::message_t& msg, in operator ()() 108 if (msg) in operator ()() 111 msg.read(intf); in operator ()() 119 msg.read(props); in operator ()() 248 void operator()(sdbusplus::bus_t&, sdbusplus::message_t& msg, in operator ()() 251 if (msg) in operator ()() 255 msg.read(op); in operator ()() 264 msg.read(intfProp); in operator ()() 335 void operator()(sdbusplus::bus_t&, sdbusplus::message_t& msg, in operator ()() 338 if (msg) in operator ()() [all …]
|
/openbmc/linux/fs/ecryptfs/ |
H A D | messaging.c | 87 kfree(msg_ctx->msg); in ecryptfs_msg_ctx_alloc_to_free() 88 msg_ctx->msg = NULL; in ecryptfs_msg_ctx_alloc_to_free() 207 struct ecryptfs_message *msg, u32 seq) in ecryptfs_process_response() argument 213 if (msg->index >= ecryptfs_message_buf_len) { in ecryptfs_process_response() 217 "allowable is [%d]\n", __func__, msg->index, in ecryptfs_process_response() 221 msg_ctx = &ecryptfs_msg_ctx_arr[msg->index]; in ecryptfs_process_response() 235 msg_size = (sizeof(*msg) + msg->data_len); in ecryptfs_process_response() 236 msg_ctx->msg = kmemdup(msg, msg_size, GFP_KERNEL); in ecryptfs_process_response() 237 if (!msg_ctx->msg) { in ecryptfs_process_response() 327 struct ecryptfs_message **msg) in ecryptfs_wait_for_response() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fw_tracer_tracepoint.h | 45 bool lost, u8 event_id, const char *msg), 47 TP_ARGS(tracer, trace_timestamp, lost, event_id, msg), 54 __string(msg, msg) 63 __assign_str(msg, msg); 70 __get_str(msg))
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_ime.c | 200 req.msg.netfn = IPMI_NETFN_APP; in ImeGetInfo() 201 req.msg.cmd = BMC_GET_DEVICE_ID; in ImeGetInfo() 202 req.msg.data_len = 0; in ImeGetInfo() 510 req.msg.netfn = 0x30; // OEM NetFn in ImeUpdatePrepare() 511 req.msg.cmd = 0xA0; in ImeUpdatePrepare() 512 req.msg.data_len = 0; in ImeUpdatePrepare() 540 req.msg.netfn = 0x30; // OEM NetFn in ImeUpdateOpenArea() 541 req.msg.cmd = 0xA1; in ImeUpdateOpenArea() 545 req.msg.data = buffer; in ImeUpdateOpenArea() 547 req.msg.data_len = 2; in ImeUpdateOpenArea() [all …]
|
/openbmc/linux/net/phonet/ |
H A D | datagram.c | 70 static int pn_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in pn_sendmsg() argument 72 DECLARE_SOCKADDR(struct sockaddr_pn *, target, msg->msg_name); in pn_sendmsg() 76 if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL| in pn_sendmsg() 83 if (msg->msg_namelen < sizeof(struct sockaddr_pn)) in pn_sendmsg() 90 msg->msg_flags & MSG_DONTWAIT, &err); in pn_sendmsg() 95 err = memcpy_from_msg((void *)skb_put(skb, len), msg, len); in pn_sendmsg() 111 static int pn_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, in pn_recvmsg() argument 131 msg->msg_flags |= MSG_TRUNC; in pn_recvmsg() 135 rval = skb_copy_datagram_msg(skb, 0, msg, copylen); in pn_recvmsg() 143 if (msg->msg_name != NULL) { in pn_recvmsg() [all …]
|
/openbmc/linux/net/iucv/ |
H A D | iucv.c | 1032 int iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, in iucv_message_purge() argument 1046 parm->purge.ipmsgid = msg->id; in iucv_message_purge() 1051 msg->audit = (*(u32 *) &parm->purge.ipaudit) >> 8; in iucv_message_purge() 1052 msg->tag = parm->purge.ipmsgtag; in iucv_message_purge() 1073 struct iucv_message *msg, in iucv_message_receive_iprmdata() argument 1087 rmmsg = msg->rmmsg; in iucv_message_receive_iprmdata() 1121 int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, in __iucv_message_receive() argument 1127 if (msg->flags & IUCV_IPRMDATA) in __iucv_message_receive() 1128 return iucv_message_receive_iprmdata(path, msg, flags, in __iucv_message_receive() 1137 parm->db.ipmsgid = msg->id; in __iucv_message_receive() [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | kxgettext.c | 84 const char *msg; member 92 static struct message *message__new(const char *msg, char *option, in message__new() argument 104 self->msg = xstrdup(msg); in message__new() 105 if (self->msg == NULL) in message__new() 120 static struct message *mesage__find(const char *msg) in mesage__find() argument 125 if (strcmp(m->msg, msg) == 0) in mesage__find() 149 static int message__add(const char *msg, char *option, const char *file, in message__add() argument 154 char *escaped = escape(msg, bf, sizeof(bf)); in message__add() 213 "msgstr \"\"\n", self->msg); in message__print_gettext_msgid_msgstr() 222 if (strlen(m->msg) > sizeof("\"\"")) in menu__xgettext()
|
/openbmc/linux/arch/um/os-Linux/drivers/ |
H A D | tuntap_user.c | 70 struct msghdr msg; in tuntap_open_tramp() local 87 msg.msg_name = NULL; in tuntap_open_tramp() 88 msg.msg_namelen = 0; in tuntap_open_tramp() 91 msg.msg_iov = &iov; in tuntap_open_tramp() 92 msg.msg_iovlen = 1; in tuntap_open_tramp() 95 msg.msg_iov = NULL; in tuntap_open_tramp() 96 msg.msg_iovlen = 0; in tuntap_open_tramp() 98 msg.msg_control = buf; in tuntap_open_tramp() 99 msg.msg_controllen = sizeof(buf); in tuntap_open_tramp() 100 msg.msg_flags = 0; in tuntap_open_tramp() [all …]
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_kbd_led_backlight.c | 129 struct cros_ec_command msg; in keyboard_led_set_brightness_ec_pwm() member 133 struct cros_ec_command *msg = &buf.msg; in keyboard_led_set_brightness_ec_pwm() local 138 msg->command = EC_CMD_PWM_SET_KEYBOARD_BACKLIGHT; in keyboard_led_set_brightness_ec_pwm() 139 msg->outsize = sizeof(*params); in keyboard_led_set_brightness_ec_pwm() 143 return cros_ec_cmd_xfer_status(keyboard_led->ec, msg); in keyboard_led_set_brightness_ec_pwm() 150 struct cros_ec_command msg; in keyboard_led_get_brightness_ec_pwm() member 154 struct cros_ec_command *msg = &buf.msg; in keyboard_led_get_brightness_ec_pwm() local 160 msg->command = EC_CMD_PWM_GET_KEYBOARD_BACKLIGHT; in keyboard_led_get_brightness_ec_pwm() 161 msg->insize = sizeof(*resp); in keyboard_led_get_brightness_ec_pwm() 163 ret = cros_ec_cmd_xfer_status(keyboard_led->ec, msg); in keyboard_led_get_brightness_ec_pwm()
|
/openbmc/linux/drivers/media/pci/bt8xx/ |
H A D | dst_ca.c | 298 3, p_ca_message->msg); in ca_get_message() 301 command = command | p_ca_message->msg[i]; in ca_get_message() 309 memcpy(p_ca_message->msg, state->messages, 128); in ca_get_message() 314 memcpy(p_ca_message->msg, state->messages, 128); in ca_get_message() 326 hw_buffer->msg[2] = p_ca_message->msg[1]; /* MSB */ in handle_dst_tag() 327 hw_buffer->msg[3] = p_ca_message->msg[2]; /* LSB */ in handle_dst_tag() 333 hw_buffer->msg[0] = (length & 0xff) + 7; in handle_dst_tag() 334 hw_buffer->msg[1] = 0x40; in handle_dst_tag() 335 hw_buffer->msg[2] = 0x03; in handle_dst_tag() 336 hw_buffer->msg[3] = 0x00; in handle_dst_tag() [all …]
|
/openbmc/qemu/hw/pci/ |
H A D | msi.c | 127 void msi_set_message(PCIDevice *dev, MSIMessage msg) in msi_set_message() argument 133 pci_set_quad(dev->config + msi_address_lo_off(dev), msg.address); in msi_set_message() 135 pci_set_long(dev->config + msi_address_lo_off(dev), msg.address); in msi_set_message() 137 pci_set_word(dev->config + msi_data_off(dev, msi64bit), msg.data); in msi_set_message() 145 MSIMessage msg; in msi_prepare_message() local 150 msg.address = pci_get_quad(dev->config + msi_address_lo_off(dev)); in msi_prepare_message() 152 msg.address = pci_get_long(dev->config + msi_address_lo_off(dev)); in msi_prepare_message() 156 msg.data = pci_get_word(dev->config + msi_data_off(dev, msi64bit)); in msi_prepare_message() 158 msg.data &= ~(nr_vectors - 1); in msi_prepare_message() 159 msg.data |= vector; in msi_prepare_message() [all …]
|
/openbmc/linux/crypto/ |
H A D | algif_hash.c | 63 static int hash_sendmsg(struct socket *sock, struct msghdr *msg, in hash_sendmsg() argument 83 if (!msg_data_left(msg)) in hash_sendmsg() 86 } else if (!msg_data_left(msg)) { in hash_sendmsg() 91 if (!(msg->msg_flags & MSG_MORE)) { in hash_sendmsg() 105 while (msg_data_left(msg)) { in hash_sendmsg() 111 npages = iov_iter_npages(&msg->msg_iter, max_pages); in hash_sendmsg() 117 ctx->sgl.need_unpin = iov_iter_extract_will_pin(&msg->msg_iter); in hash_sendmsg() 119 err = extract_iter_to_sg(&msg->msg_iter, LONG_MAX, in hash_sendmsg() 126 if (!msg_data_left(msg)) { in hash_sendmsg() 135 if (!msg_data_left(msg) && !continuing && in hash_sendmsg() [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | dib0700_core.c | 158 static int dib0700_i2c_xfer_new(struct i2c_adapter *adap, struct i2c_msg *msg, in dib0700_i2c_xfer_new() argument 181 } else if (!(msg[i].flags & I2C_M_NOSTART)) { in dib0700_i2c_xfer_new() 194 if (msg[i].flags & I2C_M_RD) { in dib0700_i2c_xfer_new() 199 i2c_dest = (msg[i].addr << 1); in dib0700_i2c_xfer_new() 201 (msg[i].len & 0x3F)) << 8 | i2c_dest; in dib0700_i2c_xfer_new() 211 msg[i].len, in dib0700_i2c_xfer_new() 218 if (msg[i].len > sizeof(st->buf)) { in dib0700_i2c_xfer_new() 220 msg[i].len); in dib0700_i2c_xfer_new() 225 memcpy(msg[i].buf, st->buf, msg[i].len); in dib0700_i2c_xfer_new() 228 debug_dump(msg[i].buf, msg[i].len, deb_data); in dib0700_i2c_xfer_new() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | rsmu_i2c.c | 60 struct i2c_msg msg[2]; in rsmu_read_device() local 63 msg[0].addr = client->addr; in rsmu_read_device() 64 msg[0].flags = 0; in rsmu_read_device() 65 msg[0].len = 1; in rsmu_read_device() 66 msg[0].buf = ® in rsmu_read_device() 68 msg[1].addr = client->addr; in rsmu_read_device() 69 msg[1].flags = I2C_M_RD; in rsmu_read_device() 70 msg[1].len = bytes; in rsmu_read_device() 71 msg[1].buf = buf; in rsmu_read_device() 73 cnt = i2c_transfer(client->adapter, msg, 2); in rsmu_read_device() [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | af9035.c | 268 struct i2c_msg msg[], int num) in af9035_i2c_master_xfer() argument 319 if (AF9035_IS_I2C_XFER_WRITE_READ(msg, num)) { in af9035_i2c_master_xfer() 320 if (msg[0].len > 40 || msg[1].len > 40) { in af9035_i2c_master_xfer() 323 } else if ((msg[0].addr == state->af9033_i2c_addr[0]) || in af9035_i2c_master_xfer() 324 (msg[0].addr == state->af9033_i2c_addr[1])) { in af9035_i2c_master_xfer() 328 if (msg[0].len < 3 || msg[1].len < 1) { in af9035_i2c_master_xfer() 333 reg = msg[0].buf[0] << 16 | msg[0].buf[1] << 8 | in af9035_i2c_master_xfer() 334 msg[0].buf[2]; in af9035_i2c_master_xfer() 336 if (msg[0].addr == state->af9033_i2c_addr[1]) in af9035_i2c_master_xfer() 339 ret = af9035_rd_regs(d, reg, &msg[1].buf[0], in af9035_i2c_master_xfer() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc4-mtrace.c | 425 struct sof_ipc4_msg msg; in ipc4_mtrace_enable() local 433 msg.primary = SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG); in ipc4_mtrace_enable() 434 msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in ipc4_mtrace_enable() 435 msg.primary |= SOF_IPC4_MOD_ID(SOF_IPC4_MOD_INIT_BASEFW_MOD_ID); in ipc4_mtrace_enable() 436 msg.primary |= SOF_IPC4_MOD_INSTANCE(SOF_IPC4_MOD_INIT_BASEFW_INSTANCE_ID); in ipc4_mtrace_enable() 437 msg.extension = SOF_IPC4_MOD_EXT_MSG_PARAM_ID(SOF_IPC4_FW_PARAM_SYSTEM_TIME); in ipc4_mtrace_enable() 442 msg.data_size = sizeof(system_time); in ipc4_mtrace_enable() 443 msg.data_ptr = &system_time; in ipc4_mtrace_enable() 444 ret = iops->set_get_data(sdev, &msg, msg.data_size, true); in ipc4_mtrace_enable() 448 msg.extension = SOF_IPC4_MOD_EXT_MSG_PARAM_ID(SOF_IPC4_FW_PARAM_ENABLE_LOGS); in ipc4_mtrace_enable() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | bbtests.py | 25 self.assertEqual(bitbake('-e').status, 0, msg = "bitbake couldn't run from \"conf\" dir") 32 …self.assertEqual(bitbake('-e', env=my_env).status, 0, msg = "bitbake couldn't run from builddir's … 39 … self.assertEqual(bitbake('-e', env=my_env).status, 0, msg = "bitbake couldn't run from /tmp/") 47 self.assertTrue(find_build_started, msg = "Match failed in:\n%s" % result.output) 48 self.assertTrue(find_build_completed, msg = "Match failed in:\n%s" % result.output) 56 …self.assertTrue(find_setscene, msg = "No \"selftest-hello-native.*do_.*_setscene\" message found d… 60 …("ERROR: Unable to find any recipe file matching 'asdf'" in result.output, msg = "Though asdf reci… 70 …self.assertTrue(find_warnings, msg="Did not find the mumber of warnings at the end of the build:\n… 71 …self.assertTrue(find_errors, msg="Did not find the mumber of errors at the end of the build:\n" + … 84 …self.assertTrue(found and found.startswith("ERROR:"), msg = "Incorrectly formed patch application … [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/static/js/ |
H A D | customrecipe.js | 135 var msg = "You have "; 150 msg += "added "; 151 msg += "<strong>" + (targetPkg.depsAdded.length + 1) + "</strong>"; 152 msg += " packages to " + ctx.recipe.name + ": "; 153 msg += "<strong>" + targetPkg.name + "</strong> and its dependencies"; 158 msg += " <strong>" + dep.name + "</strong>"; 174 msg += "added <strong>1</strong>"; 175 msg += " package to " + ctx.recipe.name + ": "; 176 msg += "<strong>" + targetPkg.name + "</strong>"; 220 msg+= "removed " + numPackageString + " from " + ctx.recipe.name + ":"; [all …]
|
/openbmc/linux/sound/soc/sof/amd/ |
H A D | acp-ipc.c | 67 int acp_sof_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in acp_sof_ipc_send_msg() argument 83 acp_mailbox_write(sdev, offset, msg->msg_data, msg->msg_size); in acp_sof_ipc_send_msg() 98 struct snd_sof_ipc_msg *msg = sdev->msg; in acp_dsp_ipc_get_reply() local 109 if (!msg) { in acp_dsp_ipc_get_reply() 113 hdr = msg->msg_data; in acp_dsp_ipc_get_reply() 124 memcpy(msg->reply_data, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 130 memcpy(msg->reply_data, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 137 if (!msg->reply_size) in acp_dsp_ipc_get_reply() 141 if (reply.hdr.size != msg->reply_size && in acp_dsp_ipc_get_reply() 144 msg->reply_size, reply.hdr.size); in acp_dsp_ipc_get_reply() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
H A D | go.py | 17 msg = 'Exit status was not 0. Output: %s' % output 18 self.assertEqual(status, 0, msg=msg) 20 msg = 'Incorrect output: %s' % output 21 self.assertEqual(output, "Hello, world!", msg=msg)
|
H A D | python.py | 17 msg = 'Exit status was not 0. Output: %s' % output 18 self.assertEqual(status, 0, msg=msg) 20 msg = 'Incorrect output: %s' % output 21 self.assertEqual(output, "Hello, world", msg=msg)
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_attach_fail.c | 10 char msg[ERRMSG_LEN]; member 31 __u32 msg; // __data_loc char[] msg; member 41 char *msg = (void *)(__u64) ((void *) ctx + (__u16) ctx->msg); in tp__xdp__bpf_xdp_link_attach_failed() local 44 bpf_probe_read_kernel_str(&errmsg.msg, ERRMSG_LEN, msg); in tp__xdp__bpf_xdp_link_attach_failed()
|