/linux/drivers/thunderbolt/ |
A D | nhi.c | 413 struct tb_nhi *nhi = ring->nhi; in ring_request_msix() local 532 ring->nhi = nhi; in tb_ring_alloc() 904 struct tb_nhi *nhi = tb->nhi; in __nhi_suspend_noirq() local 984 struct tb_nhi *nhi = tb->nhi; in nhi_resume_noirq() local 1034 struct tb_nhi *nhi = tb->nhi; in nhi_runtime_suspend() local 1053 struct tb_nhi *nhi = tb->nhi; in nhi_runtime_resume() local 1086 devm_free_irq(&nhi->pdev->dev, nhi->pdev->irq, nhi); in nhi_shutdown() 1092 nhi->ops->shutdown(nhi); in nhi_shutdown() 1241 if (nhi->ops && nhi->ops->init) { in nhi_probe() 1242 res = nhi->ops->init(nhi); in nhi_probe() [all …]
|
A D | nhi_ops.c | 27 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 D | nhi.h | 30 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 D | acpi.c | 18 struct tb_nhi *nhi = data; in tb_acpi_add_link() local 34 if (nhi->pdev->dev.fwnode != args.fwnode) in tb_acpi_add_link() 77 link = device_link_add(&pdev->dev, &nhi->pdev->dev, in tb_acpi_add_link() 81 dev_dbg(&nhi->pdev->dev, "created link from %s\n", in tb_acpi_add_link() 84 dev_warn(&nhi->pdev->dev, "device link creation from %s failed\n", in tb_acpi_add_link() 102 void tb_acpi_add_links(struct tb_nhi *nhi) in tb_acpi_add_links() argument 106 if (!has_acpi_companion(&nhi->pdev->dev)) in tb_acpi_add_links() 114 tb_acpi_add_link, NULL, nhi, NULL); in tb_acpi_add_links() 116 dev_warn(&nhi->pdev->dev, "failed to enumerate tunneled ports\n"); in tb_acpi_add_links() 325 struct tb_nhi *nhi = sw->tb->nhi; in tb_acpi_switch_find_companion() local [all …]
|
A D | nhi_regs.h | 85 #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 D | icm.c | 603 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 1816 if (icm_firmware_running(nhi)) in icm_firmware_start() 1821 ret = icm_firmware_reset(tb, nhi); in icm_firmware_start() 1909 struct tb_nhi *nhi = tb->nhi; in icm_firmware_init() local 2084 if (tb->nhi->going_away) in icm_complete() [all …]
|
A D | test.c | 1668 struct tb_port *nhi, *port; in tb_test_tunnel_dma() local 1684 nhi = &host->ports[7]; in tb_test_tunnel_dma() 1711 struct tb_port *nhi, *port; in tb_test_tunnel_dma_rx() local 1727 nhi = &host->ports[7]; in tb_test_tunnel_dma_rx() 1764 nhi = &host->ports[7]; in tb_test_tunnel_dma_tx() 1811 nhi = &host->ports[7]; in tb_test_tunnel_dma_chain() 1856 nhi = &host->ports[7]; in tb_test_tunnel_dma_match() 2086 nhi = &host->ports[7]; in tb_test_credit_alloc_dma() 2122 nhi = &host->ports[7]; in tb_test_credit_alloc_dma_multiple() 2350 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL1() [all …]
|
A D | ctl.c | 37 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) 626 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int timeout_msec, event_cb cb, in tb_ctl_alloc() argument 633 ctl->nhi = nhi; in tb_ctl_alloc() 640 ctl->frame_pool = dma_pool_create("thunderbolt_ctl", &nhi->pdev->dev, in tb_ctl_alloc() 645 ctl->tx = tb_ring_alloc_tx(nhi, 0, 10, RING_FLAG_NO_SUSPEND); in tb_ctl_alloc() [all …]
|
A D | tb.h | 633 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) 634 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) 635 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) 636 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) 637 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg) 665 struct tb *icm_probe(struct tb_nhi *nhi); 666 struct tb *tb_probe(struct tb_nhi *nhi); 678 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize); 1127 void tb_acpi_add_links(struct tb_nhi *nhi); 1140 static inline void tb_acpi_add_links(struct tb_nhi *nhi) { } in tb_acpi_add_links() argument
|
A D | tb.c | 1582 static void tb_apple_add_links(struct tb_nhi *nhi) in tb_apple_add_links() argument 1589 switch (nhi->pdev->device) { in tb_apple_add_links() 1599 upstream = pci_upstream_bridge(nhi->pdev); in tb_apple_add_links() 1625 link = device_link_add(&pdev->dev, &nhi->pdev->dev, in tb_apple_add_links() 1629 dev_dbg(&nhi->pdev->dev, "created link from %s\n", in tb_apple_add_links() 1632 dev_warn(&nhi->pdev->dev, "device link creation from %s failed\n", in tb_apple_add_links() 1638 struct tb *tb_probe(struct tb_nhi *nhi) in tb_probe() argument 1643 tb = tb_domain_alloc(nhi, TB_TIMEOUT, sizeof(*tcm)); in tb_probe() 1661 tb_apple_add_links(nhi); in tb_probe() 1662 tb_acpi_add_links(nhi); in tb_probe()
|
A D | domain.c | 381 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize) in tb_domain_alloc() argument 397 tb->nhi = nhi; in tb_domain_alloc() 408 tb->ctl = tb_ctl_alloc(nhi, timeout_msec, tb_domain_event_cb, tb); in tb_domain_alloc() 412 tb->dev.parent = &nhi->pdev->dev; in tb_domain_alloc()
|
A D | Makefile | 3 thunderbolt-objs := nhi.o nhi_ops.o ctl.o tb.o switch.o cap.o path.o tunnel.o eeprom.o
|
A D | tunnel.h | 74 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
|
A D | tunnel.c | 1058 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi, in tb_tunnel_alloc_dma() argument 1080 tunnel->src_port = nhi; in tb_tunnel_alloc_dma() 1084 credits = min_not_zero(TB_DMA_CREDITS, nhi->sw->max_dma_credits); in tb_tunnel_alloc_dma() 1087 path = tb_path_alloc(tb, dst, receive_path, nhi, receive_ring, 0, in tb_tunnel_alloc_dma() 1099 path = tb_path_alloc(tb, nhi, transmit_ring, dst, transmit_path, 0, in tb_tunnel_alloc_dma()
|
A D | ctl.h | 24 struct tb_ctl *tb_ctl_alloc(struct tb_nhi *nhi, int timeout_msec, event_cb cb,
|
A D | dma_test.c | 152 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 D | eeprom.c | 443 struct device *dev = &sw->tb->nhi->pdev->dev; in tb_drom_copy_efi()
|
A D | switch.c | 261 root_port = pcie_find_root_port(sw->tb->nhi->pdev); in nvm_authenticate_start_dma_port() 270 root_port = pcie_find_root_port(sw->tb->nhi->pdev); in nvm_authenticate_complete_dma_port()
|
/linux/include/net/ |
A D | nexthop.h | 260 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/net/ipv4/ |
A D | nexthop.c | 136 struct nh_info *nhi; in nh_notifier_mpath_info_init() local 142 nhi); in nh_notifier_mpath_info_init() 173 nhi); in nh_notifier_res_table_info_init() 501 kfree(nhi); in nexthop_free_single() 1167 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/include/linux/ |
A D | thunderbolt.h | 78 struct tb_nhi *nhi; member 515 struct tb_nhi *nhi; member 588 struct tb_ring *tb_ring_alloc_tx(struct tb_nhi *nhi, int hop, int size, 590 struct tb_ring *tb_ring_alloc_rx(struct tb_nhi *nhi, int hop, int size, 656 return &ring->nhi->pdev->dev; in tb_ring_dma_device()
|
/linux/drivers/net/ |
A D | thunderbolt.c | 874 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open() 894 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
|