Lines Matching refs:idev

1991 	struct ipath_ibdev *idev;  in ipath_register_ib_device()  local
1997 idev = (struct ipath_ibdev *)ib_alloc_device(sizeof *idev); in ipath_register_ib_device()
1998 if (idev == NULL) { in ipath_register_ib_device()
2003 dev = &idev->ibdev; in ipath_register_ib_device()
2014 idev->txreq_bufs = tx; in ipath_register_ib_device()
2017 spin_lock_init(&idev->n_pds_lock); in ipath_register_ib_device()
2018 spin_lock_init(&idev->n_ahs_lock); in ipath_register_ib_device()
2019 spin_lock_init(&idev->n_cqs_lock); in ipath_register_ib_device()
2020 spin_lock_init(&idev->n_qps_lock); in ipath_register_ib_device()
2021 spin_lock_init(&idev->n_srqs_lock); in ipath_register_ib_device()
2022 spin_lock_init(&idev->n_mcast_grps_lock); in ipath_register_ib_device()
2024 spin_lock_init(&idev->qp_table.lock); in ipath_register_ib_device()
2025 spin_lock_init(&idev->lk_table.lock); in ipath_register_ib_device()
2026 idev->sm_lid = __constant_be16_to_cpu(IB_LID_PERMISSIVE); in ipath_register_ib_device()
2028 idev->gid_prefix = __constant_cpu_to_be64(0xfe80000000000000ULL); in ipath_register_ib_device()
2030 ret = ipath_init_qp_table(idev, ib_ipath_qp_table_size); in ipath_register_ib_device()
2039 idev->lk_table.max = 1 << ib_ipath_lkey_table_size; in ipath_register_ib_device()
2040 idev->lk_table.table = kzalloc(idev->lk_table.max * in ipath_register_ib_device()
2041 sizeof(*idev->lk_table.table), in ipath_register_ib_device()
2043 if (idev->lk_table.table == NULL) { in ipath_register_ib_device()
2047 INIT_LIST_HEAD(&idev->pending_mmaps); in ipath_register_ib_device()
2048 spin_lock_init(&idev->pending_lock); in ipath_register_ib_device()
2049 idev->mmap_offset = PAGE_SIZE; in ipath_register_ib_device()
2050 spin_lock_init(&idev->mmap_offset_lock); in ipath_register_ib_device()
2051 INIT_LIST_HEAD(&idev->pending[0]); in ipath_register_ib_device()
2052 INIT_LIST_HEAD(&idev->pending[1]); in ipath_register_ib_device()
2053 INIT_LIST_HEAD(&idev->pending[2]); in ipath_register_ib_device()
2054 INIT_LIST_HEAD(&idev->piowait); in ipath_register_ib_device()
2055 INIT_LIST_HEAD(&idev->rnrwait); in ipath_register_ib_device()
2056 INIT_LIST_HEAD(&idev->txreq_free); in ipath_register_ib_device()
2057 idev->pending_index = 0; in ipath_register_ib_device()
2058 idev->port_cap_flags = in ipath_register_ib_device()
2061 idev->port_cap_flags |= IB_PORT_LINK_LATENCY_SUP; in ipath_register_ib_device()
2062 idev->pma_counter_select[0] = IB_PMA_PORT_XMIT_DATA; in ipath_register_ib_device()
2063 idev->pma_counter_select[1] = IB_PMA_PORT_RCV_DATA; in ipath_register_ib_device()
2064 idev->pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS; in ipath_register_ib_device()
2065 idev->pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS; in ipath_register_ib_device()
2066 idev->pma_counter_select[4] = IB_PMA_PORT_XMIT_WAIT; in ipath_register_ib_device()
2070 idev->z_symbol_error_counter = cntrs.symbol_error_counter; in ipath_register_ib_device()
2071 idev->z_link_error_recovery_counter = in ipath_register_ib_device()
2073 idev->z_link_downed_counter = cntrs.link_downed_counter; in ipath_register_ib_device()
2074 idev->z_port_rcv_errors = cntrs.port_rcv_errors; in ipath_register_ib_device()
2075 idev->z_port_rcv_remphys_errors = in ipath_register_ib_device()
2077 idev->z_port_xmit_discards = cntrs.port_xmit_discards; in ipath_register_ib_device()
2078 idev->z_port_xmit_data = cntrs.port_xmit_data; in ipath_register_ib_device()
2079 idev->z_port_rcv_data = cntrs.port_rcv_data; in ipath_register_ib_device()
2080 idev->z_port_xmit_packets = cntrs.port_xmit_packets; in ipath_register_ib_device()
2081 idev->z_port_rcv_packets = cntrs.port_rcv_packets; in ipath_register_ib_device()
2082 idev->z_local_link_integrity_errors = in ipath_register_ib_device()
2084 idev->z_excessive_buffer_overrun_errors = in ipath_register_ib_device()
2086 idev->z_vl15_dropped = cntrs.vl15_dropped; in ipath_register_ib_device()
2089 list_add(&tx->txreq.list, &idev->txreq_free); in ipath_register_ib_device()
2098 idev->sys_image_guid = sys_image_guid; in ipath_register_ib_device()
2099 idev->ib_unit = dd->ipath_unit; in ipath_register_ib_device()
2100 idev->dd = dd; in ipath_register_ib_device()
2201 kfree(idev->lk_table.table); in ipath_register_ib_device()
2203 kfree(idev->qp_table.table); in ipath_register_ib_device()
2205 kfree(idev->txreq_bufs); in ipath_register_ib_device()
2209 idev = NULL; in ipath_register_ib_device()
2212 dd->verbs_dev = idev; in ipath_register_ib_device()