lynx 635 arch/alpha/kernel/sys_sable.c ALIAS_MV(lynx) lynx 85 drivers/firewire/nosy.c lynx_get(struct pcilynx *lynx) lynx 87 drivers/firewire/nosy.c kref_get(&lynx->kref); lynx 89 drivers/firewire/nosy.c return lynx; lynx 99 drivers/firewire/nosy.c lynx_put(struct pcilynx *lynx) lynx 101 drivers/firewire/nosy.c kref_put(&lynx->kref, lynx_release); lynx 105 drivers/firewire/nosy.c struct pcilynx *lynx; lynx 145 drivers/firewire/nosy.c list_empty(&client->lynx->link)) lynx 214 drivers/firewire/nosy.c reg_write(struct pcilynx *lynx, int offset, u32 data) lynx 216 drivers/firewire/nosy.c writel(data, lynx->registers + offset); lynx 220 drivers/firewire/nosy.c reg_read(struct pcilynx *lynx, int offset) lynx 222 drivers/firewire/nosy.c return readl(lynx->registers + offset); lynx 226 drivers/firewire/nosy.c reg_set_bits(struct pcilynx *lynx, int offset, u32 mask) lynx 228 drivers/firewire/nosy.c reg_write(lynx, offset, (reg_read(lynx, offset) | mask)); lynx 236 drivers/firewire/nosy.c run_pcl(struct pcilynx *lynx, dma_addr_t pcl_bus, lynx 239 drivers/firewire/nosy.c reg_write(lynx, DMA0_CURRENT_PCL + dmachan * 0x20, pcl_bus); lynx 240 drivers/firewire/nosy.c reg_write(lynx, DMA0_CHAN_CTRL + dmachan * 0x20, lynx 245 drivers/firewire/nosy.c set_phy_reg(struct pcilynx *lynx, int addr, int val) lynx 248 drivers/firewire/nosy.c dev_err(&lynx->pci_device->dev, lynx 253 drivers/firewire/nosy.c dev_err(&lynx->pci_device->dev, lynx 257 drivers/firewire/nosy.c reg_write(lynx, LINK_PHY, LINK_PHY_WRITE | lynx 268 drivers/firewire/nosy.c struct pcilynx *tmp, *lynx = NULL; lynx 273 drivers/firewire/nosy.c lynx = lynx_get(tmp); lynx 277 drivers/firewire/nosy.c if (lynx == NULL) lynx 285 drivers/firewire/nosy.c client->lynx = lynx; lynx 296 drivers/firewire/nosy.c lynx_put(lynx); lynx 305 drivers/firewire/nosy.c struct pcilynx *lynx = client->lynx; lynx 307 drivers/firewire/nosy.c spin_lock_irq(&lynx->client_list_lock); lynx 309 drivers/firewire/nosy.c spin_unlock_irq(&lynx->client_list_lock); lynx 313 drivers/firewire/nosy.c lynx_put(lynx); lynx 329 drivers/firewire/nosy.c if (list_empty(&client->lynx->link)) lynx 347 drivers/firewire/nosy.c spinlock_t *client_list_lock = &client->lynx->client_list_lock; lynx 364 drivers/firewire/nosy.c list_add_tail(&client->link, &client->lynx->client_list); lynx 401 drivers/firewire/nosy.c packet_irq_handler(struct pcilynx *lynx) lynx 410 drivers/firewire/nosy.c length = __le32_to_cpu(lynx->rcv_pcl->pcl_status) & 0x00001fff; lynx 411 drivers/firewire/nosy.c tcode = __le32_to_cpu(lynx->rcv_buffer[1]) >> 4 & 0xf; lynx 415 drivers/firewire/nosy.c lynx->rcv_buffer[0] = (__force __le32)timestamp; lynx 422 drivers/firewire/nosy.c spin_lock(&lynx->client_list_lock); lynx 424 drivers/firewire/nosy.c list_for_each_entry(client, &lynx->client_list, link) lynx 427 drivers/firewire/nosy.c lynx->rcv_buffer, length + 4); lynx 429 drivers/firewire/nosy.c spin_unlock(&lynx->client_list_lock); lynx 433 drivers/firewire/nosy.c bus_reset_irq_handler(struct pcilynx *lynx) lynx 442 drivers/firewire/nosy.c spin_lock(&lynx->client_list_lock); lynx 444 drivers/firewire/nosy.c list_for_each_entry(client, &lynx->client_list, link) lynx 447 drivers/firewire/nosy.c spin_unlock(&lynx->client_list_lock); lynx 453 drivers/firewire/nosy.c struct pcilynx *lynx = device; lynx 456 drivers/firewire/nosy.c pci_int_status = reg_read(lynx, PCI_INT_STATUS); lynx 469 drivers/firewire/nosy.c link_int_status = reg_read(lynx, LINK_INT_STATUS); lynx 470 drivers/firewire/nosy.c reg_write(lynx, LINK_INT_STATUS, link_int_status); lynx 473 drivers/firewire/nosy.c bus_reset_irq_handler(lynx); lynx 480 drivers/firewire/nosy.c reg_write(lynx, PCI_INT_STATUS, pci_int_status); lynx 483 drivers/firewire/nosy.c packet_irq_handler(lynx); lynx 484 drivers/firewire/nosy.c run_pcl(lynx, lynx->rcv_start_pcl_bus, 0); lynx 493 drivers/firewire/nosy.c struct pcilynx *lynx = pci_get_drvdata(dev); lynx 497 drivers/firewire/nosy.c list_del_init(&lynx->link); lynx 498 drivers/firewire/nosy.c misc_deregister(&lynx->misc); lynx 501 drivers/firewire/nosy.c reg_write(lynx, PCI_INT_ENABLE, 0); lynx 502 drivers/firewire/nosy.c free_irq(lynx->pci_device->irq, lynx); lynx 504 drivers/firewire/nosy.c spin_lock_irq(&lynx->client_list_lock); lynx 505 drivers/firewire/nosy.c list_for_each_entry(client, &lynx->client_list, link) lynx 507 drivers/firewire/nosy.c spin_unlock_irq(&lynx->client_list_lock); lynx 509 drivers/firewire/nosy.c pci_free_consistent(lynx->pci_device, sizeof(struct pcl), lynx 510 drivers/firewire/nosy.c lynx->rcv_start_pcl, lynx->rcv_start_pcl_bus); lynx 511 drivers/firewire/nosy.c pci_free_consistent(lynx->pci_device, sizeof(struct pcl), lynx 512 drivers/firewire/nosy.c lynx->rcv_pcl, lynx->rcv_pcl_bus); lynx 513 drivers/firewire/nosy.c pci_free_consistent(lynx->pci_device, PAGE_SIZE, lynx 514 drivers/firewire/nosy.c lynx->rcv_buffer, lynx->rcv_buffer_bus); lynx 516 drivers/firewire/nosy.c iounmap(lynx->registers); lynx 518 drivers/firewire/nosy.c lynx_put(lynx); lynx 526 drivers/firewire/nosy.c struct pcilynx *lynx; lynx 541 drivers/firewire/nosy.c lynx = kzalloc(sizeof *lynx, GFP_KERNEL); lynx 542 drivers/firewire/nosy.c if (lynx == NULL) { lynx 547 drivers/firewire/nosy.c lynx->pci_device = dev; lynx 548 drivers/firewire/nosy.c pci_set_drvdata(dev, lynx); lynx 550 drivers/firewire/nosy.c spin_lock_init(&lynx->client_list_lock); lynx 551 drivers/firewire/nosy.c INIT_LIST_HEAD(&lynx->client_list); lynx 552 drivers/firewire/nosy.c kref_init(&lynx->kref); lynx 554 drivers/firewire/nosy.c lynx->registers = ioremap_nocache(pci_resource_start(dev, 0), lynx 556 drivers/firewire/nosy.c if (lynx->registers == NULL) { lynx 562 drivers/firewire/nosy.c lynx->rcv_start_pcl = pci_alloc_consistent(lynx->pci_device, lynx 563 drivers/firewire/nosy.c sizeof(struct pcl), &lynx->rcv_start_pcl_bus); lynx 564 drivers/firewire/nosy.c lynx->rcv_pcl = pci_alloc_consistent(lynx->pci_device, lynx 565 drivers/firewire/nosy.c sizeof(struct pcl), &lynx->rcv_pcl_bus); lynx 566 drivers/firewire/nosy.c lynx->rcv_buffer = pci_alloc_consistent(lynx->pci_device, lynx 567 drivers/firewire/nosy.c RCV_BUFFER_SIZE, &lynx->rcv_buffer_bus); lynx 568 drivers/firewire/nosy.c if (lynx->rcv_start_pcl == NULL || lynx 569 drivers/firewire/nosy.c lynx->rcv_pcl == NULL || lynx 570 drivers/firewire/nosy.c lynx->rcv_buffer == NULL) { lynx 575 drivers/firewire/nosy.c lynx->rcv_start_pcl->next = cpu_to_le32(lynx->rcv_pcl_bus); lynx 576 drivers/firewire/nosy.c lynx->rcv_pcl->next = cpu_to_le32(PCL_NEXT_INVALID); lynx 577 drivers/firewire/nosy.c lynx->rcv_pcl->async_error_next = cpu_to_le32(PCL_NEXT_INVALID); lynx 579 drivers/firewire/nosy.c lynx->rcv_pcl->buffer[0].control = lynx 581 drivers/firewire/nosy.c lynx->rcv_pcl->buffer[0].pointer = lynx 582 drivers/firewire/nosy.c cpu_to_le32(lynx->rcv_buffer_bus + 4); lynx 583 drivers/firewire/nosy.c p = lynx->rcv_buffer_bus + 2048; lynx 584 drivers/firewire/nosy.c end = lynx->rcv_buffer_bus + RCV_BUFFER_SIZE; lynx 586 drivers/firewire/nosy.c lynx->rcv_pcl->buffer[i].control = lynx 588 drivers/firewire/nosy.c lynx->rcv_pcl->buffer[i].pointer = cpu_to_le32(p); lynx 590 drivers/firewire/nosy.c lynx->rcv_pcl->buffer[i - 1].control |= cpu_to_le32(PCL_LAST_BUFF); lynx 592 drivers/firewire/nosy.c reg_set_bits(lynx, MISC_CONTROL, MISC_CONTROL_SWRESET); lynx 594 drivers/firewire/nosy.c reg_write(lynx, DMA0_CHAN_CTRL, 0); lynx 595 drivers/firewire/nosy.c reg_write(lynx, DMA_GLOBAL_REGISTER, 0x00 << 24); lynx 599 drivers/firewire/nosy.c if ((get_phy_reg(lynx, 2) & 0xe0) == 0xe0) { lynx 600 drivers/firewire/nosy.c lynx->phyic.reg_1394a = 1; lynx 601 drivers/firewire/nosy.c PRINT(KERN_INFO, lynx->id, lynx 603 drivers/firewire/nosy.c lynx->phyic.vendor = get_phy_vendorid(lynx); lynx 604 drivers/firewire/nosy.c lynx->phyic.product = get_phy_productid(lynx); lynx 606 drivers/firewire/nosy.c lynx->phyic.reg_1394a = 0; lynx 607 drivers/firewire/nosy.c PRINT(KERN_INFO, lynx->id, "found old 1394 PHY"); lynx 612 drivers/firewire/nosy.c reg_write(lynx, FIFO_SIZES, 255); lynx 614 drivers/firewire/nosy.c reg_set_bits(lynx, PCI_INT_ENABLE, PCI_INT_DMA_ALL); lynx 616 drivers/firewire/nosy.c reg_write(lynx, LINK_INT_ENABLE, lynx 624 drivers/firewire/nosy.c set_phy_reg(lynx, 4, 0); lynx 627 drivers/firewire/nosy.c reg_set_bits(lynx, LINK_CONTROL, LINK_CONTROL_SNOOP_ENABLE); lynx 629 drivers/firewire/nosy.c run_pcl(lynx, lynx->rcv_start_pcl_bus, 0); lynx 632 drivers/firewire/nosy.c driver_name, lynx)) { lynx 639 drivers/firewire/nosy.c lynx->misc.parent = &dev->dev; lynx 640 drivers/firewire/nosy.c lynx->misc.minor = MISC_DYNAMIC_MINOR; lynx 641 drivers/firewire/nosy.c lynx->misc.name = "nosy"; lynx 642 drivers/firewire/nosy.c lynx->misc.fops = &nosy_ops; lynx 645 drivers/firewire/nosy.c ret = misc_register(&lynx->misc); lynx 651 drivers/firewire/nosy.c list_add_tail(&lynx->link, &card_list); lynx 660 drivers/firewire/nosy.c reg_write(lynx, PCI_INT_ENABLE, 0); lynx 661 drivers/firewire/nosy.c free_irq(lynx->pci_device->irq, lynx); lynx 664 drivers/firewire/nosy.c if (lynx->rcv_start_pcl) lynx 665 drivers/firewire/nosy.c pci_free_consistent(lynx->pci_device, sizeof(struct pcl), lynx 666 drivers/firewire/nosy.c lynx->rcv_start_pcl, lynx->rcv_start_pcl_bus); lynx 667 drivers/firewire/nosy.c if (lynx->rcv_pcl) lynx 668 drivers/firewire/nosy.c pci_free_consistent(lynx->pci_device, sizeof(struct pcl), lynx 669 drivers/firewire/nosy.c lynx->rcv_pcl, lynx->rcv_pcl_bus); lynx 670 drivers/firewire/nosy.c if (lynx->rcv_buffer) lynx 671 drivers/firewire/nosy.c pci_free_consistent(lynx->pci_device, PAGE_SIZE, lynx 672 drivers/firewire/nosy.c lynx->rcv_buffer, lynx->rcv_buffer_bus); lynx 673 drivers/firewire/nosy.c iounmap(lynx->registers); lynx 676 drivers/firewire/nosy.c kfree(lynx);