Lines Matching refs:oct
64 * @param oct Pointer to Octeon device
68 lio_unmap_pci_barx(struct octeon_device *oct, int baridx)
71 lio_dev_dbg(oct, "Freeing PCI mapped regions for Bar%d\n", baridx);
73 if (oct->mem_bus_space[baridx].pci_mem != NULL) {
74 bus_release_resource(oct->device, SYS_RES_MEMORY,
76 oct->mem_bus_space[baridx].pci_mem);
77 oct->mem_bus_space[baridx].pci_mem = NULL;
83 * @param oct Pointer to Octeon device
87 lio_map_pci_barx(struct octeon_device *oct, int baridx)
91 oct->mem_bus_space[baridx].pci_mem =
92 bus_alloc_resource_any(oct->device, SYS_RES_MEMORY, &rid,
95 if (oct->mem_bus_space[baridx].pci_mem == NULL) {
96 lio_dev_err(oct, "Unable to allocate bus resource: memory\n");
101 oct->mem_bus_space[baridx].tag =
102 rman_get_bustag(oct->mem_bus_space[baridx].pci_mem);
103 oct->mem_bus_space[baridx].handle =
104 rman_get_bushandle(oct->mem_bus_space[baridx].pci_mem);
106 lio_dev_dbg(oct, "BAR%d Tag 0x%llx Handle 0x%llx\n",
107 baridx, LIO_CAST64(oct->mem_bus_space[baridx].tag),
108 LIO_CAST64(oct->mem_bus_space[baridx].handle));
114 lio_sleep_cond(struct octeon_device *oct, volatile int *condition)
119 lio_flush_iq(oct, oct->instr_queue[0], 0);
120 lio_process_ordered_list(oct, 0);