Lines Matching refs:coal_intvl
324 u32 coal_intvl; member
396 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
418 u32 prescale = 0, addnl_dvdr = 1, coal_intvl = 0; in emac_set_coalesce() local
421 priv->coal_intvl = 0; in emac_set_coalesce()
435 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
442 if (coal_intvl < EMAC_DM646X_CMINTMIN_INTVL) in emac_set_coalesce()
443 coal_intvl = EMAC_DM646X_CMINTMIN_INTVL; in emac_set_coalesce()
445 if (coal_intvl > EMAC_DM646X_CMINTMAX_INTVL) { in emac_set_coalesce()
454 if (coal_intvl > (EMAC_DM646X_CMINTMAX_INTVL in emac_set_coalesce()
456 coal_intvl = (EMAC_DM646X_CMINTMAX_INTVL in emac_set_coalesce()
460 coal_intvl = EMAC_DM646X_CMINTMAX_INTVL; in emac_set_coalesce()
464 num_interrupts = (1000 * addnl_dvdr) / coal_intvl; in emac_set_coalesce()
478 prescale = coal_intvl * priv->bus_freq_mhz; in emac_set_coalesce()
481 coal_intvl = prescale / priv->bus_freq_mhz; in emac_set_coalesce()
488 printk(KERN_INFO"Set coalesce to %d usecs.\n", coal_intvl); in emac_set_coalesce()
489 priv->coal_intvl = coal_intvl; in emac_set_coalesce()
1485 if (priv->coal_intvl != 0) { in emac_dev_open()
1488 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1855 priv->coal_intvl = 0; in davinci_emac_probe()