Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/thunderbolt/
A Dnhi.c422 struct tb_nhi *nhi = ring->nhi; in ring_request_msix() local
556 ring->nhi = nhi; in tb_ring_alloc()
928 struct tb_nhi *nhi = tb->nhi; in __nhi_suspend_noirq() local
1008 struct tb_nhi *nhi = tb->nhi; in nhi_resume_noirq() local
1058 struct tb_nhi *nhi = tb->nhi; in nhi_runtime_suspend() local
1077 struct tb_nhi *nhi = tb->nhi; in nhi_runtime_resume() local
1110 devm_free_irq(&nhi->pdev->dev, nhi->pdev->irq, nhi); in nhi_shutdown()
1116 nhi->ops->shutdown(nhi); in nhi_shutdown()
1309 if (nhi->ops && nhi->ops->init) { in nhi_probe()
1310 res = nhi->ops->init(nhi); in nhi_probe()
[all …]
A Dnhi_ops.c27 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_is_device_connected()
124 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_suspend()
127 if (icl_nhi_is_device_connected(nhi)) in icl_nhi_suspend()
142 return icl_nhi_force_power(nhi, false); in icl_nhi_suspend()
147 struct tb *tb = pci_get_drvdata(nhi->pdev); in icl_nhi_suspend_noirq()
151 return icl_nhi_suspend(nhi); in icl_nhi_suspend_noirq()
157 icl_nhi_lc_mailbox_cmd(nhi, cmd); in icl_nhi_suspend_noirq()
161 static int icl_nhi_resume(struct tb_nhi *nhi) in icl_nhi_resume() argument
165 ret = icl_nhi_force_power(nhi, true); in icl_nhi_resume()
169 icl_nhi_set_ltr(nhi); in icl_nhi_resume()
[all …]
A Dnhi.h30 int nhi_mailbox_cmd(struct tb_nhi *nhi, enum nhi_mailbox_cmd cmd, u32 data);
31 enum nhi_fw_mode nhi_mailbox_mode(struct tb_nhi *nhi);
43 int (*init)(struct tb_nhi *nhi);
44 int (*suspend_noirq)(struct tb_nhi *nhi, bool wakeup);
45 int (*resume_noirq)(struct tb_nhi *nhi);
46 int (*runtime_suspend)(struct tb_nhi *nhi);
47 int (*runtime_resume)(struct tb_nhi *nhi);
48 void (*shutdown)(struct tb_nhi *nhi);
A Dacpi.c19 struct tb_nhi *nhi = data; in tb_acpi_add_link() local
31 if (dev_fwnode(&nhi->pdev->dev) != fwnode) in tb_acpi_add_link()
80 link = device_link_add(&pdev->dev, &nhi->pdev->dev, in tb_acpi_add_link()
85 dev_dbg(&nhi->pdev->dev, "created link from %s\n", in tb_acpi_add_link()
88 dev_warn(&nhi->pdev->dev, "device link creation from %s failed\n", in tb_acpi_add_link()
108 void tb_acpi_add_links(struct tb_nhi *nhi) in tb_acpi_add_links() argument
112 if (!has_acpi_companion(&nhi->pdev->dev)) in tb_acpi_add_links()
120 tb_acpi_add_link, NULL, nhi, NULL); in tb_acpi_add_links()
122 dev_warn(&nhi->pdev->dev, "failed to enumerate tunneled ports\n"); in tb_acpi_add_links()
316 struct tb_nhi *nhi = sw->tb->nhi; in tb_acpi_switch_find_companion() local
[all …]
A Dnhi_regs.h85 #define RING_NOTIFY_REG_COUNT(nhi) ((31 + 3 * nhi->hop_count) / 32) argument
93 #define RING_INTERRUPT_REG_COUNT(nhi) ((31 + 2 * nhi->hop_count) / 32) argument
A Dicm.c603 nhi_mailbox_cmd(tb->nhi, cmd, 1); in icm_fr_disconnect_xdomain_paths()
605 nhi_mailbox_cmd(tb->nhi, cmd, 2); in icm_fr_disconnect_xdomain_paths()
1437 if (icm_firmware_running(tb->nhi)) in icm_ar_is_supported()
1470 struct tb_nhi *nhi = tb->nhi; in icm_ar_get_mode() local
1486 return nhi_mailbox_mode(nhi); in icm_ar_get_mode()
1648 struct tb_nhi *nhi = tb->nhi; in icm_icl_set_uuid() local
1821 if (icm_firmware_running(nhi)) in icm_firmware_start()
1826 ret = icm_firmware_reset(tb, nhi); in icm_firmware_start()
1914 struct tb_nhi *nhi = tb->nhi; in icm_firmware_init() local
2089 if (tb->nhi->going_away) in icm_complete()
[all …]
A Dctl.c37 struct tb_nhi *nhi; member
54 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg)
57 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg)
60 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg)
63 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg)
66 dev_dbg(&(ctl)->nhi->pdev->dev, format, ## arg)
618 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int timeout_msec, event_cb cb, in tb_ctl_alloc() argument
625 ctl->nhi = nhi; in tb_ctl_alloc()
632 ctl->frame_pool = dma_pool_create("thunderbolt_ctl", &nhi->pdev->dev, in tb_ctl_alloc()
637 ctl->tx = tb_ring_alloc_tx(nhi, 0, 10, RING_FLAG_NO_SUSPEND); in tb_ctl_alloc()
[all …]
A Dtest.c1709 struct tb_port *nhi, *port; in tb_test_tunnel_dma() local
1725 nhi = &host->ports[7]; in tb_test_tunnel_dma()
1752 struct tb_port *nhi, *port; in tb_test_tunnel_dma_rx() local
1768 nhi = &host->ports[7]; in tb_test_tunnel_dma_rx()
1805 nhi = &host->ports[7]; in tb_test_tunnel_dma_tx()
1852 nhi = &host->ports[7]; in tb_test_tunnel_dma_chain()
1897 nhi = &host->ports[7]; in tb_test_tunnel_dma_match()
2177 nhi = &host->ports[7]; in tb_test_credit_alloc_dma()
2213 nhi = &host->ports[7]; in tb_test_credit_alloc_dma_multiple()
2441 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL1()
[all …]
A Dtb.h688 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg)
689 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg)
690 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg)
691 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg)
692 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg)
720 struct tb *icm_probe(struct tb_nhi *nhi);
721 struct tb *tb_probe(struct tb_nhi *nhi);
733 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize);
1300 void tb_acpi_add_links(struct tb_nhi *nhi);
1313 static inline void tb_acpi_add_links(struct tb_nhi *nhi) { } in tb_acpi_add_links() argument
A Ddomain.c258 return sysfs_emit(buf, "%d\n", tb->nhi->iommu_dma_protection); in iommu_dma_protection_show()
373 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize) in tb_domain_alloc() argument
389 tb->nhi = nhi; in tb_domain_alloc()
400 tb->ctl = tb_ctl_alloc(nhi, timeout_msec, tb_domain_event_cb, tb); in tb_domain_alloc()
404 tb->dev.parent = &nhi->pdev->dev; in tb_domain_alloc()
A DMakefile3 thunderbolt-objs := nhi.o nhi_ops.o ctl.o tb.o switch.o cap.o path.o tunnel.o eeprom.o
A Dtb.c2215 static void tb_apple_add_links(struct tb_nhi *nhi) in tb_apple_add_links() argument
2222 switch (nhi->pdev->device) { in tb_apple_add_links()
2232 upstream = pci_upstream_bridge(nhi->pdev); in tb_apple_add_links()
2258 link = device_link_add(&pdev->dev, &nhi->pdev->dev, in tb_apple_add_links()
2262 dev_dbg(&nhi->pdev->dev, "created link from %s\n", in tb_apple_add_links()
2265 dev_warn(&nhi->pdev->dev, "device link creation from %s failed\n", in tb_apple_add_links()
2271 struct tb *tb_probe(struct tb_nhi *nhi) in tb_probe() argument
2276 tb = tb_domain_alloc(nhi, TB_TIMEOUT, sizeof(*tcm)); in tb_probe()
2295 tb_apple_add_links(nhi); in tb_probe()
2296 tb_acpi_add_links(nhi); in tb_probe()
A Dtunnel.h88 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
A Dctl.h24 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int timeout_msec, event_cb cb,
A Dtunnel.c1445 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi, in tb_tunnel_alloc_dma() argument
1467 tunnel->src_port = nhi; in tb_tunnel_alloc_dma()
1471 credits = min_not_zero(TB_DMA_CREDITS, nhi->sw->max_dma_credits); in tb_tunnel_alloc_dma()
1474 path = tb_path_alloc(tb, dst, receive_path, nhi, receive_ring, 0, in tb_tunnel_alloc_dma()
1486 path = tb_path_alloc(tb, nhi, transmit_ring, dst, transmit_path, 0, in tb_tunnel_alloc_dma()
A Ddma_test.c152 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, DMA_TEST_TX_RING_SIZE, in dma_test_start_rings()
175 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, DMA_TEST_RX_RING_SIZE, in dma_test_start_rings()
A Deeprom.c443 struct device *dev = &sw->tb->nhi->pdev->dev; in tb_drom_copy_efi()
A Dswitch.c225 root_port = pcie_find_root_port(sw->tb->nhi->pdev); in nvm_authenticate_start_dma_port()
234 root_port = pcie_find_root_port(sw->tb->nhi->pdev); in nvm_authenticate_complete_dma_port()
/linux-6.3-rc2/include/net/
A Dnexthop.h260 return nhi->fdb_nh; in nexthop_is_fdb()
356 struct nh_info *nhi; in nexthop_path_fib_result() local
368 struct nh_info *nhi; in nexthop_fib_nhc() local
385 return &nhi->fib_nhc; in nexthop_fib_nhc()
395 struct nh_info *nhi; in nexthop_get_nhc_lookup() local
424 struct nh_info *nhi; in nexthop_uses_dev() local
482 struct nh_info *nhi; in nexthop_fib6_nh() local
505 struct nh_info *nhi; in nexthop_fib6_nh_bh() local
534 struct nh_info *nhi; in nexthop_path_fib6_result() local
556 return nhi->family; in nexthop_get_family()
[all …]
/linux-6.3-rc2/net/ipv4/
A Dnexthop.c137 struct nh_info *nhi; in nh_notifier_mpath_info_init() local
143 nhi); in nh_notifier_mpath_info_init()
174 nhi); in nh_notifier_res_table_info_init()
502 kfree(nhi); in nexthop_free_single()
1168 if (nhi->fdb_nh) in nexthop_select_path_hthr()
2529 if (nhi->fdb_nh) in nh_create_ipv4()
2591 nhi = kzalloc(sizeof(*nhi), GFP_KERNEL); in nexthop_create()
2592 if (!nhi) { in nexthop_create()
2605 nhi->fdb_nh = 1; in nexthop_create()
2622 kfree(nhi); in nexthop_create()
[all …]
/linux-6.3-rc2/include/linux/
A Dthunderbolt.h78 struct tb_nhi *nhi; member
520 struct tb_nhi *nhi; member
593 struct tb_ring *tb_ring_alloc_tx(struct tb_nhi *nhi, int hop, int size,
595 struct tb_ring *tb_ring_alloc_rx(struct tb_nhi *nhi, int hop, int size,
661 return &ring->nhi->pdev->dev; in tb_ring_dma_device()
/linux-6.3-rc2/drivers/net/thunderbolt/
A Dmain.c926 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
951 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, flags, in tbnet_open()

Completed in 68 milliseconds