Searched refs:hw_fib (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/scsi/aacraid/
H A Ddpcsup.c58 struct hw_fib * hwfib; aac_response_normal()
189 struct hw_fib * hw_fib; aac_command_normal() local
193 index = le32_to_cpu(entry->addr) / sizeof(struct hw_fib); aac_command_normal()
194 hw_fib = &dev->aif_base_va[index]; aac_command_normal()
209 fib->hw_fib_va = hw_fib; aac_command_normal()
210 fib->data = hw_fib->data; aac_command_normal()
224 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); aac_command_normal()
269 sizeof(struct hw_fib)-sizeof(struct aac_fibhdr), aac_aif_callback()
286 int isAif, int isFastResponse, struct hw_fib *aif_fib) aac_intr_normal()
291 struct hw_fib * hw_fib; aac_intr_normal() local
304 if (!(hw_fib = kzalloc(sizeof(struct hw_fib),GFP_ATOMIC))) { aac_intr_normal()
309 memcpy(hw_fib, aif_fib, sizeof(struct hw_fib)); aac_intr_normal()
311 memcpy(hw_fib, aac_intr_normal()
312 (struct hw_fib *)(((uintptr_t)(dev->regs.sa)) + aac_intr_normal()
313 index), sizeof(struct hw_fib)); aac_intr_normal()
318 fib->hw_fib_va = hw_fib; aac_intr_normal()
319 fib->data = hw_fib->data; aac_intr_normal()
341 sizeof(struct hw_fib)-sizeof(struct aac_fibhdr), aac_intr_normal()
347 struct hw_fib * hwfib = fib->hw_fib_va; aac_intr_normal()
H A Dcommsup.c129 struct hw_fib *hw_fib; aac_fib_setup() local
143 dev->hw_fib_va = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + aac_fib_setup()
151 dev->hw_fib_va = (struct hw_fib *)((unsigned char *)dev->hw_fib_va + aac_fib_setup()
155 hw_fib = dev->hw_fib_va; aac_fib_setup()
166 fibptr->hw_fib_va = hw_fib; aac_fib_setup()
171 hw_fib->header.XferState = cpu_to_le32(0xffffffff); aac_fib_setup()
172 hw_fib->header.SenderSize = cpu_to_le16(dev->max_fib_size); aac_fib_setup()
174 hw_fib = (struct hw_fib *)((unsigned char *)hw_fib + aac_fib_setup()
269 struct hw_fib *hw_fib = fibptr->hw_fib_va; aac_fib_init() local
271 memset(&hw_fib->header, 0, sizeof(struct aac_fibhdr)); aac_fib_init()
272 hw_fib->header.StructType = FIB_MAGIC; aac_fib_init()
273 hw_fib->header.Size = cpu_to_le16(fibptr->dev->max_fib_size); aac_fib_init()
274 hw_fib->header.XferState = cpu_to_le32(HostOwned | FibInitialized | FibEmpty | FastResponseCapable); aac_fib_init()
275 hw_fib->header.u.ReceiverFibAddress = cpu_to_le32(fibptr->hw_fib_pa); aac_fib_init()
276 hw_fib->header.SenderSize = cpu_to_le16(fibptr->dev->max_fib_size); aac_fib_init()
289 struct hw_fib *hw_fib = fibptr->hw_fib_va; fib_dealloc() local
290 hw_fib->header.XferState = 0; fib_dealloc()
375 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) aac_queue_get() argument
388 entry->size = cpu_to_le32(le16_to_cpu(hw_fib->header.Size)); aac_queue_get()
397 entry->size = cpu_to_le32(le16_to_cpu(hw_fib->header.Size)); aac_queue_get()
398 entry->addr = hw_fib->header.SenderFibAddress; aac_queue_get()
400 hw_fib->header.u.ReceiverFibAddress = hw_fib->header.SenderFibAddress; /* Let the adapter now where to find its data */ aac_queue_get()
442 struct hw_fib * hw_fib = fibptr->hw_fib_va; aac_fib_send() local
448 if (!(hw_fib->header.XferState & cpu_to_le32(HostOwned))) aac_fib_send()
465 hw_fib->header.XferState |= cpu_to_le32(Async | ResponseExpected); aac_fib_send()
468 hw_fib->header.XferState |= cpu_to_le32(NoResponseExpected); aac_fib_send()
471 hw_fib->header.XferState |= cpu_to_le32(ResponseExpected); aac_fib_send()
478 hw_fib->header.SenderFibAddress = cpu_to_le32(((u32)(fibptr - dev->fibs)) << 2); aac_fib_send()
479 hw_fib->header.Handle = (u32)(fibptr - dev->fibs) + 1; aac_fib_send()
487 hw_fib->header.Command = cpu_to_le16(command); aac_fib_send()
488 hw_fib->header.XferState |= cpu_to_le32(SentFromHost); aac_fib_send()
492 hw_fib->header.Size = cpu_to_le16(sizeof(struct aac_fibhdr) + size); aac_fib_send()
493 if (le16_to_cpu(hw_fib->header.Size) > le16_to_cpu(hw_fib->header.SenderSize)) { aac_fib_send()
500 hw_fib->header.XferState |= cpu_to_le32(NormalPriority); aac_fib_send()
517 dprintk((KERN_DEBUG " Command = %d.\n", le32_to_cpu(hw_fib->header.Command))); aac_fib_send()
519 dprintk((KERN_DEBUG " XferState = %x.\n", le32_to_cpu(hw_fib->header.XferState))); aac_fib_send()
520 dprintk((KERN_DEBUG " hw_fib va being sent=%p\n",fibptr->hw_fib_va)); aac_fib_send()
521 dprintk((KERN_DEBUG " hw_fib pa being sent=%lx\n",(ulong)fibptr->hw_fib_pa)); aac_fib_send()
731 struct hw_fib * hw_fib = fibptr->hw_fib_va; aac_fib_adapter_complete() local
739 kfree(hw_fib); aac_fib_adapter_complete()
743 if (hw_fib->header.XferState == 0) { aac_fib_adapter_complete()
745 kfree(hw_fib); aac_fib_adapter_complete()
751 if (hw_fib->header.StructType != FIB_MAGIC && aac_fib_adapter_complete()
752 hw_fib->header.StructType != FIB_MAGIC2 && aac_fib_adapter_complete()
753 hw_fib->header.StructType != FIB_MAGIC2_64) { aac_fib_adapter_complete()
755 kfree(hw_fib); aac_fib_adapter_complete()
765 if (hw_fib->header.XferState & cpu_to_le32(SentFromAdapter)) { aac_fib_adapter_complete()
767 kfree (hw_fib); aac_fib_adapter_complete()
770 hw_fib->header.XferState |= cpu_to_le32(HostProcessed); aac_fib_adapter_complete()
773 if (size > le16_to_cpu(hw_fib->header.SenderSize)) aac_fib_adapter_complete()
775 hw_fib->header.Size = cpu_to_le16(size); aac_fib_adapter_complete()
779 aac_queue_get(dev, &index, AdapNormRespQueue, hw_fib, 1, NULL, &nointr); aac_fib_adapter_complete()
802 struct hw_fib * hw_fib = fibptr->hw_fib_va; aac_fib_complete() local
808 if (hw_fib->header.XferState == 0) aac_fib_complete()
814 if (hw_fib->header.StructType != FIB_MAGIC && aac_fib_complete()
815 hw_fib->header.StructType != FIB_MAGIC2 && aac_fib_complete()
816 hw_fib->header.StructType != FIB_MAGIC2_64) aac_fib_complete()
825 if((hw_fib->header.XferState & cpu_to_le32(SentFromHost)) && aac_fib_complete()
826 (hw_fib->header.XferState & cpu_to_le32(AdapterProcessed))) aac_fib_complete()
830 else if(hw_fib->header.XferState & cpu_to_le32(SentFromHost)) aac_fib_complete()
837 } else if(hw_fib->header.XferState & cpu_to_le32(HostOwned)) { aac_fib_complete()
891 struct hw_fib * hw_fib = fibptr->hw_fib_va; aac_handle_aif() local
892 struct aac_aifcmd * aifcmd = (struct aac_aifcmd *)hw_fib->data; aac_handle_aif()
1607 struct hw_fib * hw_fib; aac_check_health() local
1635 hw_fib = kzalloc(sizeof(struct hw_fib), GFP_ATOMIC); aac_check_health()
1637 if (fib && hw_fib) { aac_check_health()
1640 fib->hw_fib_va = hw_fib; aac_check_health()
1645 fib->data = hw_fib->data; aac_check_health()
1646 aif = (struct aac_aifcmd *)hw_fib->data; aac_check_health()
1668 kfree(hw_fib); aac_check_health()
1713 struct hw_fib *hw_fib, *hw_newfib; aac_command_thread() local
1754 hw_fib = fib->hw_fib_va; aac_command_thread()
1758 fib->hw_fib_va = hw_fib; aac_command_thread()
1759 fib->data = hw_fib->data; aac_command_thread()
1764 aifcmd = (struct aac_aifcmd *) hw_fib->data; aac_command_thread()
1768 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); aac_command_thread()
1777 struct hw_fib ** hw_fib_pool, ** hw_fib_p; aac_command_thread()
1797 / sizeof(struct hw_fib); /* some extra */ aac_command_thread()
1808 && ((hw_fib_pool = kmalloc(sizeof(struct hw_fib *) * num, GFP_KERNEL))) aac_command_thread()
1813 if (!(*(hw_fib_p++) = kmalloc(sizeof(struct hw_fib), GFP_KERNEL))) { aac_command_thread()
1882 memcpy(hw_newfib, hw_fib, sizeof(struct hw_fib)); aac_command_thread()
1904 *(__le32 *)hw_fib->data = cpu_to_le32(ST_OK); aac_command_thread()
H A Dcommctrl.c62 struct hw_fib * kfib; ioctl_send_fib()
64 struct hw_fib * hw_fib = (struct hw_fib *)0; ioctl_send_fib() local
107 /* Highjack the hw_fib */ ioctl_send_fib()
108 hw_fib = fibptr->hw_fib_va; ioctl_send_fib()
113 memcpy(kfib, hw_fib, dev->max_fib_size); ioctl_send_fib()
152 if (hw_fib) { ioctl_send_fib()
155 fibptr->hw_fib_va = hw_fib; ioctl_send_fib()
301 if (copy_to_user(f.fib, fib->hw_fib_va, sizeof(struct hw_fib))) { next_getadapter_fib()
H A Dcomminit.c109 if (dev->max_fib_size != sizeof(struct hw_fib)) aac_alloc_comm()
118 dev->aif_base_va = (struct hw_fib *)base; aac_alloc_comm()
123 init->AdapterFibAlign = cpu_to_le32(sizeof(struct hw_fib)); aac_alloc_comm()
368 dev->max_fib_size = sizeof(struct hw_fib); aac_init_adapter()
H A Daacraid.h380 struct hw_fib { struct
944 struct hw_fib *hw_fib_va; /* Actual shared object */
945 dma_addr_t hw_fib_pa; /* physical address of hw_fib*/
1113 struct hw_fib *hw_fib_va;
1114 struct hw_fib *aif_base_va;
2132 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);
2137 struct hw_fib *aif_fib);

Completed in 180 milliseconds