Lines Matching refs:atmdev
111 struct atm_dev *atmdev[4]; member
140 #define SOLOS_CHAN(atmdev) ((int)(unsigned long)(atmdev)->phy_data) argument
184 struct atm_dev *atmdev = container_of(dev, struct atm_dev, class_dev); in solos_param_show() local
185 struct solos_card *card = atmdev->dev_data; in solos_param_show()
212 prm.port = SOLOS_CHAN(atmdev); in solos_param_show()
239 struct atm_dev *atmdev = container_of(dev, struct atm_dev, class_dev); in solos_param_store() local
240 struct solos_card *card = atmdev->dev_data; in solos_param_store()
268 prm.port = SOLOS_CHAN(atmdev); in solos_param_store()
344 if (!card->atmdev[port]) in process_status()
388 atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_LOST); in process_status()
404 card->atmdev[port]->link_rate = rate_down / 424; in process_status()
405 atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_FOUND); in process_status()
447 struct atm_dev *atmdev = container_of(dev, struct atm_dev, class_dev); in console_show() local
448 struct solos_card *card = atmdev->dev_data; in console_show()
453 skb = skb_dequeue(&card->cli_queue[SOLOS_CHAN(atmdev)]); in console_show()
497 struct atm_dev *atmdev = container_of(dev, struct atm_dev, class_dev); in console_store() local
498 struct solos_card *card = atmdev->dev_data; in console_store()
501 err = send_command(card, SOLOS_CHAN(atmdev), buf, count); in console_store()
749 if (card->atmdev[0]) in solos_irq()
828 vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi), in solos_bh()
869 if (card->using_dma && card->atmdev[port] && in solos_bh()
1363 card->atmdev[i] = atm_dev_register("solos-pci", parent, &fpga_ops, -1, NULL); in atm_init()
1364 if (!card->atmdev[i]) { in atm_init()
1369 if (device_create_file(&card->atmdev[i]->class_dev, &dev_attr_console)) in atm_init()
1371 if (sysfs_create_group(&card->atmdev[i]->class_dev.kobj, &solos_attr_group)) in atm_init()
1374 dev_info(&card->dev->dev, "Registered ATM device %d\n", card->atmdev[i]->number); in atm_init()
1376 card->atmdev[i]->ci_range.vpi_bits = 8; in atm_init()
1377 card->atmdev[i]->ci_range.vci_bits = 16; in atm_init()
1378 card->atmdev[i]->dev_data = card; in atm_init()
1379 card->atmdev[i]->phy_data = (void *)(unsigned long)i; in atm_init()
1380 atm_dev_signal_change(card->atmdev[i], ATM_PHY_SIG_FOUND); in atm_init()
1405 if (card->atmdev[i]) { in atm_remove()
1408 dev_info(&card->dev->dev, "Unregistering ATM device %d\n", card->atmdev[i]->number); in atm_remove()
1410 sysfs_remove_group(&card->atmdev[i]->class_dev.kobj, &solos_attr_group); in atm_remove()
1411 atm_dev_deregister(card->atmdev[i]); in atm_remove()