| 330 | } |
| 331 | |
| 332 | static void bnxt_init_dflt_coal(struct bnxt_coal *coal) |
| 333 | { |
| 334 | /* Tick values in micro seconds. |
| 335 | * 1 coal_buf x bufs_per_record = 1 completion record. |
| 336 | */ |
| 337 | coal->num_cmpl_aggr_int = BNXT_NUM_CMPL_AGGR_INT; |
| 338 | /* This is a 6-bit value and must not be 0, or we'll get non stop IRQ */ |
| 339 | coal->num_cmpl_dma_aggr = BNXT_NUM_CMPL_DMA_AGGR; |
| 340 | /* This is a 6-bit value and must not be 0, or we'll get non stop IRQ */ |
| 341 | coal->num_cmpl_dma_aggr_during_int = BNXT_NUM_CMPL_DMA_AGGR_DURING_INT; |
| 342 | coal->int_lat_tmr_max = BNXT_INT_LAT_TMR_MAX; |
| 343 | /* min timer set to 1/2 of interrupt timer */ |
| 344 | coal->int_lat_tmr_min = BNXT_INT_LAT_TMR_MIN; |
| 345 | /* buf timer set to 1/4 of interrupt timer */ |
| 346 | coal->cmpl_aggr_dma_tmr = BNXT_CMPL_AGGR_DMA_TMR; |
| 347 | coal->cmpl_aggr_dma_tmr_during_int = BNXT_CMPL_AGGR_DMA_TMR_DURING_INT; |
| 348 | } |
| 349 | |
| 350 | static void bnxt_set_db(struct bnxt *bp, |
| 351 | struct bnxt_db_info *db, |
no outgoing calls
no test coverage detected