/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_pci.c | 36 struct fm10k_intfc *interface = hw->back; in fm10k_read_pci_cfg_word() local 42 pci_read_config_word(interface->pdev, reg, &value); in fm10k_read_pci_cfg_word() 59 struct fm10k_intfc *interface = hw->back; in fm10k_read_reg() local 60 struct net_device *netdev = interface->netdev; in fm10k_read_reg() 70 static int fm10k_hw_ready(struct fm10k_intfc *interface) in fm10k_hw_ready() argument 72 struct fm10k_hw *hw = &interface->hw; in fm10k_hw_ready() 86 void fm10k_macvlan_schedule(struct fm10k_intfc *interface) in fm10k_macvlan_schedule() argument 91 if (!test_bit(__FM10K_MACVLAN_DISABLE, interface->state) && in fm10k_macvlan_schedule() 92 !test_and_set_bit(__FM10K_MACVLAN_SCHED, interface->state)) { in fm10k_macvlan_schedule() 93 clear_bit(__FM10K_MACVLAN_REQUEST, interface->state); in fm10k_macvlan_schedule() [all …]
|
D | fm10k_netdev.c | 55 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 …]
|
D | fm10k_ethtool.c | 158 struct fm10k_intfc *interface = netdev_priv(dev); in fm10k_get_stat_strings() local 167 if (interface->hw.mac.type != fm10k_mac_vf) in fm10k_get_stat_strings() 170 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_stat_strings() 199 struct fm10k_intfc *interface = netdev_priv(dev); in fm10k_get_sset_count() local 200 struct fm10k_hw *hw = &interface->hw; in fm10k_get_sset_count() 264 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_get_ethtool_stats() local 268 fm10k_update_stats(interface); in fm10k_get_ethtool_stats() 272 fm10k_add_ethtool_stats(&data, interface, fm10k_gstrings_global_stats); in fm10k_get_ethtool_stats() 274 fm10k_add_ethtool_stats(&data, &interface->hw.mbx, in fm10k_get_ethtool_stats() 277 if (interface->hw.mac.type != fm10k_mac_vf) { in fm10k_get_ethtool_stats() [all …]
|
D | fm10k_iov.c | 12 struct fm10k_intfc *interface = hw->back; in fm10k_iov_msg_error() local 13 struct pci_dev *pdev = interface->pdev; in fm10k_iov_msg_error() 37 struct fm10k_intfc *interface = hw->back; in fm10k_iov_msg_queue_mac_vlan() local 111 err = fm10k_queue_mac_request(interface, vf_info->glort, in fm10k_iov_msg_queue_mac_vlan() 137 err = fm10k_queue_mac_request(interface, vf_info->glort, in fm10k_iov_msg_queue_mac_vlan() 152 s32 fm10k_iov_event(struct fm10k_intfc *interface) in fm10k_iov_event() argument 154 struct fm10k_hw *hw = &interface->hw; in fm10k_iov_event() 160 if (!READ_ONCE(interface->iov_data)) in fm10k_iov_event() 165 iov_data = interface->iov_data; in fm10k_iov_event() 197 s32 fm10k_iov_mbx(struct fm10k_intfc *interface) in fm10k_iov_mbx() argument [all …]
|
D | fm10k_main.c | 640 struct fm10k_intfc *interface = netdev_priv(skb->dev); in fm10k_port_is_vxlan() local 644 vxlan_port = list_first_entry_or_null(&interface->vxlan_port, in fm10k_port_is_vxlan() 1125 struct fm10k_intfc *interface = ring->q_vector->interface; in fm10k_get_tx_pending() local 1126 struct fm10k_hw *hw = &interface->hw; in fm10k_get_tx_pending() 1173 void fm10k_tx_timeout_reset(struct fm10k_intfc *interface) in fm10k_tx_timeout_reset() argument 1176 if (!test_bit(__FM10K_DOWN, interface->state)) { in fm10k_tx_timeout_reset() 1177 interface->tx_timeout_count++; in fm10k_tx_timeout_reset() 1178 set_bit(FM10K_FLAG_RESET_REQUESTED, interface->flags); in fm10k_tx_timeout_reset() 1179 fm10k_service_event_schedule(interface); in fm10k_tx_timeout_reset() 1192 struct fm10k_intfc *interface = q_vector->interface; in fm10k_clean_tx_irq() local [all …]
|
D | fm10k.h | 186 struct fm10k_intfc *interface; member 399 static inline void fm10k_mbx_lock(struct fm10k_intfc *interface) in fm10k_mbx_lock() argument 401 spin_lock(&interface->mbx_lock); in fm10k_mbx_lock() 404 static inline void fm10k_mbx_unlock(struct fm10k_intfc *interface) in fm10k_mbx_unlock() argument 406 spin_unlock(&interface->mbx_lock); in fm10k_mbx_unlock() 409 static inline int fm10k_mbx_trylock(struct fm10k_intfc *interface) in fm10k_mbx_trylock() argument 411 return spin_trylock(&interface->mbx_lock); in fm10k_mbx_trylock() 480 int fm10k_init_queueing_scheme(struct fm10k_intfc *interface); 481 void fm10k_clear_queueing_scheme(struct fm10k_intfc *interface); 485 void fm10k_tx_timeout_reset(struct fm10k_intfc *interface); [all …]
|
D | fm10k_debugfs.c | 152 struct fm10k_intfc *interface = q_vector->interface; in fm10k_dbg_q_vector_init() local 156 if (!interface->dbg_intfc) in fm10k_dbg_q_vector_init() 162 q_vector->dbg_q_vector = debugfs_create_dir(name, interface->dbg_intfc); in fm10k_dbg_q_vector_init() 193 struct fm10k_intfc *interface = q_vector->interface; in fm10k_dbg_q_vector_exit() local 195 if (interface->dbg_intfc) in fm10k_dbg_q_vector_exit() 205 void fm10k_dbg_intfc_init(struct fm10k_intfc *interface) in fm10k_dbg_intfc_init() argument 207 const char *name = pci_name(interface->pdev); in fm10k_dbg_intfc_init() 210 interface->dbg_intfc = debugfs_create_dir(name, dbg_root); in fm10k_dbg_intfc_init() 217 void fm10k_dbg_intfc_exit(struct fm10k_intfc *interface) in fm10k_dbg_intfc_exit() argument 220 debugfs_remove_recursive(interface->dbg_intfc); in fm10k_dbg_intfc_exit() [all …]
|
/drivers/usb/misc/ |
D | chaoskey.c | 75 struct usb_interface *interface; member 97 usb_dbg(dev->interface, "free"); in chaoskey_free() 101 usb_put_intf(dev->interface); in chaoskey_free() 106 static int chaoskey_probe(struct usb_interface *interface, in chaoskey_probe() argument 109 struct usb_device *udev = interface_to_usbdev(interface); in chaoskey_probe() 110 struct usb_host_interface *altsetting = interface->cur_altsetting; in chaoskey_probe() 118 usb_dbg(interface, "probe %s-%s", udev->product, udev->serial); in chaoskey_probe() 123 usb_dbg(interface, "no IN endpoint found"); in chaoskey_probe() 132 usb_dbg(interface, "invalid size (%d)", size); in chaoskey_probe() 137 usb_dbg(interface, "size reduced from %d to %d\n", in chaoskey_probe() [all …]
|
D | yurex.c | 53 struct usb_interface *interface; member 94 dev_dbg(&dev->interface->dev, "%s\n", __func__); in yurex_delete() 111 usb_put_intf(dev->interface); in yurex_delete() 139 dev_err(&dev->interface->dev, in yurex_interrupt() 150 dev_err(&dev->interface->dev, in yurex_interrupt() 167 dev_dbg(&dev->interface->dev, "%s count: %lld\n", in yurex_interrupt() 174 dev_dbg(&dev->interface->dev, in yurex_interrupt() 178 dev_dbg(&dev->interface->dev, "%s ack: %c\n", in yurex_interrupt() 186 dev_err(&dev->interface->dev, "%s - usb_submit_urb failed: %d\n", in yurex_interrupt() 191 static int yurex_probe(struct usb_interface *interface, const struct usb_device_id *id) in yurex_probe() argument [all …]
|
D | idmouse.c | 69 struct usb_interface *interface; /* the interface for this device */ member 89 static int idmouse_probe(struct usb_interface *interface, 92 static void idmouse_disconnect(struct usb_interface *interface); 197 dev_dbg(&dev->interface->dev, "read %d bytes fingerprint data\n", in idmouse_create_image() 222 struct usb_interface *interface; in idmouse_open() local 226 interface = usb_find_interface (&idmouse_driver, iminor (inode)); in idmouse_open() 227 if (!interface) in idmouse_open() 232 dev = usb_get_intfdata(interface); in idmouse_open() 251 result = usb_autopm_get_interface(interface); in idmouse_open() 255 usb_autopm_put_interface(interface); in idmouse_open() [all …]
|
D | usblcd.c | 41 struct usb_interface *interface; /* the interface for member 80 struct usb_interface *interface; in lcd_open() local 85 interface = usb_find_interface(&lcd_driver, subminor); in lcd_open() 86 if (!interface) { in lcd_open() 92 dev = usb_get_intfdata(interface); in lcd_open() 98 r = usb_autopm_get_interface(interface); in lcd_open() 119 usb_autopm_put_interface(dev->interface); in lcd_release() 208 dev_dbg(&dev->interface->dev, in lcd_write_bulk_callback() 318 static int lcd_probe(struct usb_interface *interface, in lcd_probe() argument 336 dev->udev = usb_get_dev(interface_to_usbdev(interface)); in lcd_probe() [all …]
|
D | iowarrior.c | 67 struct usb_interface *interface; /* the interface for this device */ member 172 && (dev->interface->cur_altsetting->desc.bInterfaceNumber == 0)) { in iowarrior_callback() 205 dev_err(&dev->interface->dev, "%s - usb_submit_urb failed with result %d\n", in iowarrior_callback() 223 dev_dbg(&dev->interface->dev, in iowarrior_write_callback() 239 dev_dbg(&dev->interface->dev, "minor %d\n", dev->minor); in iowarrior_delete() 243 usb_put_intf(dev->interface); in iowarrior_delete() 277 dev_dbg(&dev->interface->dev, "minor %d, count = %zd\n", in iowarrior_read() 346 dev_dbg(&dev->interface->dev, "minor %d, count = %zd\n", in iowarrior_write() 369 retval = usb_set_report(dev->interface, 2, 0, buf, count); in iowarrior_write() 410 dev_dbg(&dev->interface->dev, in iowarrior_write() [all …]
|
/drivers/media/usb/usbvision/ |
D | usbvision-cards.c | 23 .interface = -1, 37 .interface = -1, 53 .interface = -1, 67 .interface = -1, 83 .interface = 0, 99 .interface = -1, 113 .interface = -1, 129 .interface = -1, 143 .interface = -1, 159 .interface = -1, [all …]
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 62 static void __bnx2fc_destroy(struct bnx2fc_interface *interface); 73 static void bnx2fc_start_disc(struct bnx2fc_interface *interface); 81 static struct fc_lport *bnx2fc_if_create(struct bnx2fc_interface *interface, 88 static inline void bnx2fc_interface_put(struct bnx2fc_interface *interface); 95 static void bnx2fc_stop(struct bnx2fc_interface *interface); 190 struct bnx2fc_interface *interface = port->priv; in bnx2fc_cleanup() local 191 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup() 268 struct bnx2fc_interface *interface; in bnx2fc_xmit() local 281 interface = port->priv; in bnx2fc_xmit() 282 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_xmit() [all …]
|
/drivers/staging/octeon/ |
D | ethernet-spi.c | 122 static void cvm_oct_spi_enable_error_reporting(int interface) in cvm_oct_spi_enable_error_reporting() argument 127 spxx_int_msk.u64 = cvmx_read_csr(CVMX_SPXX_INT_MSK(interface)); in cvm_oct_spi_enable_error_reporting() 138 cvmx_write_csr(CVMX_SPXX_INT_MSK(interface), spxx_int_msk.u64); in cvm_oct_spi_enable_error_reporting() 140 stxx_int_msk.u64 = cvmx_read_csr(CVMX_STXX_INT_MSK(interface)); in cvm_oct_spi_enable_error_reporting() 149 cvmx_write_csr(CVMX_STXX_INT_MSK(interface), stxx_int_msk.u64); in cvm_oct_spi_enable_error_reporting() 156 int interface; in cvm_oct_spi_poll() local 158 for (interface = 0; interface < 2; interface++) { in cvm_oct_spi_poll() 159 if ((priv->port == interface * 16) && need_retrain[interface]) { in cvm_oct_spi_poll() 161 (interface, CVMX_SPI_MODE_DUPLEX, 10) == 0) { in cvm_oct_spi_poll() 162 need_retrain[interface] = 0; in cvm_oct_spi_poll() [all …]
|
D | ethernet.c | 240 int interface = INTERFACE(priv->port); in cvm_oct_common_change_mtu() local 250 if ((interface < 2) && in cvm_oct_common_change_mtu() 251 (cvmx_helper_interface_get_mode(interface) != in cvm_oct_common_change_mtu() 260 cvmx_write_csr(CVMX_GMXX_RXX_FRM_MAX(index, interface), in cvm_oct_common_change_mtu() 272 cvmx_write_csr(CVMX_PIP_FRM_LEN_CHKX(interface), in cvm_oct_common_change_mtu() 280 cvmx_write_csr(CVMX_GMXX_RXX_JABBER(index, interface), in cvm_oct_common_change_mtu() 294 int interface = INTERFACE(priv->port); in cvm_oct_common_set_multicast_list() local 296 if ((interface < 2) && in cvm_oct_common_set_multicast_list() 297 (cvmx_helper_interface_get_mode(interface) != in cvm_oct_common_set_multicast_list() 324 cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in cvm_oct_common_set_multicast_list() [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_mutex.c | 22 static u32 nfp_mutex_locked(u16 interface) in nfp_mutex_locked() argument 24 return (u32)interface << 16 | 0x000f; in nfp_mutex_locked() 27 static u32 nfp_mutex_unlocked(u16 interface) in nfp_mutex_unlocked() argument 29 return (u32)interface << 16 | 0x0000; in nfp_mutex_unlocked() 51 nfp_cpp_mutex_validate(u16 interface, int *target, unsigned long long address) in nfp_cpp_mutex_validate() argument 54 if (NFP_CPP_INTERFACE_TYPE_of(interface) == in nfp_cpp_mutex_validate() 90 u16 interface = nfp_cpp_interface(cpp); in nfp_cpp_mutex_init() local 93 err = nfp_cpp_mutex_validate(interface, &target, address); in nfp_cpp_mutex_init() 101 err = nfp_cpp_writel(cpp, muw, address, nfp_mutex_locked(interface)); in nfp_cpp_mutex_init() 127 u16 interface = nfp_cpp_interface(cpp); in nfp_cpp_mutex_alloc() local [all …]
|
/drivers/media/usb/go7007/ |
D | go7007-loader.c | 34 static int go7007_loader_probe(struct usb_interface *interface, in go7007_loader_probe() argument 44 usbdev = usb_get_dev(interface_to_usbdev(interface)); in go7007_loader_probe() 49 dev_err(&interface->dev, "can't handle multiple config\n"); in go7007_loader_probe() 68 dev_info(&interface->dev, "loading firmware %s\n", fw1); in go7007_loader_probe() 71 dev_err(&interface->dev, in go7007_loader_probe() 78 dev_err(&interface->dev, "loader download failed\n"); in go7007_loader_probe() 86 dev_err(&interface->dev, in go7007_loader_probe() 93 dev_err(&interface->dev, "firmware download failed\n"); in go7007_loader_probe() 100 dev_err(&interface->dev, "probe failed\n"); in go7007_loader_probe() 104 static void go7007_loader_disconnect(struct usb_interface *interface) in go7007_loader_disconnect() argument [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2usb.c | 60 static int prism2sta_probe_usb(struct usb_interface *interface, in prism2sta_probe_usb() argument 69 dev = interface_to_usbdev(interface); in prism2sta_probe_usb() 72 dev_err(&interface->dev, "Memory allocation failure.\n"); in prism2sta_probe_usb() 78 if (wlan_setup(wlandev, &interface->dev) != 0) { in prism2sta_probe_usb() 79 dev_err(&interface->dev, "wlan_setup() failed.\n"); in prism2sta_probe_usb() 91 SET_NETDEV_DEV(wlandev->netdev, &interface->dev); in prism2sta_probe_usb() 100 dev_err(&interface->dev, in prism2sta_probe_usb() 115 dev_err(&interface->dev, "register_wlandev() failed.\n"); in prism2sta_probe_usb() 132 usb_set_intfdata(interface, wlandev); in prism2sta_probe_usb() 136 static void prism2sta_disconnect_usb(struct usb_interface *interface) in prism2sta_disconnect_usb() argument [all …]
|
/drivers/usb/ |
D | usb-skeleton.c | 49 struct usb_interface *interface; /* the interface for this device */ member 77 usb_put_intf(dev->interface); in skel_delete() 86 struct usb_interface *interface; in skel_open() local 92 interface = usb_find_interface(&skel_driver, subminor); in skel_open() 93 if (!interface) { in skel_open() 100 dev = usb_get_intfdata(interface); in skel_open() 106 retval = usb_autopm_get_interface(interface); in skel_open() 129 usb_autopm_put_interface(dev->interface); in skel_release() 173 dev_err(&dev->interface->dev, in skel_read_bulk_callback() 212 dev_err(&dev->interface->dev, in skel_do_read_io() [all …]
|
/drivers/mfd/ |
D | viperboard.c | 47 static int vprbrd_probe(struct usb_interface *interface, in vprbrd_probe() argument 62 vb->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in vprbrd_probe() 65 usb_set_intfdata(interface, vb); in vprbrd_probe() 84 dev_info(&interface->dev, in vprbrd_probe() 89 ret = mfd_add_hotplug_devices(&interface->dev, vprbrd_devs, in vprbrd_probe() 92 dev_err(&interface->dev, "Failed to add mfd devices to core."); in vprbrd_probe() 107 static void vprbrd_disconnect(struct usb_interface *interface) in vprbrd_disconnect() argument 109 struct vprbrd *vb = usb_get_intfdata(interface); in vprbrd_disconnect() 111 mfd_remove_devices(&interface->dev); in vprbrd_disconnect() 112 usb_set_intfdata(interface, NULL); in vprbrd_disconnect() [all …]
|
/drivers/gpu/drm/udl/ |
D | udl_drv.c | 17 static int udl_usb_suspend(struct usb_interface *interface, in udl_usb_suspend() argument 20 struct drm_device *dev = usb_get_intfdata(interface); in udl_usb_suspend() 26 static int udl_usb_resume(struct usb_interface *interface) in udl_usb_resume() argument 28 struct drm_device *dev = usb_get_intfdata(interface); in udl_usb_resume() 86 static struct udl_device *udl_driver_create(struct usb_interface *interface) in udl_driver_create() argument 88 struct usb_device *udev = interface_to_usbdev(interface); in udl_driver_create() 96 r = drm_dev_init(&udl->drm, &driver, &interface->dev); in udl_driver_create() 112 usb_set_intfdata(interface, udl); in udl_driver_create() 116 static int udl_usb_probe(struct usb_interface *interface, in udl_usb_probe() argument 122 udl = udl_driver_create(interface); in udl_usb_probe() [all …]
|
/drivers/media/rc/ |
D | xbox_remote.c | 55 struct usb_interface *interface; member 71 dev_err(&xbox_remote->interface->dev, in xbox_remote_rc_open() 129 dev_dbg(&xbox_remote->interface->dev, in xbox_remote_irq_in() 134 dev_dbg(&xbox_remote->interface->dev, in xbox_remote_irq_in() 141 dev_err(&xbox_remote->interface->dev, in xbox_remote_irq_in() 163 rdev->dev.parent = &xbox_remote->interface->dev; in xbox_remote_rc_init() 187 static int xbox_remote_probe(struct usb_interface *interface, in xbox_remote_probe() argument 190 struct usb_device *udev = interface_to_usbdev(interface); in xbox_remote_probe() 191 struct usb_host_interface *iface_host = interface->cur_altsetting; in xbox_remote_probe() 230 xbox_remote->interface = interface; in xbox_remote_probe() [all …]
|
/drivers/i2c/busses/ |
D | i2c-robotfuzz-osif.c | 31 struct usb_interface *interface; member 128 static int osif_probe(struct usb_interface *interface, in osif_probe() argument 135 priv = devm_kzalloc(&interface->dev, sizeof(*priv), GFP_KERNEL); in osif_probe() 139 priv->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in osif_probe() 140 priv->interface = interface; in osif_probe() 142 usb_set_intfdata(interface, priv); in osif_probe() 159 dev_err(&interface->dev, "failure sending bit rate"); in osif_probe() 167 dev_info(&interface->dev, in osif_probe() 175 static void osif_disconnect(struct usb_interface *interface) in osif_disconnect() argument 177 struct osif_priv *priv = usb_get_intfdata(interface); in osif_disconnect() [all …]
|
/drivers/staging/vc04_services/ |
D | Makefile | 5 interface/vchiq_arm/vchiq_core.o \ 6 interface/vchiq_arm/vchiq_arm.o \ 7 interface/vchiq_arm/vchiq_2835_arm.o \ 8 interface/vchiq_arm/vchiq_debugfs.o \ 9 interface/vchiq_arm/vchiq_shim.o \ 10 interface/vchiq_arm/vchiq_util.o \ 11 interface/vchiq_arm/vchiq_connected.o \
|