Lines Matching refs:mport

52 	struct rio_mport *mport;  member
105 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
138 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, in rionet_rx_fill()
150 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); in rionet_queue_tx_msg()
182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit()
195 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); in rionet_start_xmit()
197 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit()
199 nets[rnet->mport->id].active[i]); in rionet_start_xmit()
206 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
208 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
227 static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, in rionet_dbell_event() argument
233 unsigned char netid = rnet->mport->id; in rionet_dbell_event()
249 rio_mport_send_doorbell(mport, sid, in rionet_dbell_event()
266 static void rionet_inb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) in rionet_inb_msg_event() argument
282 static void rionet_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) in rionet_outb_msg_event() argument
314 unsigned char netid = rnet->mport->id; in rionet_open()
320 if ((rc = rio_request_inb_dbell(rnet->mport, in rionet_open()
327 if ((rc = rio_request_inb_mbox(rnet->mport, in rionet_open()
334 if ((rc = rio_request_outb_mbox(rnet->mport, in rionet_open()
370 unsigned char netid = rnet->mport->id; in rionet_close()
395 rio_release_inb_dbell(rnet->mport, RIONET_DOORBELL_JOIN, in rionet_close()
397 rio_release_inb_mbox(rnet->mport, RIONET_MAILBOX); in rionet_close()
398 rio_release_outb_mbox(rnet->mport, RIONET_MAILBOX); in rionet_close()
449 strlcpy(info->bus_info, rnet->mport->name, sizeof(info->bus_info)); in rionet_get_drvinfo()
481 static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) in rionet_setup_netdev() argument
488 RIO_MAX_ROUTE_ENTRIES(mport->sys_size); in rionet_setup_netdev()
490 nets[mport->id].active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, in rionet_setup_netdev()
492 if (!nets[mport->id].active) { in rionet_setup_netdev()
496 memset((void *)nets[mport->id].active, 0, rionet_active_bytes); in rionet_setup_netdev()
500 rnet->mport = mport; in rionet_setup_netdev()
504 device_id = rio_local_get_device_id(mport); in rionet_setup_netdev()
519 SET_NETDEV_DEV(ndev, &mport->dev); in rionet_setup_netdev()
529 free_pages((unsigned long)nets[mport->id].active, in rionet_setup_netdev()
540 mport->name); in rionet_setup_netdev()
668 struct rio_mport *mport = to_rio_mport(dev); in rionet_remove_mport() local
670 int id = mport->id; in rionet_remove_mport()
672 pr_debug("%s %s\n", __func__, mport->name); in rionet_remove_mport()
686 RIO_MAX_ROUTE_ENTRIES(mport->sys_size))); in rionet_remove_mport()