Home
last modified time | relevance | path

Searched refs:reply_len (Results 1 – 25 of 26) 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.c191 int reply_len; in smu_db_intr() local
209 reply_len = rc == 0 ? smu->cmd_buf->length : 0; in smu_db_intr()
210 DPRINTK("SMU: reply len: %d\n", reply_len); in smu_db_intr()
211 if (reply_len > cmd->reply_len) { in smu_db_intr()
214 reply_len, cmd->reply_len); in smu_db_intr()
215 reply_len = cmd->reply_len; in smu_db_intr()
217 cmd->reply_len = reply_len; in smu_db_intr()
218 if (cmd->reply_buf && reply_len) in smu_db_intr()
219 memcpy(cmd->reply_buf, smu->cmd_buf->data, reply_len); in smu_db_intr()
273 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 req->reply_len, req->reply[0], req->reply[1], req->reply[2], req->reply[3]); in done_battery_state_smart()
974 req->reply_len = 1; in pmu_send_request()
976 req->reply_len = 0; in pmu_send_request()
986 req->reply_len = 3; in pmu_send_request()
999 req->reply_len = 3; in pmu_send_request()
1018 req->reply_len = 0; in pmu_send_request()
1080 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.c240 void **reply, int *reply_len) in rndis_query() argument
272 if (*reply_len != -1 && len != *reply_len) in rndis_query()
276 *reply_len = len; in rndis_query()
316 int reply_len; in generic_rndis_bind() local
397 reply_len = sizeof *phym; in generic_rndis_bind()
399 0, (void **) &phym, &reply_len); in generic_rndis_bind()
421 reply_len = ETH_ALEN; in generic_rndis_bind()
423 48, (void **) &bp, &reply_len); in generic_rndis_bind()
/drivers/s390/crypto/
Dzcrypt_pcicc.c357 unsigned int reply_len, pad_len; in convert_type86() local
381 reply_len = le16_to_cpu(msg->length) - 2; in convert_type86()
382 if (reply_len > outputdatalength) in convert_type86()
394 pad_len = outputdatalength - reply_len; in convert_type86()
405 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86()
Dzcrypt_pcixcc.c442 unsigned int reply_len, pad_len; in convert_type86_ica() local
466 reply_len = msg->length - 2; in convert_type86_ica()
467 if (reply_len > outputdatalength) in convert_type86_ica()
479 pad_len = outputdatalength - reply_len; in convert_type86_ica()
490 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86_ica()
/drivers/media/video/gspca/
Dkinect.c130 unsigned int cmd_len, void *replybuf, unsigned int reply_len) in send_cmd() argument
192 if (actual_len > reply_len) { in send_cmd()
194 reply_len, actual_len); in send_cmd()
195 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
/drivers/net/wireless/iwlwifi/
Diwl-testmode.c265 u32 reply_len; in iwl_testmode_ucode() local
304 reply_len = le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK; in iwl_testmode_ucode()
305 skb = cfg80211_testmode_alloc_reply_skb(hw->wiphy, reply_len + 20); in iwl_testmode_ucode()
306 reply_buf = kmalloc(reply_len, GFP_KERNEL); in iwl_testmode_ucode()
314 memcpy(reply_buf, &(pkt->hdr), reply_len); in iwl_testmode_ucode()
318 NLA_PUT(skb, IWL_TM_ATTR_UCODE_RX_PKT, reply_len, reply_buf); in iwl_testmode_ucode()
/drivers/scsi/
Dsg.c371 if (old_hdr->reply_len < 0) { in sg_read()
432 old_hdr->reply_len = (int) hp->timeout; in sg_read()
433 old_hdr->pack_len = old_hdr->reply_len; /* old, strange behaviour */ in sg_read()
480 if (count > old_hdr->reply_len) in sg_read()
481 count = old_hdr->reply_len; in sg_read()
564 if (old_hdr.reply_len < 0) in sg_write()
594 mxsize = (input_size > old_hdr.reply_len) ? input_size : old_hdr.reply_len; in sg_write()
607 hp->dxfer_direction = (old_hdr.reply_len > SZ_SG_HEADER) ? in sg_write()
617 hp->timeout = old_hdr.reply_len; /* structure abuse ... */ in sg_write()
636 old_hdr.reply_len - (int)SZ_SG_HEADER, in sg_write()
Dscsi_transport_fc.c3588 job->req->sense_len = job->reply_len; in fc_bsg_jobdone()
3721 job->reply_len = SCSI_SENSE_BUFFERSIZE; /* Size of sense buffer in fc_req_to_bsgjob()
3831 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_host_dispatch()
3834 job->reply_len = sizeof(uint32_t); in fc_bsg_host_dispatch()
3906 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_rport_dispatch()
3909 job->reply_len = sizeof(uint32_t); in fc_bsg_rport_dispatch()
3964 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_request_handler()
3967 job->reply_len = sizeof(uint32_t); in fc_bsg_request_handler()
Dscsi_transport_iscsi.c512 BUG_ON(job->reply_len < sizeof(uint32_t)); in iscsi_bsg_host_dispatch()
515 job->reply_len = sizeof(uint32_t); in iscsi_bsg_host_dispatch()
/drivers/scsi/qla2xxx/
Dqla_bsg.c819 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qla2x00_process_loopback()
977 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla84xx_updatefw()
1165 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla84xx_mgmt_cmd()
1276 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qla24xx_iidma()
1463 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_update_fru_versions()
1510 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_read_fru_status()
1555 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_write_fru_status()
Dqla_isr.c1003 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_ct_entry()
1029 bsg_job->reply_len = 0; in qla2x00_ct_entry()
1076 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + sizeof(fw_status); in qla24xx_els_ct_entry()
1113 bsg_job->reply_len = 0; in qla24xx_els_ct_entry()
/drivers/macintosh/ams/
Dams-pmu.c76 if (req.reply_len > 0) in ams_pmu_get_register()
/drivers/scsi/bfa/
Dbfad_bsg.c2803 job->reply_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
2814 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_vendor_request()
2997 job->reply_len = sizeof(uint32_t); /* Atleast uint32_t reply_len */ in bfad_im_bsg_els_ct_request()
3141 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3147 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_els_ct_request()
/drivers/scsi/lpfc/
Dlpfc_bsg.c2198 if (job->reply_len < in lpfc_sli4_bsg_link_diag_test()
2205 job->reply_len); in lpfc_sli4_bsg_link_diag_test()
3114 if (job->reply_len < in lpfc_bsg_get_dfc_rev()
4868 if (job->reply_len < in lpfc_menlo_cmd()

12