Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c201 unsigned long reply_len, bool hb) in vmw_port_hb_in() argument
213 reply_len, si, di, in vmw_port_hb_in()
223 while (reply_len) { in vmw_port_hb_in()
224 unsigned int bytes = min_t(unsigned long, reply_len, 4); in vmw_port_hb_in()
239 reply_len -= bytes; in vmw_port_hb_in()
312 size_t reply_len; in vmw_recv_msg() local
341 reply_len = ebx; in vmw_recv_msg()
342 reply = kzalloc(reply_len + 1, GFP_KERNEL); in vmw_recv_msg()
350 ebx = vmw_port_hb_in(channel, reply, reply_len, in vmw_recv_msg()
363 reply[reply_len] = '\0'; in vmw_recv_msg()
[all …]
/drivers/macintosh/
Dvia-macii.c116 static int reply_len; /* number of bytes received in reply_buf or req->reply */ variable
207 req.reply_len = 0; in macii_queue_poll()
247 req->reply_len = 0; in macii_write()
403 reply_len = 0; in macii_interrupt()
409 reply_len = 1; in macii_interrupt()
476 reply_len = 0; in macii_interrupt()
487 reply_len < ARRAY_SIZE(reply_buf)) { in macii_interrupt()
490 reply_len++; in macii_interrupt()
503 req->reply_len = reply_len; in macii_interrupt()
508 } else if (reply_len && autopoll_devs) in macii_interrupt()
[all …]
Dsmu.c188 int reply_len; in smu_db_intr() local
206 reply_len = rc == 0 ? smu->cmd_buf->length : 0; in smu_db_intr()
207 DPRINTK("SMU: reply len: %d\n", reply_len); in smu_db_intr()
208 if (reply_len > cmd->reply_len) { in smu_db_intr()
211 reply_len, cmd->reply_len); in smu_db_intr()
212 reply_len = cmd->reply_len; in smu_db_intr()
214 cmd->reply_len = reply_len; in smu_db_intr()
215 if (cmd->reply_buf && reply_len) in smu_db_intr()
216 memcpy(cmd->reply_buf, smu->cmd_buf->data, reply_len); in smu_db_intr()
270 cmd->reply_len > SMU_MAX_DATA) in smu_queue_cmd()
[all …]
Dvia-cuda.c517 req->reply_len = 0; in cuda_write()
687 req->reply_len = reply_ptr - req->reply; in cuda_interrupt()
690 if (req->reply_len <= 2 || (req->reply[1] & 2) != 0) { in cuda_interrupt()
692 req->reply_len = 0; in cuda_interrupt()
695 req->reply_len -= 2; in cuda_interrupt()
696 memmove(req->reply, req->reply + 2, req->reply_len); in cuda_interrupt()
784 if (req.reply_len != 7) in cuda_get_time()
785 pr_err("%s: got %d byte reply\n", __func__, req.reply_len); in cuda_get_time()
802 if ((req.reply_len != 3) && (req.reply_len != 7)) in cuda_set_rtc_time()
803 pr_err("%s: got %d byte reply\n", __func__, req.reply_len); in cuda_set_rtc_time()
Dadb.c117 printk("adb reply (%d)", req->reply_len);
118 for(i = 0; i < req->reply_len; i++)
136 if (req.reply_len > 1) in adb_scan_bus()
170 if (req.reply_len <= 1) continue; in adb_scan_bus()
177 if (req.reply_len > 1) { in adb_scan_bus()
565 if (req.reply_len < 2) in try_handler_change()
620 req->reply_len = 0; in adb_write_done()
657 req->reply_len = 2; in do_adb_query()
762 ret = req->reply_len; in adb_read()
Dvia-pmu.c628 if (req.reply_len > 0) in init_pmu()
636 if (req.reply_len == 2) { in init_pmu()
666 if (req.reply_len < 2) in pmu_set_server_mode()
822 "len: %d, %4ph\n", req->reply_len, in done_battery_state_smart()
1006 req->reply_len = 1; in pmu_send_request()
1008 req->reply_len = 0; in pmu_send_request()
1018 req->reply_len = 3; in pmu_send_request()
1031 req->reply_len = 3; in pmu_send_request()
1050 req->reply_len = 0; in pmu_send_request()
1112 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()
248 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.c1047 if ((req.reply_len) && in adbhid_probe()
1054 else if ((req.reply_len >= 4) && in adbhid_probe()
1061 else if ((req.reply_len >= 4) && in adbhid_probe()
1068 else if ((req.reply_len == 9) && in adbhid_probe()
1095 if (req.reply_len < 8) in init_trackpad()
Dwindfarm_smu_sensors.c78 if (cmd.cmd.reply_len != 2) { in smu_read_adc()
80 id, cmd.cmd.reply_len); in smu_read_adc()
Dwindfarm_smu_controls.c86 cmd.reply_len = 16; in smu_set_fan()
/drivers/scsi/ufs/
Dufs_bsg.c30 unsigned int reply_len) in ufs_bsg_verify_query_size() argument
35 if (min_req_len > request_len || min_rsp_len > reply_len) { in ufs_bsg_verify_query_size()
87 unsigned int reply_len = job->reply_len; in ufs_bsg_request() local
95 ret = ufs_bsg_verify_query_size(hba, req_len, reply_len); in ufs_bsg_request()
155 job->reply_len = sizeof(struct ufs_bsg_reply); in ufs_bsg_request()
/drivers/net/usb/
Drndis_host.c229 void **reply, int *reply_len) in rndis_query() argument
261 if (*reply_len != -1 && len != *reply_len) in rndis_query()
265 *reply_len = len; in rndis_query()
306 int reply_len; in generic_rndis_bind() local
387 reply_len = sizeof *phym; in generic_rndis_bind()
390 0, (void **) &phym, &reply_len); in generic_rndis_bind()
412 reply_len = ETH_ALEN; in generic_rndis_bind()
415 48, (void **) &bp, &reply_len); in generic_rndis_bind()
/drivers/media/usb/gspca/
Dkinect.c121 unsigned int cmd_len, void *replybuf, unsigned int reply_len) in send_cmd() argument
185 if (actual_len > reply_len) { in send_cmd()
187 reply_len, actual_len); in send_cmd()
188 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
/drivers/scsi/qla2xxx/
Dqla_bsg.c919 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qla2x00_process_loopback()
1074 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla84xx_updatefw()
1255 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla84xx_mgmt_cmd()
1360 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qla24xx_iidma()
1566 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_update_fru_versions()
1616 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_read_fru_status()
1664 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_write_fru_status()
1710 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_write_i2c()
1759 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_read_i2c()
1937 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla24xx_process_bidir_cmd()
[all …]
Dqla_isr.c1505 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_ct_entry()
1530 bsg_job->reply_len = 0; in qla2x00_ct_entry()
1636 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + sizeof(fw_status); in qla24xx_els_ct_entry()
1670 bsg_job->reply_len = 0; in qla24xx_els_ct_entry()
2382 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla25xx_process_bidir_status_iocb()
/drivers/s390/crypto/
Dzcrypt_msgtype6.c644 unsigned int reply_len, pad_len; in convert_type86_ica() local
674 reply_len = msg->length - 2; in convert_type86_ica()
675 if (reply_len > outputdatalength) in convert_type86_ica()
687 pad_len = outputdatalength - reply_len; in convert_type86_ica()
698 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86_ica()
/drivers/scsi/
Dsg.c442 if (old_hdr->reply_len < 0) { in sg_read()
498 old_hdr->reply_len = (int) hp->timeout; in sg_read()
499 old_hdr->pack_len = old_hdr->reply_len; /* old, strange behaviour */ in sg_read()
546 if (count > old_hdr->reply_len) in sg_read()
547 count = old_hdr->reply_len; in sg_read()
637 if (old_hdr.reply_len < 0) in sg_write()
664 mxsize = (input_size > old_hdr.reply_len) ? input_size : old_hdr.reply_len; in sg_write()
677 hp->dxfer_direction = (old_hdr.reply_len > SZ_SG_HEADER) ? in sg_write()
688 hp->timeout = old_hdr.reply_len; /* structure abuse ... */ in sg_write()
705 old_hdr.reply_len - (int)SZ_SG_HEADER, in sg_write()
Dscsi_transport_fc.c3655 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_host_dispatch()
3658 job->reply_len = sizeof(uint32_t); in fc_bsg_host_dispatch()
3724 BUG_ON(job->reply_len < sizeof(uint32_t)); in fc_bsg_rport_dispatch()
3727 job->reply_len = sizeof(uint32_t); in fc_bsg_rport_dispatch()
/drivers/block/
Drbd.c1965 size_t reply_len; in __rbd_object_map_load() local
1983 reply_len = num_pages * PAGE_SIZE; in __rbd_object_map_load()
1987 NULL, 0, pages, &reply_len); in __rbd_object_map_load()
1992 end = p + min(reply_len, (size_t)PAGE_SIZE); in __rbd_object_map_load()
2004 if (offset_in_page(p) + object_map_bytes > reply_len) { in __rbd_object_map_load()
3867 size_t reply_len; in rbd_notify_op_lock() local
3869 __rbd_notify_op_lock(rbd_dev, notify_op, &reply_pages, &reply_len); in rbd_notify_op_lock()
3870 ceph_release_page_vector(reply_pages, calc_pages_for(0, reply_len)); in rbd_notify_op_lock()
3892 size_t reply_len; in rbd_request_lock() local
3899 &reply_pages, &reply_len); in rbd_request_lock()
[all …]
/drivers/macintosh/ams/
Dams-pmu.c72 if (req.reply_len > 0) in ams_pmu_get_register()
/drivers/scsi/qla4xxx/
Dql4_bsg.c494 bsg_job->reply_len = sizeof(struct iscsi_bsg_reply) + sizeof(mbox_sts); in ql4xxx_execute_diag_cmd()
722 bsg_job->reply_len = sizeof(struct iscsi_bsg_reply) + sizeof(mbox_sts); in qla4xxx_execute_diag_loopback_cmd()
/drivers/scsi/smartpqi/
Dsmartpqi_sas_transport.c503 job->reply_len = le16_to_cpu(error_info->sense_data_length); in pqi_build_sas_smp_handler_reply()
/drivers/scsi/bfa/
Dbfad_bsg.c3162 job->reply_len = job->reply_payload.payload_len; in bfad_im_bsg_vendor_request()
3174 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_vendor_request()
3360 job->reply_len = sizeof(uint32_t); /* Atleast uint32_t reply_len */ in bfad_im_bsg_els_ct_request()
3508 job->reply_len = drv_fcxp->rsp_len; in bfad_im_bsg_els_ct_request()
3514 job->reply_len = sizeof(uint32_t); in bfad_im_bsg_els_ct_request()
/drivers/scsi/lpfc/
Dlpfc_bsg.c2501 if (job->reply_len < in lpfc_sli4_bsg_link_diag_test()
2508 job->reply_len); in lpfc_sli4_bsg_link_diag_test()
3423 if (job->reply_len < in lpfc_bsg_get_dfc_rev()
5206 if (job->reply_len < in lpfc_menlo_cmd()
5363 if (job->reply_len < in lpfc_forced_link_speed()
5709 if (job->reply_len < in lpfc_get_trunk_info()

12