/openbmc/linux/drivers/nvdimm/ |
H A D | nd_virtio.c | 16 struct virtio_pmem_request *req_data, *req_buf; in virtio_pmem_host_ack() local 21 while ((req_data = virtqueue_get_buf(vq, &len)) != NULL) { in virtio_pmem_host_ack() 22 req_data->done = true; in virtio_pmem_host_ack() 23 wake_up(&req_data->host_acked); in virtio_pmem_host_ack() 42 struct virtio_pmem_request *req_data; in virtio_pmem_flush() local 57 req_data = kmalloc(sizeof(*req_data), GFP_KERNEL); in virtio_pmem_flush() 58 if (!req_data) in virtio_pmem_flush() 61 req_data->done = false; in virtio_pmem_flush() 62 init_waitqueue_head(&req_data->host_acked); in virtio_pmem_flush() 63 init_waitqueue_head(&req_data->wq_buf); in virtio_pmem_flush() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-pmem.c | 40 VirtIODeviceRequest *req_data = opaque; in worker_cb() local 44 err = fsync(req_data->fd); in worker_cb() 50 virtio_stl_p(req_data->vdev, &req_data->resp.ret, err); in worker_cb() 57 VirtIODeviceRequest *req_data = opaque; in done_cb() local 58 int len = iov_from_buf(req_data->elem.in_sg, req_data->elem.in_num, 0, in done_cb() 59 &req_data->resp, sizeof(struct virtio_pmem_resp)); in done_cb() 62 virtqueue_push(req_data->pmem->rq_vq, &req_data->elem, len); in done_cb() 63 virtio_notify((VirtIODevice *)req_data->pmem, req_data->pmem->rq_vq); in done_cb() 65 g_free(req_data); in done_cb() 70 VirtIODeviceRequest *req_data; in virtio_pmem_flush() local [all …]
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-i2c.c | 77 struct cx231xx_i2c_xfer_data req_data; in cx231xx_i2c_send_bytes() local 138 req_data.dev_addr = msg->addr; in cx231xx_i2c_send_bytes() 139 req_data.direction = msg->flags; in cx231xx_i2c_send_bytes() 140 req_data.saddr_len = saddr_len; in cx231xx_i2c_send_bytes() 141 req_data.saddr_dat = msg->buf[0]; in cx231xx_i2c_send_bytes() 142 req_data.buf_size = size > 16 ? 16 : size; in cx231xx_i2c_send_bytes() 143 req_data.p_buffer = (u8 *) (buf_ptr + loop * 16); in cx231xx_i2c_send_bytes() 149 status = dev->cx231xx_send_usb_command(bus, &req_data); in cx231xx_i2c_send_bytes() 165 req_data.dev_addr = msg->addr; in cx231xx_i2c_send_bytes() 166 req_data.direction = msg->flags; in cx231xx_i2c_send_bytes() [all …]
|
H A D | cx231xx-core.c | 141 struct cx231xx_i2c_xfer_data *req_data) in cx231xx_send_usb_command() argument 160 saddr_len = req_data->saddr_len; in cx231xx_send_usb_command() 163 ven_req.wValue = (req_data->dev_addr << 9 | _i2c_period << 4 | in cx231xx_send_usb_command() 168 if (req_data->direction & I2C_M_RD) { in cx231xx_send_usb_command() 180 ven_req.wIndex = (req_data->saddr_dat & 0xff); in cx231xx_send_usb_command() 183 ven_req.wIndex = req_data->saddr_dat; in cx231xx_send_usb_command() 188 ven_req.wLength = req_data->buf_size; in cx231xx_send_usb_command() 194 if (req_data->direction) { in cx231xx_send_usb_command() 196 memset(req_data->p_buffer, 0x00, ven_req.wLength); in cx231xx_send_usb_command() 201 ven_req.pBuff = req_data->p_buffer; in cx231xx_send_usb_command() [all …]
|
/openbmc/linux/drivers/scsi/libsas/ |
H A D | sas_host_smp.c | 115 u8 *req_data) in sas_host_smp_write_gpio() argument 126 reg_count, req_data); in sas_host_smp_write_gpio() 228 u8 *req_data, *resp_data; in sas_smp_host_handler() local 238 req_data = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in sas_smp_host_handler() 239 if (!req_data) in sas_smp_host_handler() 242 job->request_payload.sg_cnt, req_data, in sas_smp_host_handler() 253 if (req_data[0] != SMP_REQUEST) in sas_smp_host_handler() 258 resp_data[1] = req_data[1]; in sas_smp_host_handler() 261 switch (req_data[1]) { in sas_smp_host_handler() 284 sas_host_smp_discover(sas_ha, resp_data, req_data[9]); in sas_smp_host_handler() [all …]
|
/openbmc/linux/drivers/media/usb/gspca/ |
H A D | vicam.c | 104 u8 *req_data = gspca_dev->usb_buf; in vicam_read_frame() local 108 memset(req_data, 0, 16); in vicam_read_frame() 109 req_data[0] = gain; in vicam_read_frame() 111 req_data[1] |= 0x01; /* low nibble x-scale */ in vicam_read_frame() 113 req_data[1] |= 0x10; /* high nibble y-scale */ in vicam_read_frame() 117 req_data[2] = 0x90; /* unknown, does not seem to do anything */ in vicam_read_frame() 119 req_data[3] = 0x06; /* vend? */ in vicam_read_frame() 121 req_data[3] = 0x07; /* vend? */ in vicam_read_frame() 123 req_data[3] = 0x08; /* vend? */ in vicam_read_frame() 127 req_data[4] = 255 - expo; in vicam_read_frame() [all …]
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | xen_xenstore.c | 60 uint8_t req_data[XENSTORE_HEADER_SIZE + XENSTORE_PAYLOAD_MAX]; member 247 VMSTATE_UINT8_ARRAY(req_data, XenXenstoreState, 248 sizeof_field(XenXenstoreState, req_data)), 309 struct xsd_sockmsg *req = (struct xsd_sockmsg *)s->req_data; in req_pending() 316 memset(s->req_data, 0, sizeof(s->req_data)); in reset_req() 504 xs_transaction_t tx_id, uint8_t *req_data, unsigned int len) in xs_read() argument 506 const char *path = (const char *)req_data; in xs_read() 512 if (len == 0 || req_data[len - 1] != '\0') { in xs_read() 540 xs_transaction_t tx_id, uint8_t *req_data, in xs_write() argument 552 path = (const char *)req_data; in xs_write() [all …]
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_msgs.c | 36 struct vpu_pkt_mem_req_data req_data = { 0 }; in vpu_session_handle_mem_request() local 38 vpu_iface_unpack_msg_data(inst->core, pkt, (void *)&req_data); in vpu_session_handle_mem_request() 41 req_data.enc_frame_size, in vpu_session_handle_mem_request() 42 req_data.enc_frame_num, in vpu_session_handle_mem_request() 43 req_data.ref_frame_size, in vpu_session_handle_mem_request() 44 req_data.ref_frame_num, in vpu_session_handle_mem_request() 45 req_data.act_buf_size, in vpu_session_handle_mem_request() 46 req_data.act_buf_num); in vpu_session_handle_mem_request() 49 req_data.enc_frame_size, in vpu_session_handle_mem_request() 50 req_data.enc_frame_num, in vpu_session_handle_mem_request() [all …]
|
H A D | vpu_windsor.c | 741 struct vpu_pkt_mem_req_data *req_data = data; in vpu_windsor_unpack_mem_req() local 743 req_data->enc_frame_size = pkt->data[0]; in vpu_windsor_unpack_mem_req() 744 req_data->enc_frame_num = pkt->data[1]; in vpu_windsor_unpack_mem_req() 745 req_data->ref_frame_size = pkt->data[2]; in vpu_windsor_unpack_mem_req() 746 req_data->ref_frame_num = pkt->data[3]; in vpu_windsor_unpack_mem_req() 747 req_data->act_buf_size = pkt->data[4]; in vpu_windsor_unpack_mem_req() 748 req_data->act_buf_num = 1; in vpu_windsor_unpack_mem_req()
|
/openbmc/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_skcipher_algs.c | 332 struct virtio_crypto_op_data_req *req_data; in __virtio_crypto_skcipher_do_req() local 361 req_data = kzalloc_node(sizeof(*req_data), GFP_KERNEL, in __virtio_crypto_skcipher_do_req() 363 if (!req_data) { in __virtio_crypto_skcipher_do_req() 368 vc_req->req_data = req_data; in __virtio_crypto_skcipher_do_req() 372 req_data->header.session_id = in __virtio_crypto_skcipher_do_req() 374 req_data->header.opcode = in __virtio_crypto_skcipher_do_req() 377 req_data->header.session_id = in __virtio_crypto_skcipher_do_req() 379 req_data->header.opcode = in __virtio_crypto_skcipher_do_req() 382 req_data->u.sym_req.op_type = cpu_to_le32(VIRTIO_CRYPTO_SYM_OP_CIPHER); in __virtio_crypto_skcipher_do_req() 383 req_data->u.sym_req.u.cipher.para.iv_len = cpu_to_le32(ivsize); in __virtio_crypto_skcipher_do_req() [all …]
|
H A D | virtio_crypto_akcipher_algs.c | 226 struct virtio_crypto_op_data_req *req_data = vc_req->req_data; in __virtio_crypto_akcipher_do_req() local 237 sg_init_one(&outhdr_sg, req_data, sizeof(*req_data)); in __virtio_crypto_akcipher_do_req() 300 vc_req->req_data = kzalloc_node(sizeof(*vc_req->req_data), in virtio_crypto_rsa_do_req() 302 if (!vc_req->req_data) in virtio_crypto_rsa_do_req() 306 header = &vc_req->req_data->header; in virtio_crypto_rsa_do_req() 312 akcipher_req = &vc_req->req_data->u.akcipher_req; in virtio_crypto_rsa_do_req() 318 kfree_sensitive(vc_req->req_data); in virtio_crypto_rsa_do_req() 319 vc_req->req_data = NULL; in virtio_crypto_rsa_do_req()
|
H A D | virtio_crypto_common.h | 107 struct virtio_crypto_op_data_req *req_data; member
|
H A D | virtio_crypto_core.c | 20 kfree_sensitive(vc_req->req_data); in virtcrypto_clear_request() 493 kfree(vc_req->req_data); in virtcrypto_free_unused_reqs()
|
/openbmc/u-boot/drivers/misc/ |
H A D | cros_ec_sandbox.c | 283 struct ec_host_request *req_hdr, const void *req_data, in process_cmd() argument 293 const struct ec_params_hello *req = req_data; in process_cmd() 311 const struct ec_params_vbnvcontext *req = req_data; in process_cmd() 335 const struct ec_params_reboot_ec *req = req_data; in process_cmd() 365 const struct ec_params_vboot_hash *req = req_data; in process_cmd() 400 const struct ec_params_flash_protect *req = req_data; in process_cmd() 419 const struct ec_params_flash_region_info *req = req_data; in process_cmd() 441 const struct ec_params_flash_erase *req = req_data; in process_cmd() 450 const struct ec_params_flash_write *req = req_data; in process_cmd() 475 const void *req_data = req_hdr + 1; in cros_ec_sandbox_packet() local [all …]
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_bsg.c | 747 void *req_data = NULL; in qla2x00_process_loopback() local 794 req_data = dma_alloc_coherent(&ha->pdev->dev, req_data_len, in qla2x00_process_loopback() 796 if (!req_data) { in qla2x00_process_loopback() 814 bsg_job->request_payload.sg_cnt, req_data, req_data_len); in qla2x00_process_loopback() 827 get_unaligned_le32(req_data) == ELS_OPCODE_BYTE && in qla2x00_process_loopback() 960 req_data, req_data_dma); in qla2x00_process_loopback() 2557 struct ql_vnd_mng_host_stats_param *req_data; in qla2x00_manage_host_stats() local 2574 req_data = kzalloc(sizeof(*req_data), GFP_KERNEL); in qla2x00_manage_host_stats() 2575 if (!req_data) { in qla2x00_manage_host_stats() 2582 bsg_job->request_payload.sg_cnt, req_data, in qla2x00_manage_host_stats() [all …]
|
/openbmc/linux/drivers/virt/coco/sev-guest/ |
H A D | sev-guest.c | 487 if (!arg->req_data || !arg->resp_data) in get_report() 490 if (copy_from_user(req, (void __user *)arg->req_data, sizeof(*req))) in get_report() 528 if (!arg->req_data || !arg->resp_data) in get_derived_key() 540 if (copy_from_user(req, (void __user *)arg->req_data, sizeof(*req))) in get_derived_key() 567 if (!arg->req_data || !arg->resp_data) in get_ext_report() 570 if (copy_from_user(req, (void __user *)arg->req_data, sizeof(*req))) in get_ext_report() 612 if (copy_to_user((void __user *)arg->req_data, req, sizeof(*req))) in get_ext_report()
|
/openbmc/linux/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_if_mbox_msr.c | 102 act->mbox_cmd->req_data, in msrl_update_func() 137 action.mbox_cmd->req_data); in isst_if_mbox_proc_cmd()
|
H A D | isst_if_mbox_pci.c | 71 mbox_cmd->req_data); in isst_if_mbox_cmd() 151 mbox_cmd->req_data); in isst_if_mbox_proc_cmd()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | mcu.c | 301 struct req_data { in mt7603_mcu_set_eeprom() struct 314 const int size = 0xff * sizeof(struct req_data); in mt7603_mcu_set_eeprom() 317 struct req_data *data; in mt7603_mcu_set_eeprom() 326 data = (struct req_data *)(req + sizeof(req_hdr)); in mt7603_mcu_set_eeprom()
|
/openbmc/linux/tools/power/x86/intel-speed-select/ |
H A D | isst-core-mbox.c | 125 unsigned int req_data, unsigned int *resp) in _send_mbox_command() argument 133 cpu, command, sub_command, parameter, req_data); in _send_mbox_command() 144 value = req_data; in _send_mbox_command() 178 mbox_cmds.mbox_cmd[0].req_data = req_data; in _send_mbox_command() 197 cpu, command, sub_command, parameter, req_data, errno); in _send_mbox_command() 203 cpu, command, sub_command, parameter, req_data, *resp); in _send_mbox_command()
|
/openbmc/linux/include/uapi/linux/ |
H A D | sev-guest.h | 52 __u64 req_data; member
|
H A D | isst_if.h | 113 __u32 req_data; member
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_sensor.c | 61 uint8_t req_data[2]; in ipmi_sensor_get_sensor_reading_factors() local 71 req_data[0] = sensor->cmn.keys.sensor_num; in ipmi_sensor_get_sensor_reading_factors() 72 req_data[1] = reading; in ipmi_sensor_get_sensor_reading_factors() 78 req.msg.data = req_data; in ipmi_sensor_get_sensor_reading_factors() 79 req.msg.data_len = sizeof(req_data); in ipmi_sensor_get_sensor_reading_factors()
|
/openbmc/linux/drivers/scsi/isci/ |
H A D | sas.h | 204 u8 req_data[]; member
|
/openbmc/linux/Documentation/virt/coco/ |
H A D | sev-guest.rst | 42 output structure is specified through the req_data and resp_data field 57 __u64 req_data;
|