Lines Matching defs:hw
44 ixgbe_dev_from_hw(struct ixgbe_hw *hw)
46 return ((struct ixgbe_softc *)hw->back)->dev;
50 ixgbe_read_pci_cfg(struct ixgbe_hw *hw, u32 reg)
52 pci_chipset_tag_t pc = hw->back->osdep.pc;
53 pcitag_t tag = hw->back->osdep.tag;
68 ixgbe_write_pci_cfg(struct ixgbe_hw *hw, u32 reg, u16 value)
70 pci_chipset_tag_t pc = hw->back->osdep.pc;
71 pcitag_t tag = hw->back->osdep.tag;
93 ixgbe_read_reg(struct ixgbe_hw *hw, u32 reg)
95 return bus_space_read_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag,
96 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle, reg);
100 ixgbe_write_reg(struct ixgbe_hw *hw, u32 reg, u32 val)
102 bus_space_write_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag,
103 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle,
108 ixgbe_read_reg_array(struct ixgbe_hw *hw, u32 reg, u32 offset)
110 return bus_space_read_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag,
111 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle,
116 ixgbe_write_reg_array(struct ixgbe_hw *hw, u32 reg, u32 offset, u32 val)
118 bus_space_write_4(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag,
119 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle,
124 ixgbe_write_barrier(struct ixgbe_hw *hw)
126 bus_space_barrier(((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_tag,
127 ((struct ixgbe_softc *)hw->back)->osdep.mem_bus_space_handle,
128 0, ((struct ixgbe_softc *)hw->back)->osdep.mem_size,