• Home
  • Raw
  • Download

Lines Matching refs:hw_fib

129 	struct hw_fib *hw_fib;  in aac_fib_setup()  local
143 dev->hw_fib_va = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + in aac_fib_setup()
151 dev->hw_fib_va = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + in aac_fib_setup()
155 hw_fib = dev->hw_fib_va; in aac_fib_setup()
167 fibptr->hw_fib_va = hw_fib; in aac_fib_setup()
172 hw_fib->header.XferState = cpu_to_le32(0xffffffff); in aac_fib_setup()
173 hw_fib->header.SenderSize = cpu_to_le16(dev->max_fib_size); in aac_fib_setup()
175 hw_fib = (struct hw_fib *)((unsigned char *)hw_fib + in aac_fib_setup()
295 struct hw_fib *hw_fib = fibptr->hw_fib_va; in aac_fib_init() local
297 memset(&hw_fib->header, 0, sizeof(struct aac_fibhdr)); in aac_fib_init()
298 hw_fib->header.StructType = FIB_MAGIC; in aac_fib_init()
299 hw_fib->header.Size = cpu_to_le16(fibptr->dev->max_fib_size); in aac_fib_init()
300hw_fib->header.XferState = cpu_to_le32(HostOwned | FibInitialized | FibEmpty | FastResponseCapable… in aac_fib_init()
301 hw_fib->header.u.ReceiverFibAddress = cpu_to_le32(fibptr->hw_fib_pa); in aac_fib_init()
302 hw_fib->header.SenderSize = cpu_to_le16(fibptr->dev->max_fib_size); in aac_fib_init()
315 struct hw_fib *hw_fib = fibptr->hw_fib_va; in fib_dealloc() local
316 hw_fib->header.XferState = 0; in fib_dealloc()
401 int aac_queue_get(struct aac_dev * dev, u32 * index, u32 qid, struct hw_fib * hw_fib, int wait, str… in aac_queue_get() argument
414 entry->size = cpu_to_le32(le16_to_cpu(hw_fib->header.Size)); in aac_queue_get()
423 entry->size = cpu_to_le32(le16_to_cpu(hw_fib->header.Size)); in aac_queue_get()
424 entry->addr = hw_fib->header.SenderFibAddress; in aac_queue_get()
426hw_fib->header.u.ReceiverFibAddress = hw_fib->header.SenderFibAddress; /* Let the adapter now whe… in aac_queue_get()
468 struct hw_fib * hw_fib = fibptr->hw_fib_va; in aac_fib_send() local
474 if (!(hw_fib->header.XferState & cpu_to_le32(HostOwned))) in aac_fib_send()
491 hw_fib->header.XferState |= cpu_to_le32(Async | ResponseExpected); in aac_fib_send()
494 hw_fib->header.XferState |= cpu_to_le32(NoResponseExpected); in aac_fib_send()
497 hw_fib->header.XferState |= cpu_to_le32(ResponseExpected); in aac_fib_send()
504 hw_fib->header.SenderFibAddress = cpu_to_le32(((u32)(fibptr - dev->fibs)) << 2); in aac_fib_send()
505 hw_fib->header.Handle = (u32)(fibptr - dev->fibs) + 1; in aac_fib_send()
513 hw_fib->header.Command = cpu_to_le16(command); in aac_fib_send()
514 hw_fib->header.XferState |= cpu_to_le32(SentFromHost); in aac_fib_send()
518 hw_fib->header.Size = cpu_to_le16(sizeof(struct aac_fibhdr) + size); in aac_fib_send()
519 if (le16_to_cpu(hw_fib->header.Size) > le16_to_cpu(hw_fib->header.SenderSize)) { in aac_fib_send()
526 hw_fib->header.XferState |= cpu_to_le32(NormalPriority); in aac_fib_send()
543 dprintk((KERN_DEBUG " Command = %d.\n", le32_to_cpu(hw_fib->header.Command))); in aac_fib_send()
545 dprintk((KERN_DEBUG " XferState = %x.\n", le32_to_cpu(hw_fib->header.XferState))); in aac_fib_send()
757 struct hw_fib * hw_fib = fibptr->hw_fib_va; in aac_fib_adapter_complete() local
765 kfree(hw_fib); in aac_fib_adapter_complete()
769 if (hw_fib->header.XferState == 0) { in aac_fib_adapter_complete()
771 kfree(hw_fib); in aac_fib_adapter_complete()
777 if (hw_fib->header.StructType != FIB_MAGIC && in aac_fib_adapter_complete()
778 hw_fib->header.StructType != FIB_MAGIC2 && in aac_fib_adapter_complete()
779 hw_fib->header.StructType != FIB_MAGIC2_64) { in aac_fib_adapter_complete()
781 kfree(hw_fib); in aac_fib_adapter_complete()
791 if (hw_fib->header.XferState & cpu_to_le32(SentFromAdapter)) { in aac_fib_adapter_complete()
793 kfree (hw_fib); in aac_fib_adapter_complete()
796 hw_fib->header.XferState |= cpu_to_le32(HostProcessed); in aac_fib_adapter_complete()
799 if (size > le16_to_cpu(hw_fib->header.SenderSize)) in aac_fib_adapter_complete()
801 hw_fib->header.Size = cpu_to_le16(size); in aac_fib_adapter_complete()
805 aac_queue_get(dev, &index, AdapNormRespQueue, hw_fib, 1, NULL, &nointr); in aac_fib_adapter_complete()
828 struct hw_fib * hw_fib = fibptr->hw_fib_va; in aac_fib_complete() local
834 if (hw_fib->header.XferState == 0) in aac_fib_complete()
840 if (hw_fib->header.StructType != FIB_MAGIC && in aac_fib_complete()
841 hw_fib->header.StructType != FIB_MAGIC2 && in aac_fib_complete()
842 hw_fib->header.StructType != FIB_MAGIC2_64) in aac_fib_complete()
851 if((hw_fib->header.XferState & cpu_to_le32(SentFromHost)) && in aac_fib_complete()
852 (hw_fib->header.XferState & cpu_to_le32(AdapterProcessed))) in aac_fib_complete()
856 else if(hw_fib->header.XferState & cpu_to_le32(SentFromHost)) in aac_fib_complete()
863 } else if(hw_fib->header.XferState & cpu_to_le32(HostOwned)) { in aac_fib_complete()
942 struct hw_fib * hw_fib = fibptr->hw_fib_va; in aac_handle_aif() local
943 struct aac_aifcmd * aifcmd = (struct aac_aifcmd *)hw_fib->data; in aac_handle_aif()
1631 struct hw_fib * hw_fib; in aac_check_health() local
1659 hw_fib = kzalloc(sizeof(struct hw_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()
1669 fib->data = hw_fib->data; in aac_check_health()
1670 aif = (struct aac_aifcmd *)hw_fib->data; in aac_check_health()
1692 kfree(hw_fib); in aac_check_health()
1737 struct hw_fib *hw_fib, *hw_newfib; in aac_command_thread() local
1778 hw_fib = fib->hw_fib_va; 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()
1788 aifcmd = (struct aac_aifcmd *) hw_fib->data; in aac_command_thread()
1792 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); in aac_command_thread()
1801 struct hw_fib ** hw_fib_pool, ** hw_fib_p; in aac_command_thread()
1821 / sizeof(struct hw_fib); /* some extra */ in aac_command_thread()
1832 && ((hw_fib_pool = kmalloc(sizeof(struct hw_fib *) * num, GFP_KERNEL))) in aac_command_thread()
1837 if (!(*(hw_fib_p++) = kmalloc(sizeof(struct hw_fib), GFP_KERNEL))) { in aac_command_thread()
1906 memcpy(hw_newfib, hw_fib, sizeof(struct hw_fib)); in aac_command_thread()
1928 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); in aac_command_thread()