Lines Matching refs:atm_dev
101 static int he_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg);
104 static int he_proc_read(struct atm_dev *dev,loff_t *pos,char *page);
105 static int he_start(struct atm_dev *dev);
107 static void he_phy_put(struct atm_dev *, unsigned char, unsigned long);
108 static unsigned char he_phy_get(struct atm_dev *, unsigned long);
342 if (vcc->dev == he_dev->atm_dev && in __find_vcc()
354 struct atm_dev *atm_dev = NULL; in he_init_one() local
368 atm_dev = atm_dev_register(DEV_LABEL, &pci_dev->dev, &he_ops, -1, NULL); in he_init_one()
369 if (!atm_dev) { in he_init_one()
373 pci_set_drvdata(pci_dev, atm_dev); in he_init_one()
382 he_dev->atm_dev = atm_dev; in he_init_one()
383 he_dev->atm_dev->dev_data = he_dev; in he_init_one()
384 atm_dev->dev_data = he_dev; in he_init_one()
385 he_dev->number = atm_dev->number; in he_init_one()
389 if (he_start(atm_dev)) { in he_init_one()
401 if (atm_dev) in he_init_one()
402 atm_dev_deregister(atm_dev); in he_init_one()
410 struct atm_dev *atm_dev; in he_remove_one() local
413 atm_dev = pci_get_drvdata(pci_dev); in he_remove_one()
414 he_dev = HE_DEV(atm_dev); in he_remove_one()
419 atm_dev_deregister(atm_dev); in he_remove_one()
568 rate = he_dev->atm_dev->link_rate; in he_init_cs_block()
682 rate = he_dev->atm_dev->link_rate; in he_init_cs_block_rcm()
738 (he_dev->atm_dev->link_rate * 2); in he_init_cs_block_rcm()
741 mult = he_dev->atm_dev->link_rate / ATM_OC3_PCR; in he_init_cs_block_rcm()
970 static int he_start(struct atm_dev *dev) in he_start()
1092 he_dev->atm_dev->link_rate = he_is622(he_dev) ? in he_start()
1476 suni_init(he_dev->atm_dev); in he_start()
1477 if (he_dev->atm_dev->phy && he_dev->atm_dev->phy->start) in he_start()
1478 he_dev->atm_dev->phy->start(he_dev->atm_dev); in he_start()
1485 val = he_phy_get(he_dev->atm_dev, SUNI_TPOP_APM); in he_start()
1487 he_phy_put(he_dev->atm_dev, val, SUNI_TPOP_APM); in he_start()
1488 he_phy_put(he_dev->atm_dev, SUNI_TACP_IUCHP_CLP, SUNI_TACP_IUCHP); in he_start()
1510 he_dev->atm_dev->ci_range.vpi_bits = he_dev->vpibits; in he_start()
1511 he_dev->atm_dev->ci_range.vci_bits = he_dev->vcibits; in he_start()
1554 if (he_dev->atm_dev->phy && he_dev->atm_dev->phy->stop) in he_stop()
1555 he_dev->atm_dev->phy->stop(he_dev->atm_dev); in he_stop()
1965 if (he_dev->atm_dev->phy && he_dev->atm_dev->phy->interrupt) in he_tasklet()
1966 he_dev->atm_dev->phy->interrupt(he_dev->atm_dev); in he_tasklet()
2154 pcr_goal = he_dev->atm_dev->link_rate; in he_open()
2197 > (he_dev->atm_dev->link_rate * 9 / 10)) in he_open()
2608 he_ioctl(struct atm_dev *atm_dev, unsigned int cmd, void __user *arg) in he_ioctl() argument
2611 struct he_dev *he_dev = HE_DEV(atm_dev); in he_ioctl()
2658 if (atm_dev->phy && atm_dev->phy->ioctl) in he_ioctl()
2659 err = atm_dev->phy->ioctl(atm_dev, cmd, arg); in he_ioctl()
2670 he_phy_put(struct atm_dev *atm_dev, unsigned char val, unsigned long addr) in he_phy_put() argument
2673 struct he_dev *he_dev = HE_DEV(atm_dev); in he_phy_put()
2685 he_phy_get(struct atm_dev *atm_dev, unsigned long addr) in he_phy_get() argument
2688 struct he_dev *he_dev = HE_DEV(atm_dev); in he_phy_get()
2700 he_proc_read(struct atm_dev *dev, loff_t *pos, char *page) in he_proc_read()
2777 he_dev->total_bw, he_dev->atm_dev->link_rate * 10 / 9); in he_proc_read()