Lines Matching refs:fib
103 struct fib, in aac_src_intr_message()
483 static int aac_src_deliver_message(struct fib *fib) in aac_src_deliver_message() argument
485 struct aac_dev *dev = fib->dev; in aac_src_deliver_message()
499 native_hba = (fib->flags & FIB_CONTEXT_FLAG_NATIVE_HBA) ? 1 : 0; in aac_src_deliver_message()
503 (native_hba || fib->hw_fib_va->header.Command != AifRequest)) { in aac_src_deliver_message()
509 vector_no = fib->vector_no; in aac_src_deliver_message()
512 if (fib->flags & FIB_CONTEXT_FLAG_NATIVE_HBA_TMF) { in aac_src_deliver_message()
516 fib->hw_fib_va; in aac_src_deliver_message()
520 fib->hw_fib_va)->reply_qid in aac_src_deliver_message()
523 fib->hw_fib_va)->request_id in aac_src_deliver_message()
527 fib->hw_fib_va)->reply_qid in aac_src_deliver_message()
530 fib->hw_fib_va)->request_id in aac_src_deliver_message()
535 fib->hw_fib_va)->reply_qid in aac_src_deliver_message()
538 fib->hw_fib_va)->request_id in aac_src_deliver_message()
542 fib->hw_fib_va->header.Handle += (vector_no << 16); in aac_src_deliver_message()
551 address = fib->hw_fib_pa; in aac_src_deliver_message()
552 fibsize = (fib->hbacmd_size + 127) / 128 - 1; in aac_src_deliver_message()
559 spin_lock_irqsave(&fib->dev->iq_lock, flags); in aac_src_deliver_message()
563 spin_unlock_irqrestore(&fib->dev->iq_lock, flags); in aac_src_deliver_message()
569 fibsize = (le16_to_cpu(fib->hw_fib_va->header.Size) in aac_src_deliver_message()
572 address = fib->hw_fib_pa; in aac_src_deliver_message()
573 fib->hw_fib_va->header.StructType = FIB_MAGIC2; in aac_src_deliver_message()
574 fib->hw_fib_va->header.SenderFibAddress = in aac_src_deliver_message()
576 fib->hw_fib_va->header.u.TimeStamp = 0; in aac_src_deliver_message()
581 le16_to_cpu(fib->hw_fib_va->header.Size) in aac_src_deliver_message()
585 ((unsigned char *)fib->hw_fib_va - in aac_src_deliver_message()
587 pFibX->Handle = fib->hw_fib_va->header.Handle; in aac_src_deliver_message()
589 cpu_to_le64((u64)fib->hw_fib_pa); in aac_src_deliver_message()
591 le16_to_cpu(fib->hw_fib_va->header.Size)); in aac_src_deliver_message()
592 address = fib->hw_fib_pa - in aac_src_deliver_message()
602 spin_lock_irqsave(&fib->dev->iq_lock, flags); in aac_src_deliver_message()
606 spin_unlock_irqrestore(&fib->dev->iq_lock, flags); in aac_src_deliver_message()