Home
last modified time | relevance | path

Searched refs:nhi (Results 1 – 14 of 14) sorted by relevance

/Linux-v4.19/drivers/thunderbolt/
Dnhi.c45 bit += ring->nhi->hop_count; in ring_interrupt_index()
70 index = ring->hop + ring->nhi->hop_count; in ring_interrupt_active()
76 misc = ioread32(ring->nhi->iobase + REG_DMA_MISC); in ring_interrupt_active()
79 iowrite32(misc, ring->nhi->iobase + REG_DMA_MISC); in ring_interrupt_active()
82 ivr_base = ring->nhi->iobase + REG_INT_VEC_ALLOC_BASE; in ring_interrupt_active()
92 old = ioread32(ring->nhi->iobase + reg); in ring_interrupt_active()
98 dev_info(&ring->nhi->pdev->dev, in ring_interrupt_active()
103 dev_WARN(&ring->nhi->pdev->dev, in ring_interrupt_active()
107 iowrite32(new, ring->nhi->iobase + reg); in ring_interrupt_active()
115 static void nhi_disable_interrupts(struct tb_nhi *nhi) in nhi_disable_interrupts() argument
[all …]
Dnhi_regs.h84 #define RING_NOTIFY_REG_COUNT(nhi) ((31 + 3 * nhi->hop_count) / 32) argument
92 #define RING_INTERRUPT_REG_COUNT(nhi) ((31 + 2 * nhi->hop_count) / 32) argument
Dicm.c309 nhi_mailbox_cmd(tb->nhi, NHI_MAILBOX_SAVE_DEVS, 0); in icm_fr_save_devices()
457 nhi_mailbox_cmd(tb->nhi, cmd, 1); in icm_fr_disconnect_xdomain_paths()
459 nhi_mailbox_cmd(tb->nhi, cmd, 2); in icm_fr_disconnect_xdomain_paths()
1219 upstream_port = get_upstream_port(tb->nhi->pdev); in icm_ar_is_supported()
1238 struct tb_nhi *nhi = tb->nhi; in icm_ar_get_mode() local
1243 val = ioread32(nhi->iobase + REG_FW_STS); in icm_ar_get_mode()
1250 dev_err(&nhi->pdev->dev, "ICM firmware not authenticated\n"); in icm_ar_get_mode()
1254 return nhi_mailbox_mode(nhi); in icm_ar_get_mode()
1532 static int icm_firmware_reset(struct tb *tb, struct tb_nhi *nhi) in icm_firmware_reset() argument
1541 val = ioread32(nhi->iobase + REG_FW_STS); in icm_firmware_reset()
[all …]
Dnhi.h29 int nhi_mailbox_cmd(struct tb_nhi *nhi, enum nhi_mailbox_cmd cmd, u32 data);
30 enum nhi_fw_mode nhi_mailbox_mode(struct tb_nhi *nhi);
Dtb.h326 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg)
327 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg)
328 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg)
329 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg)
356 struct tb *icm_probe(struct tb_nhi *nhi);
357 struct tb *tb_probe(struct tb_nhi *nhi);
368 struct tb *tb_domain_alloc(struct tb_nhi *nhi, size_t privsize);
Dctl.c25 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)
601 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, event_cb cb, void *cb_data) in tb_ctl_alloc() argument
607 ctl->nhi = nhi; in tb_ctl_alloc()
613 ctl->frame_pool = dma_pool_create("thunderbolt_ctl", &nhi->pdev->dev, in tb_ctl_alloc()
618 ctl->tx = tb_ring_alloc_tx(nhi, 0, 10, RING_FLAG_NO_SUSPEND); in tb_ctl_alloc()
[all …]
DMakefile2 thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
Ddomain.c326 struct tb *tb_domain_alloc(struct tb_nhi *nhi, size_t privsize) in tb_domain_alloc() argument
342 tb->nhi = nhi; in tb_domain_alloc()
353 tb->dev.parent = &nhi->pdev->dev; in tb_domain_alloc()
412 tb->ctl = tb_ctl_alloc(tb->nhi, tb_domain_event_cb, tb); in tb_domain_add()
Dctl.h23 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, event_cb cb, void *cb_data);
Dtb.c453 struct tb *tb_probe(struct tb_nhi *nhi) in tb_probe() argument
461 tb = tb_domain_alloc(nhi, sizeof(*tcm)); in tb_probe()
Deeprom.c413 struct device *dev = &sw->tb->nhi->pdev->dev; in tb_drom_copy_efi()
/Linux-v4.19/include/linux/
Dthunderbolt.h78 struct tb_nhi *nhi; member
475 struct tb_nhi *nhi; member
547 struct tb_ring *tb_ring_alloc_tx(struct tb_nhi *nhi, int hop, int size,
549 struct tb_ring *tb_ring_alloc_rx(struct tb_nhi *nhi, int hop, int size,
614 return &ring->nhi->pdev->dev; in tb_ring_dma_device()
/Linux-v4.19/drivers/pci/
Dquirks.c3499 struct pci_dev *nhi = NULL; in quirk_apple_wait_for_thunderbolt() local
3515 nhi = pci_get_slot(sibling->subordinate, 0x0); in quirk_apple_wait_for_thunderbolt()
3516 if (!nhi) in quirk_apple_wait_for_thunderbolt()
3518 if (nhi->vendor != PCI_VENDOR_ID_INTEL in quirk_apple_wait_for_thunderbolt()
3519 || (nhi->device != PCI_DEVICE_ID_INTEL_LIGHT_RIDGE && in quirk_apple_wait_for_thunderbolt()
3520 nhi->device != PCI_DEVICE_ID_INTEL_CACTUS_RIDGE_4C && in quirk_apple_wait_for_thunderbolt()
3521 nhi->device != PCI_DEVICE_ID_INTEL_FALCON_RIDGE_2C_NHI && in quirk_apple_wait_for_thunderbolt()
3522 nhi->device != PCI_DEVICE_ID_INTEL_FALCON_RIDGE_4C_NHI) in quirk_apple_wait_for_thunderbolt()
3523 || nhi->class != PCI_CLASS_SYSTEM_OTHER << 8) in quirk_apple_wait_for_thunderbolt()
3526 device_pm_wait_for_dev(&dev->dev, &nhi->dev); in quirk_apple_wait_for_thunderbolt()
[all …]
/Linux-v4.19/drivers/net/
Dthunderbolt.c860 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
871 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()