Home
last modified time | relevance | path

Searched refs:rnet (Results 1 – 4 of 4) sorted by relevance

/drivers/net/
Drionet.c96 struct rionet_private *rnet = netdev_priv(ndev); in rionet_rx_clean() local
99 i = rnet->rx_slot; in rionet_rx_clean()
102 if (!rnet->rx_skb[i]) in rionet_rx_clean()
105 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
108 rnet->rx_skb[i]->data = data; in rionet_rx_clean()
109 skb_put(rnet->rx_skb[i], RIO_MAX_MSG_SIZE); in rionet_rx_clean()
110 rnet->rx_skb[i]->protocol = in rionet_rx_clean()
111 eth_type_trans(rnet->rx_skb[i], ndev); in rionet_rx_clean()
112 error = __netif_rx(rnet->rx_skb[i]); in rionet_rx_clean()
121 } while ((i = (i + 1) % RIONET_RX_RING_SIZE) != rnet->rx_slot); in rionet_rx_clean()
[all …]
/drivers/infiniband/core/
Dnetlink.c55 struct rdma_dev_net *rnet = rdma_net_to_dev_net(&init_net); in rdma_nl_chk_listeners() local
57 return netlink_has_listeners(rnet->nl_sock, group); in rdma_nl_chk_listeners()
264 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_unicast() local
267 err = netlink_unicast(rnet->nl_sock, skb, pid, MSG_DONTWAIT); in rdma_nl_unicast()
274 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_unicast_wait() local
277 err = netlink_unicast(rnet->nl_sock, skb, pid, 0); in rdma_nl_unicast_wait()
285 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_multicast() local
287 return nlmsg_multicast(rnet->nl_sock, skb, 0, group, flags); in rdma_nl_multicast()
309 int rdma_nl_net_init(struct rdma_dev_net *rnet) in rdma_nl_net_init() argument
311 struct net *net = read_pnet(&rnet->net); in rdma_nl_net_init()
[all …]
Ddevice.c921 struct rdma_dev_net *rnet) in add_one_compat_dev() argument
934 if (net_eq(read_pnet(&rnet->net), in add_one_compat_dev()
944 cdev = xa_load(&device->compat_devs, rnet->id); in add_one_compat_dev()
949 ret = xa_reserve(&device->compat_devs, rnet->id, GFP_KERNEL); in add_one_compat_dev()
960 rdma_init_coredev(cdev, device, read_pnet(&rnet->net)); in add_one_compat_dev()
973 ret = xa_err(xa_store(&device->compat_devs, rnet->id, in add_one_compat_dev()
988 xa_release(&device->compat_devs, rnet->id); in add_one_compat_dev()
1019 struct rdma_dev_net *rnet; in add_compat_devs() local
1026 xa_for_each (&rdma_nets, index, rnet) { in add_compat_devs()
1027 ret = add_one_compat_dev(device, rnet); in add_compat_devs()
[all …]
Dcore_priv.h361 int rdma_nl_net_init(struct rdma_dev_net *rnet);
362 void rdma_nl_net_exit(struct rdma_dev_net *rnet);