Home
last modified time | relevance | path

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

/Linux-v6.6/net/smc/
Dsmc_ism.c47 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *smcd) in smc_ism_cantalk() argument
49 return smcd->ops->query_remote_gid(smcd, peer_gid, vlan_id ? 1 : 0, in smc_ism_cantalk()
61 u16 smc_ism_get_chid(struct smcd_dev *smcd) in smc_ism_get_chid() argument
63 return smcd->ops->get_chid(smcd); in smc_ism_get_chid()
77 spin_lock_irqsave(&conn->lgr->smcd->lock, flags); in smc_ism_set_conn()
78 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = conn; in smc_ism_set_conn()
79 spin_unlock_irqrestore(&conn->lgr->smcd->lock, flags); in smc_ism_set_conn()
90 spin_lock_irqsave(&conn->lgr->smcd->lock, flags); in smc_ism_unset_conn()
91 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = NULL; in smc_ism_unset_conn()
92 spin_unlock_irqrestore(&conn->lgr->smcd->lock, flags); in smc_ism_unset_conn()
[all …]
Dsmc_ism.h49 static inline int smc_ism_write(struct smcd_dev *smcd, u64 dmb_tok, in smc_ism_write() argument
55 rc = smcd->ops->move_data(smcd, dmb_tok, idx, sf, offset, data, len); in smc_ism_write()
Dsmc_pnet.c106 struct smcd_dev *smcd; in smc_pnet_remove_by_pnetid() local
165 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_pnet_remove_by_pnetid()
166 if (smcd->pnetid_by_user && in smc_pnet_remove_by_pnetid()
168 smc_pnet_match(pnet_name, smcd->pnetid))) { in smc_pnet_remove_by_pnetid()
172 dev_name(smcd->ops->get_dev(smcd)), in smc_pnet_remove_by_pnetid()
173 smcd->pnetid); in smc_pnet_remove_by_pnetid()
174 memset(smcd->pnetid, 0, SMC_MAX_PNETID_LEN); in smc_pnet_remove_by_pnetid()
175 smcd->pnetid_by_user = false; in smc_pnet_remove_by_pnetid()
415 struct smcd_dev *smcd; in smc_pnet_add_ib() local
430 smcd = smc_pnet_find_smcd(ib_name); in smc_pnet_add_ib()
[all …]
Dsmc_core.c63 *lgr_lock = &lgr->smcd->lgr_lock; in smc_lgr_list_head()
64 return &lgr->smcd->lgr_list; in smc_lgr_list_head()
508 struct smcd_dev *smcd = lgr->smcd; in smc_nl_fill_smcd_lgr() local
525 smcd->ops->get_local_gid(smcd), in smc_nl_fill_smcd_lgr()
535 if (nla_put_u32(skb, SMC_NLA_LGR_D_CHID, smc_ism_get_chid(lgr->smcd))) in smc_nl_fill_smcd_lgr()
537 memcpy(smc_pnet, lgr->smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_fill_smcd_lgr()
830 struct smcd_dev *smcd; in smc_lgr_create() local
877 smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
878 get_device(smcd->ops->get_dev(smcd)); in smc_lgr_create()
880 lgr->smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
[all …]
Dsmc_diag.c170 struct smcd_dev *smcd = conn->lgr->smcd; in __smc_diag_dump() local
176 dinfo.my_gid = smcd->ops->get_local_gid(smcd); in __smc_diag_dump()
Dsmc_clc.c830 struct smcd_dev *smcd; in smc_clc_send_proposal() local
886 smcd = ini->ism_dev[0]; in smc_clc_send_proposal()
888 htonll(smcd->ops->get_local_gid(smcd)); in smc_clc_send_proposal()
934 smcd = ini->ism_dev[i]; in smc_clc_send_proposal()
936 htonll(smcd->ops->get_local_gid(smcd)); in smc_clc_send_proposal()
1025 conn->lgr->smcd->ops->get_local_gid(conn->lgr->smcd); in smc_clc_send_confirm_accept()
1034 htons(smc_ism_get_chid(conn->lgr->smcd)); in smc_clc_send_confirm_accept()
Dsmc_pnet.h64 int smc_pnetid_by_table_smcd(struct smcd_dev *smcd);
Daf_smc.c1046 struct smcd_dev *smcd; in smc_find_ism_v2_device_clnt() local
1053 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_find_ism_v2_device_clnt()
1054 if (smcd->going_away || smcd == ini->ism_dev[0]) in smc_find_ism_v2_device_clnt()
1056 chid = smc_ism_get_chid(smcd); in smc_find_ism_v2_device_clnt()
1059 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt()
1060 smc_pnet_is_ndev_pnetid(sock_net(&smc->sk), smcd->pnetid)) { in smc_find_ism_v2_device_clnt()
1061 ini->ism_dev[i] = smcd; in smc_find_ism_v2_device_clnt()
2090 static bool smc_is_already_selected(struct smcd_dev *smcd, in smc_is_already_selected() argument
2097 if (smcd == ini->ism_dev[i]) in smc_is_already_selected()
2108 struct smcd_dev *smcd; in smc_check_ism_v2_match() local
[all …]
Dsmc_core.h360 struct smcd_dev *smcd; member
Dsmc_tx.c308 rc = smc_ism_write(conn->lgr->smcd, conn->peer_token, in smcd_tx_ism_write()
/Linux-v6.6/drivers/s390/net/
Dism_drv.c777 static int smcd_query_rgid(struct smcd_dev *smcd, u64 rgid, u32 vid_valid, in smcd_query_rgid() argument
780 return ism_query_rgid(smcd->priv, rgid, vid_valid, vid); in smcd_query_rgid()
783 static int smcd_register_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb, in smcd_register_dmb() argument
786 return ism_register_dmb(smcd->priv, (struct ism_dmb *)dmb, client); in smcd_register_dmb()
789 static int smcd_unregister_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb) in smcd_unregister_dmb() argument
791 return ism_unregister_dmb(smcd->priv, (struct ism_dmb *)dmb); in smcd_unregister_dmb()
794 static int smcd_add_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in smcd_add_vlan_id() argument
796 return ism_add_vlan_id(smcd->priv, vlan_id); in smcd_add_vlan_id()
799 static int smcd_del_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in smcd_del_vlan_id() argument
801 return ism_del_vlan_id(smcd->priv, vlan_id); in smcd_del_vlan_id()
[all …]