Searched refs:mem_item (Results 1 – 1 of 1) sorted by relevance
73 struct mlxsw_pci_mem_item mem_item; member139 return q->mem_item.buf + (elem_size * elem_index); in __mlxsw_pci_queue_elem_get()281 return q->mem_item.mapaddr + MLXSW_PCI_PAGE_SIZE * page_index; in __mlxsw_pci_queue_page_get()825 struct mlxsw_pci_mem_item *mem_item = &q->mem_item; in mlxsw_pci_queue_init() local844 mem_item->size = MLXSW_PCI_AQ_SIZE; in mlxsw_pci_queue_init()845 mem_item->buf = pci_alloc_consistent(mlxsw_pci->pdev, in mlxsw_pci_queue_init()846 mem_item->size, in mlxsw_pci_queue_init()847 &mem_item->mapaddr); in mlxsw_pci_queue_init()848 if (!mem_item->buf) in mlxsw_pci_queue_init()877 pci_free_consistent(mlxsw_pci->pdev, mem_item->size, in mlxsw_pci_queue_init()[all …]