Lines Matching refs:fib

42  *	fib_map_alloc		-	allocate the fib objects
75 * aac_fib_map_free - free the fib objects
106 struct fib *fibptr = NULL;
129 * fib area, the unmapped fib data and also the free list
134 struct fib *fibptr;
172 fibptr->size = sizeof(struct fib);
204 * Add the fib chain to the free list
215 * aac_fib_alloc_tag-allocate a fib using tags
216 * @dev: Adapter to allocate the fib for
219 * Allocate a fib from the adapter fib pool using tags
223 struct fib *aac_fib_alloc_tag(struct aac_dev *dev, struct scsi_cmnd *scmd)
225 struct fib *fibptr;
242 * aac_fib_alloc - allocate a fib
243 * @dev: Adapter to allocate the fib for
245 * Allocate a fib from the adapter fib pool. If the pool is empty we
249 struct fib *aac_fib_alloc(struct aac_dev *dev)
251 struct fib * fibptr;
265 fibptr->size = sizeof(struct fib);
279 * aac_fib_free - free a fib
280 * @fibptr: fib to free up
282 * Frees up a fib and places it on the appropriate queue
285 void aac_fib_free(struct fib *fibptr)
307 * aac_fib_init - initialise a fib
308 * @fibptr: The fib to initialize
310 * Set up the generic fib fields ready for use
313 void aac_fib_init(struct fib *fibptr)
326 * fib_dealloc - deallocate a fib
327 * @fibptr: fib to deallocate
333 static void fib_dealloc(struct fib * fibptr)
412 * @fibptr: Driver fib object to go with fib
421 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)
432 * Setup queue entry with a command, status and fib mapped
441 * Setup queue entry with command, status and fib mapped
467 * aac_fib_send - send a fib to the adapter
469 * @fibptr: The fib
470 * @size: Size of fib data area
483 int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
524 * Map the fib into 32bits by using the fib number
541 * Map the hw fib pointer as a 32bit value
578 dprintk((KERN_DEBUG " fib being sent=%p\n",fibptr));
707 int aac_hba_send(u8 command, struct fib *fibptr, fib_callback callback,
863 * aac_fib_adapter_complete - complete adapter issued fib
864 * @fibptr: fib to complete
865 * @size: size of fib
871 int aac_fib_adapter_complete(struct fib *fibptr, unsigned short size)
937 * aac_fib_complete - fib completion handler
943 int aac_fib_complete(struct fib *fibptr)
953 * Check for a fib which has already been completed or with a
1056 * @dev: Which adapter this fib is from
1059 * This routine handles a driver notify fib from the adapter and
1062 static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
1521 struct fib *fib = &aac->fibs[index];
1522 __le32 XferState = fib->hw_fib_va->header.XferState;
1530 || fib->flags & FIB_CONTEXT_FLAG_WAIT) {
1532 spin_lock_irqsave(&fib->event_lock, flagv);
1533 complete(&fib->event_wait);
1534 spin_unlock_irqrestore(&fib->event_lock, flagv);
1666 struct fib * fibctx = aac_fib_alloc(aac);
1733 * fib, and then set the event to wake up the
1742 struct fib * fib;
1770 fib = kzalloc(sizeof(struct fib), GFP_ATOMIC);
1771 if (fib && hw_fib) {
1774 fib->hw_fib_va = hw_fib;
1775 fib->dev = aac;
1776 aac_fib_init(fib);
1777 fib->type = FSAFS_NTC_FIB_CONTEXT;
1778 fib->size = sizeof (struct fib);
1779 fib->data = hw_fib->data;
1792 list_add_tail(&fib->fiblink, &fibctx->fib_list);
1801 kfree(fib);
1954 * @dev: Which adapter this fib is from
1957 * This routine handles a driver notify fib from the adapter and
1960 static void aac_handle_sa_aif(struct aac_dev *dev, struct fib *fibptr)
2030 struct fib **fib_pool,
2034 struct fib **fib_p;
2045 *(fib_p) = kmalloc(sizeof(struct fib), GFP_KERNEL);
2061 struct fib **fib_pool,
2062 struct fib *fib,
2069 struct fib **fib_p;
2072 struct fib *newfib;
2081 * fib, and then set the event to wake up the
2133 memcpy(newfib, fib, sizeof(struct fib));
2153 aac_fib_adapter_complete(fib, sizeof(u32));
2161 struct fib *fib;
2173 struct fib **fib_pool, **fib_p;
2183 fib = list_entry(entry, struct fib, fiblink);
2184 hw_fib = fib->hw_fib_va;
2187 aac_handle_sa_aif(dev, fib);
2188 aac_fib_adapter_complete(fib, (u16)sizeof(u32));
2197 memset(fib, 0, sizeof(struct fib));
2198 fib->type = FSAFS_NTC_FIB_CONTEXT;
2199 fib->size = sizeof(struct fib);
2200 fib->hw_fib_va = hw_fib;
2201 fib->data = hw_fib->data;
2202 fib->dev = dev;
2210 aac_handle_aif(dev, fib);
2212 aac_fib_adapter_complete(fib, (u16)sizeof(u32));
2223 aac_handle_aif(dev, fib);
2238 fib_pool = kmalloc_array(num, sizeof(struct fib *), GFP_KERNEL);
2243 * Fill up fib pointer pools with actual fibs
2255 fib, hw_fib, num);
2271 kfree(fib);
2289 struct fib *fibptr;
2388 struct fib *fibptr;