Lines Matching refs:hw_coal
67 struct bnxt_coal *hw_coal; in bnxt_get_coalesce() local
74 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
75 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
76 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
77 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
78 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
79 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
80 if (hw_coal->flags & in bnxt_get_coalesce()
84 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
85 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
86 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
87 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
88 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
89 coal->tx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
90 if (hw_coal->flags & in bnxt_get_coalesce()
106 struct bnxt_coal *hw_coal; in bnxt_set_coalesce() local
124 hw_coal = &bp->rx_coal; in bnxt_set_coalesce()
125 mult = hw_coal->bufs_per_record; in bnxt_set_coalesce()
126 hw_coal->coal_ticks = coal->rx_coalesce_usecs; in bnxt_set_coalesce()
127 hw_coal->coal_bufs = coal->rx_max_coalesced_frames * mult; in bnxt_set_coalesce()
128 hw_coal->coal_ticks_irq = coal->rx_coalesce_usecs_irq; in bnxt_set_coalesce()
129 hw_coal->coal_bufs_irq = coal->rx_max_coalesced_frames_irq * mult; in bnxt_set_coalesce()
130 hw_coal->flags &= in bnxt_set_coalesce()
133 hw_coal->flags |= in bnxt_set_coalesce()
136 hw_coal = &bp->tx_coal; in bnxt_set_coalesce()
137 mult = hw_coal->bufs_per_record; in bnxt_set_coalesce()
138 hw_coal->coal_ticks = coal->tx_coalesce_usecs; in bnxt_set_coalesce()
139 hw_coal->coal_bufs = coal->tx_max_coalesced_frames * mult; in bnxt_set_coalesce()
140 hw_coal->coal_ticks_irq = coal->tx_coalesce_usecs_irq; in bnxt_set_coalesce()
141 hw_coal->coal_bufs_irq = coal->tx_max_coalesced_frames_irq * mult; in bnxt_set_coalesce()
142 hw_coal->flags &= in bnxt_set_coalesce()
145 hw_coal->flags |= in bnxt_set_coalesce()