Home
last modified time | relevance | path

Searched refs:smcibdev (Results 1 – 11 of 11) sorted by relevance

/net/smc/
Dsmc_ib.c126 rc = ib_req_notify_cq(lnk->smcibdev->roce_cq_recv, in smc_ib_ready_link()
145 static int smc_ib_fill_mac(struct smc_ib_device *smcibdev, u8 ibport) in smc_ib_fill_mac() argument
150 attr = rdma_get_gid_attr(smcibdev->ibdev, ibport, 0); in smc_ib_fill_mac()
154 rc = rdma_read_gid_l2_fields(attr, NULL, smcibdev->mac[ibport - 1]); in smc_ib_fill_mac()
164 static inline void smc_ib_define_local_systemid(struct smc_ib_device *smcibdev, in smc_ib_define_local_systemid() argument
167 memcpy(&local_systemid[2], &smcibdev->mac[ibport - 1], in smc_ib_define_local_systemid()
168 sizeof(smcibdev->mac[ibport - 1])); in smc_ib_define_local_systemid()
181 bool smc_ib_port_active(struct smc_ib_device *smcibdev, u8 ibport) in smc_ib_port_active() argument
183 return smcibdev->pattr[ibport - 1].state == IB_PORT_ACTIVE; in smc_ib_port_active()
187 int smc_ib_determine_gid(struct smc_ib_device *smcibdev, u8 ibport, in smc_ib_determine_gid() argument
[all …]
Dsmc_core.c72 atomic_inc(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_inc()
77 atomic_dec(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_dec()
683 struct smc_ib_device *smcibdev = link->smcibdev; in smcr_copy_dev_info_to_link() local
686 smcibdev->ibdev->name); in smcr_copy_dev_info_to_link()
687 link->ndev_ifidx = smcibdev->ndev_ifidx[link->ibport - 1]; in smcr_copy_dev_info_to_link()
701 lnk->smcibdev = ini->ib_dev; in smcr_link_init()
717 rc = smc_ib_determine_gid(lnk->smcibdev, lnk->ibport, in smcr_link_init()
945 if (is_dev_err && from_lnk->smcibdev == lgr->lnk[i].smcibdev && in smc_switch_conns()
1128 struct smc_ib_device *smcibdev; in smcr_link_clear() local
1142 put_device(&lnk->smcibdev->ibdev->dev); in smcr_link_clear()
[all …]
Dsmc_wr.c259 ib_req_notify_cq(link->smcibdev->roce_cq_send, in smc_wr_tx_send()
304 ib_req_notify_cq(link->smcibdev->roce_cq_send, in smc_wr_reg_send()
538 if (!lnk->smcibdev) in smc_wr_free_link()
540 ibdev = lnk->smcibdev->ibdev; in smc_wr_free_link()
668 void smc_wr_remove_dev(struct smc_ib_device *smcibdev) in smc_wr_remove_dev() argument
670 tasklet_kill(&smcibdev->recv_tasklet); in smc_wr_remove_dev()
671 tasklet_kill(&smcibdev->send_tasklet); in smc_wr_remove_dev()
674 void smc_wr_add_dev(struct smc_ib_device *smcibdev) in smc_wr_add_dev() argument
676 tasklet_setup(&smcibdev->recv_tasklet, smc_wr_rx_tasklet_fn); in smc_wr_add_dev()
677 tasklet_setup(&smcibdev->send_tasklet, smc_wr_tx_tasklet_fn); in smc_wr_add_dev()
[all …]
Dsmc_ib.h68 bool smc_ib_port_active(struct smc_ib_device *smcibdev, u8 ibport);
83 long smc_ib_setup_per_ibdev(struct smc_ib_device *smcibdev);
93 int smc_ib_determine_gid(struct smc_ib_device *smcibdev, u8 ibport,
Dsmc_core.h79 struct smc_ib_device *smcibdev; /* ib-device */ member
424 void smcr_port_add(struct smc_ib_device *smcibdev, u8 ibport);
425 void smcr_port_err(struct smc_ib_device *smcibdev, u8 ibport);
429 void smc_smcr_terminate_all(struct smc_ib_device *smcibdev);
Dsmc_wr.h106 void smc_wr_remove_dev(struct smc_ib_device *smcibdev);
107 void smc_wr_add_dev(struct smc_ib_device *smcibdev);
Dsmc_llc.c398 memcpy(confllc->sender_mac, link->smcibdev->mac[link->ibport - 1], in smc_llc_send_confirm_link()
881 smc_pnet_find_alt_roce(lgr, &ini, link->smcibdev); in smc_llc_cli_add_link()
890 ini.ib_dev = link->smcibdev; in smc_llc_cli_add_link()
913 lnk_new->smcibdev->mac[ini.ib_port - 1], in smc_llc_cli_add_link()
947 smc_pnet_find_alt_roce(lgr, &ini, link->smcibdev); in smc_llc_cli_add_link_invite()
1167 smc_pnet_find_alt_roce(lgr, &ini, link->smcibdev); in smc_llc_srv_add_link()
1170 ini.ib_dev = link->smcibdev; in smc_llc_srv_add_link()
1182 link_new->smcibdev->mac[ini.ib_port - 1], in smc_llc_srv_add_link()
1822 link->smcibdev->ibdev->name, link->ibport); in smc_llc_link_active()
1840 link->smcibdev->ibdev->name, link->ibport); in smc_llc_link_clear()
Dsmc_pnet.h63 int smc_pnetid_by_table_ib(struct smc_ib_device *smcibdev, u8 ib_port);
Dsmc_diag.c155 smc->conn.lgr->lnk[0].smcibdev->ibdev->name, in __smc_diag_dump()
156 sizeof(smc->conn.lnk->smcibdev->ibdev->name)); in __smc_diag_dump()
Dsmc_pnet.c1122 int smc_pnetid_by_table_ib(struct smc_ib_device *smcibdev, u8 ib_port) in smc_pnetid_by_table_ib() argument
1124 char *ib_name = smcibdev->ibdev->name; in smc_pnetid_by_table_ib()
1139 smc_pnet_apply_ib(smcibdev, ib_port, tmp_pe->pnet_name); in smc_pnetid_by_table_ib()
Dsmc_clc.c692 memcpy(&clc->r0.lcl.mac, &link->smcibdev->mac[link->ibport - 1], in smc_clc_send_confirm_accept()