Home
last modified time | relevance | path

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

123456789

/linux-2.4.37.9/drivers/ieee1394/
Draw1394.c102 static void queue_complete_cb(struct pending_request *req);
106 struct pending_request *req; in __alloc_pending_request() local
108 req = (struct pending_request *)kmalloc(sizeof(struct pending_request), in __alloc_pending_request()
110 if (req != NULL) { in __alloc_pending_request()
111 memset(req, 0, sizeof(struct pending_request)); in __alloc_pending_request()
112 INIT_LIST_HEAD(&req->list); in __alloc_pending_request()
115 return req; in __alloc_pending_request()
123 static void free_pending_request(struct pending_request *req) in free_pending_request() argument
125 if (req->ibs) { in free_pending_request()
126 if (atomic_dec_and_test(&req->ibs->refcount)) { in free_pending_request()
[all …]
/linux-2.4.37.9/fs/nfs/
Dpagelist.c75 struct nfs_page *req; in nfs_create_request() local
85 req = nfs_page_alloc(); in nfs_create_request()
86 if (req != NULL) in nfs_create_request()
105 req->wb_page = page; in nfs_create_request()
107 req->wb_offset = offset; in nfs_create_request()
108 req->wb_bytes = count; in nfs_create_request()
111 req->wb_cred = get_rpccred(cred); in nfs_create_request()
112 req->wb_inode = inode; in nfs_create_request()
113 req->wb_count = 1; in nfs_create_request()
115 return req; in nfs_create_request()
[all …]
Dwrite.c199 struct nfs_page *req; in nfs_writepage_async() local
203 req = nfs_update_request(file, inode, page, offset, count); in nfs_writepage_async()
204 status = (IS_ERR(req)) ? PTR_ERR(req) : 0; in nfs_writepage_async()
207 if (!req->wb_cred) in nfs_writepage_async()
208 req->wb_cred = get_rpccred(NFS_I(inode)->mm_cred); in nfs_writepage_async()
209 nfs_unlock_request(req); in nfs_writepage_async()
281 region_locked(struct inode *inode, struct nfs_page *req) in region_locked() argument
290 rqstart = page_offset(req->wb_page) + req->wb_offset; in region_locked()
291 rqend = rqstart + req->wb_bytes; in region_locked()
310 nfs_inode_add_request(struct inode *inode, struct nfs_page *req) in nfs_inode_add_request() argument
[all …]
/linux-2.4.37.9/drivers/macintosh/
Dvia-pmu68k.c110 static int pmu_send_request(struct adb_request *req, int sync);
114 static int pmu_queue_request(struct adb_request *req);
119 static void pmu_done(struct adb_request *req);
198 volatile struct adb_request req; in pmu_init() local
203 pmu_request((struct adb_request *) &req, NULL, 2, PMU_SET_INTR_MASK, PMU_INT_ADB); in pmu_init()
205 while (!req.complete) { in pmu_init()
230 pmu_request((struct adb_request *) &req, NULL, 2, PMU_SET_INTR_MASK, in pmu_init()
233 while (!req.complete) { in pmu_init()
278 pmu_send_request(struct adb_request *req, int sync) in pmu_send_request() argument
284 req->complete = 1; in pmu_send_request()
[all …]
Dadb-iop.c67 static void adb_iop_end_req(struct adb_request *req, int state) in adb_iop_end_req() argument
69 req->complete = 1; in adb_iop_end_req()
70 current_req = req->next; in adb_iop_end_req()
71 if (req->done) (*req->done)(req); in adb_iop_end_req()
83 struct adb_request *req; in adb_iop_complete() local
89 req = current_req; in adb_iop_complete()
90 if ((adb_iop_state == sending) && req && req->reply_expected) { in adb_iop_complete()
107 struct adb_request *req; in adb_iop_listen() local
116 req = current_req; in adb_iop_listen()
119 printk("adb_iop_listen %p: rcvd packet, %d bytes: %02X %02X", req, in adb_iop_listen()
[all …]
Dvia-pmu.c176 static int pmu_send_request(struct adb_request *req, int sync);
182 static int pmu_queue_request(struct adb_request *req);
223 int pmu_polled_request(struct adb_request *req);
504 struct adb_request req; in init_pmu() local
509 pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, pmu_intr_mask); in init_pmu()
511 while (!req.complete) { in init_pmu()
536 pmu_request(&req, NULL, 2, PMU_SYSTEM_READY, 2); in init_pmu()
537 while (!req.complete) in init_pmu()
542 pmu_request(&req, NULL, 1, PMU_GET_VERSION); in init_pmu()
543 while (!req.complete) in init_pmu()
[all …]
Dadb.c106 static void printADBreply(struct adb_request *req)
110 printk("adb reply (%d)", req->reply_len);
111 for(i = 0; i < req->reply_len; i++)
112 printk(" %x", req->reply[i]);
133 struct adb_request req; in adb_scan_bus() local
138 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in adb_scan_bus()
140 if (req.reply_len > 1) in adb_scan_bus()
157 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in adb_scan_bus()
164 adb_request(&req, NULL, ADBREQ_SYNC, 3, in adb_scan_bus()
172 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in adb_scan_bus()
[all …]
Dvia-cuda.c101 static int cuda_send_request(struct adb_request *req, int sync);
111 static int cuda_write(struct adb_request *req);
113 int cuda_request(struct adb_request *req,
133 struct adb_request req; in find_via_cuda() local
182 cuda_request(&req, NULL, 3, CUDA_PACKET, CUDA_AUTOPOLL, 1); in find_via_cuda()
183 while (!req.complete) in find_via_cuda()
301 cuda_send_request(struct adb_request *req, int sync) in cuda_send_request() argument
306 req->complete = 1; in cuda_send_request()
310 req->reply_expected = 1; in cuda_send_request()
312 i = cuda_write(req); in cuda_send_request()
[all …]
Dvia-macii.c85 static int macii_send_request(struct adb_request *req, int sync);
86 static int macii_write(struct adb_request *req);
188 static struct adb_request req; in macii_queue_poll() local
196 adb_request(&req, NULL, ADBREQ_REPLY|ADBREQ_NOSEND, 1, in macii_queue_poll()
202 req.next = current_req; in macii_queue_poll()
203 current_req = &req; in macii_queue_poll()
242 static int macii_send_request(struct adb_request *req, int sync) in macii_send_request() argument
246 i = macii_write(req); in macii_send_request()
250 while (!req->complete) macii_poll(); in macii_send_request()
256 static int macii_write(struct adb_request *req) in macii_write() argument
[all …]
Dvia-maciisi.c83 static int maciisi_send_request(struct adb_request* req, int sync);
84 static void maciisi_sync(struct adb_request *req);
85 static int maciisi_write(struct adb_request* req);
230 maciisi_send_request(struct adb_request* req, int sync) in maciisi_send_request() argument
239 req->complete = 1; in maciisi_send_request()
246 for (i = 0; i < req->nbytes; i++) { in maciisi_send_request()
247 printk(" %.2x", req->data[i]); in maciisi_send_request()
253 req->reply_expected = 1; in maciisi_send_request()
255 i = maciisi_write(req); in maciisi_send_request()
272 maciisi_sync(req); in maciisi_send_request()
[all …]
Dmac_keyb.c676 static void leds_done(struct adb_request *req) in leds_done() argument
752 struct adb_request req; in mackeyb_probe() local
766 adb_request(&req, NULL, ADBREQ_SYNC, 3, in mackeyb_probe()
832 adb_request(&req, NULL, ADBREQ_SYNC | ADBREQ_REPLY, 1, in mackeyb_probe()
835 if ((req.reply_len) && in mackeyb_probe()
836 (req.reply[1] == 0x9a) && ((req.reply[2] == 0x21) in mackeyb_probe()
837 || (req.reply[2] == 0x20))) in mackeyb_probe()
839 else if ((req.reply_len >= 4) && in mackeyb_probe()
840 (req.reply[1] == 0x74) && (req.reply[2] == 0x70) && in mackeyb_probe()
841 (req.reply[3] == 0x61) && (req.reply[4] == 0x64)) in mackeyb_probe()
[all …]
Dmacio-adb.c66 static int macio_send_request(struct adb_request *req, int sync);
165 static int macio_send_request(struct adb_request *req, int sync) in macio_send_request() argument
170 if (req->data[0] != ADB_PACKET) in macio_send_request()
173 for (i = 0; i < req->nbytes - 1; ++i) in macio_send_request()
174 req->data[i] = req->data[i+1]; in macio_send_request()
175 --req->nbytes; in macio_send_request()
177 req->next = 0; in macio_send_request()
178 req->sent = 0; in macio_send_request()
179 req->complete = 0; in macio_send_request()
180 req->reply_len = 0; in macio_send_request()
[all …]
/linux-2.4.37.9/fs/intermezzo/
Dpsdev.c103 struct upc_req *req; in izo_psdev_setpid() local
106 req = list_entry(lh, struct upc_req, rq_chain); in izo_psdev_setpid()
108 wake_up(&req->rq_sleep); in izo_psdev_setpid()
184 struct upc_req *req = NULL; in presto_psdev_write() local
213 req = tmp; in presto_psdev_write()
215 list_del_init(&req->rq_chain); in presto_psdev_write()
222 if (!req) { in presto_psdev_write()
229 if (req->rq_bufsize < count) { in presto_psdev_write()
232 req->rq_bufsize, count, hdr.opcode, hdr.unique); in presto_psdev_write()
233 count = req->rq_bufsize; /* don't have more space! */ in presto_psdev_write()
[all …]
/linux-2.4.37.9/drivers/media/video/
Dsaa5249.c368 vtx_pagereq_t req; in do_saa5249_ioctl() local
370 if(copy_from_user(&req, (void*)arg, sizeof(vtx_pagereq_t))) in do_saa5249_ioctl()
372 if (req.pgbuf < 0 || req.pgbuf >= NUM_DAUS) in do_saa5249_ioctl()
374 memset(t->vdau[req.pgbuf].pgbuf, ' ', sizeof(t->vdau[0].pgbuf)); in do_saa5249_ioctl()
375 t->vdau[req.pgbuf].clrfound = TRUE; in do_saa5249_ioctl()
381 vtx_pagereq_t req; in do_saa5249_ioctl() local
383 if(copy_from_user(&req, (void*)arg, sizeof(vtx_pagereq_t))) in do_saa5249_ioctl()
385 if (req.pgbuf < 0 || req.pgbuf >= NUM_DAUS) in do_saa5249_ioctl()
387 t->vdau[req.pgbuf].clrfound = TRUE; in do_saa5249_ioctl()
393 vtx_pagereq_t req; in do_saa5249_ioctl() local
[all …]
/linux-2.4.37.9/drivers/block/
Dll_rw_blk.c312 static inline int ll_new_segment(request_queue_t *q, struct request *req, int max_segments) in ll_new_segment() argument
314 if (req->nr_segments < max_segments) { in ll_new_segment()
315 req->nr_segments++; in ll_new_segment()
321 static int ll_back_merge_fn(request_queue_t *q, struct request *req, in ll_back_merge_fn() argument
324 if (__blk_seg_merge_ok(req->bhtail, bh)) in ll_back_merge_fn()
327 return ll_new_segment(q, req, max_segments); in ll_back_merge_fn()
330 static int ll_front_merge_fn(request_queue_t *q, struct request *req, in ll_front_merge_fn() argument
333 if (__blk_seg_merge_ok(bh, req->bh)) in ll_front_merge_fn()
336 return ll_new_segment(q, req, max_segments); in ll_front_merge_fn()
339 static int ll_merge_requests_fn(request_queue_t *q, struct request *req, in ll_merge_requests_fn() argument
[all …]
Dnbd.c78 nbd_end_request(struct request *req) in nbd_end_request() argument
83 int uptodate = (req->errors == 0) ? 1 : 0; in nbd_end_request()
89 while((bh = req->bh) != NULL) { in nbd_end_request()
92 req->bh = bh->b_reqnext; in nbd_end_request()
96 blkdev_release_request(req); in nbd_end_request()
190 void nbd_send_req(struct nbd_device *lo, struct request *req) in nbd_send_req() argument
194 unsigned long size = req->nr_sectors << 9; in nbd_send_req()
199 request.type = htonl(req->cmd); in nbd_send_req()
200 request.from = cpu_to_be64( (u64) req->sector << 9); in nbd_send_req()
202 memcpy(request.handle, &req, sizeof(req)); in nbd_send_req()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dscsi_merge.c85 static int dump_stats(struct request *req, in dump_stats() argument
96 printk("nr_segments is %x\n", req->nr_segments); in dump_stats()
99 for (bh = req->bh; bh->b_reqnext != NULL; bh = bh->b_reqnext) in dump_stats()
115 #define SANITY_CHECK(req, _CLUSTER, _DMA) \ argument
116 if( req->nr_segments != __count_segments(req, _CLUSTER, _DMA, NULL) ) \
119 dump_stats(req, _CLUSTER, _DMA, __count_segments(req, _CLUSTER, _DMA, NULL)); \
122 #define SANITY_CHECK(req, _CLUSTER, _DMA) argument
186 __inline static int __count_segments(struct request *req, in __count_segments() argument
203 bh = req->bh; in __count_segments()
215 for (bh = req->bh, bhnext = bh->b_reqnext; in __count_segments()
[all …]
/linux-2.4.37.9/net/ipv4/
Dsyncookies.c96 struct open_request *req, in get_cookie_sock() argument
102 child = tp->af_specific->syn_recv_sock(sk, skb, req, dst); in get_cookie_sock()
104 tcp_acceptq_queue(sk, req, child); in get_cookie_sock()
106 tcp_openreq_free(req); in get_cookie_sock()
116 struct open_request *req; in cookie_v4_check() local
132 req = tcp_openreq_alloc(); in cookie_v4_check()
134 if (!req) in cookie_v4_check()
137 req->rcv_isn = htonl(skb->h.th->seq) - 1; in cookie_v4_check()
138 req->snt_isn = cookie; in cookie_v4_check()
139 req->mss = mss; in cookie_v4_check()
[all …]
/linux-2.4.37.9/include/linux/
Dnfs_page.h42 #define NFS_WBACK_BUSY(req) (test_bit(PG_BUSY,&(req)->wb_flags)) argument
47 extern void nfs_clear_request(struct nfs_page *req);
48 extern void nfs_release_request(struct nfs_page *req);
67 nfs_lock_request_dontget(struct nfs_page *req) in nfs_lock_request_dontget() argument
69 if (test_and_set_bit(PG_BUSY, &req->wb_flags)) in nfs_lock_request_dontget()
78 nfs_lock_request(struct nfs_page *req) in nfs_lock_request() argument
80 if (test_and_set_bit(PG_BUSY, &req->wb_flags)) in nfs_lock_request()
82 req->wb_count++; in nfs_lock_request()
87 nfs_unlock_request(struct nfs_page *req) in nfs_unlock_request() argument
89 if (!NFS_WBACK_BUSY(req)) { in nfs_unlock_request()
[all …]
/linux-2.4.37.9/drivers/usb/gadget/
Dnet2280.c374 struct net2280_request *req; in net2280_alloc_request() local
380 req = kmalloc (sizeof *req, gfp_flags); in net2280_alloc_request()
381 if (!req) in net2280_alloc_request()
384 memset (req, 0, sizeof *req); in net2280_alloc_request()
385 req->req.dma = DMA_ADDR_INVALID; in net2280_alloc_request()
386 INIT_LIST_HEAD (&req->queue); in net2280_alloc_request()
393 &req->td_dma); in net2280_alloc_request()
395 kfree (req); in net2280_alloc_request()
401 req->td = td; in net2280_alloc_request()
403 return &req->req; in net2280_alloc_request()
[all …]
Dgoku_udc.c273 struct goku_request *req; in goku_alloc_request() local
277 req = kmalloc(sizeof *req, gfp_flags); in goku_alloc_request()
278 if (!req) in goku_alloc_request()
281 memset(req, 0, sizeof *req); in goku_alloc_request()
282 req->req.dma = DMA_ADDR_INVALID; in goku_alloc_request()
283 INIT_LIST_HEAD(&req->queue); in goku_alloc_request()
284 return &req->req; in goku_alloc_request()
290 struct goku_request *req; in goku_free_request() local
295 req = container_of(_req, struct goku_request, req); in goku_free_request()
296 WARN_ON(!list_empty(&req->queue)); in goku_free_request()
[all …]
Dzero.c123 struct usb_request *req; /* for control responses */ member
489 struct usb_request *req; in alloc_ep_req() local
491 req = usb_ep_alloc_request (ep, GFP_ATOMIC); in alloc_ep_req()
492 if (req) { in alloc_ep_req()
493 req->length = length; in alloc_ep_req()
494 req->buf = usb_ep_alloc_buffer (ep, length, in alloc_ep_req()
495 &req->dma, GFP_ATOMIC); in alloc_ep_req()
496 if (!req->buf) { in alloc_ep_req()
497 usb_ep_free_request (ep, req); in alloc_ep_req()
498 req = NULL; in alloc_ep_req()
[all …]
/linux-2.4.37.9/fs/lockd/
Dclntproc.c48 nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs() argument
50 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs()
57 lock->oh.data = req->a_owner; in nlmclnt_setlockargs()
58 lock->oh.len = sprintf(req->a_owner, "%d@%s", in nlmclnt_setlockargs()
237 nlmclnt_call(struct nlm_rqst *req, u32 proc) in nlmclnt_call() argument
239 struct nlm_host *host = req->a_host; in nlmclnt_call()
241 struct nlm_args *argp = &req->a_args; in nlmclnt_call()
242 struct nlm_res *resp = &req->a_res; in nlmclnt_call()
320 nlmsvc_async_call(struct nlm_rqst *req, u32 proc, rpc_action callback) in nlmsvc_async_call() argument
322 struct nlm_host *host = req->a_host; in nlmsvc_async_call()
[all …]
/linux-2.4.37.9/arch/ppc/platforms/
Dpmac_time.c85 struct adb_request req; in pmac_get_rtc_time() local
93 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_GET_TIME) < 0) in pmac_get_rtc_time()
95 while (!req.complete) in pmac_get_rtc_time()
97 if (req.reply_len != 7) in pmac_get_rtc_time()
99 req.reply_len); in pmac_get_rtc_time()
100 now = (req.reply[3] << 24) + (req.reply[4] << 16) in pmac_get_rtc_time()
101 + (req.reply[5] << 8) + req.reply[6]; in pmac_get_rtc_time()
106 if (pmu_request(&req, NULL, 1, PMU_READ_RTC) < 0) in pmac_get_rtc_time()
108 while (!req.complete) in pmac_get_rtc_time()
110 if (req.reply_len != 4) in pmac_get_rtc_time()
[all …]
/linux-2.4.37.9/fs/coda/
Dpsdev.c106 struct upc_req *req = NULL; in coda_psdev_write() local
171 req = tmp; in coda_psdev_write()
172 list_del(&req->uc_chain); in coda_psdev_write()
178 if (!req) { in coda_psdev_write()
188 if (req->uc_outSize < nbytes) { in coda_psdev_write()
190 req->uc_outSize, (long)nbytes, hdr.opcode, hdr.unique); in coda_psdev_write()
191 nbytes = req->uc_outSize; /* don't have more space! */ in coda_psdev_write()
193 if (copy_from_user(req->uc_data, buf, nbytes)) { in coda_psdev_write()
194 req->uc_flags |= REQ_ABORT; in coda_psdev_write()
195 wake_up(&req->uc_sleep); in coda_psdev_write()
[all …]

123456789