Searched refs:netcp_priv (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/ti/
H A Dnetcp.h213 int netcp_register_txhook(struct netcp_intf *netcp_priv, int order,
215 int netcp_unregister_txhook(struct netcp_intf *netcp_priv, int order,
217 int netcp_register_rxhook(struct netcp_intf *netcp_priv, int order,
219 int netcp_unregister_rxhook(struct netcp_intf *netcp_priv, int order,
H A Dnetcp_core.c94 struct netcp_intf *netcp_priv; member in struct:netcp_intf_modpriv
297 intf_modpriv->netcp_priv = netcp_intf;
440 int netcp_register_txhook(struct netcp_intf *netcp_priv, int order, netcp_register_txhook() argument
447 entry = devm_kzalloc(netcp_priv->dev, sizeof(*entry), GFP_KERNEL); netcp_register_txhook()
455 spin_lock_irqsave(&netcp_priv->lock, flags); netcp_register_txhook()
456 list_for_each_entry(next, &netcp_priv->txhook_list_head, list) { netcp_register_txhook()
461 spin_unlock_irqrestore(&netcp_priv->lock, flags); netcp_register_txhook()
467 int netcp_unregister_txhook(struct netcp_intf *netcp_priv, int order, netcp_unregister_txhook() argument
473 spin_lock_irqsave(&netcp_priv->lock, flags); netcp_unregister_txhook()
474 list_for_each_entry_safe(next, n, &netcp_priv->txhook_list_head, list) { netcp_unregister_txhook()
479 spin_unlock_irqrestore(&netcp_priv->lock, flags); netcp_unregister_txhook()
480 devm_kfree(netcp_priv->dev, next); netcp_unregister_txhook()
484 spin_unlock_irqrestore(&netcp_priv->lock, flags); netcp_unregister_txhook()
489 int netcp_register_rxhook(struct netcp_intf *netcp_priv, int order, netcp_register_rxhook() argument
496 entry = devm_kzalloc(netcp_priv->dev, sizeof(*entry), GFP_KERNEL); netcp_register_rxhook()
504 spin_lock_irqsave(&netcp_priv->lock, flags); netcp_register_rxhook()
505 list_for_each_entry(next, &netcp_priv->rxhook_list_head, list) { netcp_register_rxhook()
510 spin_unlock_irqrestore(&netcp_priv->lock, flags); netcp_register_rxhook()
515 int netcp_unregister_rxhook(struct netcp_intf *netcp_priv, int order, netcp_unregister_rxhook() argument
521 spin_lock_irqsave(&netcp_priv->lock, flags); netcp_unregister_rxhook()
522 list_for_each_entry_safe(next, n, &netcp_priv->rxhook_list_head, list) { netcp_unregister_rxhook()
527 spin_unlock_irqrestore(&netcp_priv->lock, flags); netcp_unregister_rxhook()
528 devm_kfree(netcp_priv->dev, next); netcp_unregister_rxhook()
532 spin_unlock_irqrestore(&netcp_priv->lock, flags); netcp_unregister_rxhook()

Completed in 66 milliseconds