Lines Matching refs:kfib
62 struct hw_fib * kfib; in ioctl_send_fib() local
77 kfib = fibptr->hw_fib_va; in ioctl_send_fib()
81 if (copy_from_user((void *)kfib, arg, sizeof(struct aac_fibhdr))) { in ioctl_send_fib()
90 size = le16_to_cpu(kfib->header.Size) + sizeof(struct aac_fibhdr); in ioctl_send_fib()
91 if (size < le16_to_cpu(kfib->header.SenderSize)) in ioctl_send_fib()
92 size = le16_to_cpu(kfib->header.SenderSize); in ioctl_send_fib()
101 kfib = pci_alloc_consistent(dev->pdev, size, &daddr); in ioctl_send_fib()
102 if (!kfib) { in ioctl_send_fib()
110 fibptr->hw_fib_va = kfib; in ioctl_send_fib()
112 memset(((char *)kfib) + dev->max_fib_size, 0, size - dev->max_fib_size); in ioctl_send_fib()
113 memcpy(kfib, hw_fib, dev->max_fib_size); in ioctl_send_fib()
116 if (copy_from_user(kfib, arg, size)) { in ioctl_send_fib()
121 if (kfib->header.Command == cpu_to_le16(TakeABreakPt)) { in ioctl_send_fib()
127 kfib->header.XferState = 0; in ioctl_send_fib()
129 retval = aac_fib_send(le16_to_cpu(kfib->header.Command), fibptr, in ioctl_send_fib()
130 le16_to_cpu(kfib->header.Size) , FsaNormal, in ioctl_send_fib()
149 if (copy_to_user(arg, (void *)kfib, size)) in ioctl_send_fib()
153 pci_free_consistent(dev->pdev, size, kfib, fibptr->hw_fib_pa); in ioctl_send_fib()