/drivers/thunderbolt/ |
D | nhi.c | 37 bit += ring->nhi->hop_count; in ring_interrupt_index() 62 index = ring->hop + ring->nhi->hop_count; in ring_interrupt_active() 68 misc = ioread32(ring->nhi->iobase + REG_DMA_MISC); in ring_interrupt_active() 71 iowrite32(misc, ring->nhi->iobase + REG_DMA_MISC); in ring_interrupt_active() 74 ivr_base = ring->nhi->iobase + REG_INT_VEC_ALLOC_BASE; in ring_interrupt_active() 84 old = ioread32(ring->nhi->iobase + reg); in ring_interrupt_active() 90 dev_info(&ring->nhi->pdev->dev, in ring_interrupt_active() 95 dev_WARN(&ring->nhi->pdev->dev, in ring_interrupt_active() 99 iowrite32(new, ring->nhi->iobase + reg); in ring_interrupt_active() 107 static void nhi_disable_interrupts(struct tb_nhi *nhi) in nhi_disable_interrupts() argument [all …]
|
D | icm.c | 522 upstream_port = get_upstream_port(tb->nhi->pdev); in icm_ar_is_supported() 541 struct tb_nhi *nhi = tb->nhi; in icm_ar_get_mode() local 546 val = ioread32(nhi->iobase + REG_FW_STS); in icm_ar_get_mode() 553 dev_err(&nhi->pdev->dev, "ICM firmware not authenticated\n"); in icm_ar_get_mode() 557 return nhi_mailbox_mode(nhi); in icm_ar_get_mode() 718 static int icm_firmware_reset(struct tb *tb, struct tb_nhi *nhi) in icm_firmware_reset() argument 727 val = ioread32(nhi->iobase + REG_FW_STS); in icm_firmware_reset() 729 iowrite32(val, nhi->iobase + REG_FW_STS); in icm_firmware_reset() 732 val = ioread32(nhi->iobase + REG_FW_STS); in icm_firmware_reset() 735 iowrite32(val, nhi->iobase + REG_FW_STS); in icm_firmware_reset() [all …]
|
D | nhi.h | 63 struct tb_nhi *nhi; member 101 struct tb_ring *ring_alloc_tx(struct tb_nhi *nhi, int hop, int size, 103 struct tb_ring *ring_alloc_rx(struct tb_nhi *nhi, int hop, int size, 164 int nhi_mailbox_cmd(struct tb_nhi *nhi, enum nhi_mailbox_cmd cmd, u32 data); 165 enum nhi_fw_mode nhi_mailbox_mode(struct tb_nhi *nhi);
|
D | nhi_regs.h | 89 #define RING_NOTIFY_REG_COUNT(nhi) ((31 + 3 * nhi->hop_count) / 32) argument 97 #define RING_INTERRUPT_REG_COUNT(nhi) ((31 + 2 * nhi->hop_count) / 32) argument
|
D | tb.h | 244 struct tb_nhi *nhi; member 339 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) 340 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) 341 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) 342 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) 369 struct tb *icm_probe(struct tb_nhi *nhi); 370 struct tb *tb_probe(struct tb_nhi *nhi); 380 struct tb *tb_domain_alloc(struct tb_nhi *nhi, size_t privsize);
|
D | ctl.c | 25 struct tb_nhi *nhi; member 41 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg) 44 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg) 47 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg) 50 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg) 53 dev_dbg(&(ctl)->nhi->pdev->dev, format, ## arg) 612 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, event_cb cb, void *cb_data) in tb_ctl_alloc() argument 618 ctl->nhi = nhi; in tb_ctl_alloc() 624 ctl->frame_pool = dma_pool_create("thunderbolt_ctl", &nhi->pdev->dev, in tb_ctl_alloc() 629 ctl->tx = ring_alloc_tx(nhi, 0, 10, RING_FLAG_NO_SUSPEND); in tb_ctl_alloc() [all …]
|
D | domain.c | 87 struct tb *tb_domain_alloc(struct tb_nhi *nhi, size_t privsize) in tb_domain_alloc() argument 103 tb->nhi = nhi; in tb_domain_alloc() 114 tb->dev.parent = &nhi->pdev->dev; in tb_domain_alloc() 164 tb->ctl = tb_ctl_alloc(tb->nhi, tb_domain_event_cb, tb); in tb_domain_add()
|
D | Makefile | 2 thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
|
D | tb.c | 453 struct tb *tb_probe(struct tb_nhi *nhi) in tb_probe() argument 461 tb = tb_domain_alloc(nhi, sizeof(*tcm)); in tb_probe()
|
D | ctl.h | 22 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, event_cb cb, void *cb_data);
|
D | eeprom.c | 413 struct device *dev = &sw->tb->nhi->pdev->dev; in tb_drom_copy_efi()
|
/drivers/pci/ |
D | quirks.c | 3524 struct pci_dev *nhi = NULL; in quirk_apple_wait_for_thunderbolt() local 3539 nhi = pci_get_slot(sibling->subordinate, 0x0); in quirk_apple_wait_for_thunderbolt() 3540 if (!nhi) in quirk_apple_wait_for_thunderbolt() 3542 if (nhi->vendor != PCI_VENDOR_ID_INTEL in quirk_apple_wait_for_thunderbolt() 3543 || (nhi->device != PCI_DEVICE_ID_INTEL_LIGHT_RIDGE && in quirk_apple_wait_for_thunderbolt() 3544 nhi->device != PCI_DEVICE_ID_INTEL_CACTUS_RIDGE_4C && in quirk_apple_wait_for_thunderbolt() 3545 nhi->device != PCI_DEVICE_ID_INTEL_FALCON_RIDGE_2C_NHI && in quirk_apple_wait_for_thunderbolt() 3546 nhi->device != PCI_DEVICE_ID_INTEL_FALCON_RIDGE_4C_NHI) in quirk_apple_wait_for_thunderbolt() 3547 || nhi->class != PCI_CLASS_SYSTEM_OTHER << 8) in quirk_apple_wait_for_thunderbolt() 3550 device_pm_wait_for_dev(&dev->dev, &nhi->dev); in quirk_apple_wait_for_thunderbolt() [all …]
|