Lines Matching refs:ndp
50 static int ncsi_aen_handler_lsc(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_lsc() argument
62 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_lsc()
86 if (!(ndp->flags & NCSI_DEV_HWA) && in ncsi_aen_handler_lsc()
88 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_aen_handler_lsc()
91 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_lsc()
92 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_lsc()
93 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_lsc()
95 return ncsi_process_next_channel(ndp); in ncsi_aen_handler_lsc()
98 static int ncsi_aen_handler_cr(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_cr() argument
105 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_cr()
122 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_cr()
124 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_cr()
125 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_cr()
127 return ncsi_process_next_channel(ndp); in ncsi_aen_handler_cr()
130 static int ncsi_aen_handler_hncdsc(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_hncdsc() argument
139 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_hncdsc()
155 if (!(ndp->flags & NCSI_DEV_HWA) && !(ncm->data[3] & 0x1)) in ncsi_aen_handler_hncdsc()
156 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_aen_handler_hncdsc()
173 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_hncdsc()
174 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_hncdsc()
175 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_hncdsc()
177 ncsi_process_next_channel(ndp); in ncsi_aen_handler_hncdsc()
185 int (*handler)(struct ncsi_dev_priv *ndp,
193 int ncsi_aen_handler(struct ncsi_dev_priv *ndp, struct sk_buff *skb) in ncsi_aen_handler() argument
209 netdev_warn(ndp->ndev.dev, "Invalid AEN (0x%x) received\n", in ncsi_aen_handler()
218 ret = nah->handler(ndp, h); in ncsi_aen_handler()