Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 236) sorted by relevance

12345678910

/openbmc/qemu/hw/scsi/
H A Dmptendian.c63 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 Dmptsas.c103 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 Dmptsas.h85 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);
H A Dmptconfig.c776 MPIMsgConfigReply reply; in mptsas_process_config() local
788 QEMU_BUILD_BUG_ON(sizeof(s->doorbell_reply) < sizeof(reply)); in mptsas_process_config()
791 memset(&reply, 0, sizeof(reply)); in mptsas_process_config()
792 reply.Action = req->Action; in mptsas_process_config()
793 reply.Function = req->Function; in mptsas_process_config()
794 reply.MsgContext = req->MsgContext; in mptsas_process_config()
795 reply.MsgLength = sizeof(reply) / 4; in mptsas_process_config()
796 reply.PageType = req->PageType; in mptsas_process_config()
797 reply.PageNumber = req->PageNumber; in mptsas_process_config()
798 reply.PageLength = req->PageLength; in mptsas_process_config()
[all …]
/openbmc/u-boot/net/
H A Dnfs.c439 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/qemu/nbd/
H A Dclient.c115 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/phosphor-host-ipmid/test/
H A Doemrouter_unittest.cpp112 uint8_t reply[256]; in TEST() local
118 EXPECT_EQ(0, wildHandler(ipmi::netFnOem, 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[256]; in TEST() local
139 EXPECT_EQ(0, wildHandler(ipmi::netFnOem, cmd, msgPlus2, reply, &dataLen, in TEST()
145 EXPECT_EQ(0, wildHandler(ipmi::netFnOem, cmd, msgPlus2, reply, &dataLen, in TEST()
[all …]
/openbmc/google-ipmi-sys/
H A Deth.cpp60 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()
H A Dbios_setting.cpp69 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 Dmachine_name.cpp58 std::vector<std::uint8_t> reply; in getMachineName() local
59 reply.reserve(len); in getMachineName()
60 reply.emplace_back(machineName->size()); /* machineNameLength */ in getMachineName()
61 reply.insert(reply.end(), machineName->begin(), in getMachineName()
64 return ::ipmi::responseSuccess(SysOEMCommands::SysMachineName, reply); in getMachineName()
H A Dpcie_bifurcation.cpp65 std::vector<std::uint8_t> reply; in pcieBifurcation() local
66 reply.reserve(bifurcation.size() + sizeof(struct PcieBifurcationReply)); in pcieBifurcation()
67 reply.emplace_back(bifurcation.size()); /* bifurcationLength */ in pcieBifurcation()
68 reply.insert(reply.end(), bifurcation.begin(), in pcieBifurcation()
72 reply); in pcieBifurcation()
H A Dbm_instance.cpp66 std::vector<std::uint8_t> reply; in getBMInstanceProperty() local
67 reply.reserve(length); in getBMInstanceProperty()
68 reply.emplace_back(bmInstanceProperty.size()); in getBMInstanceProperty()
69 reply.insert(reply.end(), bmInstanceProperty.begin(), in getBMInstanceProperty()
73 reply); in getBMInstanceProperty()
H A Dpcie_i2c.cpp99 std::vector<std::uint8_t> reply; in pcieSlotI2cBusMapping() local
100 reply.reserve( in pcieSlotI2cBusMapping()
103 reply.emplace_back(i2c_bus_number); /* i2c_bus_number */ in pcieSlotI2cBusMapping()
104 reply.emplace_back(pcie_slot_name.length()); /* pcie_slot_name length */ in pcieSlotI2cBusMapping()
105 reply.insert(reply.end(), pcie_slot_name.begin(), in pcieSlotI2cBusMapping()
109 reply); in pcieSlotI2cBusMapping()
H A Dentity_name.cpp82 std::vector<std::uint8_t> reply; in getEntityName() local
83 reply.reserve(entityName.length() + sizeof(struct GetEntityNameReply)); in getEntityName()
84 reply.emplace_back(entityName.length()); /* entityNameLength */ in getEntityName()
85 reply.insert(reply.end(), entityName.begin(), in getEntityName()
88 return ::ipmi::responseSuccess(SysOEMCommands::SysEntityName, reply); in getEntityName()
/openbmc/google-ipmi-sys/test/
H A Dgoogle_accel_oob_unittest.cpp60 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 Dbios_setting_unittest.cpp77 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()
H A Dbmc_mode_unittest.cpp39 auto reply = getBmcMode(request, &hMock); in TEST() local
40 auto result = ValidateReply(reply); in TEST()
51 reply = getBmcMode(request, &hMock); in TEST()
52 result = ValidateReply(reply); in TEST()
63 reply = getBmcMode(request, &hMock); in TEST()
64 result = ValidateReply(reply); in TEST()
/openbmc/phosphor-power/
H A Dutility.cpp48 auto reply = bus.call(method); in getService() local
51 reply.unpack<std::map<std::string, std::vector<std::string>>>(); in getService()
86 auto reply = bus.call(method); in getAllProperties() local
87 reply.read(properties); in getAllProperties()
107 auto reply = bus.call(mapperCall); in getSubTree() local
109 auto response = reply.unpack<DbusSubtree>(); in getSubTree()
128 auto reply = bus.call(mapperCall); in getAssociatedSubTreePaths() local
130 auto response = reply.unpack<std::vector<DbusPath>>(); in getAssociatedSubTreePaths()
208 auto reply = bus.call(method); in getPSUInventoryPaths() local
210 reply.read(paths); in getPSUInventoryPaths()
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Df_mass_storage.c1775 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/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dpci_nuvoton_handler.cpp92 struct PciConfigResponse reply; in readMeta() local
93 reply.address = regionAddress; in readMeta()
96 bytes.resize(sizeof(reply)); in readMeta()
97 std::memcpy(bytes.data(), &reply, sizeof(reply)); in readMeta()
H A Dpci_handler.cpp119 struct PciConfigResponse reply; in readMeta() local
120 reply.address = regionAddress; in readMeta()
123 bytes.resize(sizeof(reply)); in readMeta()
124 std::memcpy(bytes.data(), &reply, sizeof(reply)); in readMeta()
/openbmc/ibm-logging/
H A Ddbus.cpp42 auto reply = bus.call(method); in getManagedObjects() local
44 reply.read(interfaces); in getManagedObjects()
59 auto reply = bus.call(method); in getAllProperties() local
61 reply.read(properties); in getAllProperties()
76 auto reply = bus.call(method); in getSubtree() local
78 reply.read(tree); in getSubtree()
/openbmc/skeleton/op-pwrctl/pgood_wait/
H A Dpgood_wait.c84 sd_bus_message **reply) in get_object() argument
105 r = sd_bus_call(conn, request, 0, NULL, reply); in get_object()
129 sd_bus_message *reply = NULL; in get_service() local
133 r = get_object(conn, obj, &reply); in get_service()
137 r = sd_bus_message_enter_container(reply, 0, NULL); in get_service()
141 r = sd_bus_message_enter_container(reply, 0, NULL); in get_service()
145 r = sd_bus_message_read(reply, "s", &tmp); in get_service()
152 sd_bus_message_unref(reply); in get_service()
/openbmc/openpower-debug-collector/watchdog/
H A Dwatchdog_dbus.cpp39 auto reply = bus.call(newMethod); in dbusMethod() local
43 reply.unpack<std::map<std::string, std::vector<std::string>>>(); in dbusMethod()
116 std::tuple<uint32_t, uint32_t> reply = {0, 0}; in createPel() local
119 response.read(reply); in createPel()
120 plid = std::get<1>(reply); // platform log id is tuple "second" in createPel()
148 auto reply = response.unpack<std::variant<std::string>>(); in isHostStateRunning() local
150 std::string currentHostState(std::get<std::string>(reply)); in isHostStateRunning()
/openbmc/phosphor-ipmi-blobs/
H A Dipmi.cpp127 struct BmcBlobOpenRx reply; in openBlob() local
128 reply.crc = 0; in openBlob()
129 reply.sessionId = session; in openBlob()
132 std::memcpy(output.data(), &reply, sizeof(reply)); in openBlob()
173 struct BmcBlobStatRx reply; in returnStatBlob() local
174 reply.crc = 0; in returnStatBlob()
175 reply.blobState = meta->blobState; in returnStatBlob()
176 reply.size = meta->size; in returnStatBlob()
177 reply.metadataLen = meta->metadata.size(); in returnStatBlob()
180 std::memcpy(output.data(), &reply, sizeof(reply)); in returnStatBlob()

12345678910