Lines Matching refs:fib
100 struct fib *fibptr = NULL; in aac_fib_vector_assign()
128 struct fib *fibptr; in aac_fib_setup()
165 fibptr->size = sizeof(struct fib); in aac_fib_setup()
205 struct fib *aac_fib_alloc_tag(struct aac_dev *dev, struct scsi_cmnd *scmd) in aac_fib_alloc_tag()
207 struct fib *fibptr; in aac_fib_alloc_tag()
230 struct fib *aac_fib_alloc(struct aac_dev *dev) in aac_fib_alloc()
232 struct fib * fibptr; in aac_fib_alloc()
246 fibptr->size = sizeof(struct fib); in aac_fib_alloc()
266 void aac_fib_free(struct fib *fibptr) in aac_fib_free()
293 void aac_fib_init(struct fib *fibptr) in aac_fib_init()
313 static void fib_dealloc(struct fib * fibptr) in fib_dealloc()
401 …_dev * dev, u32 * index, u32 qid, struct hw_fib * hw_fib, int wait, struct fib * fibptr, unsigned … in aac_queue_get()
463 int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size, in aac_fib_send()
755 int aac_fib_adapter_complete(struct fib *fibptr, unsigned short size) in aac_fib_adapter_complete()
826 int aac_fib_complete(struct fib *fibptr) in aac_fib_complete()
940 static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr) in aac_handle_aif()
1396 struct fib *fib = &aac->fibs[index]; in _aac_reset_adapter() local
1397 if (!(fib->hw_fib_va->header.XferState & cpu_to_le32(NoResponseExpected | Async)) && in _aac_reset_adapter()
1398 (fib->hw_fib_va->header.XferState & cpu_to_le32(ResponseExpected))) { in _aac_reset_adapter()
1400 spin_lock_irqsave(&fib->event_lock, flagv); in _aac_reset_adapter()
1401 up(&fib->event_wait); in _aac_reset_adapter()
1402 spin_unlock_irqrestore(&fib->event_lock, flagv); in _aac_reset_adapter()
1555 struct fib * fibctx = aac_fib_alloc(aac); in aac_reset_adapter()
1632 struct fib * fib; in aac_check_health() local
1660 fib = kzalloc(sizeof(struct fib), GFP_ATOMIC); in aac_check_health()
1661 if (fib && hw_fib) { in aac_check_health()
1664 fib->hw_fib_va = hw_fib; in aac_check_health()
1665 fib->dev = aac; in aac_check_health()
1666 aac_fib_init(fib); in aac_check_health()
1667 fib->type = FSAFS_NTC_FIB_CONTEXT; in aac_check_health()
1668 fib->size = sizeof (struct fib); in aac_check_health()
1669 fib->data = hw_fib->data; in aac_check_health()
1682 list_add_tail(&fib->fiblink, &fibctx->fib_list); in aac_check_health()
1691 kfree(fib); in aac_check_health()
1738 struct fib *fib, *newfib; in aac_command_thread() local
1771 fib = list_entry(entry, struct fib, fiblink); in aac_command_thread()
1778 hw_fib = fib->hw_fib_va; in aac_command_thread()
1779 memset(fib, 0, sizeof(struct fib)); in aac_command_thread()
1780 fib->type = FSAFS_NTC_FIB_CONTEXT; in aac_command_thread()
1781 fib->size = sizeof(struct fib); in aac_command_thread()
1782 fib->hw_fib_va = hw_fib; in aac_command_thread()
1783 fib->data = hw_fib->data; in aac_command_thread()
1784 fib->dev = dev; in aac_command_thread()
1791 aac_handle_aif(dev, fib); in aac_command_thread()
1793 aac_fib_adapter_complete(fib, (u16)sizeof(u32)); in aac_command_thread()
1802 struct fib ** fib_pool, ** fib_p; in aac_command_thread()
1809 aac_handle_aif(dev, fib); in aac_command_thread()
1833 && ((fib_pool = kmalloc(sizeof(struct fib *) * num, GFP_KERNEL)))) { in aac_command_thread()
1841 if (!(*(fib_p++) = kmalloc(sizeof(struct fib), GFP_KERNEL))) { in aac_command_thread()
1907 memcpy(newfib, fib, sizeof(struct fib)); in aac_command_thread()
1929 aac_fib_adapter_complete(fib, sizeof(u32)); in aac_command_thread()
1943 kfree(fib); in aac_command_thread()
1984 struct fib *fibptr; in aac_command_thread()