Home
last modified time | relevance | path

Searched refs:interface (Results 1 – 25 of 3081) sorted by relevance

12345678910>>...124

/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pci.c35 struct fm10k_intfc *interface = hw->back; in fm10k_read_pci_cfg_word() local
41 pci_read_config_word(interface->pdev, reg, &value); in fm10k_read_pci_cfg_word()
58 struct fm10k_intfc *interface = hw->back; in fm10k_read_reg() local
59 struct net_device *netdev = interface->netdev; in fm10k_read_reg()
69 static int fm10k_hw_ready(struct fm10k_intfc *interface) in fm10k_hw_ready() argument
71 struct fm10k_hw *hw = &interface->hw; in fm10k_hw_ready()
85 void fm10k_macvlan_schedule(struct fm10k_intfc *interface) in fm10k_macvlan_schedule() argument
90 if (!test_bit(__FM10K_MACVLAN_DISABLE, interface->state) && in fm10k_macvlan_schedule()
91 !test_and_set_bit(__FM10K_MACVLAN_SCHED, interface->state)) { in fm10k_macvlan_schedule()
92 clear_bit(__FM10K_MACVLAN_REQUEST, interface->state); in fm10k_macvlan_schedule()
[all …]
H A Dfm10k_netdev.c55 static int fm10k_setup_all_tx_resources(struct fm10k_intfc *interface) in fm10k_setup_all_tx_resources() argument
59 for (i = 0; i < interface->num_tx_queues; i++) { in fm10k_setup_all_tx_resources()
60 err = fm10k_setup_tx_resources(interface->tx_ring[i]); in fm10k_setup_all_tx_resources()
64 netif_err(interface, probe, interface->netdev, in fm10k_setup_all_tx_resources()
73 fm10k_free_tx_resources(interface->tx_ring[i]); in fm10k_setup_all_tx_resources()
122 static int fm10k_setup_all_rx_resources(struct fm10k_intfc *interface) in fm10k_setup_all_rx_resources() argument
126 for (i = 0; i < interface->num_rx_queues; i++) { in fm10k_setup_all_rx_resources()
127 err = fm10k_setup_rx_resources(interface->rx_ring[i]); in fm10k_setup_all_rx_resources()
131 netif_err(interface, probe, interface->netdev, in fm10k_setup_all_rx_resources()
140 fm10k_free_rx_resources(interface->rx_ring[i]); in fm10k_setup_all_rx_resources()
[all …]
H A Dfm10k_ethtool.c159 struct fm10k_intfc *interface = netdev_priv(dev); in fm10k_get_stat_strings() local
168 if (interface->hw.mac.type != fm10k_mac_vf) in fm10k_get_stat_strings()
171 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_stat_strings()
200 struct fm10k_intfc *interface = netdev_priv(dev); in fm10k_get_sset_count() local
201 struct fm10k_hw *hw = &interface->hw; in fm10k_get_sset_count()
265 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_get_ethtool_stats() local
269 fm10k_update_stats(interface); in fm10k_get_ethtool_stats()
273 fm10k_add_ethtool_stats(&data, interface, fm10k_gstrings_global_stats); in fm10k_get_ethtool_stats()
275 fm10k_add_ethtool_stats(&data, &interface->hw.mbx, in fm10k_get_ethtool_stats()
278 if (interface->hw.mac.type != fm10k_mac_vf) { in fm10k_get_ethtool_stats()
[all …]
H A Dfm10k_main.c637 struct fm10k_intfc *interface = netdev_priv(skb->dev); in fm10k_port_is_vxlan() local
639 if (interface->vxlan_port != udp_hdr(skb)->dest) in fm10k_port_is_vxlan()
1115 struct fm10k_intfc *interface = ring->q_vector->interface; in fm10k_get_tx_pending() local
1116 struct fm10k_hw *hw = &interface->hw; in fm10k_get_tx_pending()
1163 void fm10k_tx_timeout_reset(struct fm10k_intfc *interface) in fm10k_tx_timeout_reset() argument
1166 if (!test_bit(__FM10K_DOWN, interface->state)) { in fm10k_tx_timeout_reset()
1167 interface->tx_timeout_count++; in fm10k_tx_timeout_reset()
1168 set_bit(FM10K_FLAG_RESET_REQUESTED, interface->flags); in fm10k_tx_timeout_reset()
1169 fm10k_service_event_schedule(interface); in fm10k_tx_timeout_reset()
1182 struct fm10k_intfc *interface = q_vector->interface; in fm10k_clean_tx_irq() local
[all …]
/openbmc/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-helper-xaui.c45 int __cvmx_helper_xaui_enumerate(int interface) in __cvmx_helper_xaui_enumerate() argument
50 gmx_hg2_control.u64 = cvmx_read_csr(CVMX_GMXX_HG2_CONTROL(interface)); in __cvmx_helper_xaui_enumerate()
66 int __cvmx_helper_xaui_probe(int interface) in __cvmx_helper_xaui_probe() argument
76 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_xaui_probe()
78 cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); in __cvmx_helper_xaui_probe()
80 __cvmx_helper_setup_gmx(interface, 1); in __cvmx_helper_xaui_probe()
98 pko_mem_port_ptrs.s.eid = interface * 4; in __cvmx_helper_xaui_probe()
99 pko_mem_port_ptrs.s.pid = interface * 16 + i; in __cvmx_helper_xaui_probe()
102 return __cvmx_helper_xaui_enumerate(interface); in __cvmx_helper_xaui_probe()
114 int __cvmx_helper_xaui_enable(int interface) in __cvmx_helper_xaui_enable() argument
[all …]
H A Dcvmx-helper-sgmii.c52 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) in __cvmx_helper_sgmii_hardware_init_one_time() argument
60 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
62 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); in __cvmx_helper_sgmii_hardware_init_one_time()
70 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
72 cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
82 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
98 cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
103 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
108 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
114 (index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
[all …]
H A Dcvmx-helper-rgmii.c52 int __cvmx_helper_rgmii_probe(int interface) in __cvmx_helper_rgmii_probe() argument
56 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in __cvmx_helper_rgmii_probe()
100 int interface = (port >> 4) & 1; in cvmx_helper_rgmii_internal_loopback() local
109 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); in cvmx_helper_rgmii_internal_loopback()
110 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); in cvmx_helper_rgmii_internal_loopback()
111 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); in cvmx_helper_rgmii_internal_loopback()
112 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); in cvmx_helper_rgmii_internal_loopback()
113 tmp = cvmx_read_csr(CVMX_ASXX_PRT_LOOP(interface)); in cvmx_helper_rgmii_internal_loopback()
114 cvmx_write_csr(CVMX_ASXX_PRT_LOOP(interface), (1 << index) | tmp); in cvmx_helper_rgmii_internal_loopback()
115 tmp = cvmx_read_csr(CVMX_ASXX_TX_PRT_EN(interface)); in cvmx_helper_rgmii_internal_loopback()
[all …]
H A Dcvmx-helper.c88 int cvmx_helper_ports_on_interface(int interface) in cvmx_helper_ports_on_interface() argument
90 return interface_port_count[interface]; in cvmx_helper_ports_on_interface()
98 static cvmx_helper_interface_mode_t __cvmx_get_mode_cn68xx(int interface) in __cvmx_get_mode_cn68xx() argument
101 switch (interface) { in __cvmx_get_mode_cn68xx()
117 qlm_cfg.u64 = cvmx_read_csr(CVMX_MIO_QLMX_CFG(interface)); in __cvmx_get_mode_cn68xx()
150 static cvmx_helper_interface_mode_t __cvmx_get_mode_octeon2(int interface) in __cvmx_get_mode_octeon2() argument
155 return __cvmx_get_mode_cn68xx(interface); in __cvmx_get_mode_octeon2()
157 if (interface == 2) in __cvmx_get_mode_octeon2()
160 if (interface == 3) in __cvmx_get_mode_octeon2()
165 (interface == 4 || interface == 5)) || in __cvmx_get_mode_octeon2()
[all …]
H A Dcvmx-spi.c105 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, in cvmx_spi_start_interface() argument
114 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); in cvmx_spi_start_interface()
117 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, in cvmx_spi_start_interface()
121 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); in cvmx_spi_start_interface()
124 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); in cvmx_spi_start_interface()
127 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, in cvmx_spi_start_interface()
131 INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); in cvmx_spi_start_interface()
150 int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) in cvmx_spi_restart_interface() argument
157 cvmx_dprintf("SPI%d: Restart %s\n", interface, modes[mode]); in cvmx_spi_restart_interface()
160 INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); in cvmx_spi_restart_interface()
[all …]
H A Dcvmx-helper-spi.c52 int __cvmx_helper_spi_enumerate(int interface) in __cvmx_helper_spi_enumerate() argument
55 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_enumerate()
71 int __cvmx_helper_spi_probe(int interface) in __cvmx_helper_spi_probe() argument
76 cvmx_spi4000_is_present(interface)) { in __cvmx_helper_spi_probe()
88 enable.s.enable |= 0xffff << (interface * 16); in __cvmx_helper_spi_probe()
91 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe()
104 int __cvmx_helper_spi_enable(int interface) in __cvmx_helper_spi_enable() argument
111 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable()
113 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
122 cvmx_spi_start_interface(interface, CVMX_SPI_MODE_DUPLEX, in __cvmx_helper_spi_enable()
[all …]
/openbmc/sdbusplus/tools/sdbusplus/templates/
H A Dinterface.aserver.hpp.mako3 #include <sdbusplus/server/interface.hpp>
8 % for h in interface.cpp_includes():
11 #include <${interface.headerFile()}>
13 namespace sdbusplus::aserver::${interface.cppNamespace()}
20 class ${interface.classname};
24 struct ${interface.classname} :
27 sdbusplus::async::server_t<Instance, details::${interface.classname}>,
28 details::${interface.classname}<Instance, Server>>
31 ${interface.classname}(Args&&... args) :
34 sdbusplus::async::server_t<Instance, details::${interface
[all...]
H A Dinterface.server.hpp.mako9 % for h in interface.cpp_includes():
12 #include <${interface.headerFile()}>
14 namespace sdbusplus::server::${interface.cppNamespace()}
17 class ${interface.classname} :
18 public sdbusplus::common::${interface.cppNamespacedClass()}
30 ${interface.classname}() = delete;
31 ${interface.classname}(const ${interface.classname}&) = delete;
32 ${interface.classname}& operator=(const ${interface.classname}&) = delete;
33 ${interface.classname}(${interface.classname}&&) = delete;
34 ${interface.classname}& operator=(${interface.classname}&&) = delete;
[all …]
H A Dinterface.server.cpp.mako9 #include <${interface.headerFile("server")}>
11 namespace sdbusplus::server::${interface.cppNamespace()}
14 % for m in interface.methods:
15 ${ m.cpp_prototype(loader, interface=interface, ptype='callback-cpp') }
18 % for s in interface.signals:
19 ${ s.cpp_prototype(loader, interface=interface, ptype='callback-cpp') }
22 % for p in interface.properties:
23 ${ p.render(loader, "property.server.cpp.mako", property=p, interface=interface) }
26 % if interface.properties:
27 void ${interface.classname}::setPropertyByName(const std::string& _name,
[all …]
H A Dinterface.client.hpp.mako7 % for h in interface.cpp_includes():
10 #include <${interface.headerFile()}>
12 namespace sdbusplus::client::${interface.cppNamespace()}
19 class ${interface.classname};
25 * sdbusplus::async::client_t<${interface.classname}>() or
26 * ${interface.classname}() both construct an equivalent instance.
29 struct ${interface.classname} :
31 sdbusplus::async::client_t<details::${interface.classname}>,
32 details::${interface.classname}<Client, Proxy>>
35 ${interface
[all...]
H A Dinterface.common.hpp.mako14 return set(p.cppTypeParam(interface.name) for p in
15 interface.properties);
18 namespace sdbusplus::common::${interface.cppNamespace()}
21 struct ${interface.classname}
23 static constexpr auto interface = "${interface.name}";
25 % for e in interface.enums:
34 % if interface.properties:
37 % for p in interface.properties:
38 ${p.cppTypeParam(interface
[all...]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio-net.c29 static void virtio_net_cleanup(QVirtioNet *interface) in virtio_net_cleanup() argument
33 for (i = 0; i < interface->n_queues; i++) { in virtio_net_cleanup()
34 qvirtqueue_cleanup(interface->vdev->bus, interface->queues[i], alloc); in virtio_net_cleanup()
36 g_free(interface->queues); in virtio_net_cleanup()
39 static void virtio_net_setup(QVirtioNet *interface) in virtio_net_setup() argument
41 QVirtioDevice *vdev = interface->vdev; in virtio_net_setup()
52 interface->n_queues = qvirtio_config_readw(vdev, 8) * 2; in virtio_net_setup()
54 interface->n_queues = 2; in virtio_net_setup()
56 interface->n_queues++; /* Account for the ctrl queue */ in virtio_net_setup()
58 interface->queues = g_new(QVirtQueue *, interface->n_queues); in virtio_net_setup()
[all …]
H A Dvirtio-iommu.c25 const char *interface) in qvirtio_iommu_get_driver() argument
27 if (!g_strcmp0(interface, "virtio-iommu")) { in qvirtio_iommu_get_driver()
30 if (!g_strcmp0(interface, "virtio")) { in qvirtio_iommu_get_driver()
34 fprintf(stderr, "%s not present in virtio-iommu-device\n", interface); in qvirtio_iommu_get_driver()
38 static void virtio_iommu_cleanup(QVirtioIOMMU *interface) in virtio_iommu_cleanup() argument
40 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_iommu_cleanup()
43 static void virtio_iommu_setup(QVirtioIOMMU *interface) in virtio_iommu_setup() argument
45 QVirtioDevice *vdev = interface->vdev; in virtio_iommu_setup()
54 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_iommu_setup()
55 qvirtio_set_driver_ok(interface->vdev); in virtio_iommu_setup()
[all …]
H A Dvirtio-9p.c82 static void virtio_9p_cleanup(QVirtio9P *interface) in virtio_9p_cleanup() argument
84 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_9p_cleanup()
87 static void virtio_9p_setup(QVirtio9P *interface) in virtio_9p_setup() argument
91 features = qvirtio_get_features(interface->vdev); in virtio_9p_setup()
93 qvirtio_set_features(interface->vdev, features); in virtio_9p_setup()
95 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_9p_setup()
96 qvirtio_set_driver_ok(interface->vdev); in virtio_9p_setup()
117 const char *interface) in virtio_9p_get_driver() argument
119 if (!g_strcmp0(interface, "virtio-9p")) { in virtio_9p_get_driver()
122 if (!g_strcmp0(interface, "virtio")) { in virtio_9p_get_driver()
[all …]
/openbmc/linux/drivers/gpu/drm/logicvc/
H A Dlogicvc_interface.c34 struct logicvc_interface *interface = in logicvc_encoder_enable() local
41 if (interface->drm_panel) { in logicvc_encoder_enable()
42 drm_panel_prepare(interface->drm_panel); in logicvc_encoder_enable()
43 drm_panel_enable(interface->drm_panel); in logicvc_encoder_enable()
49 struct logicvc_interface *interface = in logicvc_encoder_disable() local
52 if (interface->drm_panel) { in logicvc_encoder_disable()
53 drm_panel_disable(interface->drm_panel); in logicvc_encoder_disable()
54 drm_panel_unprepare(interface->drm_panel); in logicvc_encoder_disable()
69 struct logicvc_interface *interface = in logicvc_connector_get_modes() local
72 if (interface->drm_panel) in logicvc_connector_get_modes()
[all …]
/openbmc/phosphor-fan-presence/
H A Dsdbusplus.hpp49 const std::string& interface, const std::string& method) : in DBusMethodError() argument
51 interface, method)), in DBusMethodError()
52 busName(busName), path(path), interface(interface), method(method) in DBusMethodError()
57 const std::string interface; member in phosphor::fan::util::DBusMethodError
70 DBusServiceError(const std::string& path, const std::string& interface) : in DBusServiceError() argument
72 std::format("DBus service lookup failed: {} {}", path, interface)), in DBusServiceError()
73 path(path), interface(interface) in DBusServiceError()
77 const std::string interface; member in phosphor::fan::util::DBusServiceError
89 const std::string& path, const std::string& interface, in DBusPropertyError() argument
91 DBusError(msg + std::format(": {} {} {} {}", busName, path, interface, in DBusPropertyError()
[all …]
/openbmc/phosphor-networkd/test/
H A Dtest_ethernet_interface.cpp34 MockEthernetInterface interface; member in phosphor::network::TestEthernetInterface
38 interface(makeInterface(bus, manager)) in TestEthernetInterface()
54 return interface.ip(addressType, ipaddress, subnetMask, ""); in createIPObject()
60 return interface.staticGateway(gateway, protocol); in createStaticGatewayObject()
66 interface.EthernetInterfaceIntf::ntpServers(ntpServers); in setNtpServers()
71 return interface.EthernetInterfaceIntf::ntpServers(); in getNtpServers()
77 EXPECT_EQ(0, interface.mtu()); in TEST_F()
78 EXPECT_EQ("", interface.macAddress()); in TEST_F()
79 EXPECT_FALSE(interface.linkUp()); in TEST_F()
101 EXPECT_TRUE(interface.addrs.empty()); in TEST_F()
[all …]
/openbmc/linux/arch/mips/include/asm/octeon/
H A Dcvmx-spi.h49 int (*reset_cb) (int interface, cvmx_spi_mode_t mode);
52 int (*calendar_setup_cb) (int interface, cvmx_spi_mode_t mode,
56 int (*clock_detect_cb) (int interface, cvmx_spi_mode_t mode,
60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout);
63 int (*calendar_sync_cb) (int interface, cvmx_spi_mode_t mode,
67 int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode);
77 static inline int cvmx_spi_is_spi_interface(int interface) in cvmx_spi_is_spi_interface() argument
79 uint64_t gmxState = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); in cvmx_spi_is_spi_interface()
97 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode,
113 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode,
[all …]
/openbmc/linux/drivers/usb/misc/
H A Dchaoskey.c77 struct usb_interface *interface; member
99 usb_dbg(dev->interface, "free"); in chaoskey_free()
103 usb_put_intf(dev->interface); in chaoskey_free()
108 static int chaoskey_probe(struct usb_interface *interface, in chaoskey_probe() argument
111 struct usb_device *udev = interface_to_usbdev(interface); in chaoskey_probe()
112 struct usb_host_interface *altsetting = interface->cur_altsetting; in chaoskey_probe()
120 usb_dbg(interface, "probe %s-%s", udev->product, udev->serial); in chaoskey_probe()
125 usb_dbg(interface, "no IN endpoint found"); in chaoskey_probe()
134 usb_dbg(interface, "invalid size (%d)", size); in chaoskey_probe()
139 usb_dbg(interface, "size reduced from %d to %d\n", in chaoskey_probe()
[all …]
/openbmc/sdbusplus/include/sdbusplus/server/
H A Dinterface.hpp18 namespace interface namespace
35 struct interface final : private sdbusplus::bus::details::bus_friend struct
45 interface() = delete;
46 interface(const interface&) = delete;
47 interface& operator=(const interface&) = delete;
48 interface(interface&&) = delete;
49 interface& operator=(interface&&) = delete;
60 interface(sdbusplus::bus_t& bus, const char* path, const char* interf,
63 ~interface();
119 using interface_t = interface::interface;
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/
H A D0009-fix-cmake-dependency-race.patch8 /a/builder/mnt/build-oe/tmp-glibc/work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/git/interface/…
9 fatal error: interface/vmcs_host/wayland-dispmanx-server-protocol.h: No
12 interface/khronos/CMakeFiles/EGL_static.dir/build.make:773: recipe for
13 target 'interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o'
16 [interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o] Error 1
22 interface/vcos/pthreads/CMakeLists.txt | 8 ++++++++
23 interface/vmcs_host/CMakeLists.txt | 8 --------
24 interface/vmcs_host/vc_vchi_dispmanx.h | 2 +-
27 diff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt
29 --- a/interface/vcos/pthreads/CMakeLists.txt
[all …]

12345678910>>...124