Searched refs:mem_item (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | pci.c | 141 struct mlxsw_pci_mem_item mem_item; member in struct:mlxsw_pci_queue 204 return q->mem_item.buf + (elem_size * elem_index); __mlxsw_pci_queue_elem_get() 373 return q->mem_item.mapaddr + MLXSW_PCI_PAGE_SIZE * page_index; __mlxsw_pci_queue_page_get() 934 struct mlxsw_pci_mem_item *mem_item = &q->mem_item; mlxsw_pci_queue_init() local 948 mem_item->size = MLXSW_PCI_AQ_SIZE; mlxsw_pci_queue_init() 949 mem_item->buf = pci_alloc_consistent(mlxsw_pci->pdev, mlxsw_pci_queue_init() 950 mem_item->size, mlxsw_pci_queue_init() 951 &mem_item->mapaddr); mlxsw_pci_queue_init() 952 if (!mem_item->buf) mlxsw_pci_queue_init() 954 memset(mem_item->buf, 0, mem_item->size); mlxsw_pci_queue_init() 982 pci_free_consistent(mlxsw_pci->pdev, mem_item->size, mlxsw_pci_queue_init() 983 mem_item->buf, mem_item->mapaddr); mlxsw_pci_queue_init() 991 struct mlxsw_pci_mem_item *mem_item = &q->mem_item; mlxsw_pci_queue_fini() local 995 pci_free_consistent(mlxsw_pci->pdev, mem_item->size, mlxsw_pci_queue_fini() 996 mem_item->buf, mem_item->mapaddr); mlxsw_pci_queue_fini() 1284 struct mlxsw_pci_mem_item *mem_item; mlxsw_pci_fw_area_init() local 1289 mlxsw_pci->fw_area.items = kcalloc(num_pages, sizeof(*mem_item), mlxsw_pci_fw_area_init() 1297 mem_item = &mlxsw_pci->fw_area.items[i]; mlxsw_pci_fw_area_init() 1299 mem_item->size = MLXSW_PCI_PAGE_SIZE; mlxsw_pci_fw_area_init() 1300 mem_item->buf = pci_alloc_consistent(mlxsw_pci->pdev, mlxsw_pci_fw_area_init() 1301 mem_item->size, mlxsw_pci_fw_area_init() 1302 &mem_item->mapaddr); mlxsw_pci_fw_area_init() 1303 if (!mem_item->buf) { mlxsw_pci_fw_area_init() 1307 mlxsw_cmd_mbox_map_fa_pa_set(mbox, nent, mem_item->mapaddr); mlxsw_pci_fw_area_init() 1329 mem_item = &mlxsw_pci->fw_area.items[i]; mlxsw_pci_fw_area_init() 1331 pci_free_consistent(mlxsw_pci->pdev, mem_item->size, mlxsw_pci_fw_area_init() 1332 mem_item->buf, mem_item->mapaddr); mlxsw_pci_fw_area_init() 1340 struct mlxsw_pci_mem_item *mem_item; mlxsw_pci_fw_area_fini() local 1346 mem_item = &mlxsw_pci->fw_area.items[i]; mlxsw_pci_fw_area_fini() 1348 pci_free_consistent(mlxsw_pci->pdev, mem_item->size, mlxsw_pci_fw_area_fini() 1349 mem_item->buf, mem_item->mapaddr); mlxsw_pci_fw_area_fini()
|
Completed in 157 milliseconds