Lines Matching refs:ccmni
91 struct t7xx_ccmni *ccmni = wwan_netdev_drvpriv(dev); in t7xx_ccmni_open() local
92 struct t7xx_ccmni_ctrl *ccmni_ctl = ccmni->ctlb; in t7xx_ccmni_open()
99 atomic_inc(&ccmni->usage); in t7xx_ccmni_open()
105 struct t7xx_ccmni *ccmni = wwan_netdev_drvpriv(dev); in t7xx_ccmni_close() local
106 struct t7xx_ccmni_ctrl *ccmni_ctl = ccmni->ctlb; in t7xx_ccmni_close()
108 atomic_dec(&ccmni->usage); in t7xx_ccmni_close()
117 static int t7xx_ccmni_send_packet(struct t7xx_ccmni *ccmni, struct sk_buff *skb, in t7xx_ccmni_send_packet() argument
120 struct t7xx_ccmni_ctrl *ctlb = ccmni->ctlb; in t7xx_ccmni_send_packet()
123 skb_cb->netif_idx = ccmni->index; in t7xx_ccmni_send_packet()
133 struct t7xx_ccmni *ccmni = wwan_netdev_drvpriv(dev); in t7xx_ccmni_start_xmit() local
143 if (t7xx_ccmni_send_packet(ccmni, skb, DPMAIF_TX_DEFAULT_QUEUE)) in t7xx_ccmni_start_xmit()
154 struct t7xx_ccmni *ccmni = netdev_priv(dev); in t7xx_ccmni_tx_timeout() local
158 if (atomic_read(&ccmni->usage) > 0) in t7xx_ccmni_tx_timeout()
171 struct t7xx_ccmni *ccmni; in t7xx_ccmni_start() local
175 ccmni = ctlb->ccmni_inst[i]; in t7xx_ccmni_start()
176 if (!ccmni) in t7xx_ccmni_start()
179 if (atomic_read(&ccmni->usage) > 0) { in t7xx_ccmni_start()
180 netif_tx_start_all_queues(ccmni->dev); in t7xx_ccmni_start()
181 netif_carrier_on(ccmni->dev); in t7xx_ccmni_start()
191 struct t7xx_ccmni *ccmni; in t7xx_ccmni_pre_stop() local
195 ccmni = ctlb->ccmni_inst[i]; in t7xx_ccmni_pre_stop()
196 if (!ccmni) in t7xx_ccmni_pre_stop()
199 if (atomic_read(&ccmni->usage) > 0) in t7xx_ccmni_pre_stop()
200 netif_tx_disable(ccmni->dev); in t7xx_ccmni_pre_stop()
206 struct t7xx_ccmni *ccmni; in t7xx_ccmni_post_stop() local
213 ccmni = ctlb->ccmni_inst[i]; in t7xx_ccmni_post_stop()
214 if (!ccmni) in t7xx_ccmni_post_stop()
217 if (atomic_read(&ccmni->usage) > 0) in t7xx_ccmni_post_stop()
218 netif_carrier_off(ccmni->dev); in t7xx_ccmni_post_stop()
294 struct t7xx_ccmni *ccmni; in t7xx_ccmni_wwan_newlink() local
300 ccmni = wwan_netdev_drvpriv(dev); in t7xx_ccmni_wwan_newlink()
301 ccmni->index = if_id; in t7xx_ccmni_wwan_newlink()
302 ccmni->ctlb = ctlb; in t7xx_ccmni_wwan_newlink()
303 ccmni->dev = dev; in t7xx_ccmni_wwan_newlink()
304 atomic_set(&ccmni->usage, 0); in t7xx_ccmni_wwan_newlink()
305 ctlb->ccmni_inst[if_id] = ccmni; in t7xx_ccmni_wwan_newlink()
317 struct t7xx_ccmni *ccmni = wwan_netdev_drvpriv(dev); in t7xx_ccmni_wwan_dellink() local
319 u8 if_id = ccmni->index; in t7xx_ccmni_wwan_dellink()
324 if (WARN_ON(ctlb->ccmni_inst[if_id] != ccmni)) in t7xx_ccmni_wwan_dellink()
416 struct t7xx_ccmni *ccmni; in t7xx_ccmni_recv_skb() local
422 ccmni = ccmni_ctlb->ccmni_inst[netif_id]; in t7xx_ccmni_recv_skb()
423 if (!ccmni) { in t7xx_ccmni_recv_skb()
428 net_dev = ccmni->dev; in t7xx_ccmni_recv_skb()
444 struct t7xx_ccmni *ccmni = ctlb->ccmni_inst[0]; in t7xx_ccmni_queue_tx_irq_notify() local
447 if (netif_running(ccmni->dev) && atomic_read(&ccmni->usage) > 0) { in t7xx_ccmni_queue_tx_irq_notify()
448 net_queue = netdev_get_tx_queue(ccmni->dev, qno); in t7xx_ccmni_queue_tx_irq_notify()
456 struct t7xx_ccmni *ccmni = ctlb->ccmni_inst[0]; in t7xx_ccmni_queue_tx_full_notify() local
459 if (atomic_read(&ccmni->usage) > 0) { in t7xx_ccmni_queue_tx_full_notify()
460 netdev_err(ccmni->dev, "TX queue %d is full\n", qno); in t7xx_ccmni_queue_tx_full_notify()
461 net_queue = netdev_get_tx_queue(ccmni->dev, qno); in t7xx_ccmni_queue_tx_full_notify()