Lines Matching refs:ndp

46 static int ncsi_aen_handler_lsc(struct ncsi_dev_priv *ndp,  in ncsi_aen_handler_lsc()  argument
60 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_lsc()
77 netdev_dbg(ndp->ndev.dev, "NCSI: LSC AEN - channel %u state %s\n", in ncsi_aen_handler_lsc()
85 netdev_warn(ndp->ndev.dev, in ncsi_aen_handler_lsc()
92 if (!ndp->multi_package && !nc->package->multi_channel) { in ncsi_aen_handler_lsc()
94 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_aen_handler_lsc()
96 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_lsc()
97 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_lsc()
98 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_lsc()
99 return ncsi_process_next_channel(ndp); in ncsi_aen_handler_lsc()
107 if (ncsi_channel_is_last(ndp, nc)) { in ncsi_aen_handler_lsc()
109 return ncsi_reset_dev(&ndp->ndev); in ncsi_aen_handler_lsc()
112 ncsi_update_tx_channel(ndp, nc->package, nc, NULL); in ncsi_aen_handler_lsc()
116 ncsi_update_tx_channel(ndp, nc->package, NULL, nc); in ncsi_aen_handler_lsc()
118 NCSI_FOR_EACH_PACKAGE(ndp, np) { in ncsi_aen_handler_lsc()
126 ncsi_update_tx_channel(ndp, nc->package, in ncsi_aen_handler_lsc()
140 static int ncsi_aen_handler_cr(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_cr() argument
147 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_cr()
164 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_cr()
166 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_cr()
167 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_cr()
170 return ncsi_process_next_channel(ndp); in ncsi_aen_handler_cr()
173 static int ncsi_aen_handler_hncdsc(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_hncdsc() argument
182 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_hncdsc()
191 netdev_dbg(ndp->ndev.dev, in ncsi_aen_handler_hncdsc()
201 int (*handler)(struct ncsi_dev_priv *ndp,
209 int ncsi_aen_handler(struct ncsi_dev_priv *ndp, struct sk_buff *skb) in ncsi_aen_handler() argument
225 netdev_warn(ndp->ndev.dev, "Invalid AEN (0x%x) received\n", in ncsi_aen_handler()
232 netdev_warn(ndp->ndev.dev, in ncsi_aen_handler()
238 ret = nah->handler(ndp, h); in ncsi_aen_handler()
240 netdev_err(ndp->ndev.dev, in ncsi_aen_handler()