Searched refs:hr_dev (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_cmd.c | 41 static int hns_roce_cmd_mbox_post_hw(struct hns_roce_dev *hr_dev, in hns_roce_cmd_mbox_post_hw() argument 46 ret = hr_dev->hw->post_mbox(hr_dev, mbox_msg); in hns_roce_cmd_mbox_post_hw() 50 atomic64_inc(&hr_dev->dfx_cnt[HNS_ROCE_DFX_MBX_POSTED_CNT]); in hns_roce_cmd_mbox_post_hw() 56 static int __hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, in __hns_roce_cmd_mbox_poll() argument 61 ret = hns_roce_cmd_mbox_post_hw(hr_dev, mbox_msg); in __hns_roce_cmd_mbox_poll() 63 dev_err_ratelimited(hr_dev->dev, in __hns_roce_cmd_mbox_poll() 69 ret = hr_dev->hw->poll_mbox_done(hr_dev); in __hns_roce_cmd_mbox_poll() 73 atomic64_inc(&hr_dev->dfx_cnt[HNS_ROCE_DFX_MBX_POLLED_CNT]); in __hns_roce_cmd_mbox_poll() 78 static int hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, in hns_roce_cmd_mbox_poll() argument 83 down(&hr_dev->cmd.poll_sem); in hns_roce_cmd_mbox_poll() [all …]
|
| H A D | hns_roce_hem.c | 48 bool hns_roce_check_whether_mhop(struct hns_roce_dev *hr_dev, u32 type) in hns_roce_check_whether_mhop() argument 54 hop_num = hr_dev->caps.qpc_hop_num; in hns_roce_check_whether_mhop() 57 hop_num = hr_dev->caps.mpt_hop_num; in hns_roce_check_whether_mhop() 60 hop_num = hr_dev->caps.cqc_hop_num; in hns_roce_check_whether_mhop() 63 hop_num = hr_dev->caps.srqc_hop_num; in hns_roce_check_whether_mhop() 66 hop_num = hr_dev->caps.sccc_hop_num; in hns_roce_check_whether_mhop() 69 hop_num = hr_dev->caps.qpc_timer_hop_num; in hns_roce_check_whether_mhop() 72 hop_num = hr_dev->caps.cqc_timer_hop_num; in hns_roce_check_whether_mhop() 75 hop_num = hr_dev->caps.gmv_hop_num; in hns_roce_check_whether_mhop() 122 static int get_hem_table_config(struct hns_roce_dev *hr_dev, in get_hem_table_config() argument [all …]
|
| H A D | hns_roce_bond.c | 80 struct hns_roce_dev *hr_dev) in hns_roce_set_bond_netdev() argument 101 active_dev = get_hr_netdev(hr_dev, 0); in hns_roce_set_bond_netdev() 103 old_dev = ib_device_get_netdev(&hr_dev->ib_dev, 1); in hns_roce_set_bond_netdev() 107 ret = ib_device_set_netdev(&hr_dev->ib_dev, active_dev, 1); in hns_roce_set_bond_netdev() 109 dev_err(hr_dev->dev, "failed to set netdev for bond.\n"); in hns_roce_set_bond_netdev() 115 roce_del_all_netdev_gids(&hr_dev->ib_dev, 1, old_dev); in hns_roce_set_bond_netdev() 116 rdma_roce_rescan_port(&hr_dev->ib_dev, 1); in hns_roce_set_bond_netdev() 123 bool hns_roce_bond_is_active(struct hns_roce_dev *hr_dev) in hns_roce_bond_is_active() argument 125 struct net_device *net_dev = get_hr_netdev(hr_dev, 0); in hns_roce_bond_is_active() 127 u8 bus_num = get_hr_bus_num(hr_dev); in hns_roce_bond_is_active() [all …]
|
| H A D | hns_roce_hem.h | 88 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem); 89 int hns_roce_table_get(struct hns_roce_dev *hr_dev, 91 void hns_roce_table_put(struct hns_roce_dev *hr_dev, 93 void *hns_roce_table_find(struct hns_roce_dev *hr_dev, 96 int hns_roce_init_hem_table(struct hns_roce_dev *hr_dev, 99 void hns_roce_cleanup_hem_table(struct hns_roce_dev *hr_dev, 101 void hns_roce_cleanup_hem(struct hns_roce_dev *hr_dev); 102 int hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, 105 bool hns_roce_check_whether_mhop(struct hns_roce_dev *hr_dev, u32 type); 110 int hns_roce_hem_list_request(struct hns_roce_dev *hr_dev, [all …]
|
| H A D | hns_roce_trace.h | 176 TP_PROTO(struct hns_roce_dev *hr_dev, 178 TP_ARGS(hr_dev, desc), 180 TP_STRUCT__entry(__string(dev_name, dev_name(hr_dev->dev)) 202 TP_PROTO(struct hns_roce_dev *hr_dev, 204 TP_ARGS(hr_dev, desc)); 206 TP_PROTO(struct hns_roce_dev *hr_dev, 208 TP_ARGS(hr_dev, desc));
|
| H A D | hns_roce_cmd.h | 145 int hns_roce_cmd_mbox(struct hns_roce_dev *hr_dev, u64 in_param, u64 out_param, 149 hns_roce_alloc_cmd_mailbox(struct hns_roce_dev *hr_dev); 150 void hns_roce_free_cmd_mailbox(struct hns_roce_dev *hr_dev,
|
| H A D | hns_roce_bond.h | 87 int hns_roce_alloc_bond_grp(struct hns_roce_dev *hr_dev); 90 bool hns_roce_bond_is_active(struct hns_roce_dev *hr_dev); 91 int hns_roce_bond_init(struct hns_roce_dev *hr_dev);
|