Lines Matching +full:lock +full:- +full:offset
3 Copyright (c) 2001-2020, Intel Corporation
39 return ((struct ixgbe_softc *)hw->back)->dev; in ixgbe_dev_from_hw()
45 return pci_read_config(((struct ixgbe_softc *)hw->back)->dev, reg, 2); in ixgbe_read_pci_cfg()
51 pci_write_config(((struct ixgbe_softc *)hw->back)->dev, reg, value, 2); in ixgbe_write_pci_cfg()
57 return bus_space_read_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag, in ixgbe_read_reg()
58 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle, reg); in ixgbe_read_reg()
64 bus_space_write_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag, in ixgbe_write_reg()
65 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle, in ixgbe_write_reg()
70 ixgbe_read_reg_array(struct ixgbe_hw *hw, u32 reg, u32 offset) in ixgbe_read_reg_array() argument
72 return bus_space_read_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag, in ixgbe_read_reg_array()
73 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle, in ixgbe_read_reg_array()
74 reg + (offset << 2)); in ixgbe_read_reg_array()
78 ixgbe_write_reg_array(struct ixgbe_hw *hw, u32 reg, u32 offset, u32 val) in ixgbe_write_reg_array() argument
80 bus_space_write_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag, in ixgbe_write_reg_array()
81 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle, in ixgbe_write_reg_array()
82 reg + (offset << 2), val); in ixgbe_write_reg_array()
119 ixgbe_init_lock(struct ixgbe_lock *lock) in ixgbe_init_lock() argument
121 mtx_init(&lock->mutex, "mutex", in ixgbe_init_lock()
122 "ixgbe ACI lock", MTX_DEF | MTX_DUPOK); in ixgbe_init_lock()
126 ixgbe_acquire_lock(struct ixgbe_lock *lock) in ixgbe_acquire_lock() argument
128 mtx_lock(&lock->mutex); in ixgbe_acquire_lock()
132 ixgbe_release_lock(struct ixgbe_lock *lock) in ixgbe_release_lock() argument
134 mtx_unlock(&lock->mutex); in ixgbe_release_lock()
138 ixgbe_destroy_lock(struct ixgbe_lock *lock) in ixgbe_destroy_lock() argument
140 if (mtx_initialized(&lock->mutex)) in ixgbe_destroy_lock()
141 mtx_destroy(&lock->mutex); in ixgbe_destroy_lock()