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() 44 old = ioread32(ring->nhi->iobase + reg); in ring_interrupt_active() 50 dev_info(&ring->nhi->pdev->dev, in ring_interrupt_active() 55 dev_WARN(&ring->nhi->pdev->dev, in ring_interrupt_active() 59 iowrite32(new, ring->nhi->iobase + reg); in ring_interrupt_active() 67 static void nhi_disable_interrupts(struct tb_nhi *nhi) in nhi_disable_interrupts() argument 71 for (i = 0; i < RING_INTERRUPT_REG_COUNT(nhi); i++) in nhi_disable_interrupts() 72 iowrite32(0, nhi->iobase + REG_RING_INTERRUPT_BASE + 4 * i); in nhi_disable_interrupts() 75 for (i = 0; i < RING_NOTIFY_REG_COUNT(nhi); i++) in nhi_disable_interrupts() 76 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 | 3147 struct pci_dev *nhi = NULL; in quirk_apple_wait_for_thunderbolt() local 3162 nhi = pci_get_slot(sibling->subordinate, 0x0); in quirk_apple_wait_for_thunderbolt() 3163 if (!nhi) in quirk_apple_wait_for_thunderbolt() 3165 if (nhi->vendor != PCI_VENDOR_ID_INTEL in quirk_apple_wait_for_thunderbolt() 3166 || (nhi->device != 0x1547 && nhi->device != 0x156c) in quirk_apple_wait_for_thunderbolt() 3167 || nhi->subsystem_vendor != 0x2222 in quirk_apple_wait_for_thunderbolt() 3168 || nhi->subsystem_device != 0x1111) in quirk_apple_wait_for_thunderbolt() 3171 device_pm_wait_for_dev(&dev->dev, &nhi->dev); in quirk_apple_wait_for_thunderbolt() 3173 pci_dev_put(nhi); in quirk_apple_wait_for_thunderbolt()
|