/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() 567 u8 *resp_data, int *resp_len, in cyapa_do_i2c_pip_cmd_polling() argument 583 length = resp_len ? *resp_len : 0; in cyapa_do_i2c_pip_cmd_polling() 584 if (resp_data && resp_len && length != 0 && func) { in cyapa_do_i2c_pip_cmd_polling() 588 *resp_len = length; in cyapa_do_i2c_pip_cmd_polling() 590 resp_data, resp_len, func); in cyapa_do_i2c_pip_cmd_polling() 591 if (error || *resp_len == 0) in cyapa_do_i2c_pip_cmd_polling() 596 if ((error || *resp_len == 0) || tries <= 0) in cyapa_do_i2c_pip_cmd_polling() 607 u8 *resp_data, int *resp_len, in cyapa_i2c_pip_cmd_irq_sync() argument 625 pip->resp_len = resp_len; in cyapa_i2c_pip_cmd_irq_sync() [all …]
|
/drivers/fsi/ |
D | fsi-occ.c | 241 size_t resp_len, resp_data_len; in occ_getsram() local 255 resp_len = (data_len >> 2) + OCC_SBE_STATUS_WORDS; in occ_getsram() 256 resp = kzalloc(resp_len << 2, GFP_KERNEL); in occ_getsram() 260 rc = sbefifo_submit(occ->sbefifo, cmd, 5, resp, &resp_len); in occ_getsram() 265 resp, resp_len, &resp_len); in occ_getsram() 269 resp_data_len = be32_to_cpu(resp[resp_len - 1]); in occ_getsram() 293 size_t cmd_len, buf_len, resp_len, resp_data_len; in occ_putsram() local 302 resp_len = OCC_SBE_STATUS_WORDS; in occ_putsram() 304 buf_len = max(cmd_len, resp_len); in occ_putsram() 321 rc = sbefifo_submit(occ->sbefifo, buf, cmd_len, buf, &resp_len); in occ_putsram() [all …]
|
D | fsi-sbefifo.c | 207 size_t resp_len, size_t *data_len) in sbefifo_parse_status() argument 212 if (resp_len < 3) { in sbefifo_parse_status() 214 cmd, resp_len); in sbefifo_parse_status() 217 dh = be32_to_cpu(response[resp_len - 1]); in sbefifo_parse_status() 218 if (dh > resp_len || dh < 3) { in sbefifo_parse_status() 220 cmd >> 8, cmd & 0xff, dh, resp_len); in sbefifo_parse_status() 223 s0 = be32_to_cpu(response[resp_len - dh]); in sbefifo_parse_status() 224 s1 = be32_to_cpu(response[resp_len - dh + 1]); in sbefifo_parse_status() 235 sbefifo_dump_ffdc(dev, &response[resp_len - dh + 2], in sbefifo_parse_status() 239 *data_len = resp_len - dh; in sbefifo_parse_status() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | mad.c | 584 u8 port, u32 *resp_len, u32 max_len) in __subn_get_opa_nodedesc() argument 597 if (resp_len) in __subn_get_opa_nodedesc() 598 *resp_len += sizeof(*nd); in __subn_get_opa_nodedesc() 605 u32 *resp_len, u32 max_len) in __subn_get_opa_nodeinfo() argument 637 if (resp_len) in __subn_get_opa_nodeinfo() 638 *resp_len += sizeof(*ni); in __subn_get_opa_nodeinfo() 798 u32 *resp_len, u32 max_len) in __subn_get_opa_portinfo() argument 1000 if (resp_len) in __subn_get_opa_portinfo() 1001 *resp_len += sizeof(struct opa_port_info); in __subn_get_opa_portinfo() 1023 u32 *resp_len, u32 max_len) in __subn_get_opa_pkeytable() argument [all …]
|
/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 …]
|
/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()
|
D | tpm_ftpm_tee.h | 34 size_t resp_len; member
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_hsi.h | 31 __le16 resp_len; member 85 __le16 resp_len; member 471 __le16 resp_len; member 511 __le16 resp_len; member 661 __le16 resp_len; member 1060 __le16 resp_len; member 1083 __le16 resp_len; member 1107 __le16 resp_len; member 1131 __le16 resp_len; member 1187 __le16 resp_len; member [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/drivers/net/wireless/microchip/wilc1000/ |
D | spi.c | 361 int cmd_len, resp_len; in wilc_spi_single_read() local 386 resp_len = sizeof(*r); in wilc_spi_single_read() 390 resp_len += 2; in wilc_spi_single_read() 393 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read() 396 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 400 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read() 440 int cmd_len, resp_len; in wilc_spi_write_cmd() local 474 resp_len = sizeof(*r); in wilc_spi_write_cmd() 476 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd() 479 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_mbx.c | 34 u8 *resp_data, u16 resp_len) in hclgevf_get_mbx_resp() argument 42 if (resp_len > HCLGE_MBX_MAX_RESP_DATA_SIZE) { in hclgevf_get_mbx_resp() 45 resp_len, in hclgevf_get_mbx_resp() 73 memcpy(resp_data, &mbx_resp->additional_info[0], resp_len); in hclgevf_get_mbx_resp() 92 u8 *resp_data, u16 resp_len) in hclgevf_send_mbx_msg() argument 130 resp_len); in hclgevf_send_mbx_msg()
|
/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()
|
/drivers/char/ipmi/ |
D | ipmi_si_intf.c | 1317 unsigned long resp_len; in try_get_dev_id() local 1339 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in try_get_dev_id() 1344 resp + 2, resp_len - 2, &smi_info->device_id); in try_get_dev_id() 1369 unsigned long resp_len; in get_global_enables() local 1388 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in get_global_enables() 1391 if (resp_len < 4 || in get_global_enables() 1397 resp_len, resp[0], resp[1], resp[2]); in get_global_enables() 1416 unsigned long resp_len; in set_global_enables() local 1436 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in set_global_enables() 1439 if (resp_len < 3 || in set_global_enables() [all …]
|
/drivers/firmware/ |
D | qcom_scm-legacy.c | 142 const size_t resp_len = MAX_QCOM_SCM_RETS * sizeof(__le32); in scm_legacy_call() local 143 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call() 188 resp_len, DMA_FROM_DEVICE); in scm_legacy_call()
|
/drivers/hwmon/occ/ |
D | p9_sbe.c | 23 size_t resp_len = sizeof(*resp); in p9_sbe_occ_send_cmd() local 26 rc = fsi_occ_submit(ctx->sbe, cmd, 8, resp, &resp_len); in p9_sbe_occ_send_cmd()
|
/drivers/net/wireless/ath/ath10k/ |
D | usb.c | 547 u32 *resp_len) in ath10k_usb_ctrl_msg_exchange() argument 560 resp_buf, *resp_len); in ath10k_usb_ctrl_msg_exchange() 575 u32 resp_len; in ath10k_usb_hif_diag_read() local 585 resp_len = sizeof(struct ath10k_usb_ctrl_diag_resp_read); in ath10k_usb_hif_diag_read() 592 ar_usb->diag_resp_buffer, &resp_len); in ath10k_usb_hif_diag_read() 596 if (resp_len != sizeof(struct ath10k_usb_ctrl_diag_resp_read)) in ath10k_usb_hif_diag_read() 634 void *resp, u32 *resp_len) in ath10k_usb_bmi_exchange_msg() argument 653 0, 0, resp, *resp_len); in ath10k_usb_bmi_exchange_msg()
|
D | pci.h | 27 u32 resp_len; member 227 void *resp, u32 *resp_len);
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | nvm.c | 482 int resp_len, n_channels; in iwl_mvm_update_mcc() local 510 resp_len = sizeof(struct iwl_mcc_update_resp) + in iwl_mvm_update_mcc() 512 resp_cp = kmemdup(mcc_resp, resp_len, GFP_KERNEL); in iwl_mvm_update_mcc() 526 resp_len = sizeof(struct iwl_mcc_update_resp) + in iwl_mvm_update_mcc() 528 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc()
|
D | time-event.c | 464 int resp_len = iwl_rx_packet_payload_len(pkt); in iwl_mvm_te_notif() local 469 if (WARN_ON_ONCE(resp_len != sizeof(*resp))) { in iwl_mvm_te_notif() 496 int resp_len = iwl_rx_packet_payload_len(pkt); in iwl_mvm_time_event_response() local 501 if (WARN_ON_ONCE(resp_len != sizeof(*resp))) { in iwl_mvm_time_event_response() 1134 int resp_len = iwl_rx_packet_payload_len(pkt); in iwl_mvm_session_prot_notif() local 1140 if (WARN_ON_ONCE(resp_len != sizeof(*resp))) { in iwl_mvm_session_prot_notif()
|
/drivers/scsi/mvsas/ |
D | mv_sas.c | 309 u32 req_len, resp_len, tag = tei->tag; in mvs_task_prep_smp() local 332 resp_len = SB_RFB_MAX; in mvs_task_prep_smp() 335 if ((req_len & 0x3) || (resp_len & 0x3)) { in mvs_task_prep_smp() 383 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | ((req_len - 4) / 4)); in mvs_task_prep_smp() 441 u32 i, req_len, resp_len; in mvs_task_prep_ata() local 520 resp_len = MVS_SLOT_BUF_SZ - MVS_ATA_CMD_SZ - in mvs_task_prep_ata() 524 resp_len = min(resp_len, max_resp_len); in mvs_task_prep_ata() 525 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4)); in mvs_task_prep_ata() 569 u32 resp_len, req_len, i, tag = tei->tag; in mvs_task_prep_ssp() local 634 resp_len = MVS_SLOT_BUF_SZ - MVS_SSP_CMD_SZ - MVS_OAF_SZ - in mvs_task_prep_ssp() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | main.c | 468 else if (priv->resp_len[priv->resp_idx]) in lbs_thread() 515 if (priv->resp_len[resp_idx]) { in lbs_thread() 519 priv->resp_len[resp_idx]); in lbs_thread() 521 priv->resp_len[resp_idx] = 0; in lbs_thread() 867 priv->resp_len[0] = priv->resp_len[1] = 0; in lbs_init_adapter()
|