Lines Matching refs:to_hr_dev
67 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_add_gid()
81 struct hns_roce_dev *hr_dev = to_hr_dev(attr->device); in hns_roce_del_gid()
169 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_device()
224 struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev); in hns_roce_query_port()
297 spin_lock_irqsave(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device()
299 spin_unlock_irqrestore(&to_hr_dev(ib_dev)->sm_lock, flags); in hns_roce_modify_device()
369 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext()
449 struct hns_roce_dev *hr_dev = to_hr_dev(ibcontext->device); in hns_roce_dealloc_ucontext()
462 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_mmap()
521 if (to_hr_dev(ib_dev)->caps.flags & HNS_ROCE_CAP_FLAG_ROCE_V1_V2) in hns_roce_port_immutable()
533 u64 fw_ver = to_hr_dev(device)->caps.fw_ver; in hns_roce_get_fw_ver()
575 struct hns_roce_dev *hr_dev = to_hr_dev(device); in hns_roce_alloc_hw_port_stats()
591 struct hns_roce_dev *hr_dev = to_hr_dev(device); in hns_roce_get_hw_stats()