Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_osdep.c
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
i40e_status | i40e_status | ||||
i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem) | i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem) | ||||
{ | { | ||||
bus_dmamap_sync(mem->tag, mem->map, | bus_dmamap_sync(mem->tag, mem->map, | ||||
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE); | BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE); | ||||
bus_dmamap_unload(mem->tag, mem->map); | bus_dmamap_unload(mem->tag, mem->map); | ||||
bus_dmamem_free(mem->tag, mem->va, mem->map); | bus_dmamem_free(mem->tag, mem->va, mem->map); | ||||
bus_dma_tag_destroy(mem->tag); | bus_dma_tag_destroy(mem->tag); | ||||
return (0); | return (I40E_SUCCESS); | ||||
} | } | ||||
void | void | ||||
i40e_init_spinlock(struct i40e_spinlock *lock) | i40e_init_spinlock(struct i40e_spinlock *lock) | ||||
{ | { | ||||
mtx_init(&lock->mutex, "mutex", | mtx_init(&lock->mutex, "mutex", | ||||
"ixl spinlock", MTX_DEF | MTX_DUPOK); | "ixl spinlock", MTX_DEF | MTX_DUPOK); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |