Lines Matching refs:atmdev
2107 static int lanai_dev_open(struct atm_dev *atmdev) in lanai_dev_open() argument
2109 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; in lanai_dev_open()
2115 lanai->number = atmdev->number; in lanai_dev_open()
2127 atmdev->ci_range.vpi_bits = 0; in lanai_dev_open()
2128 atmdev->ci_range.vci_bits = 0; in lanai_dev_open()
2129 while (1 << atmdev->ci_range.vci_bits < lanai->num_vci) in lanai_dev_open()
2130 atmdev->ci_range.vci_bits++; in lanai_dev_open()
2131 atmdev->link_rate = ATM_25_PCR; in lanai_dev_open()
2215 memcpy(atmdev->esi, eeprom_mac(lanai), ESI_LEN); in lanai_dev_open()
2219 lanai->base, lanai->pci->irq, atmdev->esi); in lanai_dev_open()
2247 static void lanai_dev_close(struct atm_dev *atmdev) in lanai_dev_close() argument
2249 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; in lanai_dev_close()
2443 static int lanai_proc_read(struct atm_dev *atmdev, loff_t *pos, char *page) in lanai_proc_read() argument
2445 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; in lanai_proc_read()
2451 atmdev->number, lanai->type==lanai2 ? "2" : "HB", in lanai_proc_read()
2556 struct atm_dev *atmdev; in lanai_init_one() local
2566 atmdev = atm_dev_register(DEV_LABEL, &pci->dev, &ops, -1, NULL); in lanai_init_one()
2567 if (atmdev == NULL) { in lanai_init_one()
2574 atmdev->dev_data = lanai; in lanai_init_one()
2578 result = lanai_dev_open(atmdev); in lanai_init_one()
2581 atm_dev_deregister(atmdev); in lanai_init_one()