Home
last modified time | relevance | path

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

/linux/net/smc/
H A Dsmc_ism.c69 struct smcd_dev *smcd) in smc_ism_cantalk() argument
71 return smcd->ops->query_remote_gid(smcd, peer_gid, vlan_id ? 1 : 0, in smc_ism_cantalk()
83 u16 smc_ism_get_chid(struct smcd_dev *smcd) in smc_ism_get_chid() argument
85 return smcd->ops->get_chid(smcd); in smc_ism_get_chid()
104 spin_lock_irqsave(&conn->lgr->smcd->lock, flags); in smc_ism_set_conn()
105 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = conn; in smc_ism_set_conn()
106 spin_unlock_irqrestore(&conn->lgr->smcd->lock, flags); in smc_ism_set_conn()
117 spin_lock_irqsave(&conn->lgr->smcd->lock, flags); in smc_ism_unset_conn()
118 conn->lgr->smcd->conn[conn->rmb_desc->sba_idx] = NULL; in smc_ism_unset_conn()
119 spin_unlock_irqrestore(&conn->lgr->smcd->lock, flags); in smc_ism_unset_conn()
[all …]
H A Dsmc_loopback.c42 static int smc_lo_query_rgid(struct smcd_dev *smcd, struct smcd_gid *rgid, in smc_lo_query_rgid() argument
45 struct smc_lo_dev *ldev = smcd->priv; in smc_lo_query_rgid()
54 static int smc_lo_register_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb, in smc_lo_register_dmb() argument
58 struct smc_lo_dev *ldev = smcd->priv; in smc_lo_register_dmb()
132 static int smc_lo_unregister_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb) in smc_lo_unregister_dmb() argument
135 struct smc_lo_dev *ldev = smcd->priv; in smc_lo_unregister_dmb()
156 static int smc_lo_support_dmb_nocopy(struct smcd_dev *smcd) in smc_lo_support_dmb_nocopy() argument
161 static int smc_lo_attach_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb) in smc_lo_attach_dmb() argument
164 struct smc_lo_dev *ldev = smcd->priv; in smc_lo_attach_dmb()
195 static int smc_lo_detach_dmb(struct smcd_dev *smcd, u64 token) in smc_lo_detach_dmb() argument
[all …]
H A Dsmc_ism.h51 bool smc_ism_support_dmb_nocopy(struct smcd_dev *smcd);
64 static inline int smc_ism_write(struct smcd_dev *smcd, u64 dmb_tok, in smc_ism_write() argument
70 rc = smcd->ops->move_data(smcd, dmb_tok, idx, sf, offset, data, len); in smc_ism_write()
85 static inline bool smc_ism_is_emulated(struct smcd_dev *smcd) in smc_ism_is_emulated() argument
87 u16 chid = smcd->ops->get_chid(smcd); in smc_ism_is_emulated()
92 static inline bool smc_ism_is_loopback(struct smcd_dev *smcd) in smc_ism_is_loopback() argument
94 return (smcd->ops->get_chid(smcd) == 0xFFFF); in smc_ism_is_loopback()
H A 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()
541 struct smcd_dev *smcd = lgr->smcd; in smc_nl_fill_smcd_lgr() local
558 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_nl_fill_smcd_lgr()
575 if (nla_put_u32(skb, SMC_NLA_LGR_D_CHID, smc_ism_get_chid(lgr->smcd))) in smc_nl_fill_smcd_lgr()
581 memcpy(smc_pnet, lgr->smcd->pnetid, SMC_MAX_PNETID_LEN); in smc_nl_fill_smcd_lgr()
874 struct smcd_dev *smcd; in smc_lgr_create() local
921 smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
922 get_device(smcd->ops->get_dev(smcd)); in smc_lgr_create()
927 lgr->smcd = ini->ism_dev[ini->ism_selected]; in smc_lgr_create()
[all …]
H A 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 …]
H A Dsmc_diag.c170 struct smcd_dev *smcd = conn->lgr->smcd; in __smc_diag_dump() local
178 smcd->ops->get_local_gid(smcd, &smcd_gid); in __smc_diag_dump()
H A Dsmc_clc.c857 struct smcd_dev *smcd; in smc_clc_send_proposal() local
917 smcd = ini->ism_dev[0]; in smc_clc_send_proposal()
918 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal()
967 smcd = ini->ism_dev[i]; in smc_clc_send_proposal()
968 smcd->ops->get_local_gid(smcd, &smcd_gid); in smc_clc_send_proposal()
972 if (smc_ism_is_emulated(smcd)) { in smc_clc_send_proposal()
1053 struct smcd_dev *smcd = conn->lgr->smcd; in smcd_clc_prep_confirm_accept() local
1061 smcd->ops->get_local_gid(smcd, &smcd_gid); in smcd_clc_prep_confirm_accept()
1071 chid = smc_ism_get_chid(smcd); in smcd_clc_prep_confirm_accept()
H A Dsmc_loopback.h36 struct smcd_dev *smcd; member
H A Daf_smc.c1038 struct smcd_dev *smcd; in smc_find_ism_v2_device_clnt() local
1046 list_for_each_entry(smcd, &smcd_dev_list.list, list) { in smc_find_ism_v2_device_clnt()
1047 if (smcd->going_away || smcd == ini->ism_dev[0]) in smc_find_ism_v2_device_clnt()
1049 chid = smc_ism_get_chid(smcd); in smc_find_ism_v2_device_clnt()
1053 if (!smc_pnet_is_pnetid_set(smcd->pnetid) || in smc_find_ism_v2_device_clnt()
1054 smc_pnet_is_ndev_pnetid(sock_net(&smc->sk), smcd->pnetid)) { in smc_find_ism_v2_device_clnt()
1062 ini->ism_dev[i] = smcd; in smc_find_ism_v2_device_clnt()
1431 if (smc_ism_support_dmb_nocopy(smc->conn.lgr->smcd)) { in smc_connect_ism()
2084 static bool smc_is_already_selected(struct smcd_dev *smcd, in smc_is_already_selected() argument
2091 if (smcd == ini->ism_dev[i]) in smc_is_already_selected()
[all …]
H A Dsmc_pnet.h64 int smc_pnetid_by_table_smcd(struct smcd_dev *smcd);
H A Dsmc_cdc.c260 if (smc_ism_support_dmb_nocopy(conn->lgr->smcd)) in smcd_cdc_msg_send()
357 smc_ism_support_dmb_nocopy(conn->lgr->smcd)) { in smc_cdc_msg_recv_action()
H A Dsmc_core.h364 struct smcd_dev *smcd; member
H A Dsmc_tx.c308 rc = smc_ism_write(conn->lgr->smcd, conn->peer_token, in smcd_tx_ism_write()
/linux/drivers/s390/net/
H A Dism_drv.c741 static int smcd_query_rgid(struct smcd_dev *smcd, struct smcd_gid *rgid, in smcd_query_rgid() argument
744 return ism_query_rgid(smcd->priv, rgid->gid, vid_valid, vid); in smcd_query_rgid()
747 static int smcd_register_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb, in smcd_register_dmb() argument
750 return ism_register_dmb(smcd->priv, (struct ism_dmb *)dmb, client); in smcd_register_dmb()
753 static int smcd_unregister_dmb(struct smcd_dev *smcd, struct smcd_dmb *dmb) in smcd_unregister_dmb() argument
755 return ism_unregister_dmb(smcd->priv, (struct ism_dmb *)dmb); in smcd_unregister_dmb()
758 static int smcd_add_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in smcd_add_vlan_id() argument
760 return ism_add_vlan_id(smcd->priv, vlan_id); in smcd_add_vlan_id()
763 static int smcd_del_vlan_id(struct smcd_dev *smcd, u64 vlan_id) in smcd_del_vlan_id() argument
765 return ism_del_vlan_id(smcd->priv, vlan_id); in smcd_del_vlan_id()
[all …]