Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 560) sorted by relevance

12345678910>>...23

/drivers/macintosh/
Dvia-pmu68k.c106 static int pmu_send_request(struct adb_request *req, int sync);
114 static void pmu_done(struct adb_request *req);
192 volatile struct adb_request req; in pmu_init() local
197 pmu_request((struct adb_request *) &req, NULL, 2, PMU_SET_INTR_MASK, PMU_INT_ADB); in pmu_init()
199 while (!req.complete) { in pmu_init()
224 pmu_request((struct adb_request *) &req, NULL, 2, PMU_SET_INTR_MASK, in pmu_init()
227 while (!req.complete) { in pmu_init()
272 pmu_send_request(struct adb_request *req, int sync) in pmu_send_request() argument
278 req->complete = 1; in pmu_send_request()
284 switch (req->data[0]) { in pmu_send_request()
[all …]
Dadb-iop.c66 static void adb_iop_end_req(struct adb_request *req, int state) in adb_iop_end_req() argument
68 req->complete = 1; in adb_iop_end_req()
69 current_req = req->next; in adb_iop_end_req()
70 if (req->done) (*req->done)(req); in adb_iop_end_req()
82 struct adb_request *req; in adb_iop_complete() local
87 req = current_req; in adb_iop_complete()
88 if ((adb_iop_state == sending) && req && req->reply_expected) { in adb_iop_complete()
105 struct adb_request *req; in adb_iop_listen() local
113 req = current_req; in adb_iop_listen()
116 printk("adb_iop_listen %p: rcvd packet, %d bytes: %02X %02X", req, in adb_iop_listen()
[all …]
Dvia-pmu.c182 static int pmu_send_request(struct adb_request *req, int sync);
214 int pmu_polled_request(struct adb_request *req);
526 struct adb_request req; in init_pmu() local
531 pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, pmu_intr_mask); in init_pmu()
533 while (!req.complete) { in init_pmu()
558 pmu_request(&req, NULL, 2, PMU_SYSTEM_READY, 2); in init_pmu()
559 while (!req.complete) in init_pmu()
564 pmu_request(&req, NULL, 1, PMU_GET_VERSION); in init_pmu()
565 pmu_wait_complete(&req); in init_pmu()
566 if (req.reply_len > 0) in init_pmu()
[all …]
Dvia-macii.c86 static int macii_send_request(struct adb_request *req, int sync);
87 static int macii_write(struct adb_request *req);
123 static int request_is_queued(struct adb_request *req) { in request_is_queued() argument
129 if (cur == req) { in request_is_queued()
205 static struct adb_request req; in macii_queue_poll() local
215 BUG_ON(request_is_queued(&req)); in macii_queue_poll()
217 adb_request(&req, NULL, ADBREQ_NOSEND, 1, in macii_queue_poll()
220 req.sent = 0; in macii_queue_poll()
221 req.complete = 0; in macii_queue_poll()
222 req.reply_len = 0; in macii_queue_poll()
[all …]
Dvia-cuda.c91 static int cuda_send_request(struct adb_request *req, int sync);
101 static int cuda_write(struct adb_request *req);
103 int cuda_request(struct adb_request *req,
120 struct adb_request req; in find_via_cuda() local
137 cuda_request(&req, NULL, 3, CUDA_PACKET, CUDA_AUTOPOLL, 1); in find_via_cuda()
138 while (!req.complete) in find_via_cuda()
146 struct adb_request req; in find_via_cuda() local
190 cuda_request(&req, NULL, 3, CUDA_PACKET, CUDA_AUTOPOLL, 1); in find_via_cuda()
191 while (!req.complete) in find_via_cuda()
307 cuda_send_request(struct adb_request *req, int sync) in cuda_send_request() argument
[all …]
Dvia-maciisi.c82 static int maciisi_send_request(struct adb_request* req, int sync);
83 static void maciisi_sync(struct adb_request *req);
84 static int maciisi_write(struct adb_request* req);
229 maciisi_send_request(struct adb_request* req, int sync) in maciisi_send_request() argument
238 req->complete = 1; in maciisi_send_request()
245 for (i = 0; i < req->nbytes; i++) { in maciisi_send_request()
246 printk(" %.2x", req->data[i]); in maciisi_send_request()
252 req->reply_expected = 1; in maciisi_send_request()
254 i = maciisi_write(req); in maciisi_send_request()
271 maciisi_sync(req); in maciisi_send_request()
[all …]
Dadb.c116 static void printADBreply(struct adb_request *req)
120 printk("adb reply (%d)", req->reply_len);
121 for(i = 0; i < req->reply_len; i++)
122 printk(" %x", req->reply[i]);
132 struct adb_request req; in adb_scan_bus() local
137 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in adb_scan_bus()
139 if (req.reply_len > 1) in adb_scan_bus()
156 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in adb_scan_bus()
163 adb_request(&req, NULL, ADBREQ_SYNC, 3, in adb_scan_bus()
171 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in adb_scan_bus()
[all …]
/drivers/s390/scsi/
Dzfcp_fsf.c66 static void zfcp_fsf_class_not_supp(struct zfcp_fsf_req *req) in zfcp_fsf_class_not_supp() argument
68 dev_err(&req->adapter->ccw_device->dev, "FCP device not " in zfcp_fsf_class_not_supp()
70 zfcp_erp_adapter_shutdown(req->adapter, 0, "fscns_1"); in zfcp_fsf_class_not_supp()
71 req->status |= ZFCP_STATUS_FSFREQ_ERROR; in zfcp_fsf_class_not_supp()
78 void zfcp_fsf_req_free(struct zfcp_fsf_req *req) in zfcp_fsf_req_free() argument
80 if (likely(req->pool)) { in zfcp_fsf_req_free()
81 if (likely(req->qtcb)) in zfcp_fsf_req_free()
82 mempool_free(req->qtcb, req->adapter->pool.qtcb_pool); in zfcp_fsf_req_free()
83 mempool_free(req, req->pool); in zfcp_fsf_req_free()
87 if (likely(req->qtcb)) in zfcp_fsf_req_free()
[all …]
/drivers/block/drbd/
Ddrbd_req.c37 static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req) in _drbd_start_io_acct() argument
39 const int rw = bio_data_dir(req->master_bio); in _drbd_start_io_acct()
44 part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], req->i.size >> 9); in _drbd_start_io_acct()
52 static void _drbd_end_io_acct(struct drbd_conf *mdev, struct drbd_request *req) in _drbd_end_io_acct() argument
54 int rw = bio_data_dir(req->master_bio); in _drbd_end_io_acct()
55 unsigned long duration = jiffies - req->start_time; in _drbd_end_io_acct()
67 struct drbd_request *req; in drbd_req_new() local
69 req = mempool_alloc(drbd_request_mempool, GFP_NOIO); in drbd_req_new()
70 if (!req) in drbd_req_new()
73 drbd_req_make_private_bio(req, bio_src); in drbd_req_new()
[all …]
/drivers/video/msm/
Dmdp_ppp.c92 static void rotate_dst_addr_x(struct mdp_blit_req *req, struct mdp_regs *regs) in rotate_dst_addr_x() argument
94 regs->dst0 += (req->dst_rect.w - in rotate_dst_addr_x()
95 min((uint32_t)16, req->dst_rect.w)) * regs->dst_bpp; in rotate_dst_addr_x()
96 regs->dst1 += (req->dst_rect.w - in rotate_dst_addr_x()
97 min((uint32_t)16, req->dst_rect.w)) * regs->dst_bpp; in rotate_dst_addr_x()
100 static void rotate_dst_addr_y(struct mdp_blit_req *req, struct mdp_regs *regs) in rotate_dst_addr_y() argument
102 regs->dst0 += (req->dst_rect.h - in rotate_dst_addr_y()
103 min((uint32_t)16, req->dst_rect.h)) * in rotate_dst_addr_y()
105 regs->dst1 += (req->dst_rect.h - in rotate_dst_addr_y()
106 min((uint32_t)16, req->dst_rect.h)) * in rotate_dst_addr_y()
[all …]
/drivers/s390/cio/
Dccwreq.c42 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path() local
44 if (!req->singlepath) { in ccwreq_next_path()
45 req->mask = 0; in ccwreq_next_path()
48 req->retries = req->maxretries; in ccwreq_next_path()
49 req->mask = lpm_adjust(req->mask >>= 1, req->lpm); in ccwreq_next_path()
51 return req->mask; in ccwreq_next_path()
59 struct ccw_request *req = &cdev->private->req; in ccwreq_stop() local
61 if (req->done) in ccwreq_stop()
63 req->done = 1; in ccwreq_stop()
66 if (rc && rc != -ENODEV && req->drc) in ccwreq_stop()
[all …]
Ddevice_pgid.c57 struct ccw_request *req = &cdev->private->req; in nop_build_cp() local
64 req->cp = cp; in nop_build_cp()
73 struct ccw_request *req = &cdev->private->req; in nop_do() local
75 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & sch->opm & in nop_do()
77 if (!req->lpm) in nop_do()
105 struct ccw_request *req = &cdev->private->req; in nop_callback() local
109 sch->vpm |= req->lpm; in nop_callback()
112 cdev->private->path_noirq_mask |= req->lpm; in nop_callback()
115 cdev->private->path_notoper_mask |= req->lpm; in nop_callback()
121 req->lpm >>= 1; in nop_callback()
[all …]
/drivers/staging/cptm1217/
Dclearpad_tm1217.c137 u8 *req, int size) in cp_tm1217_read() argument
142 retval = i2c_master_send(ts->client, &req[0], 1); in cp_tm1217_read()
149 retval = i2c_master_recv(ts->client, &req[1], size); in cp_tm1217_read()
164 u8 *req, int size) in cp_tm1217_write() argument
169 retval = i2c_master_send(ts->client, &req[0], size + 1); in cp_tm1217_write()
182 u8 req[2]; in cp_tm1217_mask_interrupt() local
185 req[0] = TMA1217_INTERRUPT_ENABLE; in cp_tm1217_mask_interrupt()
186 req[1] = 0x0; in cp_tm1217_mask_interrupt()
187 retval = cp_tm1217_write(ts, req, 1); in cp_tm1217_mask_interrupt()
196 u8 req[2]; in cp_tm1217_unmask_interrupt() local
[all …]
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c795 struct be_cmd_req_eq_create *req; in be_cmd_eq_create() local
803 req = embedded_payload(wrb); in be_cmd_eq_create()
805 be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON, in be_cmd_eq_create()
806 OPCODE_COMMON_EQ_CREATE, sizeof(*req), wrb, NULL); in be_cmd_eq_create()
808 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); in be_cmd_eq_create()
810 AMAP_SET_BITS(struct amap_eq_context, valid, req->context, 1); in be_cmd_eq_create()
812 AMAP_SET_BITS(struct amap_eq_context, size, req->context, 0); in be_cmd_eq_create()
813 AMAP_SET_BITS(struct amap_eq_context, count, req->context, in be_cmd_eq_create()
815 AMAP_SET_BITS(struct amap_eq_context, delaymult, req->context, in be_cmd_eq_create()
817 be_dws_cpu_to_le(req->context, sizeof(req->context)); in be_cmd_eq_create()
[all …]
/drivers/media/usb/dvb-usb-v2/
Dec168.c28 static int ec168_ctrl_msg(struct dvb_usb_device *d, struct ec168_req *req) in ec168_ctrl_msg() argument
35 switch (req->cmd) { in ec168_ctrl_msg()
41 request = req->cmd; in ec168_ctrl_msg()
45 request = req->cmd; in ec168_ctrl_msg()
65 KBUILD_MODNAME, req->cmd); in ec168_ctrl_msg()
70 buf = kmalloc(req->size, GFP_KERNEL); in ec168_ctrl_msg()
78 memcpy(buf, req->data, req->size); in ec168_ctrl_msg()
87 ret = usb_control_msg(d->udev, pipe, request, requesttype, req->value, in ec168_ctrl_msg()
88 req->index, buf, req->size, EC168_USB_TIMEOUT); in ec168_ctrl_msg()
90 dvb_usb_dbg_usb_control_msg(d->udev, request, requesttype, req->value, in ec168_ctrl_msg()
[all …]
/drivers/scsi/csiostor/
Dcsio_scsi.c185 csio_scsi_fcp_cmnd(struct csio_ioreq *req, void *addr) in csio_scsi_fcp_cmnd() argument
188 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req); in csio_scsi_fcp_cmnd()
202 if (req->nsge) in csio_scsi_fcp_cmnd()
203 if (req->datadir == DMA_TO_DEVICE) in csio_scsi_fcp_cmnd()
225 csio_scsi_init_cmd_wr(struct csio_ioreq *req, void *addr, uint32_t size) in csio_scsi_init_cmd_wr() argument
227 struct csio_hw *hw = req->lnode->hwp; in csio_scsi_init_cmd_wr()
228 struct csio_rnode *rn = req->rnode; in csio_scsi_init_cmd_wr()
239 wr->cookie = (uintptr_t) req; in csio_scsi_init_cmd_wr()
240 wr->iqid = cpu_to_be16(csio_q_physiqid(hw, req->iq_idx)); in csio_scsi_init_cmd_wr()
241 wr->tmo_val = (uint8_t) req->tmo; in csio_scsi_init_cmd_wr()
[all …]
/drivers/base/power/
Dqos.c136 static int apply_constraint(struct dev_pm_qos_request *req, in apply_constraint() argument
139 struct dev_pm_qos *qos = req->dev->power.qos; in apply_constraint()
142 switch(req->type) { in apply_constraint()
144 ret = pm_qos_update_target(&qos->latency, &req->data.pnode, in apply_constraint()
150 req); in apply_constraint()
154 ret = pm_qos_update_flags(&qos->flags, &req->data.flr, in apply_constraint()
216 struct dev_pm_qos_request *req, *tmp; in dev_pm_qos_constraints_destroy() local
240 plist_for_each_entry_safe(req, tmp, &c->list, data.pnode) { in dev_pm_qos_constraints_destroy()
245 apply_constraint(req, PM_QOS_REMOVE_REQ, PM_QOS_DEFAULT_VALUE); in dev_pm_qos_constraints_destroy()
246 memset(req, 0, sizeof(*req)); in dev_pm_qos_constraints_destroy()
[all …]
/drivers/usb/gadget/
Dpxa25x_udc.c303 struct pxa25x_request *req; in pxa25x_ep_alloc_request() local
305 req = kzalloc(sizeof(*req), gfp_flags); in pxa25x_ep_alloc_request()
306 if (!req) in pxa25x_ep_alloc_request()
309 INIT_LIST_HEAD (&req->queue); in pxa25x_ep_alloc_request()
310 return &req->req; in pxa25x_ep_alloc_request()
320 struct pxa25x_request *req; in pxa25x_ep_free_request() local
322 req = container_of (_req, struct pxa25x_request, req); in pxa25x_ep_free_request()
323 WARN_ON(!list_empty (&req->queue)); in pxa25x_ep_free_request()
324 kfree(req); in pxa25x_ep_free_request()
332 static void done(struct pxa25x_ep *ep, struct pxa25x_request *req, int status) in done() argument
[all …]
Dgoku_udc.c269 struct goku_request *req; in goku_alloc_request() local
273 req = kzalloc(sizeof *req, gfp_flags); in goku_alloc_request()
274 if (!req) in goku_alloc_request()
277 INIT_LIST_HEAD(&req->queue); in goku_alloc_request()
278 return &req->req; in goku_alloc_request()
284 struct goku_request *req; in goku_free_request() local
289 req = container_of(_req, struct goku_request, req); in goku_free_request()
290 WARN_ON(!list_empty(&req->queue)); in goku_free_request()
291 kfree(req); in goku_free_request()
297 done(struct goku_ep *ep, struct goku_request *req, int status) in done() argument
[all …]
Dpxa27x_udc.c143 struct pxa27x_request *req; in queues_dbg_show() local
162 list_for_each_entry(req, &ep->queue, queue) { in queues_dbg_show()
164 &req->req, req->req.actual, in queues_dbg_show()
165 req->req.length, req->req.buf); in queues_dbg_show()
656 struct pxa27x_request *req; in pxa_ep_alloc_request() local
658 req = kzalloc(sizeof *req, gfp_flags); in pxa_ep_alloc_request()
659 if (!req) in pxa_ep_alloc_request()
662 INIT_LIST_HEAD(&req->queue); in pxa_ep_alloc_request()
663 req->in_use = 0; in pxa_ep_alloc_request()
664 req->udc_usb_ep = container_of(_ep, struct udc_usb_ep, usb_ep); in pxa_ep_alloc_request()
[all …]
/drivers/target/sbp/
Dsbp_target.c71 static int read_peer_guid(u64 *guid, const struct sbp_management_request *req) in read_peer_guid() argument
76 ret = sbp_run_transaction(req->card, TCODE_READ_QUADLET_REQUEST, in read_peer_guid()
77 req->node_addr, req->generation, req->speed, in read_peer_guid()
83 ret = sbp_run_transaction(req->card, TCODE_READ_QUADLET_REQUEST, in read_peer_guid()
84 req->node_addr, req->generation, req->speed, in read_peer_guid()
294 struct sbp_management_agent *agent, struct sbp_management_request *req, in sbp_management_request_login() argument
308 LOGIN_ORB_LUN(be32_to_cpu(req->orb.misc))); in sbp_management_request_login()
311 LOGIN_ORB_LUN(be32_to_cpu(req->orb.misc))); in sbp_management_request_login()
313 req->status.status = cpu_to_be32( in sbp_management_request_login()
319 ret = read_peer_guid(&guid, req); in sbp_management_request_login()
[all …]
/drivers/crypto/
Dpicoxcell_crypto.c94 struct crypto_async_request *req; member
100 void (*complete)(struct spacc_req *req);
180 static int spacc_ablk_submit(struct spacc_req *req);
321 static int spacc_aead_make_ddts(struct spacc_req *req, u8 *giv) in spacc_aead_make_ddts() argument
323 struct aead_request *areq = container_of(req->req, struct aead_request, in spacc_aead_make_ddts()
325 struct spacc_engine *engine = req->engine; in spacc_aead_make_ddts()
334 src_ddt = dma_pool_alloc(engine->req_pool, GFP_ATOMIC, &req->src_addr); in spacc_aead_make_ddts()
338 dst_ddt = dma_pool_alloc(engine->req_pool, GFP_ATOMIC, &req->dst_addr); in spacc_aead_make_ddts()
340 dma_pool_free(engine->req_pool, src_ddt, req->src_addr); in spacc_aead_make_ddts()
344 req->src_ddt = src_ddt; in spacc_aead_make_ddts()
[all …]
/drivers/crypto/nx/
Dnx-aes-gcm.c125 struct aead_request *req, in nx_gca() argument
133 if (req->assoclen > nx_ctx->ap->databytelen) in nx_gca()
136 if (req->assoclen <= AES_BLOCK_SIZE) { in nx_gca()
137 scatterwalk_start(&walk, req->assoc); in nx_gca()
138 scatterwalk_copychunks(out, &walk, req->assoclen, in nx_gca()
146 nx_sg = nx_walk_and_build(nx_sg, nx_ctx->ap->sglen, req->assoc, 0, in nx_gca()
147 req->assoclen); in nx_gca()
151 req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP); in nx_gca()
156 atomic64_add(req->assoclen, &(nx_ctx->stats->aes_bytes)); in nx_gca()
163 static int gcm_aes_nx_crypt(struct aead_request *req, int enc) in gcm_aes_nx_crypt() argument
[all …]
/drivers/scsi/device_handler/
Dscsi_dh_hp_sw.c115 struct request *req; in hp_sw_tur() local
119 req = blk_get_request(sdev->request_queue, WRITE, GFP_NOIO); in hp_sw_tur()
120 if (!req) in hp_sw_tur()
123 req->cmd_type = REQ_TYPE_BLOCK_PC; in hp_sw_tur()
124 req->cmd_flags |= REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT | in hp_sw_tur()
126 req->cmd_len = COMMAND_SIZE(TEST_UNIT_READY); in hp_sw_tur()
127 req->cmd[0] = TEST_UNIT_READY; in hp_sw_tur()
128 req->timeout = HP_SW_TIMEOUT; in hp_sw_tur()
129 req->sense = h->sense; in hp_sw_tur()
130 memset(req->sense, 0, SCSI_SENSE_BUFFERSIZE); in hp_sw_tur()
[all …]
/drivers/scsi/be2iscsi/
Dbe_mgmt.c174 struct be_cmd_reopen_session_req *req; in mgmt_reopen_session() local
189 req = embedded_payload(wrb); in mgmt_reopen_session()
191 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_reopen_session()
192 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_reopen_session()
197 req->reopen_type = reopen_type; in mgmt_reopen_session()
198 req->session_handle = sess_handle; in mgmt_reopen_session()
209 struct be_cmd_get_boot_target_req *req; in mgmt_get_boot_target() local
224 req = embedded_payload(wrb); in mgmt_get_boot_target()
226 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in mgmt_get_boot_target()
227 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI, in mgmt_get_boot_target()
[all …]

12345678910>>...23