| /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/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 | 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/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/drivers/ufs/core/ |
| H A D | ufs-rpmb.c | 56 unsigned int resp_len) in ufs_rpmb_route_frames() argument 76 if (req_len != sizeof(struct rpmb_frame) || resp_len != sizeof(struct rpmb_frame)) in ufs_rpmb_route_frames() 80 if (req_len != sizeof(struct rpmb_frame) || resp_len != sizeof(struct rpmb_frame)) in ufs_rpmb_route_frames() 85 if (req_len % sizeof(struct rpmb_frame) || resp_len != sizeof(struct rpmb_frame)) in ufs_rpmb_route_frames() 89 if (req_len != sizeof(struct rpmb_frame) || resp_len % sizeof(struct rpmb_frame)) in ufs_rpmb_route_frames() 111 ret = ufs_sec_submit(hba, protocol_id, resp, resp_len, true); in ufs_rpmb_route_frames() 119 ret = ufs_sec_submit(hba, protocol_id, resp, resp_len, false); in ufs_rpmb_route_frames()
|
| /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/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/virt/coco/sev-guest/ |
| H 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 133 resp_len = sizeof(derived_key_resp->data) + mdesc->ctx->authsize; in get_derived_key() 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() [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/platform/arm64/ |
| H 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()
|
| /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()
|
| /linux/drivers/scsi/mvsas/ |
| H 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() 374 hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | ((req_len - 4) / 4)); 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() [all …]
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | main.c | 446 else if (priv->resp_len[priv->resp_idx]) in lbs_thread() 492 if (priv->resp_len[resp_idx]) { in lbs_thread() 496 priv->resp_len[resp_idx]); in lbs_thread() 498 priv->resp_len[resp_idx] = 0; in lbs_thread() 784 priv->resp_len[0] = priv->resp_len[1] = 0; in lbs_init_adapter()
|
| /linux/drivers/hwmon/occ/ |
| H A D | p8_i2c.c | 115 void *resp, size_t resp_len) in p8_i2c_occ_send_cmd() argument 197 if ((data_length + 7) > resp_len) in p8_i2c_occ_send_cmd()
|