Lines Matching refs:hw_coal

66 	struct bnxt_coal *hw_coal;  in bnxt_get_coalesce()  local
73 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
74 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
75 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
76 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
77 coal->rx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
78 coal->rx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
79 if (hw_coal->flags & in bnxt_get_coalesce()
83 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
84 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce()
85 coal->tx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce()
86 coal->tx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce()
87 coal->tx_coalesce_usecs_irq = hw_coal->coal_ticks_irq; in bnxt_get_coalesce()
88 coal->tx_max_coalesced_frames_irq = hw_coal->coal_bufs_irq / mult; in bnxt_get_coalesce()
89 if (hw_coal->flags & in bnxt_get_coalesce()
105 struct bnxt_coal *hw_coal; in bnxt_set_coalesce() local
123 hw_coal = &bp->rx_coal; in bnxt_set_coalesce()
124 mult = hw_coal->bufs_per_record; in bnxt_set_coalesce()
125 hw_coal->coal_ticks = coal->rx_coalesce_usecs; in bnxt_set_coalesce()
126 hw_coal->coal_bufs = coal->rx_max_coalesced_frames * mult; in bnxt_set_coalesce()
127 hw_coal->coal_ticks_irq = coal->rx_coalesce_usecs_irq; in bnxt_set_coalesce()
128 hw_coal->coal_bufs_irq = coal->rx_max_coalesced_frames_irq * mult; in bnxt_set_coalesce()
129 hw_coal->flags &= in bnxt_set_coalesce()
132 hw_coal->flags |= in bnxt_set_coalesce()
135 hw_coal = &bp->tx_coal; in bnxt_set_coalesce()
136 mult = hw_coal->bufs_per_record; in bnxt_set_coalesce()
137 hw_coal->coal_ticks = coal->tx_coalesce_usecs; in bnxt_set_coalesce()
138 hw_coal->coal_bufs = coal->tx_max_coalesced_frames * mult; in bnxt_set_coalesce()
139 hw_coal->coal_ticks_irq = coal->tx_coalesce_usecs_irq; in bnxt_set_coalesce()
140 hw_coal->coal_bufs_irq = coal->tx_max_coalesced_frames_irq * mult; in bnxt_set_coalesce()
141 hw_coal->flags &= in bnxt_set_coalesce()
144 hw_coal->flags |= in bnxt_set_coalesce()