Lines Matching refs:hbqno

1646 lpfc_sli_next_hbq_slot(struct lpfc_hba *phba, uint32_t hbqno)  in lpfc_sli_next_hbq_slot()  argument
1648 struct hbq_s *hbqp = &phba->hbqs[hbqno]; in lpfc_sli_next_hbq_slot()
1655 uint32_t raw_index = phba->hbq_get[hbqno]; in lpfc_sli_next_hbq_slot()
1665 hbqno, hbqp->local_hbqGetIdx, in lpfc_sli_next_hbq_slot()
1676 return (struct lpfc_hbq_entry *) phba->hbqs[hbqno].hbq_virt + in lpfc_sli_next_hbq_slot()
1696 uint32_t hbqno; in lpfc_sli_hbqbuf_free_all() local
1719 hbqno = hbq_buf->tag >> 16; in lpfc_sli_hbqbuf_free_all()
1720 if (hbqno >= LPFC_MAX_HBQS) in lpfc_sli_hbqbuf_free_all()
1724 (phba->hbqs[hbqno].hbq_free_buffer)(phba, in lpfc_sli_hbqbuf_free_all()
1747 lpfc_sli_hbq_to_firmware(struct lpfc_hba *phba, uint32_t hbqno, in lpfc_sli_hbq_to_firmware() argument
1750 return phba->lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buf); in lpfc_sli_hbq_to_firmware()
1765 lpfc_sli_hbq_to_firmware_s3(struct lpfc_hba *phba, uint32_t hbqno, in lpfc_sli_hbq_to_firmware_s3() argument
1772 hbqe = lpfc_sli_next_hbq_slot(phba, hbqno); in lpfc_sli_hbq_to_firmware_s3()
1774 struct hbq_s *hbqp = &phba->hbqs[hbqno]; in lpfc_sli_hbq_to_firmware_s3()
1784 writel(hbqp->hbqPutIdx, phba->hbq_put + hbqno); in lpfc_sli_hbq_to_firmware_s3()
1786 readl(phba->hbq_put + hbqno); in lpfc_sli_hbq_to_firmware_s3()
1804 lpfc_sli_hbq_to_firmware_s4(struct lpfc_hba *phba, uint32_t hbqno, in lpfc_sli_hbq_to_firmware_s4() argument
1820 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s4()
1865 lpfc_sli_hbqbuf_fill_hbqs(struct lpfc_hba *phba, uint32_t hbqno, uint32_t count) in lpfc_sli_hbqbuf_fill_hbqs() argument
1871 if (!phba->hbqs[hbqno].hbq_alloc_buffer) in lpfc_sli_hbqbuf_fill_hbqs()
1874 if ((phba->hbqs[hbqno].buffer_count + count) > in lpfc_sli_hbqbuf_fill_hbqs()
1875 lpfc_hbq_defs[hbqno]->entry_count) in lpfc_sli_hbqbuf_fill_hbqs()
1876 count = lpfc_hbq_defs[hbqno]->entry_count - in lpfc_sli_hbqbuf_fill_hbqs()
1877 phba->hbqs[hbqno].buffer_count; in lpfc_sli_hbqbuf_fill_hbqs()
1882 hbq_buffer = (phba->hbqs[hbqno].hbq_alloc_buffer)(phba); in lpfc_sli_hbqbuf_fill_hbqs()
1894 hbq_buffer->tag = (phba->hbqs[hbqno].buffer_count | in lpfc_sli_hbqbuf_fill_hbqs()
1895 (hbqno << 16)); in lpfc_sli_hbqbuf_fill_hbqs()
1896 if (!lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer)) { in lpfc_sli_hbqbuf_fill_hbqs()
1897 phba->hbqs[hbqno].buffer_count++; in lpfc_sli_hbqbuf_fill_hbqs()
1900 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); in lpfc_sli_hbqbuf_fill_hbqs()
1909 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); in lpfc_sli_hbqbuf_fill_hbqs()
1987 uint32_t hbqno; in lpfc_sli_hbqbuf_find() local
1989 hbqno = tag >> 16; in lpfc_sli_hbqbuf_find()
1990 if (hbqno >= LPFC_MAX_HBQS) in lpfc_sli_hbqbuf_find()
1994 list_for_each_entry(d_buf, &phba->hbqs[hbqno].hbq_buffer_list, list) { in lpfc_sli_hbqbuf_find()
2020 uint32_t hbqno; in lpfc_sli_free_hbq() local
2023 hbqno = hbq_buffer->tag >> 16; in lpfc_sli_free_hbq()
2024 if (lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer)) in lpfc_sli_free_hbq()
2025 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); in lpfc_sli_free_hbq()
4400 uint32_t hbqno; in lpfc_sli_hbq_setup() local
4418 for (hbqno = 0; hbqno < hbq_count; ++hbqno) { in lpfc_sli_hbq_setup()
4419 phba->hbqs[hbqno].next_hbqPutIdx = 0; in lpfc_sli_hbq_setup()
4420 phba->hbqs[hbqno].hbqPutIdx = 0; in lpfc_sli_hbq_setup()
4421 phba->hbqs[hbqno].local_hbqGetIdx = 0; in lpfc_sli_hbq_setup()
4422 phba->hbqs[hbqno].entry_count = in lpfc_sli_hbq_setup()
4423 lpfc_hbq_defs[hbqno]->entry_count; in lpfc_sli_hbq_setup()
4424 lpfc_config_hbq(phba, hbqno, lpfc_hbq_defs[hbqno], in lpfc_sli_hbq_setup()
4426 hbq_entry_index += phba->hbqs[hbqno].entry_count; in lpfc_sli_hbq_setup()
4437 pmbox->mbxStatus, hbqno); in lpfc_sli_hbq_setup()
4449 for (hbqno = 0; hbqno < hbq_count; ++hbqno) in lpfc_sli_hbq_setup()
4450 lpfc_sli_hbqbuf_init_hbqs(phba, hbqno); in lpfc_sli_hbq_setup()