Searched refs:nhi (Results 1 – 9 of 9) sorted by relevance
/drivers/thunderbolt/ |
D | nhi.c | 29 bit += ring->nhi->hop_count; in ring_interrupt_index() 45 old = ioread32(ring->nhi->iobase + reg); in ring_interrupt_active() 51 dev_info(&ring->nhi->pdev->dev, in ring_interrupt_active() 56 dev_WARN(&ring->nhi->pdev->dev, in ring_interrupt_active() 60 iowrite32(new, ring->nhi->iobase + reg); in ring_interrupt_active() 68 static void nhi_disable_interrupts(struct tb_nhi *nhi) in nhi_disable_interrupts() argument 72 for (i = 0; i < RING_INTERRUPT_REG_COUNT(nhi); i++) in nhi_disable_interrupts() 73 iowrite32(0, nhi->iobase + REG_RING_INTERRUPT_BASE + 4 * i); in nhi_disable_interrupts() 76 for (i = 0; i < RING_NOTIFY_REG_COUNT(nhi); i++) in nhi_disable_interrupts() 77 ioread32(nhi->iobase + REG_RING_NOTIFY_BASE + 4 * i); in nhi_disable_interrupts() [all …]
|
D | nhi_regs.h | 88 #define RING_NOTIFY_REG_COUNT(nhi) ((31 + 3 * nhi->hop_count) / 32) argument 96 #define RING_INTERRUPT_REG_COUNT(nhi) ((31 + 2 * nhi->hop_count) / 32) argument
|
D | tb.h | 104 struct tb_nhi *nhi; member 188 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) 189 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) 190 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) 191 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) 219 struct tb *thunderbolt_alloc_and_start(struct tb_nhi *nhi);
|
D | nhi.h | 35 struct tb_nhi *nhi; member 67 struct tb_ring *ring_alloc_tx(struct tb_nhi *nhi, int hop, int size); 68 struct tb_ring *ring_alloc_rx(struct tb_nhi *nhi, int hop, int size);
|
D | ctl.c | 29 struct tb_nhi *nhi; member 44 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg) 47 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg) 50 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg) 53 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg) 474 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, hotplug_cb cb, void *cb_data) in tb_ctl_alloc() argument 480 ctl->nhi = nhi; in tb_ctl_alloc() 486 ctl->frame_pool = dma_pool_create("thunderbolt_ctl", &nhi->pdev->dev, in tb_ctl_alloc() 491 ctl->tx = ring_alloc_tx(nhi, 0, 10); in tb_ctl_alloc() 495 ctl->rx = ring_alloc_rx(nhi, 0, 10); in tb_ctl_alloc()
|
D | tb.c | 349 struct tb *thunderbolt_alloc_and_start(struct tb_nhi *nhi) in thunderbolt_alloc_and_start() argument 361 tb->nhi = nhi; in thunderbolt_alloc_and_start() 370 tb->ctl = tb_ctl_alloc(tb->nhi, tb_schedule_hotplug_handler, tb); in thunderbolt_alloc_and_start()
|
D | Makefile | 2 thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
|
D | ctl.h | 17 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, hotplug_cb cb, void *cb_data);
|
/drivers/pci/ |
D | quirks.c | 3459 struct pci_dev *nhi = NULL; in quirk_apple_wait_for_thunderbolt() local 3474 nhi = pci_get_slot(sibling->subordinate, 0x0); in quirk_apple_wait_for_thunderbolt() 3475 if (!nhi) in quirk_apple_wait_for_thunderbolt() 3477 if (nhi->vendor != PCI_VENDOR_ID_INTEL in quirk_apple_wait_for_thunderbolt() 3478 || (nhi->device != PCI_DEVICE_ID_INTEL_LIGHT_RIDGE && in quirk_apple_wait_for_thunderbolt() 3479 nhi->device != PCI_DEVICE_ID_INTEL_CACTUS_RIDGE_4C && in quirk_apple_wait_for_thunderbolt() 3480 nhi->device != PCI_DEVICE_ID_INTEL_FALCON_RIDGE_2C_NHI && in quirk_apple_wait_for_thunderbolt() 3481 nhi->device != PCI_DEVICE_ID_INTEL_FALCON_RIDGE_4C_NHI) in quirk_apple_wait_for_thunderbolt() 3482 || nhi->class != PCI_CLASS_SYSTEM_OTHER << 8) in quirk_apple_wait_for_thunderbolt() 3485 device_pm_wait_for_dev(&dev->dev, &nhi->dev); in quirk_apple_wait_for_thunderbolt() [all …]
|