Lines Matching refs:nesvnic
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()
497 struct nes_ib_device *nesibdev = nesvnic->nesibdev; in nes_query_device()
503 memcpy(&props->sys_image_guid, nesvnic->netdev->dev_addr, 6); in nes_query_device()
549 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_query_port() local
550 struct net_device *netdev = nesvnic->netdev; in nes_query_port()
573 else if (nesvnic->linkup) in nes_query_port()
606 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_query_gid() local
609 memcpy(&(gid->raw[0]), nesvnic->netdev->dev_addr, 6); in nes_query_gid()
622 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_alloc_ucontext() local
623 struct nes_device *nesdev = nesvnic->nesdev; in nes_alloc_ucontext()
628 struct nes_ib_device *nesibdev = nesvnic->nesibdev; in nes_alloc_ucontext()
696 struct nes_vnic *nesvnic = to_nesvnic(context->device); in nes_mmap() local
697 struct nes_device *nesdev = nesvnic->nesdev; in nes_mmap()
753 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_alloc_pd() local
754 struct nes_device *nesdev = nesvnic->nesdev; in nes_alloc_pd()
762 nesvnic, nesdev->netdev[0], nesdev->netdev[0]->name, ibdev, context, in nes_alloc_pd()
763 netdev_refcnt_read(nesvnic->netdev)); in nes_alloc_pd()
778 nespd, nesvnic->nesibdev->ibdev.name); in nes_alloc_pd()
820 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_dealloc_pd() local
821 struct nes_device *nesdev = nesvnic->nesdev; in nes_dealloc_pd()
888 struct nes_vnic *nesvnic, int sq_size, int rq_size) in nes_setup_virt_qp() argument
895 struct nes_device *nesdev = nesvnic->nesdev; in nes_setup_virt_qp()
1009 static int nes_setup_mmap_qp(struct nes_qp *nesqp, struct nes_vnic *nesvnic, in nes_setup_mmap_qp() argument
1013 struct nes_device *nesdev = nesvnic->nesdev; in nes_setup_mmap_qp()
1089 struct nes_vnic *nesvnic = to_nesvnic(ibpd->device); in nes_create_qp() local
1090 struct nes_device *nesdev = nesvnic->nesdev; in nes_create_qp()
1226 err = (!virt_wqs) ? nes_setup_mmap_qp(nesqp, nesvnic, sq_size, rq_size) : in nes_create_qp()
1227 nes_setup_virt_qp(nesqp, nespbl, nesvnic, sq_size, rq_size); in nes_create_qp()
1288 (u32)nesvnic->qp_nic_index[nesvnic->next_qp_nic_index] << in nes_create_qp()
1290 nesvnic->next_qp_nic_index++; in nes_create_qp()
1291 if ((nesvnic->next_qp_nic_index > 3) || in nes_create_qp()
1292 (nesvnic->qp_nic_index[nesvnic->next_qp_nic_index] == 0xf)) { in nes_create_qp()
1293 nesvnic->next_qp_nic_index = 0; in nes_create_qp()
1400 netdev_refcnt_read(nesvnic->netdev)); in nes_create_qp()
1517 struct nes_vnic *nesvnic = to_nesvnic(ibdev); in nes_create_cq() local
1518 struct nes_device *nesdev = nesvnic->nesdev; in nes_create_cq()
1566 nesvnic->mcrq_ucontext = nes_ucontext; in nes_create_cq()
1570 nescq->hw_cq.cq_number = nesvnic->nic.qp_id + 28 + 2 * ((nes_ucontext->mcrqf & 0xf) - 1); in nes_create_cq()
1574 nescq->hw_cq.cq_number = nesvnic->mcrq_qp_id + nes_ucontext->mcrqf-1; in nes_create_cq()
1775 struct nes_vnic *nesvnic; in nes_destroy_cq() local
1787 nesvnic = to_nesvnic(ib_cq->device); in nes_destroy_cq()
1788 nesdev = nesvnic->nesdev; in nes_destroy_cq()
2083 struct nes_vnic *nesvnic = to_nesvnic(ib_pd->device); in nes_reg_phys_mr() local
2084 struct nes_device *nesdev = nesvnic->nesdev; in nes_reg_phys_mr()
2292 struct nes_vnic *nesvnic = to_nesvnic(pd->device); in nes_reg_user_mr() local
2293 struct nes_device *nesdev = nesvnic->nesdev; in nes_reg_user_mr()
2644 struct nes_vnic *nesvnic = to_nesvnic(ib_mr->device); in nes_dereg_mr() local
2645 struct nes_device *nesdev = nesvnic->nesdev; in nes_dereg_mr()
2749 struct nes_vnic *nesvnic = nesibdev->nesvnic; in show_rev() local
2752 return sprintf(buf, "%x\n", nesvnic->nesdev->nesadapter->hw_rev); in show_rev()
2764 struct nes_vnic *nesvnic = nesibdev->nesvnic; in show_fw_ver() local
2768 (nesvnic->nesdev->nesadapter->firmware_version >> 16), in show_fw_ver()
2769 (nesvnic->nesdev->nesadapter->firmware_version & 0x000000ff)); in show_fw_ver()
2922 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_modify_qp() local
2923 struct nes_device *nesdev = nesvnic->nesdev; in nes_modify_qp()
3258 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_post_send() local
3259 struct nes_device *nesdev = nesvnic->nesdev; in nes_post_send()
3520 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_post_recv() local
3521 struct nes_device *nesdev = nesvnic->nesdev; in nes_post_recv()
3613 struct nes_vnic *nesvnic = to_nesvnic(ibcq->device); in nes_poll_cq() local
3614 struct nes_device *nesdev = nesvnic->nesdev; in nes_poll_cq()
3785 struct nes_vnic *nesvnic = to_nesvnic(ibcq->device); in nes_req_notify_cq() local
3786 struct nes_device *nesdev = nesvnic->nesdev; in nes_req_notify_cq()
3830 struct nes_vnic *nesvnic = netdev_priv(netdev); in nes_init_ofa_device() local
3831 struct nes_device *nesdev = nesvnic->nesdev; in nes_init_ofa_device()
3933 struct nes_vnic *nesvnic = (void *) data; in nes_handle_delayed_event() local
3935 if (nesvnic->delayed_event != nesvnic->last_dispatched_event) { in nes_handle_delayed_event()
3938 event.device = &nesvnic->nesibdev->ibdev; in nes_handle_delayed_event()
3941 event.event = nesvnic->delayed_event; in nes_handle_delayed_event()
3942 event.element.port_num = nesvnic->logical_port + 1; in nes_handle_delayed_event()
3947 nesvnic->event_timer.function = NULL; in nes_handle_delayed_event()
3951 void nes_port_ibevent(struct nes_vnic *nesvnic) in nes_port_ibevent() argument
3953 struct nes_ib_device *nesibdev = nesvnic->nesibdev; in nes_port_ibevent()
3954 struct nes_device *nesdev = nesvnic->nesdev; in nes_port_ibevent()
3957 event.element.port_num = nesvnic->logical_port + 1; in nes_port_ibevent()
3960 if (!nesvnic->event_timer.function) { in nes_port_ibevent()
3962 nesvnic->last_dispatched_event = event.event; in nes_port_ibevent()
3963 nesvnic->event_timer.function = nes_handle_delayed_event; in nes_port_ibevent()
3964 nesvnic->event_timer.data = (unsigned long) nesvnic; in nes_port_ibevent()
3965 nesvnic->event_timer.expires = jiffies + NES_EVENT_DELAY; in nes_port_ibevent()
3966 add_timer(&nesvnic->event_timer); in nes_port_ibevent()
3968 mod_timer(&nesvnic->event_timer, jiffies + NES_EVENT_DELAY); in nes_port_ibevent()
3970 nesvnic->delayed_event = event.event; in nes_port_ibevent()
3994 struct nes_vnic *nesvnic = nesibdev->nesvnic; in nes_register_ofa_device() local
3995 struct nes_device *nesdev = nesvnic->nesdev; in nes_register_ofa_device()
3999 ret = ib_register_device(&nesvnic->nesibdev->ibdev, NULL); in nes_register_ofa_device()
4023 nesvnic->of_device_registered = 1; in nes_register_ofa_device()
4034 struct nes_vnic *nesvnic = nesibdev->nesvnic; in nes_unregister_ofa_device() local
4041 if (nesvnic->of_device_registered) { in nes_unregister_ofa_device()
4045 nesvnic->of_device_registered = 0; in nes_unregister_ofa_device()