Lines Matching refs:mport
53 struct rio_mport *mport; member
104 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
137 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, in rionet_rx_fill()
149 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); in rionet_queue_tx_msg()
184 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit()
197 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); in rionet_start_xmit()
199 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit()
201 nets[rnet->mport->id].active[i]); in rionet_start_xmit()
208 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
210 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
229 static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, in rionet_dbell_event() argument
240 if (!nets[rnet->mport->id].active[sid]) { in rionet_dbell_event()
242 &nets[rnet->mport->id].peers, node) { in rionet_dbell_event()
244 nets[rnet->mport->id].active[sid] = in rionet_dbell_event()
246 nets[rnet->mport->id].nact++; in rionet_dbell_event()
249 rio_mport_send_doorbell(mport, sid, in rionet_dbell_event()
253 nets[rnet->mport->id].active[sid] = NULL; in rionet_dbell_event()
254 nets[rnet->mport->id].nact--; in rionet_dbell_event()
262 static void rionet_inb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) in rionet_inb_msg_event() argument
278 static void rionet_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) in rionet_outb_msg_event() argument
314 if ((rc = rio_request_inb_dbell(rnet->mport, in rionet_open()
321 if ((rc = rio_request_inb_mbox(rnet->mport, in rionet_open()
328 if ((rc = rio_request_outb_mbox(rnet->mport, in rionet_open()
349 &nets[rnet->mport->id].peers, node) { in rionet_open()
383 &nets[rnet->mport->id].peers, node) { in rionet_close()
384 if (nets[rnet->mport->id].active[peer->rdev->destid]) { in rionet_close()
386 nets[rnet->mport->id].active[peer->rdev->destid] = NULL; in rionet_close()
391 rio_release_inb_dbell(rnet->mport, RIONET_DOORBELL_JOIN, in rionet_close()
393 rio_release_inb_mbox(rnet->mport, RIONET_MAILBOX); in rionet_close()
394 rio_release_outb_mbox(rnet->mport, RIONET_MAILBOX); in rionet_close()
429 strlcpy(info->bus_info, rnet->mport->name, sizeof(info->bus_info)); in rionet_get_drvinfo()
462 static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) in rionet_setup_netdev() argument
468 RIO_MAX_ROUTE_ENTRIES(mport->sys_size); in rionet_setup_netdev()
470 nets[mport->id].active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, in rionet_setup_netdev()
472 if (!nets[mport->id].active) { in rionet_setup_netdev()
476 memset((void *)nets[mport->id].active, 0, rionet_active_bytes); in rionet_setup_netdev()
480 rnet->mport = mport; in rionet_setup_netdev()
483 device_id = rio_local_get_device_id(mport); in rionet_setup_netdev()
494 SET_NETDEV_DEV(ndev, &mport->dev); in rionet_setup_netdev()
512 mport->name); in rionet_setup_netdev()
631 RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size))); in rionet_exit()