Searched refs:hbqno (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | lpfc_sli.c | 1638 * @hbqno: HBQ number. 1646 lpfc_sli_next_hbq_slot(struct lpfc_hba *phba, uint32_t hbqno) lpfc_sli_next_hbq_slot() argument 1648 struct hbq_s *hbqp = &phba->hbqs[hbqno]; lpfc_sli_next_hbq_slot() 1655 uint32_t raw_index = phba->hbq_get[hbqno]; lpfc_sli_next_hbq_slot() 1665 hbqno, hbqp->local_hbqGetIdx, lpfc_sli_next_hbq_slot() 1676 return (struct lpfc_hbq_entry *) phba->hbqs[hbqno].hbq_virt + lpfc_sli_next_hbq_slot() 1696 uint32_t hbqno; lpfc_sli_hbqbuf_free_all() local 1719 hbqno = hbq_buf->tag >> 16; lpfc_sli_hbqbuf_free_all() 1720 if (hbqno >= LPFC_MAX_HBQS) lpfc_sli_hbqbuf_free_all() 1724 (phba->hbqs[hbqno].hbq_free_buffer)(phba, lpfc_sli_hbqbuf_free_all() 1737 * @hbqno: HBQ number. 1747 lpfc_sli_hbq_to_firmware(struct lpfc_hba *phba, uint32_t hbqno, lpfc_sli_hbq_to_firmware() argument 1750 return phba->lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buf); lpfc_sli_hbq_to_firmware() 1756 * @hbqno: HBQ number. 1765 lpfc_sli_hbq_to_firmware_s3(struct lpfc_hba *phba, uint32_t hbqno, lpfc_sli_hbq_to_firmware_s3() argument 1772 hbqe = lpfc_sli_next_hbq_slot(phba, hbqno); lpfc_sli_hbq_to_firmware_s3() 1774 struct hbq_s *hbqp = &phba->hbqs[hbqno]; lpfc_sli_hbq_to_firmware_s3() 1784 writel(hbqp->hbqPutIdx, phba->hbq_put + hbqno); lpfc_sli_hbq_to_firmware_s3() 1786 readl(phba->hbq_put + hbqno); lpfc_sli_hbq_to_firmware_s3() 1796 * @hbqno: HBQ number. 1804 lpfc_sli_hbq_to_firmware_s4(struct lpfc_hba *phba, uint32_t hbqno, lpfc_sli_hbq_to_firmware_s4() argument 1820 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); lpfc_sli_hbq_to_firmware_s4() 1857 * @hbqno: HBQ number. 1865 lpfc_sli_hbqbuf_fill_hbqs(struct lpfc_hba *phba, uint32_t hbqno, uint32_t count) lpfc_sli_hbqbuf_fill_hbqs() argument 1871 if (!phba->hbqs[hbqno].hbq_alloc_buffer) lpfc_sli_hbqbuf_fill_hbqs() 1874 if ((phba->hbqs[hbqno].buffer_count + count) > lpfc_sli_hbqbuf_fill_hbqs() 1875 lpfc_hbq_defs[hbqno]->entry_count) lpfc_sli_hbqbuf_fill_hbqs() 1876 count = lpfc_hbq_defs[hbqno]->entry_count - lpfc_sli_hbqbuf_fill_hbqs() 1877 phba->hbqs[hbqno].buffer_count; lpfc_sli_hbqbuf_fill_hbqs() 1882 hbq_buffer = (phba->hbqs[hbqno].hbq_alloc_buffer)(phba); lpfc_sli_hbqbuf_fill_hbqs() 1894 hbq_buffer->tag = (phba->hbqs[hbqno].buffer_count | lpfc_sli_hbqbuf_fill_hbqs() 1895 (hbqno << 16)); lpfc_sli_hbqbuf_fill_hbqs() 1896 if (!lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer)) { lpfc_sli_hbqbuf_fill_hbqs() 1897 phba->hbqs[hbqno].buffer_count++; lpfc_sli_hbqbuf_fill_hbqs() 1900 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); lpfc_sli_hbqbuf_fill_hbqs() 1909 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); lpfc_sli_hbqbuf_fill_hbqs() 1956 * @hbqno: HBQ number. 1987 uint32_t hbqno; lpfc_sli_hbqbuf_find() local 1989 hbqno = tag >> 16; lpfc_sli_hbqbuf_find() 1990 if (hbqno >= LPFC_MAX_HBQS) lpfc_sli_hbqbuf_find() 1994 list_for_each_entry(d_buf, &phba->hbqs[hbqno].hbq_buffer_list, list) { lpfc_sli_hbqbuf_find() 2020 uint32_t hbqno; lpfc_sli_free_hbq() local 2023 hbqno = hbq_buffer->tag >> 16; lpfc_sli_free_hbq() 2024 if (lpfc_sli_hbq_to_firmware(phba, hbqno, hbq_buffer)) lpfc_sli_free_hbq() 2025 (phba->hbqs[hbqno].hbq_free_buffer)(phba, hbq_buffer); lpfc_sli_free_hbq() 4400 uint32_t hbqno; lpfc_sli_hbq_setup() local 4418 for (hbqno = 0; hbqno < hbq_count; ++hbqno) { lpfc_sli_hbq_setup() 4419 phba->hbqs[hbqno].next_hbqPutIdx = 0; lpfc_sli_hbq_setup() 4420 phba->hbqs[hbqno].hbqPutIdx = 0; lpfc_sli_hbq_setup() 4421 phba->hbqs[hbqno].local_hbqGetIdx = 0; lpfc_sli_hbq_setup() 4422 phba->hbqs[hbqno].entry_count = lpfc_sli_hbq_setup() 4423 lpfc_hbq_defs[hbqno]->entry_count; lpfc_sli_hbq_setup() 4424 lpfc_config_hbq(phba, hbqno, lpfc_hbq_defs[hbqno], lpfc_sli_hbq_setup() 4426 hbq_entry_index += phba->hbqs[hbqno].entry_count; lpfc_sli_hbq_setup() 4437 pmbox->mbxStatus, hbqno); lpfc_sli_hbq_setup() 4449 for (hbqno = 0; hbqno < hbq_count; ++hbqno) lpfc_sli_hbq_setup() 4450 lpfc_sli_hbqbuf_init_hbqs(phba, hbqno); lpfc_sli_hbq_setup()
|
Completed in 113 milliseconds