/openbmc/linux/drivers/input/mouse/ |
H A D | cyapa_gen6.c | 92 int resp_len; in cyapa_get_pip_fixed_info() local 101 resp_data, &resp_len, in cyapa_get_pip_fixed_info() 118 resp_data, &resp_len, in cyapa_get_pip_fixed_info() 141 int resp_len; in cyapa_pip_state_parse() local 197 int resp_len; in cyapa_gen6_read_sys_info() local 261 int resp_len; in cyapa_gen6_bl_read_app_info() local 294 int resp_len; in cyapa_gen6_config_dev_irq() local 324 int resp_len; in cyapa_gen6_change_power_state() local 355 int resp_len; in cyapa_gen6_set_interval_setting() local 394 int resp_len; in cyapa_gen6_get_interval_setting() local [all …]
|
H A D | cyapa_gen5.c | 584 length = resp_len ? *resp_len : 0; in cyapa_do_i2c_pip_cmd_polling() 626 pip->resp_len = resp_len; in cyapa_i2c_pip_cmd_irq_sync() 644 resp_len && *resp_len != 0 && func) { in cyapa_i2c_pip_cmd_irq_sync() 689 int resp_len; in cyapa_sort_tsg_pip_app_resp_data() local 731 int resp_len; in cyapa_sort_gen5_hid_descriptor_data() local 1058 int resp_len; in cyapa_pip_bl_initiate() local 1144 int resp_len; in cyapa_pip_bl_exit() local 1170 int resp_len; in cyapa_pip_bl_enter() local 1330 int resp_len; in cyapa_pip_write_fw_block() local 1415 int resp_len; in cyapa_gen5_change_power_state() local [all …]
|
/openbmc/linux/drivers/hwmon/occ/ |
H A D | p9_sbe.c | 54 size_t resp_len) in p9_sbe_occ_save_ffdc() argument 60 if (resp_len > ctx->ffdc_size) { in p9_sbe_occ_save_ffdc() 62 ctx->ffdc = kvmalloc(resp_len, GFP_KERNEL); in p9_sbe_occ_save_ffdc() 69 ctx->ffdc_size = resp_len; in p9_sbe_occ_save_ffdc() 74 ctx->ffdc_len = resp_len; in p9_sbe_occ_save_ffdc() 75 memcpy(ctx->ffdc, resp, resp_len); in p9_sbe_occ_save_ffdc() 84 void *resp, size_t resp_len) in p9_sbe_occ_send_cmd() argument 86 size_t original_resp_len = resp_len; in p9_sbe_occ_send_cmd() 94 if (resp_len) { in p9_sbe_occ_send_cmd() 95 if (p9_sbe_occ_save_ffdc(ctx, resp, resp_len)) in p9_sbe_occ_send_cmd() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | mad.c | 555 if (resp_len) in __subn_get_opa_nodedesc() 595 if (resp_len) in __subn_get_opa_nodeinfo() 958 if (resp_len) in __subn_get_opa_portinfo() 1026 if (resp_len) in __subn_get_opa_pkeytable() 1802 if (resp_len) in __subn_get_opa_sl_to_sc() 1854 if (resp_len) in __subn_get_opa_sc_to_sl() 1897 if (resp_len) in __subn_get_opa_sc_to_vlt() 1964 if (resp_len) in __subn_get_opa_sc_to_vlnt() 2038 if (resp_len) in __subn_get_opa_psi() 2138 if (resp_len) in __subn_get_opa_cable_info() [all …]
|
/openbmc/linux/drivers/platform/olpc/ |
H A D | olpc-xo175-ec.c | 242 int resp_len; member 316 priv->resp_len = 0; in olpc_xo175_ec_complete() 394 priv->resp_len = 1; in olpc_xo175_ec_complete() 474 size_t resp_len, void *ec_cb_arg) in olpc_xo175_ec_cmd() argument 503 if (resp_len > sizeof(priv->resp_data)) { in olpc_xo175_ec_cmd() 507 nr_bytes = resp_len; in olpc_xo175_ec_cmd() 512 resp_len = min(resp_len, nr_bytes); in olpc_xo175_ec_cmd() 526 priv->resp_len = 0; in olpc_xo175_ec_cmd() 552 } else if (priv->resp_len != nr_bytes) { in olpc_xo175_ec_cmd() 554 cmd, priv->resp_len, nr_bytes); in olpc_xo175_ec_cmd() [all …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_ftpm_tee.c | 48 len = pvt_data->resp_len; in ftpm_tee_tpm_op_recv() 57 pvt_data->resp_len = 0; in ftpm_tee_tpm_op_recv() 75 size_t resp_len; in ftpm_tee_tpm_op_send() local 92 pvt_data->resp_len = 0; in ftpm_tee_tpm_op_send() 145 resp_len = be32_to_cpu(resp_header->length); in ftpm_tee_tpm_op_send() 148 if (resp_len < TPM_HEADER_SIZE) { in ftpm_tee_tpm_op_send() 153 if (resp_len > MAX_RESPONSE_SIZE) { in ftpm_tee_tpm_op_send() 156 __func__, resp_len); in ftpm_tee_tpm_op_send() 161 memcpy(pvt_data->resp_buf, temp_buf, resp_len); in ftpm_tee_tpm_op_send() 162 pvt_data->resp_len = resp_len; in ftpm_tee_tpm_op_send()
|
H A D | tpm_vtpm_proxy.c | 44 size_t resp_len; /* length of queued TPM response */ member 154 proxy_dev->resp_len = count; in vtpm_proxy_fops_write() 280 len = proxy_dev->resp_len; in vtpm_proxy_tpm_op_recv() 290 proxy_dev->resp_len = 0; in vtpm_proxy_tpm_op_recv() 352 proxy_dev->resp_len = 0; in vtpm_proxy_tpm_op_send() 375 if (proxy_dev->resp_len) in vtpm_proxy_tpm_op_status()
|
/openbmc/linux/drivers/fsi/ |
H A D | fsi-occ.c | 218 size_t resp_len) in occ_save_ffdc() argument 220 if (resp_len > parsed_len) { in occ_save_ffdc() 221 size_t dh = resp_len - parsed_len; in occ_save_ffdc() 262 size_t resp_len = OCC_MAX_RESP_WORDS; in occ_getsram() local 296 resp, resp_len, &parsed_len); in occ_getsram() 323 size_t resp_len = OCC_MAX_RESP_WORDS; in occ_putsram() local 369 buf, resp_len, &parsed_len); in occ_putsram() 400 size_t resp_len = OCC_MAX_RESP_WORDS; in occ_trigger_attn() local 430 buf, resp_len, &parsed_len); in occ_trigger_attn() 473 size_t user_resp_len = *resp_len; in fsi_occ_submit() [all …]
|
H A D | fsi-sbefifo.c | 222 size_t resp_len, size_t *data_len) in sbefifo_parse_status() argument 227 if (resp_len < 3) { in sbefifo_parse_status() 229 cmd, resp_len); in sbefifo_parse_status() 232 dh = be32_to_cpu(response[resp_len - 1]); in sbefifo_parse_status() 233 if (dh > resp_len || dh < 3) { in sbefifo_parse_status() 235 cmd >> 8, cmd & 0xff, dh, resp_len); in sbefifo_parse_status() 254 *data_len = resp_len - dh; in sbefifo_parse_status() 739 __be32 *response, size_t *resp_len) in sbefifo_submit() argument 754 if (!resp_len || !command || !response) in sbefifo_submit() 758 rbytes = (*resp_len) * sizeof(__be32); in sbefifo_submit() [all …]
|
/openbmc/linux/tools/testing/selftests/nci/ |
H A D | nci_dev.c | 184 int resp_len; in get_family_id() local 204 while (len < resp_len) { in get_family_id() 253 int rc, resp_len; in get_nci_devid() local 262 if (resp_len < 0) { in get_nci_devid() 281 int resp_len; in get_dev_enable_state() local 288 while (len < resp_len) { in get_dev_enable_state() 295 return resp_len; in get_dev_enable_state() 650 int resp_len; in get_taginfo() local 676 while (len < resp_len) { in get_taginfo() 725 int resp_len; in connect_tag() local [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_hsi.h | 31 __le16 resp_len; member 85 __le16 resp_len; member 555 __le16 resp_len; member 595 __le16 resp_len; member 748 __le16 resp_len; member 1429 __le16 resp_len; member 1452 __le16 resp_len; member 1476 __le16 resp_len; member 1500 __le16 resp_len; member 1559 __le16 resp_len; member [all …]
|
H A D | bnxt_ulp.c | 150 u32 resp_len; in bnxt_send_msg() local 167 resp_len = le16_to_cpu(resp->resp_len); in bnxt_send_msg() 168 if (resp_len) { in bnxt_send_msg() 169 if (fw_msg->resp_max_len < resp_len) in bnxt_send_msg() 170 resp_len = fw_msg->resp_max_len; in bnxt_send_msg() 172 memcpy(fw_msg->resp, resp, resp_len); in bnxt_send_msg()
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | mailbox_s10.c | 123 u32 resp_len = 0; in __mbox_rcv_resp() local 134 while (rin != rout && (resp_len < resp_buf_max_len)) { in __mbox_rcv_resp() 137 resp_buf[resp_len++] = MBOX_READ_RESP_BUF(rout); in __mbox_rcv_resp() 146 return resp_len; in __mbox_rcv_resp() 159 u32 resp_len; in mbox_send_cmd_common() local 229 resp_len = MBOX_RESP_LEN_GET(resp); in mbox_send_cmd_common() 230 while (resp_len) { in mbox_send_cmd_common() 239 resp_len--; in mbox_send_cmd_common()
|
/openbmc/linux/drivers/scsi/qedf/ |
H A D | qedf_els.c | 426 u32 resp_len; in qedf_l2_els_compl() local 450 resp_len = mp_req->resp_len; in qedf_l2_els_compl() 490 memcpy(fc_payload, resp_buf, resp_len); in qedf_l2_els_compl() 546 u32 resp_len; in qedf_srr_compl() local 584 resp_len = mp_req->resp_len; in qedf_srr_compl() 587 fp = fc_frame_alloc(lport, resp_len); in qedf_srr_compl() 600 memcpy(fc_payload, resp_buf, resp_len); in qedf_srr_compl() 841 u32 resp_len; in qedf_rec_compl() local 884 resp_len = mp_req->resp_len; in qedf_rec_compl() 887 fp = fc_frame_alloc(lport, resp_len); in qedf_rec_compl() [all …]
|
/openbmc/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_els.c | 130 u32 resp_len, hdr_len; in bnx2fc_l2_els_compl() local 156 resp_len = mp_req->resp_len; in bnx2fc_l2_els_compl() 165 if (hdr_len + resp_len > PAGE_SIZE) { in bnx2fc_l2_els_compl() 172 frame_len = hdr_len + resp_len; in bnx2fc_l2_els_compl() 274 u32 resp_len, hdr_len; in bnx2fc_srr_compl() local 326 resp_len = mp_req->resp_len; in bnx2fc_srr_compl() 338 fp = fc_frame_alloc(NULL, resp_len); in bnx2fc_srr_compl() 346 memcpy(fh, buf, hdr_len + resp_len); in bnx2fc_srr_compl() 393 u32 resp_len, hdr_len; in bnx2fc_rec_compl() local 450 resp_len = mp_req->resp_len; in bnx2fc_rec_compl() [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | stratix10.c | 124 u32 resp_len; in get_resp_hdr() local 133 resp_len = mbox_rcv_resp(buf, rcv_len_max); in get_resp_hdr() 135 for (i = 0; i < resp_len; i++) { in get_resp_hdr() 251 u32 resp_len = 2; in stratix10_load() local 256 NULL, 0, &resp_len, resp_buf); in stratix10_load()
|
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/ |
H A D | spi.c | 488 int cmd_len, resp_len, i; in wilc_spi_single_read() local 519 resp_len += 2; in wilc_spi_single_read() 525 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 583 int cmd_len, resp_len; in wilc_spi_write_cmd() local 617 resp_len = sizeof(*r); in wilc_spi_write_cmd() 622 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd() 658 int cmd_len, resp_len; in wilc_spi_dma_rw() local 695 resp_len = sizeof(*r); in wilc_spi_dma_rw() 699 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw() 784 int cmd_len, resp_len = 0; in wilc_spi_special_cmd() local [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | vub300.c | 317 u8 resp_len; member 901 vub300->resp_len = 6; in send_command() 913 vub300->resp_len = 6; in send_command() 917 vub300->resp_len = 6; in send_command() 921 vub300->resp_len = 6; in send_command() 925 vub300->resp_len = 6; in send_command() 929 vub300->resp_len = 6; in send_command() 933 vub300->resp_len = 6; in send_command() 1711 int resp_len = vub300->resp_len; in construct_request_response() local 1712 int less_cmd = (17 == resp_len) ? resp_len : resp_len - 1; in construct_request_response() [all …]
|
/openbmc/linux/include/linux/ |
H A D | fsi-sbefifo.h | 20 __be32 *response, size_t *resp_len); 23 size_t resp_len, size_t *data_len);
|
/openbmc/linux/drivers/virt/coco/sev-guest/ |
H A D | sev-guest.c | 483 int rc, resp_len; in get_report() local 498 resp_len = sizeof(resp->data) + crypto->a_len; in get_report() 499 resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_report() 505 resp_len); in get_report() 522 int rc, resp_len; in get_derived_key() local 536 resp_len = sizeof(resp.data) + crypto->a_len; in get_derived_key() 537 if (sizeof(buf) < resp_len) in get_derived_key() 563 int ret, npages = 0, resp_len; in get_ext_report() local 598 resp_len = sizeof(resp->data) + crypto->a_len; in get_ext_report() 599 resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_ext_report() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_mbx.c | 41 u8 *resp_data, u16 resp_len) in hclgevf_get_mbx_resp() argument 49 if (resp_len > HCLGE_MBX_MAX_RESP_DATA_SIZE) { in hclgevf_get_mbx_resp() 52 resp_len, in hclgevf_get_mbx_resp() 84 memcpy(resp_data, &mbx_resp->additional_info[0], resp_len); in hclgevf_get_mbx_resp() 103 u8 *resp_data, u16 resp_len) in hclgevf_send_mbx_msg() argument 142 resp_len); in hclgevf_send_mbx_msg()
|
/openbmc/linux/drivers/media/radio/wl128x/ |
H A D | fmdrv_rx.c | 38 u32 resp_len; in fm_rx_set_freq() local 102 ret = fmc_send_cmd(fmdev, FREQ_SET, REG_RD, NULL, 2, &curr_frq, &resp_len); in fm_rx_set_freq() 159 u32 resp_len; in fm_rx_seek() local 175 sizeof(curr_frq), &curr_frq, &resp_len); in fm_rx_seek() 271 &curr_frq, &resp_len); in fm_rx_seek() 508 u32 resp_len; in fm_rx_get_rssi_level() local 517 &curr_rssi_lel, &resp_len); in fm_rx_get_rssi_level() 599 u32 resp_len; in fm_rx_get_stereo_mono() local 608 &curr_mode, &resp_len); in fm_rx_get_stereo_mono()
|
/openbmc/linux/drivers/firmware/ |
H A D | qcom_scm-legacy.c | 145 const size_t resp_len = MAX_QCOM_SCM_RETS * sizeof(__le32); in scm_legacy_call() local 146 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call() 191 resp_len, DMA_FROM_DEVICE); in scm_legacy_call()
|
/openbmc/qemu/hw/sd/ |
H A D | pxa2xx_mmci.c | 66 uint32_t resp_len; member 79 && s->resp_len <= ARRAY_SIZE(s->resp_fifo); in pxa2xx_mmci_vmstate_validate() 107 VMSTATE_UINT32(resp_len, PXA2xxMMCIState), 268 s->resp_len = 0; in pxa2xx_mmci_wakequeues() 330 ret = (s->resp_len < 9) ? s->resp_fifo[s->resp_len++] : 0; in pxa2xx_mmci_read() 538 s->resp_len = 0; in pxa2xx_mmci_reset()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | ds.c | 487 u64 handle, int resp_len, int ncpus, in dr_cpu_init_response() argument 537 int resp_len, ncpus, cpu; in dr_cpu_configure() local 541 resp_len = dr_cpu_size_response(ncpus); in dr_cpu_configure() 542 resp = kzalloc(resp_len, GFP_KERNEL); in dr_cpu_configure() 547 resp_len, ncpus, mask, in dr_cpu_configure() 579 __ds_send(dp->lp, resp, resp_len); in dr_cpu_configure() 596 int resp_len, ncpus, cpu; in dr_cpu_unconfigure() local 600 resp_len = dr_cpu_size_response(ncpus); in dr_cpu_unconfigure() 601 resp = kzalloc(resp_len, GFP_KERNEL); in dr_cpu_unconfigure() 606 resp_len, ncpus, mask, in dr_cpu_unconfigure() [all …]
|