Lines Matching refs:hw_coal
65 struct bnxt_coal *hw_coal; in bnxt_get_coalesce() local
72 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
73 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
74 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
75 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
76 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
77 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
78 if (hw_coal->flags & in bnxt_get_coalesce()
82 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
83 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
84 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
85 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
86 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
87 coal->tx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
88 if (hw_coal->flags & in bnxt_get_coalesce()
104 struct bnxt_coal *hw_coal; in bnxt_set_coalesce() local
122 hw_coal = &bp->rx_coal; in bnxt_set_coalesce()
123 mult = hw_coal->bufs_per_record; in bnxt_set_coalesce()
124 hw_coal->coal_ticks = coal->rx_coalesce_usecs; in bnxt_set_coalesce()
125 hw_coal->coal_bufs = coal->rx_max_coalesced_frames * mult; in bnxt_set_coalesce()
126 hw_coal->coal_ticks_irq = coal->rx_coalesce_usecs_irq; in bnxt_set_coalesce()
127 hw_coal->coal_bufs_irq = coal->rx_max_coalesced_frames_irq * mult; in bnxt_set_coalesce()
128 hw_coal->flags &= in bnxt_set_coalesce()
131 hw_coal->flags |= in bnxt_set_coalesce()
134 hw_coal = &bp->tx_coal; in bnxt_set_coalesce()
135 mult = hw_coal->bufs_per_record; in bnxt_set_coalesce()
136 hw_coal->coal_ticks = coal->tx_coalesce_usecs; in bnxt_set_coalesce()
137 hw_coal->coal_bufs = coal->tx_max_coalesced_frames * mult; in bnxt_set_coalesce()
138 hw_coal->coal_ticks_irq = coal->tx_coalesce_usecs_irq; in bnxt_set_coalesce()
139 hw_coal->coal_bufs_irq = coal->tx_max_coalesced_frames_irq * mult; in bnxt_set_coalesce()
140 hw_coal->flags &= in bnxt_set_coalesce()
143 hw_coal->flags |= in bnxt_set_coalesce()