Searched refs:netcp_device (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/ti/
H A Dnetcp.h38 struct netcp_device;
41 struct netcp_device *netcp_device; member in struct:netcp_tx_pipe
105 struct netcp_device *netcp_device; member in struct:netcp_intf
178 int (*probe)(struct netcp_device *netcp_device,
181 int (*remove)(struct netcp_device *netcp_device, void *inst_priv);
206 struct netcp_device *netcp_device,
220 void *netcp_device_find_module(struct netcp_device *netcp_device,
H A Dnetcp_core.c74 #define for_each_netcp_device_module(netcp_device, inst_modpriv) \
76 &((netcp_device)->modpriv_head), inst_list)
82 struct netcp_device { struct
90 struct netcp_device *netcp_device; member in struct:netcp_inst_modpriv
226 static int netcp_module_probe(struct netcp_device *netcp_device, netcp_module_probe() argument
229 struct device *dev = netcp_device->device; netcp_module_probe()
265 inst_modpriv->netcp_device = netcp_device;
267 list_add_tail(&inst_modpriv->inst_list, &netcp_device->modpriv_head);
269 ret = module->probe(netcp_device, dev, child,
290 list_for_each_entry(netcp_intf, &netcp_device->interface_head,
327 &netcp_device->interface_head,
341 struct netcp_device *netcp_device; netcp_register_module() local
365 list_for_each_entry(netcp_device, &netcp_devices, device_list) {
366 ret = netcp_module_probe(netcp_device, module);
380 static void netcp_release_module(struct netcp_device *netcp_device, netcp_release_module() argument
385 struct device *dev = netcp_device->device; netcp_release_module()
389 &netcp_device->interface_head, netcp_release_module()
407 &netcp_device->modpriv_head, inst_list) { netcp_release_module()
409 module->remove(netcp_device, netcp_release_module()
420 struct netcp_device *netcp_device; netcp_unregister_module() local
425 list_for_each_entry(netcp_device, &netcp_devices, device_list) { netcp_unregister_module()
426 netcp_release_module(netcp_device, module); netcp_unregister_module()
1264 struct device *dev = tx_pipe->netcp_device->device; netcp_txpipe_open()
1305 struct netcp_device *netcp_device, netcp_txpipe_init()
1309 tx_pipe->netcp_device = netcp_device; netcp_txpipe_init()
1595 netcp->rx_channel = knav_dma_open_channel(netcp->netcp_device->device, netcp_setup_navigator_resources()
1854 static int netcp_create_interface(struct netcp_device *netcp_device, netcp_create_interface() argument
1857 struct device *dev = netcp_device->device; netcp_create_interface()
1887 netcp->netcp_device = netcp_device; netcp_create_interface()
1888 netcp->dev = netcp_device->device; netcp_create_interface()
2001 list_add_tail(&netcp->interface_list, &netcp_device->interface_head); netcp_create_interface()
2009 static void netcp_delete_interface(struct netcp_device *netcp_device, netcp_delete_interface() argument
2016 dev_dbg(netcp_device->device, "Removing interface \"%s\"\n", netcp_delete_interface()
2023 dev_dbg(netcp_device->device, "Releasing module \"%s\"\n", netcp_delete_interface()
2046 struct netcp_device *netcp_device; netcp_probe() local
2056 netcp_device = devm_kzalloc(dev, sizeof(*netcp_device), GFP_KERNEL); netcp_probe()
2057 if (!netcp_device) netcp_probe()
2069 INIT_LIST_HEAD(&netcp_device->interface_head); netcp_probe()
2070 INIT_LIST_HEAD(&netcp_device->modpriv_head); netcp_probe()
2071 netcp_device->device = dev; netcp_probe()
2072 platform_set_drvdata(pdev, netcp_device); netcp_probe()
2083 ret = netcp_create_interface(netcp_device, child); for_each_available_child_of_node()
2092 list_add_tail(&netcp_device->device_list, &netcp_devices);
2098 &netcp_device->interface_head,
2100 netcp_delete_interface(netcp_device, netcp_intf->ndev);
2112 struct netcp_device *netcp_device = platform_get_drvdata(pdev); netcp_remove() local
2117 list_for_each_entry_safe(inst_modpriv, tmp, &netcp_device->modpriv_head, netcp_remove()
2121 module->remove(netcp_device, inst_modpriv->module_priv); netcp_remove()
2128 &netcp_device->interface_head, netcp_remove()
2130 netcp_delete_interface(netcp_device, netcp_intf->ndev); netcp_remove()
2133 WARN(!list_empty(&netcp_device->interface_head), netcp_remove()
1304 netcp_txpipe_init(struct netcp_tx_pipe *tx_pipe, struct netcp_device *netcp_device, const char *dma_chan_name, unsigned int dma_queue_id) netcp_txpipe_init() argument
H A Dnetcp_ethss.c638 struct netcp_device *netcp_device; member in struct:gbe_priv
3028 static int gbe_probe(struct netcp_device *netcp_device, struct device *dev, gbe_probe() argument
3063 gbe_dev->netcp_device = netcp_device; gbe_probe()
3123 ret = netcp_txpipe_init(&gbe_dev->tx_pipe, netcp_device, gbe_probe()
3265 static int gbe_remove(struct netcp_device *netcp_device, void *inst_priv) gbe_remove() argument

Completed in 76 milliseconds