Searched refs:nesvnic (Results 1 – 11 of 11) sorted by relevance
/drivers/infiniband/hw/nes/ |
D | nes_nic.c | 102 struct nes_vnic *nesvnic = container_of(napi, struct nes_vnic, napi); in nes_netdev_poll() local 103 struct nes_device *nesdev = nesvnic->nesdev; in nes_netdev_poll() 104 struct nes_hw_nic_cq *nescq = &nesvnic->nic_cq; in nes_netdev_poll() 106 nesvnic->budget = budget; in nes_netdev_poll() 125 nesvnic->netdev->name); in nes_netdev_poll() 139 struct nes_vnic *nesvnic = netdev_priv(netdev); in nes_netdev_open() local 140 struct nes_device *nesdev = nesvnic->nesdev; in nes_netdev_open() 151 if (nesvnic->netdev_open == 1) in nes_netdev_open() 154 if (netif_msg_ifup(nesvnic)) in nes_netdev_open() 165 if ((!nesvnic->of_device_registered) && (nesvnic->rdma_enabled)) { in nes_netdev_open() [all …]
|
D | nes_hw.c | 1557 static void nes_replenish_nic_rq(struct nes_vnic *nesvnic) in nes_replenish_nic_rq() argument 1568 nesnic = &nesvnic->nic; in nes_replenish_nic_rq() 1569 nesdev = nesvnic->nesdev; in nes_replenish_nic_rq() 1572 if (((nesnic->rq_size-1) == atomic_read(&nesvnic->rx_skbs_needed)) && in nes_replenish_nic_rq() 1573 (atomic_read(&nesvnic->rx_skb_timer_running) == 0)) { in nes_replenish_nic_rq() 1574 atomic_set(&nesvnic->rx_skb_timer_running, 1); in nes_replenish_nic_rq() 1576 nesvnic->rq_wqes_timer.expires = jiffies + (HZ/2); /* 1/2 second */ in nes_replenish_nic_rq() 1577 add_timer(&nesvnic->rq_wqes_timer); in nes_replenish_nic_rq() 1585 skb = dev_alloc_skb(nesvnic->max_frame_size); in nes_replenish_nic_rq() 1587 skb->dev = nesvnic->netdev; in nes_replenish_nic_rq() [all …]
|
D | nes_mgt.c | 58 nesdev = mgtvnic->nesvnic->nesdev; in nes_replenish_mgt_rq() 75 skb = dev_alloc_skb(mgtvnic->nesvnic->max_frame_size); in nes_replenish_mgt_rq() 77 skb->dev = mgtvnic->nesvnic->netdev; in nes_replenish_mgt_rq() 80 skb->data, mgtvnic->nesvnic->max_frame_size, PCI_DMA_FROMDEVICE); in nes_replenish_mgt_rq() 83 cb->maplen = mgtvnic->nesvnic->max_frame_size; in nes_replenish_mgt_rq() 87 cpu_to_le32(mgtvnic->nesvnic->max_frame_size); in nes_replenish_mgt_rq() 406 static int forward_fpdus(struct nes_vnic *nesvnic, struct nes_qp *nesqp) in forward_fpdus() argument 408 struct nes_device *nesdev = nesvnic->nesdev; in forward_fpdus() 430 (((u32)nesvnic->logical_port) << NES_CQP_OP_LOGICAL_PORT_SHIFT)); in forward_fpdus() 483 static void process_fpdus(struct nes_vnic *nesvnic, struct nes_qp *nesqp) in process_fpdus() argument [all …]
|
D | nes_verbs.c | 62 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_alloc_mw() local 63 struct nes_device *nesdev = nesvnic->nesdev; in nes_alloc_mw() 163 struct nes_vnic *nesvnic = to_nesvnic(ibmw->device); in nes_dealloc_mw() local 164 struct nes_device *nesdev = nesvnic->nesdev; in nes_dealloc_mw() 216 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_bind_mw() local 217 struct nes_device *nesdev = nesvnic->nesdev; in nes_bind_mw() 386 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_alloc_mr() local 387 struct nes_device *nesdev = nesvnic->nesdev; in nes_alloc_mr() 495 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_query_device() local 496 struct nes_device *nesdev = nesvnic->nesdev; in nes_query_device() [all …]
|
D | nes_mgt.h | 38 int nes_init_mgt_qp(struct nes_device *nesdev, struct net_device *netdev, struct nes_vnic *nesvnic); 39 void nes_queue_mgt_skbs(struct sk_buff *skb, struct nes_vnic *nesvnic, struct nes_qp *nesqp); 40 void nes_destroy_mgt(struct nes_vnic *nesvnic); 58 struct nes_vnic *nesvnic; member 93 struct nes_vnic *nesvnic; member
|
D | nes_cm.c | 591 static void nes_form_reg_msg(struct nes_vnic *nesvnic, in nes_form_reg_msg() argument 594 memcpy(pm_msg->dev_name, nesvnic->nesibdev->ibdev.name, in nes_form_reg_msg() 596 memcpy(pm_msg->if_name, nesvnic->netdev->name, IWPM_IFNAME_SIZE); in nes_form_reg_msg() 1444 if (listener->nesvnic) { in mini_cm_dec_refcnt_listen() 1445 nes_manage_apbvt(listener->nesvnic, in mini_cm_dec_refcnt_listen() 1447 PCI_FUNC(listener->nesvnic->nesdev->pcidev->devfn), in mini_cm_dec_refcnt_listen() 1516 static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpindex) in nes_addr_resolve_neigh() argument 1522 struct nes_adapter *nesadapter = nesvnic->nesdev->nesadapter; in nes_addr_resolve_neigh() 1525 rt = ip_route_output(&init_net, dst_ipaddr, nesvnic->local_ipaddr, 0, 0); in nes_addr_resolve_neigh() 1532 if (netif_is_bond_slave(nesvnic->netdev)) in nes_addr_resolve_neigh() [all …]
|
D | nes.c | 149 struct nes_vnic *nesvnic; in nes_inetaddr_event() local 158 nesvnic = netdev_priv(netdev); in nes_inetaddr_event() 163 if (nesvnic->rdma_enabled == 0) { in nes_inetaddr_event() 177 ntohl(nesvnic->local_ipaddr), NES_ARP_DELETE); in nes_inetaddr_event() 178 nesvnic->local_ipaddr = 0; in nes_inetaddr_event() 187 if (nesvnic->local_ipaddr != 0) { in nes_inetaddr_event() 195 nesvnic->local_ipaddr = in nes_inetaddr_event() 198 nesvnic->local_ipaddr = ifa->ifa_address; in nes_inetaddr_event() 202 ntohl(nesvnic->local_ipaddr)); in nes_inetaddr_event() 204 ntohl(nesvnic->local_ipaddr), NES_ARP_ADD); in nes_inetaddr_event() [all …]
|
D | nes_cm.h | 301 struct nes_vnic *nesvnic; member 349 struct nes_vnic *nesvnic; member
|
D | nes_hw.h | 1206 struct nes_vnic *nesvnic; member 1251 int (*mcrq_mcast_filter)( struct nes_vnic* nesvnic, __u8* dmi_addr ); 1285 struct nes_vnic *nesvnic; member
|
D | nes.h | 472 return container_of(ibdev, struct nes_ib_device, ibdev)->nesvnic; in to_nesvnic() 560 void nes_port_ibevent(struct nes_vnic *nesvnic);
|
D | nes_utils.c | 747 struct nes_vnic *nesvnic; in nes_mh_fix() local 785 nesvnic = netdev_priv(nesdev->netdev[0]); in nes_mh_fix() 792 if (nesvnic->qp_nic_index[i] != 0xff) { in nes_mh_fix()
|