| /drivers/input/mouse/ |
| 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 …]
|
| 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 …]
|
| /drivers/hwmon/occ/ |
| 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 …]
|
| /drivers/infiniband/hw/hfi1/ |
| 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 …]
|
| /drivers/platform/olpc/ |
| 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 …]
|
| /drivers/fsi/ |
| 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 …]
|
| 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 …]
|
| /drivers/platform/x86/dell/ |
| A D | dell-uart-backlight.c | 60 u8 resp_len; member 91 dell_bl->resp_len = -1; /* Invalid / unset */ in dell_uart_bl_command() 223 while (i < len && dell_bl->resp_idx != dell_bl->resp_len) { in dell_uart_bl_receive() 228 dell_bl->resp_len = dell_bl->resp[RESP_LEN]; in dell_uart_bl_receive() 229 if (dell_bl->resp_len < MIN_RESP_LEN || in dell_uart_bl_receive() 230 dell_bl->resp_len > dell_bl->resp_max_len) { in dell_uart_bl_receive() 232 dell_bl->resp_len, MIN_RESP_LEN, dell_bl->resp_max_len); in dell_uart_bl_receive() 249 if (dell_bl->resp_idx != dell_bl->resp_len) in dell_uart_bl_receive() 252 csum = dell_uart_checksum(dell_bl->resp, dell_bl->resp_len - 1); in dell_uart_bl_receive() 253 if (dell_bl->resp[dell_bl->resp_len - 1] == csum) { in dell_uart_bl_receive() [all …]
|
| /drivers/char/tpm/ |
| A D | tpm_ftpm_tee.c | 49 size_t resp_len; in ftpm_tee_tpm_op_send() local 118 resp_len = be32_to_cpu(resp_header->length); in ftpm_tee_tpm_op_send() 121 if (resp_len < TPM_HEADER_SIZE) { in ftpm_tee_tpm_op_send() 126 if (resp_len > MAX_RESPONSE_SIZE) { in ftpm_tee_tpm_op_send() 129 __func__, resp_len); in ftpm_tee_tpm_op_send() 132 if (resp_len > bufsiz) { in ftpm_tee_tpm_op_send() 135 __func__, resp_len, bufsiz); in ftpm_tee_tpm_op_send() 139 memcpy(buf, temp_buf, resp_len); in ftpm_tee_tpm_op_send() 141 return resp_len; in ftpm_tee_tpm_op_send()
|
| 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() 279 len = proxy_dev->resp_len; in vtpm_proxy_tpm_op_recv() 289 proxy_dev->resp_len = 0; in vtpm_proxy_tpm_op_recv() 353 proxy_dev->resp_len = 0; in vtpm_proxy_tpm_op_send() 376 if (proxy_dev->resp_len) in vtpm_proxy_tpm_op_status()
|
| /drivers/scsi/qedf/ |
| 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 …]
|
| /drivers/scsi/bnx2fc/ |
| 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 …]
|
| /drivers/mmc/host/ |
| A D | vub300.c | 317 u8 resp_len; member 899 vub300->resp_len = 6; in send_command() 911 vub300->resp_len = 6; in send_command() 915 vub300->resp_len = 6; in send_command() 919 vub300->resp_len = 6; in send_command() 923 vub300->resp_len = 6; in send_command() 927 vub300->resp_len = 6; in send_command() 931 vub300->resp_len = 6; in send_command() 1709 int resp_len = vub300->resp_len; in construct_request_response() local 1710 int less_cmd = (17 == resp_len) ? resp_len : resp_len - 1; in construct_request_response() [all …]
|
| /drivers/virt/coco/sev-guest/ |
| A D | sev-guest.c | 73 int rc, resp_len; in get_report() local 90 resp_len = sizeof(report_resp->data) + mdesc->ctx->authsize; in get_report() 91 report_resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_report() 101 req.resp_sz = resp_len; in get_report() 123 int rc, resp_len; in get_derived_key() local 134 derived_key_resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_derived_key() 152 req.resp_sz = resp_len; in get_derived_key() 177 int ret, npages = 0, resp_len; in get_ext_report() local 233 resp_len = sizeof(report_resp->data) + mdesc->ctx->authsize; in get_ext_report() 234 report_resp = kzalloc(resp_len, GFP_KERNEL_ACCOUNT); in get_ext_report() [all …]
|
| /drivers/net/wireless/microchip/wilc1000/ |
| A D | spi.c | 525 int cmd_len, resp_len, i; in wilc_spi_single_read() local 556 resp_len += 2; in wilc_spi_single_read() 562 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 620 int cmd_len, resp_len; in wilc_spi_write_cmd() local 654 resp_len = sizeof(*r); in wilc_spi_write_cmd() 659 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd() 695 int cmd_len, resp_len; in wilc_spi_dma_rw() local 732 resp_len = sizeof(*r); in wilc_spi_dma_rw() 736 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw() 821 int cmd_len, resp_len = 0; in wilc_spi_special_cmd() local [all …]
|
| /drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| 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()
|
| /drivers/net/ethernet/broadcom/bnxt/ |
| A D | bnxt_ulp.c | 195 u32 resp_len; in bnxt_send_msg() local 212 resp_len = le16_to_cpu(resp->resp_len); in bnxt_send_msg() 213 if (resp_len) { in bnxt_send_msg() 214 if (fw_msg->resp_max_len < resp_len) in bnxt_send_msg() 215 resp_len = fw_msg->resp_max_len; in bnxt_send_msg() 217 memcpy(fw_msg->resp, resp, resp_len); in bnxt_send_msg()
|
| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | nvm.c | 418 int resp_len, n_channels; in iwl_mvm_update_mcc() local 448 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 449 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc() 473 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 474 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc() 498 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 499 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc()
|
| /drivers/char/ipmi/ |
| A D | ipmi_si_intf.c | 1318 unsigned long resp_len; in try_get_dev_id() local 1345 resp + 2, resp_len - 2, &smi_info->device_id); in try_get_dev_id() 1368 unsigned long resp_len; in get_global_enables() local 1390 if (resp_len < 4 || in get_global_enables() 1396 resp_len, resp[0], resp[1], resp[2]); in get_global_enables() 1415 unsigned long resp_len; in set_global_enables() local 1438 if (resp_len < 3 || in set_global_enables() 1443 resp_len, resp[0], resp[1]); in set_global_enables() 1534 unsigned long resp_len; in try_enable_event_buffer() local 1554 if (resp_len < 4 || in try_enable_event_buffer() [all …]
|
| /drivers/firmware/qcom/ |
| 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()
|
| /drivers/platform/arm64/ |
| A D | huawei-gaokun-ec.c | 126 size_t resp_len, u8 *resp) in gaokun_ec_request() argument 138 .len = resp_len, in gaokun_ec_request() 183 size_t resp_len, u8 *resp) in gaokun_ec_read() argument 185 return gaokun_ec_request(ec, req, resp_len, resp); in gaokun_ec_read() 259 size_t resp_len, u8 *resp) in gaokun_ec_psy_multi_read() argument 265 for (i = 0; i < resp_len; ++i, reg++) { in gaokun_ec_psy_multi_read()
|
| /drivers/net/wireless/ath/ath10k/ |
| A 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()
|
| A D | pci.h | 28 u32 resp_len; member 228 void *resp, u32 *resp_len);
|
| /drivers/net/ethernet/microsoft/mana/ |
| A D | hw_channel.c | 45 u32 resp_len) in mana_hwc_verify_resp_msg() argument 47 if (resp_len < sizeof(*resp_msg)) in mana_hwc_verify_resp_msg() 50 if (resp_len > caller_ctx->output_buflen) in mana_hwc_verify_resp_msg() 79 static void mana_hwc_handle_resp(struct hw_channel_context *hwc, u32 resp_len, in mana_hwc_handle_resp() argument 95 err = mana_hwc_verify_resp_msg(ctx, resp_msg, resp_len); in mana_hwc_handle_resp() 101 memcpy(ctx->output_buf, resp_msg, resp_len); in mana_hwc_handle_resp() 835 const void *req, u32 resp_len, void *resp) in mana_hwc_send_request() argument 860 ctx->output_buflen = resp_len; in mana_hwc_send_request()
|
| /drivers/scsi/mvsas/ |
| A D | mv_sas.c | 300 u32 req_len, resp_len, tag = tei->tag; in mvs_task_prep_smp() local 323 resp_len = SB_RFB_MAX; in mvs_task_prep_smp() 326 if ((req_len & 0x3) || (resp_len & 0x3)) { in mvs_task_prep_smp() 432 u32 i, req_len, resp_len; in mvs_task_prep_ata() local 511 resp_len = MVS_SLOT_BUF_SZ - MVS_ATA_CMD_SZ - in mvs_task_prep_ata() 515 resp_len = min(resp_len, max_resp_len); in mvs_task_prep_ata() 516 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4)); in mvs_task_prep_ata() 560 u32 resp_len, req_len, i, tag = tei->tag; in mvs_task_prep_ssp() local 621 resp_len = MVS_SLOT_BUF_SZ - MVS_SSP_CMD_SZ - MVS_OAF_SZ - in mvs_task_prep_ssp() 623 resp_len = min(resp_len, max_resp_len); in mvs_task_prep_ssp() [all …]
|