Home
last modified time | relevance | path

Searched refs:reply_len (Results 1 – 25 of 27) sorted by relevance

12

/drivers/macintosh/
Dvia-macii.c115 static int reply_len; /* number of bytes received in reply_buf or req->reply */ variable
222 req.reply_len = 0; in macii_queue_poll()
266 req->reply_len = 0; in macii_write()
420 reply_len = 0; in macii_interrupt()
426 reply_len = 1; in macii_interrupt()
493 reply_len = 0; in macii_interrupt()
504 BUG_ON(reply_len > 15); in macii_interrupt()
507 reply_len++; in macii_interrupt()
520 req->reply_len = reply_len; in macii_interrupt()
524 } else if (reply_len && autopoll_devs) in macii_interrupt()
[all …]
Dsmu.c186 int reply_len; in smu_db_intr() local
204 reply_len = rc == 0 ? smu->cmd_buf->length : 0; in smu_db_intr()
205 DPRINTK("SMU: reply len: %d\n", reply_len); in smu_db_intr()
206 if (reply_len > cmd->reply_len) { in smu_db_intr()
209 reply_len, cmd->reply_len); in smu_db_intr()
210 reply_len = cmd->reply_len; in smu_db_intr()
212 cmd->reply_len = reply_len; in smu_db_intr()
213 if (cmd->reply_buf && reply_len) in smu_db_intr()
214 memcpy(cmd->reply_buf, smu->cmd_buf->data, reply_len); in smu_db_intr()
268 cmd->reply_len > SMU_MAX_DATA) in smu_queue_cmd()
[all …]
Dvia-pmu68k.c291 req->reply_len = 1; in pmu_send_request()
293 req->reply_len = 0; in pmu_send_request()
303 req->reply_len = 3; in pmu_send_request()
316 req->reply_len = 3; in pmu_send_request()
329 req->reply_len = 3; in pmu_send_request()
343 req->reply_len = 3; in pmu_send_request()
360 req->reply_len = 0; in pmu_send_request()
420 req.reply_len = 0; in pmu_reset_bus()
466 req->reply_len = 1; in pmu_request()
468 req->reply_len = 0; in pmu_request()
[all …]
Dvia-maciisi.c70 static int reply_len; variable
330 req->reply_len = 0; in maciisi_write()
479 reply_len = 0; in maciisi_interrupt()
503 reply_len = 0; in maciisi_interrupt()
552 if (reply_len++ > 16) { in maciisi_interrupt()
585 req->reply_len = reply_ptr - req->reply; in maciisi_interrupt()
588 if (req->reply_len <= 2 || (req->reply[1] & 2) != 0) { in maciisi_interrupt()
590 req->reply_len = 0; in maciisi_interrupt()
593 req->reply_len -= 2; in maciisi_interrupt()
594 memmove(req->reply, req->reply + 2, req->reply_len); in maciisi_interrupt()
[all …]
Dadb.c120 printk("adb reply (%d)", req->reply_len);
121 for(i = 0; i < req->reply_len; i++)
139 if (req.reply_len > 1) in adb_scan_bus()
173 if (req.reply_len <= 1) continue; in adb_scan_bus()
180 if (req.reply_len > 1) { in adb_scan_bus()
547 if (req.reply_len < 2) in try_handler_change()
599 req->reply_len = 0; in adb_write_done()
637 req->reply_len = 2; in do_adb_query()
744 ret = req->reply_len; in adb_read()
Dvia-cuda.c395 req->reply_len = 0; in cuda_write()
557 req->reply_len = reply_ptr - req->reply; in cuda_interrupt()
560 if (req->reply_len <= 2 || (req->reply[1] & 2) != 0) { in cuda_interrupt()
562 req->reply_len = 0; in cuda_interrupt()
565 req->reply_len -= 2; in cuda_interrupt()
566 memmove(req->reply, req->reply + 2, req->reply_len); in cuda_interrupt()
Dvia-pmu.c566 if (req.reply_len > 0) in init_pmu()
574 if (req.reply_len == 2) { in init_pmu()
600 if (req.reply_len < 2) in pmu_set_server_mode()
754 "len: %d, %4ph\n", req->reply_len, in done_battery_state_smart()
975 req->reply_len = 1; in pmu_send_request()
977 req->reply_len = 0; in pmu_send_request()
987 req->reply_len = 3; in pmu_send_request()
1000 req->reply_len = 3; in pmu_send_request()
1019 req->reply_len = 0; in pmu_send_request()
1081 req.reply_len = 0; in pmu_adb_reset_bus()
[all …]
Dadb-iop.c142 req->reply_len = amsg->count + 1; in adb_iop_listen()
143 memcpy(req->reply, &amsg->cmd, req->reply_len); in adb_iop_listen()
244 req->reply_len = 0; in adb_iop_write()
Dmacio-adb.c181 req->reply_len = 0; in macio_send_request()
240 req->reply_len = in_8(&adb->dcount.r) & HMB; in macio_adb_interrupt()
241 for (i = 0; i < req->reply_len; ++i) in macio_adb_interrupt()
Dadbhid.c1053 if ((req.reply_len) && in adbhid_probe()
1059 else if ((req.reply_len >= 4) && in adbhid_probe()
1065 else if ((req.reply_len >= 4) && in adbhid_probe()
1071 else if ((req.reply_len == 9) && in adbhid_probe()
1099 if (req.reply_len < 8) in init_trackpad()
Dwindfarm_smu_sensors.c79 if (cmd.cmd.reply_len != 2) { in smu_read_adc()
81 id, cmd.cmd.reply_len); in smu_read_adc()
Dwindfarm_smu_controls.c87 cmd.reply_len = 16; in smu_set_fan()
/drivers/net/usb/
Drndis_host.c243 void **reply, int *reply_len) in rndis_query() argument
275 if (*reply_len != -1 && len != *reply_len) in rndis_query()
279 *reply_len = len; in rndis_query()
319 int reply_len; in generic_rndis_bind() local
400 reply_len = sizeof *phym; in generic_rndis_bind()
403 0, (void **) &phym, &reply_len); in generic_rndis_bind()
425 reply_len = ETH_ALEN; in generic_rndis_bind()
428 48, (void **) &bp, &reply_len); in generic_rndis_bind()
/drivers/s390/crypto/
Dzcrypt_pcicc.c354 unsigned int reply_len, pad_len; in convert_type86() local
378 reply_len = le16_to_cpu(msg->length) - 2; in convert_type86()
379 if (reply_len > outputdatalength) in convert_type86()
391 pad_len = outputdatalength - reply_len; in convert_type86()
402 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86()
Dzcrypt_msgtype6.c422 unsigned int reply_len, pad_len; in convert_type86_ica() local
446 reply_len = msg->length - 2; in convert_type86_ica()
447 if (reply_len > outputdatalength) in convert_type86_ica()
459 pad_len = outputdatalength - reply_len; in convert_type86_ica()
470 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86_ica()
/drivers/media/usb/gspca/
Dkinect.c124 unsigned int cmd_len, void *replybuf, unsigned int reply_len) in send_cmd() argument
186 if (actual_len > reply_len) { in send_cmd()
188 reply_len, actual_len); in send_cmd()
189 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
/drivers/net/wireless/iwlwifi/
Diwl-test.c234 u32 reply_len; in iwl_test_fw_cmd() local
273 reply_len = le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK; in iwl_test_fw_cmd()
274 skb = iwl_test_alloc_reply(tst, reply_len + 20); in iwl_test_fw_cmd()
275 reply_buf = kmemdup(&pkt->hdr, reply_len, GFP_KERNEL); in iwl_test_fw_cmd()
287 nla_put(skb, IWL_TM_ATTR_UCODE_RX_PKT, reply_len, reply_buf)) in iwl_test_fw_cmd()
/drivers/scsi/qla2xxx/
Dqla_bsg.c897 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qla2x00_process_loopback()
1048 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla84xx_updatefw()
1236 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla84xx_mgmt_cmd()
1345 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qla24xx_iidma()
1535 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_update_fru_versions()
1582 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_read_fru_status()
1627 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_write_fru_status()
1670 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_write_i2c()
1716 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_read_i2c()
1896 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla24xx_process_bidir_cmd()
Dqla_isr.c1238 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_ct_entry()
1264 bsg_job->reply_len = 0; in qla2x00_ct_entry()
1311 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + sizeof(fw_status); in qla24xx_els_ct_entry()
1348 bsg_job->reply_len = 0; in qla24xx_els_ct_entry()
1892 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla25xx_process_bidir_status_iocb()
/drivers/scsi/
Dsg.c400 if (old_hdr->reply_len < 0) { in sg_read()
456 old_hdr->reply_len = (int) hp->timeout; in sg_read()
457 old_hdr->pack_len = old_hdr->reply_len; /* old, strange behaviour */ in sg_read()
504 if (count > old_hdr->reply_len) in sg_read()
505 count = old_hdr->reply_len; in sg_read()
588 if (old_hdr.reply_len < 0) in sg_write()
618 mxsize = (input_size > old_hdr.reply_len) ? input_size : old_hdr.reply_len; in sg_write()
631 hp->dxfer_direction = (old_hdr.reply_len > SZ_SG_HEADER) ? in sg_write()
641 hp->timeout = old_hdr.reply_len; /* structure abuse ... */ in sg_write()
660 old_hdr.reply_len - (int)SZ_SG_HEADER, in sg_write()
Dscsi_transport_fc.c3603 job->req->sense_len = job->reply_len; in fc_bsg_jobdone()
3736 job->reply_len = SCSI_SENSE_BUFFERSIZE; /* Size of sense buffer in fc_req_to_bsgjob()
3846 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_host_dispatch()
3849 job->reply_len = sizeof(uint32_t); in fc_bsg_host_dispatch()
3921 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_rport_dispatch()
3924 job->reply_len = sizeof(uint32_t); in fc_bsg_rport_dispatch()
3979 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_request_handler()
3982 job->reply_len = sizeof(uint32_t); in fc_bsg_request_handler()
/drivers/macintosh/ams/
Dams-pmu.c76 if (req.reply_len > 0) in ams_pmu_get_register()
/drivers/scsi/bfa/
Dbfad_bsg.c3099 job->reply_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
3110 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_vendor_request()
3293 job->reply_len = sizeof(uint32_t); /* Atleast uint32_t reply_len */ in bfad_im_bsg_els_ct_request()
3440 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3446 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_els_ct_request()
/drivers/scsi/lpfc/
Dlpfc_bsg.c2348 if (job->reply_len < in lpfc_sli4_bsg_link_diag_test()
2355 job->reply_len); in lpfc_sli4_bsg_link_diag_test()
3266 if (job->reply_len < in lpfc_bsg_get_dfc_rev()
5018 if (job->reply_len < in lpfc_menlo_cmd()
/drivers/scsi/libfc/
Dfc_lport.c1915 job->reply_len = sizeof(uint32_t); in fc_lport_bsg_resp()

12