• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/aacraid/

Lines Matching refs:fib

53  *	fib_map_alloc		-	allocate the fib objects
74 * aac_fib_map_free - free the fib objects
91 * fib area, the unmapped fib data and also the free list
96 struct fib *fibptr;
130 * Add the fib chain to the free list
141 * aac_fib_alloc - allocate a fib
142 * @dev: Adapter to allocate the fib for
144 * Allocate a fib from the adapter fib pool. If the pool is empty we
148 struct fib *aac_fib_alloc(struct aac_dev *dev)
150 struct fib * fibptr;
164 fibptr->size = sizeof(struct fib);
177 * aac_fib_free - free a fib
178 * @fibptr: fib to free up
180 * Frees up a fib and places it on the appropriate queue
183 void aac_fib_free(struct fib *fibptr)
201 * aac_fib_init - initialise a fib
202 * @fibptr: The fib to initialize
204 * Set up the generic fib fields ready for use
207 void aac_fib_init(struct fib *fibptr)
220 * fib_deallocate - deallocate a fib
221 * @fibptr: fib to deallocate
227 static void fib_dealloc(struct fib * fibptr)
303 * @priority: Priority of fib
304 * @fib: Fib to associate with the queue entry
306 * @fibptr: Driver fib object to go with fib
315 int aac_queue_get(struct aac_dev * dev, u32 * index, u32 qid, struct hw_fib * hw_fib, int wait, struct fib * fibptr, unsigned long *nonotify)
327 * Setup queue entry with a command, status and fib mapped
337 * Setup queue entry with command, status and fib mapped
363 * aac_fib_send - send a fib to the adapter
365 * @fibptr: The fib
366 * @size: Size of fib data area
379 int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
414 * Map the fib into 32bits by using the fib number
424 * Map the hw fib pointer as a 32bit value
462 dprintk((KERN_DEBUG " fib being sent=%p\n",fibptr));
610 * aac_fib_adapter_complete - complete adapter issued fib
611 * @fibptr: fib to complete
612 * @size: size of fib
618 int aac_fib_adapter_complete(struct fib *fibptr, unsigned short size)
676 * aac_fib_complete - fib completion handler
677 * @fib: FIB to complete
682 int aac_fib_complete(struct fib *fibptr)
687 * Check for a fib which has already been completed
760 * @dev: Which adapter this fib is from
763 * This routine handles a driver notify fib from the adapter and
768 static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
1059 struct fib *fib = &aac->fibs[index];
1060 if (!(fib->hw_fib_va->header.XferState & cpu_to_le32(NoResponseExpected | Async)) &&
1061 (fib->hw_fib_va->header.XferState & cpu_to_le32(ResponseExpected))) {
1063 spin_lock_irqsave(&fib->event_lock, flagv);
1064 up(&fib->event_wait);
1065 spin_unlock_irqrestore(&fib->event_lock, flagv);
1190 * fib, and then set the event to wake up the
1199 struct fib * fib;
1227 fib = kzalloc(sizeof(struct fib), GFP_ATOMIC);
1228 if (fib && hw_fib) {
1231 fib->hw_fib_va = hw_fib;
1232 fib->dev = aac;
1233 aac_fib_init(fib);
1234 fib->type = FSAFS_NTC_FIB_CONTEXT;
1235 fib->size = sizeof (struct fib);
1236 fib->data = hw_fib->data;
1249 list_add_tail(&fib->fiblink, &fibctx->fib_list);
1258 kfree(fib);
1299 struct fib *fib, *newfib;
1330 fib = list_entry(entry, struct fib, fiblink);
1337 hw_fib = fib->hw_fib_va;
1338 memset(fib, 0, sizeof(struct fib));
1339 fib->type = FSAFS_NTC_FIB_CONTEXT;
1340 fib->size = sizeof( struct fib );
1341 fib->hw_fib_va = hw_fib;
1342 fib->data = hw_fib->data;
1343 fib->dev = dev;
1350 aac_handle_aif(dev, fib);
1352 aac_fib_adapter_complete(fib, (u16)sizeof(u32));
1362 struct fib ** fib_pool, ** fib_p;
1369 aac_handle_aif(dev, fib);
1393 && ((fib_pool = kmalloc(sizeof(struct fib *) * num, GFP_KERNEL)))) {
1401 if (!(*(fib_p++) = kmalloc(sizeof(struct fib), GFP_KERNEL))) {
1421 * fib, and then set the event to wake up the
1467 memcpy(newfib, fib, sizeof(struct fib));
1489 aac_fib_adapter_complete(fib, sizeof(u32));
1503 kfree(fib);