• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/aacraid/

Lines Matching refs:fib

53  *	fib_map_alloc		-	allocate the fib objects
74 * aac_fib_map_free - free the fib objects
95 * fib area, the unmapped fib data and also the free list
100 struct fib *fibptr;
136 * Add the fib chain to the free list
147 * aac_fib_alloc - allocate a fib
148 * @dev: Adapter to allocate the fib for
150 * Allocate a fib from the adapter fib pool. If the pool is empty we
154 struct fib *aac_fib_alloc(struct aac_dev *dev)
156 struct fib * fibptr;
170 fibptr->size = sizeof(struct fib);
184 * aac_fib_free - free a fib
185 * @fibptr: fib to free up
187 * Frees up a fib and places it on the appropriate queue
190 void aac_fib_free(struct fib *fibptr)
215 * aac_fib_init - initialise a fib
216 * @fibptr: The fib to initialize
218 * Set up the generic fib fields ready for use
221 void aac_fib_init(struct fib *fibptr)
234 * fib_deallocate - deallocate a fib
235 * @fibptr: fib to deallocate
241 static void fib_dealloc(struct fib * fibptr)
318 * @priority: Priority of fib
319 * @fib: Fib to associate with the queue entry
321 * @fibptr: Driver fib object to go with fib
330 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)
341 * Setup queue entry with a command, status and fib mapped
350 * Setup queue entry with command, status and fib mapped
376 * aac_fib_send - send a fib to the adapter
378 * @fibptr: The fib
379 * @size: Size of fib data area
392 int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
430 * Map the fib into 32bits by using the fib number
440 * Map the hw fib pointer as a 32bit value
478 dprintk((KERN_DEBUG " fib being sent=%p\n",fibptr));
651 * aac_fib_adapter_complete - complete adapter issued fib
652 * @fibptr: fib to complete
653 * @size: size of fib
659 int aac_fib_adapter_complete(struct fib *fibptr, unsigned short size)
716 * aac_fib_complete - fib completion handler
717 * @fib: FIB to complete
722 int aac_fib_complete(struct fib *fibptr)
728 * Check for a fib which has already been completed
808 * @dev: Which adapter this fib is from
811 * This routine handles a driver notify fib from the adapter and
816 static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
1233 struct fib *fib = &aac->fibs[index];
1234 if (!(fib->hw_fib_va->header.XferState & cpu_to_le32(NoResponseExpected | Async)) &&
1235 (fib->hw_fib_va->header.XferState & cpu_to_le32(ResponseExpected))) {
1237 spin_lock_irqsave(&fib->event_lock, flagv);
1238 up(&fib->event_wait);
1239 spin_unlock_irqrestore(&fib->event_lock, flagv);
1391 struct fib * fibctx = aac_fib_alloc(aac);
1459 * fib, and then set the event to wake up the
1468 struct fib * fib;
1496 fib = kzalloc(sizeof(struct fib), GFP_ATOMIC);
1497 if (fib && hw_fib) {
1500 fib->hw_fib_va = hw_fib;
1501 fib->dev = aac;
1502 aac_fib_init(fib);
1503 fib->type = FSAFS_NTC_FIB_CONTEXT;
1504 fib->size = sizeof (struct fib);
1505 fib->data = hw_fib->data;
1518 list_add_tail(&fib->fiblink, &fibctx->fib_list);
1527 kfree(fib);
1574 struct fib *fib, *newfib;
1607 fib = list_entry(entry, struct fib, fiblink);
1614 hw_fib = fib->hw_fib_va;
1615 memset(fib, 0, sizeof(struct fib));
1616 fib->type = FSAFS_NTC_FIB_CONTEXT;
1617 fib->size = sizeof(struct fib);
1618 fib->hw_fib_va = hw_fib;
1619 fib->data = hw_fib->data;
1620 fib->dev = dev;
1627 aac_handle_aif(dev, fib);
1629 aac_fib_adapter_complete(fib, (u16)sizeof(u32));
1638 struct fib ** fib_pool, ** fib_p;
1645 aac_handle_aif(dev, fib);
1669 && ((fib_pool = kmalloc(sizeof(struct fib *) * num, GFP_KERNEL)))) {
1677 if (!(*(fib_p++) = kmalloc(sizeof(struct fib), GFP_KERNEL))) {
1697 * fib, and then set the event to wake up the
1743 memcpy(newfib, fib, sizeof(struct fib));
1765 aac_fib_adapter_complete(fib, sizeof(u32));
1779 kfree(fib);
1820 struct fib *fibptr;