| /linux/drivers/input/mouse/ |
| H A 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 …]
|
| /linux/drivers/hwmon/occ/ |
| H A D | p9_sbe.c | 53 size_t resp_len) in p9_sbe_occ_save_ffdc() argument 59 if (resp_len > ctx->ffdc_size) { in p9_sbe_occ_save_ffdc() 61 ctx->ffdc = kvmalloc(resp_len, GFP_KERNEL); in p9_sbe_occ_save_ffdc() 68 ctx->ffdc_size = resp_len; in p9_sbe_occ_save_ffdc() 73 ctx->ffdc_len = resp_len; in p9_sbe_occ_save_ffdc() 74 memcpy(ctx->ffdc, resp, resp_len); in p9_sbe_occ_save_ffdc() 83 void *resp, size_t resp_len) in p9_sbe_occ_send_cmd() argument 85 size_t original_resp_len = resp_len; in p9_sbe_occ_send_cmd() 90 rc = fsi_occ_submit(ctx->sbe, cmd, len, resp, &resp_len); in p9_sbe_occ_send_cmd() 93 if (resp_len) { in p9_sbe_occ_send_cmd() [all …]
|
| /linux/drivers/fsi/ |
| H A D | fsi-occ.c | 214 size_t resp_len) in occ_save_ffdc() argument 216 if (resp_len > parsed_len) { in occ_save_ffdc() 217 size_t dh = resp_len - parsed_len; in occ_save_ffdc() 258 size_t resp_len = OCC_MAX_RESP_WORDS; in occ_getsram() local 287 rc = sbefifo_submit(occ->sbefifo, cmd, cmd_len, resp, &resp_len); in occ_getsram() 292 resp, resp_len, &parsed_len); in occ_getsram() 296 occ_save_ffdc(occ, resp, parsed_len, resp_len); in occ_getsram() 319 size_t resp_len = OCC_MAX_RESP_WORDS; in occ_putsram() local 360 rc = sbefifo_submit(occ->sbefifo, buf, cmd_len, buf, &resp_len); in occ_putsram() 365 buf, resp_len, &parsed_len); in occ_putsram() [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() 238 s0 = be32_to_cpu(response[resp_len - dh]); in sbefifo_parse_status() 239 s1 = be32_to_cpu(response[resp_len - dh + 1]); in sbefifo_parse_status() 250 sbefifo_dump_ffdc(dev, &response[resp_len - dh + 2], in sbefifo_parse_status() 254 *data_len = resp_len - dh; in sbefifo_parse_status() [all …]
|
| /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() 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() 503 if (resp_len > sizeof(priv->resp_data)) { in olpc_xo175_ec_cmd() 504 dev_err(dev, "response too big: %zd!\n", resp_len); in olpc_xo175_ec_cmd() [all …]
|
| /linux/tools/testing/selftests/nci/ |
| H A D | nci_dev.c | 195 int resp_len; in get_family_id() local 205 resp_len = recv(sd, &ans, sizeof(ans), 0); in get_family_id() 207 if (ans.n.nlmsg_type == NLMSG_ERROR || resp_len < 0 || in get_family_id() 208 !NLMSG_OK(&ans.n, resp_len)) in get_family_id() 212 resp_len = GENLMSG_PAYLOAD(&ans.n); in get_family_id() 215 while (len < resp_len) { in get_family_id() 264 int rc, resp_len; in get_nci_devid() local 272 resp_len = recv(sd, msg, sizeof(*msg), 0); in get_nci_devid() 273 if (resp_len < 0) { in get_nci_devid() 279 !NLMSG_OK(&msg->n, resp_len)) { in get_nci_devid() [all …]
|
| /linux/drivers/platform/x86/dell/ |
| H 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 …]
|
| /linux/include/linux/bnge/ |
| H A D | hsi.h | 23 __le16 resp_len; member 81 __le16 resp_len; member 625 __le16 resp_len; member 666 __le16 resp_len; member 827 __le16 resp_len; member 1632 __le16 resp_len; member 1655 __le16 resp_len; member 1679 __le16 resp_len; member 1703 __le16 resp_len; member 1768 __le16 resp_len; member [all …]
|
| /linux/drivers/scsi/qedf/ |
| H A 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/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_auxr.c | 99 u32 resp_len; in bnge_send_msg() local 113 resp_len = le16_to_cpu(resp->resp_len); in bnge_send_msg() 114 if (resp_len) { in bnge_send_msg() 115 if (fw_msg->resp_max_len < resp_len) in bnge_send_msg() 116 resp_len = fw_msg->resp_max_len; in bnge_send_msg() 118 memcpy(fw_msg->resp, resp, resp_len); in bnge_send_msg()
|
| /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() 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/drivers/mmc/host/ |
| H A D | vub300.c | 317 u8 resp_len; member 902 vub300->resp_len = 6; in send_command() 914 vub300->resp_len = 6; in send_command() 918 vub300->resp_len = 6; in send_command() 922 vub300->resp_len = 6; in send_command() 926 vub300->resp_len = 6; in send_command() 930 vub300->resp_len = 6; in send_command() 934 vub300->resp_len = 6; in send_command() 938 vub300->resp_len = 6; in send_command() 941 vub300->resp_len = 0; in send_command() [all …]
|
| /linux/drivers/net/wireless/microchip/wilc1000/ |
| H A D | spi.c | 525 int cmd_len, resp_len, i; in wilc_spi_single_read() local 551 resp_len = sizeof(*r) + sizeof(*r_data) + WILC_SPI_RSP_HDR_EXTRA_DATA; in wilc_spi_single_read() 556 resp_len += 2; in wilc_spi_single_read() 559 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read() 562 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 566 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { 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() 656 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd() 659 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd() [all …]
|
| /linux/include/linux/ |
| H A D | rpmb.h | 40 u8 *resp, unsigned int resp_len); 122 unsigned int req_len, u8 *resp, unsigned int resp_len); 161 unsigned int resp_len) in rpmb_route_frames() argument
|
| H A D | fsi-sbefifo.h | 20 __be32 *response, size_t *resp_len); 23 size_t resp_len, size_t *data_len);
|
| H A D | fsi-occ.h | 25 void *response, size_t *resp_len);
|
| /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()
|
| /linux/arch/sparc/kernel/ |
| H A 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/drivers/char/tpm/ |
| 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() 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()
|
| /linux/drivers/firmware/qcom/ |
| 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()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A 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/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | nvm.c | 418 int resp_len, n_channels; in iwl_mvm_update_mcc() local 459 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 460 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc() 493 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 494 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc() 527 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc() 528 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc()
|
| /linux/drivers/char/ipmi/ |
| H A D | ipmi_si_intf.c | 1391 unsigned long resp_len; in try_get_dev_id() local 1413 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in try_get_dev_id() 1418 resp + 2, resp_len - 2, &smi_info->device_id); in try_get_dev_id() 1441 unsigned long resp_len; in get_global_enables() local 1460 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in get_global_enables() 1463 if (resp_len < 4 || in get_global_enables() 1469 resp_len, resp[0], resp[1], resp[2]); in get_global_enables() 1488 unsigned long resp_len; in set_global_enables() local 1508 resp_len = smi_info->handlers->get_result(smi_info->si_sm, in set_global_enables() 1511 if (resp_len < 3 || in set_global_enables() [all …]
|
| /linux/drivers/platform/arm64/ |
| H A D | qcom-hamoa-ec.c | 86 static int qcom_ec_read(struct qcom_ec *ec, u8 cmd, u8 resp_len, u8 *resp) in qcom_ec_read() argument 90 ret = i2c_smbus_read_i2c_block_data(ec->client, cmd, resp_len, resp); in qcom_ec_read() 95 else if (ret != resp_len) in qcom_ec_read() 98 if (resp[0] != resp_len - 1) in qcom_ec_read()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H 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 93 err = mana_hwc_verify_resp_msg(ctx, resp_msg, resp_len); in mana_hwc_handle_resp() 99 memcpy(ctx->output_buf, resp_msg, resp_len); in mana_hwc_handle_resp() 856 const void *req, u32 resp_len, void *resp) in mana_hwc_send_request() argument 882 ctx->output_buflen = resp_len; in mana_hwc_send_request()
|