Lines Matching refs:coal_intvl
341 u32 coal_intvl; member
538 coal->rx_coalesce_usecs = priv->coal_intvl; in emac_get_coalesce()
556 u32 prescale = 0, addnl_dvdr = 1, coal_intvl = 0; in emac_set_coalesce() local
561 coal_intvl = coal->rx_coalesce_usecs; in emac_set_coalesce()
568 if (coal_intvl < EMAC_DM646X_CMINTMIN_INTVL) in emac_set_coalesce()
569 coal_intvl = EMAC_DM646X_CMINTMIN_INTVL; in emac_set_coalesce()
571 if (coal_intvl > EMAC_DM646X_CMINTMAX_INTVL) { in emac_set_coalesce()
580 if (coal_intvl > (EMAC_DM646X_CMINTMAX_INTVL in emac_set_coalesce()
582 coal_intvl = (EMAC_DM646X_CMINTMAX_INTVL in emac_set_coalesce()
586 coal_intvl = EMAC_DM646X_CMINTMAX_INTVL; in emac_set_coalesce()
590 num_interrupts = (1000 * addnl_dvdr) / coal_intvl; in emac_set_coalesce()
604 prescale = coal_intvl * priv->bus_freq_mhz; in emac_set_coalesce()
607 coal_intvl = prescale / priv->bus_freq_mhz; in emac_set_coalesce()
614 printk(KERN_INFO"Set coalesce to %d usecs.\n", coal_intvl); in emac_set_coalesce()
615 priv->coal_intvl = coal_intvl; in emac_set_coalesce()
1598 if (priv->coal_intvl != 0) { in emac_dev_open()
1601 coal.rx_coalesce_usecs = (priv->coal_intvl << 4); in emac_dev_open()
1991 priv->coal_intvl = 0; in davinci_emac_probe()