/openbmc/qemu/hw/scsi/ |
H A D | mptendian.c | 63 void mptsas_fix_scsi_io_reply_endianness(MPIMsgSCSIIOReply *reply) in mptsas_fix_scsi_io_reply_endianness() argument 65 reply->MsgContext = cpu_to_le32(reply->MsgContext); in mptsas_fix_scsi_io_reply_endianness() 66 reply->IOCStatus = cpu_to_le16(reply->IOCStatus); in mptsas_fix_scsi_io_reply_endianness() 67 reply->IOCLogInfo = cpu_to_le32(reply->IOCLogInfo); in mptsas_fix_scsi_io_reply_endianness() 68 reply->TransferCount = cpu_to_le32(reply->TransferCount); in mptsas_fix_scsi_io_reply_endianness() 69 reply->SenseCount = cpu_to_le32(reply->SenseCount); in mptsas_fix_scsi_io_reply_endianness() 70 reply->ResponseInfo = cpu_to_le32(reply->ResponseInfo); in mptsas_fix_scsi_io_reply_endianness() 71 reply->TaskTag = cpu_to_le16(reply->TaskTag); in mptsas_fix_scsi_io_reply_endianness() 80 void mptsas_fix_scsi_task_mgmt_reply_endianness(MPIMsgSCSITaskMgmtReply *reply) in mptsas_fix_scsi_task_mgmt_reply_endianness() argument 82 reply->MsgContext = cpu_to_le32(reply->MsgContext); in mptsas_fix_scsi_task_mgmt_reply_endianness() [all …]
|
H A D | mptsas.c | 103 static void mptsas_post_reply(MPTSASState *s, MPIDefaultReply *reply) in mptsas_post_reply() argument 115 pci_dma_write(pci, addr_lo | s->host_mfa_high_addr, reply, in mptsas_post_reply() 116 MIN(s->reply_frame_size, 4 * reply->MsgLength)); in mptsas_post_reply() 128 void mptsas_reply(MPTSASState *s, MPIDefaultReply *reply) in mptsas_reply() argument 136 s->doorbell_reply_size = reply->MsgLength * 2; in mptsas_reply() 137 memcpy(s->doorbell_reply, reply, s->doorbell_reply_size * 2); in mptsas_reply() 141 mptsas_post_reply(s, reply); in mptsas_reply() 295 MPIMsgSCSIIOReply reply; in mptsas_process_scsi_io_request() local 365 memset(&reply, 0, sizeof(reply)); in mptsas_process_scsi_io_request() 366 reply.TargetID = scsi_io->TargetID; in mptsas_process_scsi_io_request() [all …]
|
H A D | mptsas.h | 85 void mptsas_fix_scsi_io_reply_endianness(MPIMsgSCSIIOReply *reply); 87 void mptsas_fix_scsi_task_mgmt_reply_endianness(MPIMsgSCSITaskMgmtReply *reply); 89 void mptsas_fix_ioc_init_reply_endianness(MPIMsgIOCInitReply *reply); 91 void mptsas_fix_ioc_facts_reply_endianness(MPIMsgIOCFactsReply *reply); 93 void mptsas_fix_config_reply_endianness(MPIMsgConfigReply *reply); 95 void mptsas_fix_port_facts_reply_endianness(MPIMsgPortFactsReply *reply); 97 void mptsas_fix_port_enable_reply_endianness(MPIMsgPortEnableReply *reply); 99 void mptsas_fix_event_notification_reply_endianness(MPIMsgEventNotifyReply *reply); 101 void mptsas_reply(MPTSASState *s, MPIDefaultReply *reply);
|
/openbmc/qemu/nbd/ |
H A D | client.c | 115 NBDOptionReply *reply, Error **errp) in nbd_receive_option_reply() argument 117 QEMU_BUILD_BUG_ON(sizeof(*reply) != 20); in nbd_receive_option_reply() 118 if (nbd_read(ioc, reply, sizeof(*reply), "option reply", errp) < 0) { in nbd_receive_option_reply() 122 reply->magic = be64_to_cpu(reply->magic); in nbd_receive_option_reply() 123 reply->option = be32_to_cpu(reply->option); in nbd_receive_option_reply() 124 reply->type = be32_to_cpu(reply->type); in nbd_receive_option_reply() 125 reply->length = be32_to_cpu(reply->length); in nbd_receive_option_reply() 127 trace_nbd_receive_option_reply(reply->option, nbd_opt_lookup(reply->option), in nbd_receive_option_reply() 128 reply->type, nbd_rep_lookup(reply->type), in nbd_receive_option_reply() 129 reply->length); in nbd_receive_option_reply() [all …]
|
/openbmc/u-boot/net/ |
H A D | nfs.c | 439 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in rpc_lookup_reply() 441 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in rpc_lookup_reply() 444 if (rpc_pkt.u.reply.rstatus || in rpc_lookup_reply() 445 rpc_pkt.u.reply.verifier || in rpc_lookup_reply() 446 rpc_pkt.u.reply.astatus) in rpc_lookup_reply() 451 nfs_server_mount_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply() 454 nfs_server_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply() 469 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_mount_reply() 471 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_mount_reply() 474 if (rpc_pkt.u.reply.rstatus || in nfs_mount_reply() [all …]
|
/openbmc/linux/net/openvswitch/ |
H A D | meter.c | 232 static int ovs_meter_cmd_reply_stats(struct sk_buff *reply, u32 meter_id, in ovs_meter_cmd_reply_stats() argument 239 if (nla_put_u32(reply, OVS_METER_ATTR_ID, meter_id)) in ovs_meter_cmd_reply_stats() 242 if (nla_put(reply, OVS_METER_ATTR_STATS, in ovs_meter_cmd_reply_stats() 246 if (nla_put_u64_64bit(reply, OVS_METER_ATTR_USED, meter->used, in ovs_meter_cmd_reply_stats() 250 nla = nla_nest_start_noflag(reply, OVS_METER_ATTR_BANDS); in ovs_meter_cmd_reply_stats() 259 band_nla = nla_nest_start_noflag(reply, OVS_BAND_ATTR_UNSPEC); in ovs_meter_cmd_reply_stats() 260 if (!band_nla || nla_put(reply, OVS_BAND_ATTR_STATS, in ovs_meter_cmd_reply_stats() 264 nla_nest_end(reply, band_nla); in ovs_meter_cmd_reply_stats() 266 nla_nest_end(reply, nla); in ovs_meter_cmd_reply_stats() 278 struct sk_buff *reply; in ovs_meter_cmd_features() local [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | icm.c | 59 struct icm_usb4_switch_op_response reply; member 458 struct icm_fr_pkg_driver_ready_response reply; in icm_fr_driver_ready() local 464 memset(&reply, 0, sizeof(reply)); in icm_fr_driver_ready() 465 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_driver_ready() 471 *security_level = reply.security_level & ICM_FR_SLEVEL_MASK; in icm_fr_driver_ready() 479 struct icm_fr_pkg_approve_device reply; in icm_fr_approve_switch() local 488 memset(&reply, 0, sizeof(reply)); in icm_fr_approve_switch() 490 ret = icm_request(tb, &request, sizeof(request), &reply, sizeof(reply), in icm_fr_approve_switch() 495 if (reply.hdr.flags & ICM_FLAGS_ERROR) { in icm_fr_approve_switch() 506 struct icm_fr_pkg_add_device_key_response reply; in icm_fr_add_switch_key() local [all …]
|
/openbmc/linux/net/bridge/ |
H A D | br_arp_nd_proxy.c | 255 struct sk_buff *reply; in br_nd_send() local 270 reply = alloc_skb(len, GFP_ATOMIC); in br_nd_send() 271 if (!reply) in br_nd_send() 274 reply->protocol = htons(ETH_P_IPV6); in br_nd_send() 275 reply->dev = dev; in br_nd_send() 276 skb_reserve(reply, LL_RESERVED_SPACE(dev)); in br_nd_send() 277 skb_push(reply, sizeof(struct ethhdr)); in br_nd_send() 278 skb_set_mac_header(reply, 0); in br_nd_send() 287 kfree_skb(reply); in br_nd_send() 297 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in br_nd_send() [all …]
|
/openbmc/phosphor-host-ipmid/test/ |
H A D | oemrouter_unittest.cpp | 70 // Generate reply. in RegisterTwoWays() 90 // Generate reply. in RegisterTwoWays() 112 uint8_t reply[256]; in TEST() 118 EXPECT_EQ(0, wildHandler(NETFUN_OEM_GROUP, 0x78, msgPlain, reply, &dataLen, in TEST() 121 EXPECT_EQ(replyPlain[0], reply[0]); in TEST() 122 EXPECT_EQ(replyPlain[1], reply[1]); in TEST() 123 EXPECT_EQ(replyPlain[2], reply[2]); in TEST() 124 EXPECT_EQ(replyPlain[3], reply[3]); in TEST() 125 EXPECT_EQ(replyPlain[4], reply[4]); in TEST() 131 uint8_t reply[25 in TEST() 113 uint8_t reply[256]; TEST() local 132 uint8_t reply[256]; TEST() local 154 uint8_t reply[256]; TEST() local [all...] |
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | cmsg.c | 60 struct cmsg_reply_map_simple *reply) in nfp_bpf_ctrl_rc_to_errno() argument 74 rc = be32_to_cpu(reply->rc); in nfp_bpf_ctrl_rc_to_errno() 86 struct cmsg_reply_map_alloc_tbl *reply; in nfp_bpf_ctrl_alloc_map() local 104 sizeof(*reply)); in nfp_bpf_ctrl_alloc_map() 108 reply = (void *)skb->data; in nfp_bpf_ctrl_alloc_map() 109 err = nfp_bpf_ctrl_rc_to_errno(bpf, &reply->reply_hdr); in nfp_bpf_ctrl_alloc_map() 113 tid = be32_to_cpu(reply->tid); in nfp_bpf_ctrl_alloc_map() 124 struct cmsg_reply_map_free_tbl *reply; in nfp_bpf_ctrl_free_map() local 139 sizeof(*reply)); in nfp_bpf_ctrl_free_map() 145 reply = (void *)skb->data; in nfp_bpf_ctrl_free_map() [all …]
|
/openbmc/linux/tools/net/ynl/ |
H A D | ethtool.py | 39 def print_field(reply, *desc): argument 45 return print_field(reply, *zip(reply.keys(), reply.keys())) 54 value = reply.get(field, None) 90 reply = ynl.dump(op_name, { 'header': {} } | extra) 91 if not reply: 94 for msg in reply: 223 reply = dumpit(ynl, args, 'features-get') 224 available = bits_to_dict(reply['hw']) 225 requested = bits_to_dict(reply['wanted']).keys() 226 active = bits_to_dict(reply['active']).keys() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wil6210/ |
H A D | wmi.c | 2042 u16 reply_id, void *reply, u16 reply_size, int to_msec) in wmi_call() argument 2053 wil->reply_buf = reply; in wmi_call() 2137 } __packed reply = { in wmi_led_cfg() local 2155 WMI_LED_CFG_DONE_EVENTID, &reply, sizeof(reply), in wmi_led_cfg() 2160 if (reply.evt.status) { in wmi_led_cfg() 2162 led_id, le32_to_cpu(reply.evt.status)); in wmi_led_cfg() 2182 } __packed reply = { in wmi_rbufcap_cfg() local 2187 WMI_RBUFCAP_CFG_EVENTID, &reply, sizeof(reply), in wmi_rbufcap_cfg() 2192 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_rbufcap_cfg() 2194 reply.evt.status); in wmi_rbufcap_cfg() [all …]
|
/openbmc/google-ipmi-sys/test/ |
H A D | google_accel_oob_unittest.cpp | 60 auto* reply = reinterpret_cast<const Reply*>(reply_buff.data()); in TEST() local 61 EXPECT_EQ(reply->count, kTestDeviceCount); in TEST() 102 auto* reply = reinterpret_cast<const Reply*>(reply_buff.data()); in TEST() local 103 EXPECT_EQ(reply->index, kTestDeviceIndex); in TEST() 104 EXPECT_EQ(reply->length, kTestDeviceName.length()); in TEST() 105 EXPECT_STREQ(reply->name, kTestDeviceName.c_str()); in TEST() 163 auto* reply = reinterpret_cast<const Reply*>(reply_buff.data()); in TEST() local 164 EXPECT_EQ(reply->nameLength, kTestDeviceNameLength); in TEST() 165 EXPECT_EQ(std::string_view(reply->name, reply->nameLength), in TEST() 167 EXPECT_EQ(reply->token, kTestToken); in TEST() [all …]
|
H A D | bios_setting_unittest.cpp | 77 auto reply = readBiosSetting(request, &hMock, filename); in TEST_F() local 78 auto result = ValidateReply(reply); in TEST_F() 120 auto reply = writeBiosSetting(request, &hMock, filename); in TEST_F() local 121 auto result = ValidateReply(reply); in TEST_F() 128 reply = readBiosSetting(request, &hMock, filename); in TEST_F() 129 result = ValidateReply(reply); in TEST_F() 140 reply = writeBiosSetting(request, &hMock, filename); in TEST_F() 141 result = ValidateReply(reply); in TEST_F() 148 reply = readBiosSetting(request, &hMock, filename); in TEST_F() 149 result = ValidateReply(reply); in TEST_F()
|
/openbmc/linux/arch/um/drivers/ |
H A D | mconsole_user.c | 40 static int mconsole_reply_v0(struct mc_request *req, char *reply) in mconsole_reply_v0() argument 45 iov.iov_base = reply; in mconsole_reply_v0() 46 iov.iov_len = strlen(reply); in mconsole_reply_v0() 134 struct mconsole_reply reply; in mconsole_reply_len() local 138 reply.err = err; in mconsole_reply_len() 145 if (len == total) reply.more = more; in mconsole_reply_len() 146 else reply.more = 1; in mconsole_reply_len() 148 memcpy(reply.data, str, len); in mconsole_reply_len() 149 reply.data[len] = '\0'; in mconsole_reply_len() 152 reply.len = len + 1; in mconsole_reply_len() [all …]
|
/openbmc/google-ipmi-sys/ |
H A D | bios_setting.cpp | 69 std::vector<std::uint8_t> reply; in readBiosSetting() local 70 reply.reserve(1 + settingsLength); in readBiosSetting() 71 reply.emplace_back(static_cast<uint8_t>(settingsLength)); in readBiosSetting() 72 reply.insert(reply.end(), biosSettings.begin(), biosSettings.end()); in readBiosSetting() 74 return ::ipmi::responseSuccess(SysOEMCommands::SysReadBiosSetting, reply); in readBiosSetting() 119 std::vector<std::uint8_t> reply; in writeBiosSetting() local 120 reply.reserve(1); in writeBiosSetting() 121 reply.emplace_back(static_cast<uint8_t>(payloadSize)); in writeBiosSetting() 123 return ::ipmi::responseSuccess(SysOEMCommands::SysWriteBiosSetting, reply); in writeBiosSetting()
|
H A D | eth.cpp | 60 std::vector<std::uint8_t> reply; in getEthDevice() local 61 reply.reserve(device.length() + sizeof(struct EthDeviceReply)); in getEthDevice() 62 reply.emplace_back(std::get<0>(details)); /* channel */ in getEthDevice() 63 reply.emplace_back(device.length()); /* ifNameLength */ in getEthDevice() 64 reply.insert(reply.end(), device.begin(), device.end()); /* name */ in getEthDevice() 66 return ::ipmi::responseSuccess(SysOEMCommands::SysGetEthDevice, reply); in getEthDevice()
|
/openbmc/linux/include/uapi/linux/ |
H A D | cec-funcs.h | 59 int reply) in cec_msg_request_active_source() argument 64 msg->reply = reply ? CEC_MSG_ACTIVE_SOURCE : 0; in cec_msg_request_active_source() 84 int reply, in cec_msg_routing_change() argument 95 msg->reply = reply ? CEC_MSG_ROUTING_INFORMATION : 0; in cec_msg_routing_change() 131 static inline void cec_msg_record_off(struct cec_msg *msg, int reply) in cec_msg_record_off() argument 135 msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0; in cec_msg_record_off() 293 int reply, in cec_msg_record_on() argument 317 msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0; in cec_msg_record_on() 360 int reply) in cec_msg_record_tv_screen() argument 364 msg->reply = reply ? CEC_MSG_RECORD_ON : 0; in cec_msg_record_tv_screen() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | sof-client-probes-ipc3.c | 107 struct sof_ipc_probe_info_params *reply; in ipc3_probes_info() local 114 reply = kzalloc(max_msg_size, GFP_KERNEL); in ipc3_probes_info() 115 if (!reply) in ipc3_probes_info() 120 ret = sof_client_ipc_tx_message(cdev, &msg, reply, max_msg_size); in ipc3_probes_info() 121 if (ret < 0 || reply->rhdr.error < 0) in ipc3_probes_info() 124 if (!reply->num_elems) in ipc3_probes_info() 128 bytes = sizeof(reply->dma[0]); in ipc3_probes_info() 130 bytes = sizeof(reply->desc[0]); in ipc3_probes_info() 131 bytes *= reply->num_elems; in ipc3_probes_info() 132 *params = kmemdup(&reply->dma[0], bytes, GFP_KERNEL); in ipc3_probes_info() [all …]
|
/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_msgtype6.c | 570 struct ap_message *reply, in convert_type86_ica() argument 574 struct type86x_reply *msg = reply->msg; in convert_type86_ica() 624 struct ap_message *reply, in convert_type86_xcrb() argument 627 struct type86_fmt2_msg *msg = reply->msg; in convert_type86_xcrb() 628 char *data = reply->msg; in convert_type86_xcrb() 669 struct ap_message *reply, in convert_type86_ep11_xcrb() argument 672 struct type86_fmt2_msg *msg = reply->msg; in convert_type86_ep11_xcrb() 673 char *data = reply->msg; in convert_type86_ep11_xcrb() 691 struct ap_message *reply, in convert_type86_rng() argument 698 } __packed * msg = reply->msg; in convert_type86_rng() [all …]
|
/openbmc/linux/sound/soc/sof/amd/ |
H A D | acp-ipc.c | 99 struct sof_ipc_reply reply; in acp_dsp_ipc_get_reply() local 121 reply.error = 0; in acp_dsp_ipc_get_reply() 122 reply.hdr.cmd = SOF_IPC_GLB_REPLY; in acp_dsp_ipc_get_reply() 123 reply.hdr.size = sizeof(reply); in acp_dsp_ipc_get_reply() 124 memcpy(msg->reply_data, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 128 acp_mailbox_read(sdev, offset, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 129 if (reply.error < 0) { in acp_dsp_ipc_get_reply() 130 memcpy(msg->reply_data, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 131 ret = reply.error; in acp_dsp_ipc_get_reply() 141 if (reply.hdr.size != msg->reply_size && in acp_dsp_ipc_get_reply() [all …]
|
/openbmc/linux/sound/soc/intel/catpt/ |
H A D | ipc.c | 45 struct catpt_ipc_msg *reply) in catpt_ipc_msg_init() argument 50 ipc->rx.size = reply ? reply->size : 0; in catpt_ipc_msg_init() 87 struct catpt_ipc_msg *reply, int timeout) in catpt_dsp_do_send_msg() argument 96 (reply && reply->size > ipc->config.outbox_size)) in catpt_dsp_do_send_msg() 100 catpt_ipc_msg_init(ipc, reply); in catpt_dsp_do_send_msg() 114 if (reply) { in catpt_dsp_do_send_msg() 115 reply->header = ipc->rx.header; in catpt_dsp_do_send_msg() 117 if (!ret && reply->data) in catpt_dsp_do_send_msg() 118 memcpy(reply->data, ipc->rx.data, reply->size); in catpt_dsp_do_send_msg() 126 struct catpt_ipc_msg *reply, int timeout) in catpt_dsp_send_msg_timeout() argument [all …]
|
/openbmc/phosphor-objmgr/fail-monitor/ |
H A D | monitor.cpp | 56 auto reply = bus.call(method); in inFailedState() local 57 if (reply.is_method_error()) in inFailedState() 65 reply.read(property); in inFailedState() 78 auto reply = bus.call(method); in getSourceUnitPath() local 80 if (reply.is_method_error()) in getSourceUnitPath() 88 reply.read(path); in getSourceUnitPath() 110 auto reply = bus.call(method); in runTargetAction() local 112 if (reply.is_method_error()) in runTargetAction()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_mass_storage.c | 1775 int reply = -EINVAL; in do_scsi_command() local 1798 reply = check_command(common, 6, DATA_DIR_TO_HOST, in do_scsi_command() 1801 if (reply == 0) in do_scsi_command() 1802 reply = do_inquiry(common, bh); in do_scsi_command() 1807 reply = check_command(common, 6, DATA_DIR_FROM_HOST, in do_scsi_command() 1810 if (reply == 0) in do_scsi_command() 1811 reply = do_mode_select(common, bh); in do_scsi_command() 1817 reply = check_command(common, 10, DATA_DIR_FROM_HOST, in do_scsi_command() 1820 if (reply == 0) in do_scsi_command() 1821 reply = do_mode_select(common, bh); in do_scsi_command() [all …]
|
/openbmc/linux/net/ethtool/ |
H A D | eeprom.c | 54 struct eeprom_reply_data *reply) in eeprom_fallback() argument 56 struct net_device *dev = reply->base.dev; in eeprom_fallback() 78 reply->data = data; in eeprom_fallback() 79 reply->length = eeprom.len; in eeprom_fallback() 107 struct eeprom_reply_data *reply = MODULE_EEPROM_REPDATA(reply_base); in eeprom_prepare_data() local 130 reply->length = ret; in eeprom_prepare_data() 131 reply->data = page_data.data; in eeprom_prepare_data() 142 return eeprom_fallback(request, reply); in eeprom_prepare_data() 203 struct eeprom_reply_data *reply = MODULE_EEPROM_REPDATA(reply_base); in eeprom_fill_reply() local 205 return nla_put(skb, ETHTOOL_A_MODULE_EEPROM_DATA, reply->length, reply->data); in eeprom_fill_reply() [all …]
|