/linux-6.1.9/drivers/input/mouse/ |
D | cyapa_gen6.c | 92 int resp_len; in cyapa_get_pip_fixed_info() local 98 resp_len = sizeof(resp_data); in cyapa_get_pip_fixed_info() 101 resp_data, &resp_len, in cyapa_get_pip_fixed_info() 104 if (error || resp_len < PIP_BL_GET_INFO_RESP_LENGTH) in cyapa_get_pip_fixed_info() 115 resp_len = sizeof(resp_data); in cyapa_get_pip_fixed_info() 118 resp_data, &resp_len, in cyapa_get_pip_fixed_info() 120 if (error || resp_len < PIP_READ_SYS_INFO_RESP_LENGTH) in cyapa_get_pip_fixed_info() 141 int resp_len; in cyapa_pip_state_parse() local 157 resp_len = PIP_HID_DESCRIPTOR_SIZE; in cyapa_pip_state_parse() 160 resp_data, &resp_len, in cyapa_pip_state_parse() [all …]
|
D | cyapa_gen5.c | 362 pip->resp_len = NULL; in cyapa_pip_cmd_state_initialize() 568 u8 *resp_data, int *resp_len, in cyapa_do_i2c_pip_cmd_polling() argument 584 length = resp_len ? *resp_len : 0; in cyapa_do_i2c_pip_cmd_polling() 585 if (resp_data && resp_len && length != 0 && func) { in cyapa_do_i2c_pip_cmd_polling() 589 *resp_len = length; in cyapa_do_i2c_pip_cmd_polling() 591 resp_data, resp_len, func); in cyapa_do_i2c_pip_cmd_polling() 592 if (error || *resp_len == 0) in cyapa_do_i2c_pip_cmd_polling() 597 if ((error || *resp_len == 0) || tries <= 0) in cyapa_do_i2c_pip_cmd_polling() 608 u8 *resp_data, int *resp_len, in cyapa_i2c_pip_cmd_irq_sync() argument 626 pip->resp_len = resp_len; in cyapa_i2c_pip_cmd_irq_sync() [all …]
|
/linux-6.1.9/drivers/hwmon/occ/ |
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() 91 rc = fsi_occ_submit(ctx->sbe, cmd, len, resp, &resp_len); in p9_sbe_occ_send_cmd() 94 if (resp_len) { in p9_sbe_occ_send_cmd() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | mad.c | 542 u32 port, u32 *resp_len, u32 max_len) in __subn_get_opa_nodedesc() argument 555 if (resp_len) in __subn_get_opa_nodedesc() 556 *resp_len += sizeof(*nd); in __subn_get_opa_nodedesc() 563 u32 *resp_len, u32 max_len) in __subn_get_opa_nodeinfo() argument 595 if (resp_len) in __subn_get_opa_nodeinfo() 596 *resp_len += sizeof(*ni); in __subn_get_opa_nodeinfo() 756 u32 *resp_len, u32 max_len) in __subn_get_opa_portinfo() argument 958 if (resp_len) in __subn_get_opa_portinfo() 959 *resp_len += sizeof(struct opa_port_info); in __subn_get_opa_portinfo() 981 u32 *resp_len, u32 max_len) in __subn_get_opa_pkeytable() argument [all …]
|
/linux-6.1.9/drivers/platform/olpc/ |
D | olpc-xo175-ec.c | 242 int resp_len; member 316 priv->resp_len = 0; in olpc_xo175_ec_complete() 374 } else if (priv->resp_len >= priv->expected_resp_len) { in olpc_xo175_ec_complete() 377 priv->resp_data[priv->resp_len++] = byte; in olpc_xo175_ec_complete() 378 if (priv->resp_len == priv->expected_resp_len) { 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 482 dev_dbg(dev, "CMD %x, %zd bytes expected\n", cmd, resp_len); in olpc_xo175_ec_cmd() 485 dev_err(dev, "command len %zd too big!\n", resp_len); in olpc_xo175_ec_cmd() 503 if (resp_len > sizeof(priv->resp_data)) { in olpc_xo175_ec_cmd() [all …]
|
/linux-6.1.9/drivers/char/tpm/ |
D | tpm_ftpm_tee.c | 49 len = pvt_data->resp_len; in ftpm_tee_tpm_op_recv() 58 pvt_data->resp_len = 0; in ftpm_tee_tpm_op_recv() 76 size_t resp_len; in ftpm_tee_tpm_op_send() local 93 pvt_data->resp_len = 0; in ftpm_tee_tpm_op_send() 146 resp_len = be32_to_cpu(resp_header->length); in ftpm_tee_tpm_op_send() 149 if (resp_len < TPM_HEADER_SIZE) { in ftpm_tee_tpm_op_send() 154 if (resp_len > MAX_RESPONSE_SIZE) { in ftpm_tee_tpm_op_send() 157 __func__, resp_len); in ftpm_tee_tpm_op_send() 162 memcpy(pvt_data->resp_buf, temp_buf, resp_len); in ftpm_tee_tpm_op_send() 163 pvt_data->resp_len = resp_len; in ftpm_tee_tpm_op_send()
|
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()
|
/linux-6.1.9/drivers/fsi/ |
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 291 rc = sbefifo_submit(occ->sbefifo, cmd, cmd_len, resp, &resp_len); in occ_getsram() 296 resp, resp_len, &parsed_len); in occ_getsram() 300 occ_save_ffdc(occ, resp, parsed_len, resp_len); in occ_getsram() 323 size_t resp_len = OCC_MAX_RESP_WORDS; in occ_putsram() local 364 rc = sbefifo_submit(occ->sbefifo, buf, cmd_len, buf, &resp_len); in occ_putsram() 369 buf, resp_len, &parsed_len); in occ_putsram() [all …]
|
D | fsi-sbefifo.c | 220 size_t resp_len, size_t *data_len) in sbefifo_parse_status() argument 225 if (resp_len < 3) { in sbefifo_parse_status() 227 cmd, resp_len); in sbefifo_parse_status() 230 dh = be32_to_cpu(response[resp_len - 1]); in sbefifo_parse_status() 231 if (dh > resp_len || dh < 3) { in sbefifo_parse_status() 233 cmd >> 8, cmd & 0xff, dh, resp_len); in sbefifo_parse_status() 236 s0 = be32_to_cpu(response[resp_len - dh]); in sbefifo_parse_status() 237 s1 = be32_to_cpu(response[resp_len - dh + 1]); in sbefifo_parse_status() 248 sbefifo_dump_ffdc(dev, &response[resp_len - dh + 2], in sbefifo_parse_status() 252 *data_len = resp_len - dh; in sbefifo_parse_status() [all …]
|
/linux-6.1.9/tools/testing/selftests/nci/ |
D | nci_dev.c | 184 int resp_len; in get_family_id() local 194 resp_len = recv(sd, &ans, sizeof(ans), 0); in get_family_id() 196 if (ans.n.nlmsg_type == NLMSG_ERROR || resp_len < 0 || in get_family_id() 197 !NLMSG_OK(&ans.n, resp_len)) in get_family_id() 201 resp_len = GENLMSG_PAYLOAD(&ans.n); in get_family_id() 204 while (len < resp_len) { in get_family_id() 253 int rc, resp_len; in get_nci_devid() local 261 resp_len = recv(sd, msg, sizeof(*msg), 0); in get_nci_devid() 262 if (resp_len < 0) { in get_nci_devid() 268 !NLMSG_OK(&msg->n, resp_len)) { in get_nci_devid() [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_hsi.h | 31 __le16 resp_len; member 85 __le16 resp_len; member 530 __le16 resp_len; member 570 __le16 resp_len; member 723 __le16 resp_len; member 1404 __le16 resp_len; member 1427 __le16 resp_len; member 1451 __le16 resp_len; member 1475 __le16 resp_len; member 1534 __le16 resp_len; member [all …]
|
D | bnxt_ulp.c | 243 u32 resp_len; in bnxt_send_msg() local 260 resp_len = le16_to_cpu(resp->resp_len); in bnxt_send_msg() 261 if (resp_len) { in bnxt_send_msg() 262 if (fw_msg->resp_max_len < resp_len) in bnxt_send_msg() 263 resp_len = fw_msg->resp_max_len; in bnxt_send_msg() 265 memcpy(fw_msg->resp, resp, resp_len); in bnxt_send_msg()
|
/linux-6.1.9/drivers/scsi/qedf/ |
D | qedf_els.c | 180 els_req->mp_req.resp_len = mp_info->data_placement_size; in qedf_process_els_compl() 426 u32 resp_len; in qedf_l2_els_compl() local 450 resp_len = mp_req->resp_len; in qedf_l2_els_compl() 471 if (sizeof(struct fc_frame_header) + resp_len > QEDF_PAGE_SIZE) { in qedf_l2_els_compl() 477 fp = fc_frame_alloc(fcport->qedf->lport, resp_len); in qedf_l2_els_compl() 489 fc_payload = fc_frame_payload_get(fp, 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() [all …]
|
/linux-6.1.9/drivers/scsi/bnx2fc/ |
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() 171 memcpy(buf + hdr_len, resp_buf, resp_len); 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() 336 memcpy(buf + hdr_len, resp_buf, 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() [all …]
|
/linux-6.1.9/drivers/net/wireless/microchip/wilc1000/ |
D | spi.c | 487 int cmd_len, resp_len, i; in wilc_spi_single_read() local 513 resp_len = sizeof(*r) + sizeof(*r_data) + WILC_SPI_RSP_HDR_EXTRA_DATA; in wilc_spi_single_read() 518 resp_len += 2; in wilc_spi_single_read() 521 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read() 524 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 528 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read() 582 int cmd_len, resp_len; in wilc_spi_write_cmd() local 616 resp_len = sizeof(*r); in wilc_spi_write_cmd() 618 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd() 621 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd() [all …]
|
/linux-6.1.9/drivers/mmc/host/ |
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() 937 vub300->resp_len = 6; in send_command() 940 vub300->resp_len = 0; in send_command() [all …]
|
/linux-6.1.9/drivers/virt/coco/sev-guest/ |
D | sev-guest.c | 415 int rc, resp_len; in get_report() local 430 resp_len = sizeof(resp->data) + crypto->a_len; in get_report() 431 resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_report() 437 resp_len, &arg->fw_err); in get_report() 454 int rc, resp_len; in get_derived_key() local 468 resp_len = sizeof(resp.data) + crypto->a_len; in get_derived_key() 469 if (sizeof(buf) < resp_len) in get_derived_key() 476 SNP_MSG_KEY_REQ, &req, sizeof(req), buf, resp_len, in get_derived_key() 496 int ret, npages = 0, resp_len; in get_ext_report() local 531 resp_len = sizeof(resp->data) + crypto->a_len; in get_ext_report() [all …]
|
/linux-6.1.9/include/linux/ |
D | fsi-sbefifo.h | 20 __be32 *response, size_t *resp_len); 23 size_t resp_len, size_t *data_len);
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
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() 81 memcpy(resp_data, &mbx_resp->additional_info[0], resp_len); in hclgevf_get_mbx_resp() 100 u8 *resp_data, u16 resp_len) in hclgevf_send_mbx_msg() argument 139 resp_len); in hclgevf_send_mbx_msg()
|
/linux-6.1.9/drivers/media/radio/wl128x/ |
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()
|
/linux-6.1.9/drivers/firmware/ |
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()
|
/linux-6.1.9/arch/sparc/kernel/ |
D | ds.c | 487 u64 handle, int resp_len, int ncpus, in dr_cpu_init_response() argument 498 resp->tag.len = resp_len - sizeof(struct ds_msg_tag); in dr_cpu_init_response() 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() [all …]
|
/linux-6.1.9/drivers/char/ipmi/ |
D | ipmi_si_intf.c | 1313 unsigned long resp_len; in try_get_dev_id() local 1335 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in try_get_dev_id() 1340 resp + 2, resp_len - 2, &smi_info->device_id); in try_get_dev_id() 1363 unsigned long resp_len; in get_global_enables() local 1382 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in get_global_enables() 1385 if (resp_len < 4 || in get_global_enables() 1391 resp_len, resp[0], resp[1], resp[2]); in get_global_enables() 1410 unsigned long resp_len; in set_global_enables() local 1430 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in set_global_enables() 1433 if (resp_len < 3 || in set_global_enables() [all …]
|
/linux-6.1.9/drivers/net/ethernet/microsoft/mana/ |
D | hw_channel.c | 43 u32 resp_len) in mana_hwc_verify_resp_msg() argument 45 if (resp_len < sizeof(*resp_msg)) in mana_hwc_verify_resp_msg() 48 if (resp_len > caller_ctx->output_buflen) in mana_hwc_verify_resp_msg() 54 static void mana_hwc_handle_resp(struct hw_channel_context *hwc, u32 resp_len, in mana_hwc_handle_resp() argument 68 err = mana_hwc_verify_resp_msg(ctx, resp_msg, resp_len); in mana_hwc_handle_resp() 74 memcpy(ctx->output_buf, resp_msg, resp_len); in mana_hwc_handle_resp() 782 const void *req, u32 resp_len, void *resp) in mana_hwc_send_request() argument 807 ctx->output_buflen = resp_len; in mana_hwc_send_request()
|
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ |
D | usb.c | 555 u32 *resp_len) in ath10k_usb_ctrl_msg_exchange() argument 568 resp_buf, *resp_len); in ath10k_usb_ctrl_msg_exchange() 583 u32 resp_len; in ath10k_usb_hif_diag_read() local 593 resp_len = sizeof(struct ath10k_usb_ctrl_diag_resp_read); in ath10k_usb_hif_diag_read() 600 ar_usb->diag_resp_buffer, &resp_len); in ath10k_usb_hif_diag_read() 604 if (resp_len != sizeof(struct ath10k_usb_ctrl_diag_resp_read)) in ath10k_usb_hif_diag_read() 642 void *resp, u32 *resp_len) in ath10k_usb_bmi_exchange_msg() argument 661 0, 0, resp, *resp_len); in ath10k_usb_bmi_exchange_msg()
|