Lines Matching defs:smcd
63 *lgr_lock = &lgr->smcd->lgr_lock;
64 return &lgr->smcd->lgr_list;
541 struct smcd_dev *smcd = lgr->smcd;
558 copy_to_smcdgid(&smcd_gid, &smcd->dibs->gid);
575 if (nla_put_u32(skb, SMC_NLA_LGR_D_CHID, smc_ism_get_chid(lgr->smcd)))
581 memcpy(smc_pnet, lgr->smcd->pnetid, SMC_MAX_PNETID_LEN);
879 struct smcd_dev *smcd;
926 smcd = ini->ism_dev[ini->ism_selected];
927 get_device(&smcd->dibs->dev);
932 lgr->smcd = ini->ism_dev[ini->ism_selected];
934 lgr_lock = &lgr->smcd->lgr_lock;
1196 struct smcd_dev *smcd = conn->lgr->smcd;
1202 smc_ism_detach_dmb(smcd, peer_token);
1259 if (smc_ism_support_dmb_nocopy(lgr->smcd))
1401 smc_ism_unregister_dmb(lgr->smcd, buf_desc);
1449 if (!atomic_dec_return(&lgr->smcd->lgr_cnt))
1450 wake_up(&lgr->smcd->lgrs_deleted);
1476 smc_ism_put_vlan(lgr->smcd, lgr->vlan_id);
1477 put_device(&lgr->smcd->dibs->dev);
1514 if (smc_ism_support_dmb_nocopy(conn->lgr->smcd))
1625 void smc_smcd_terminate_all(struct smcd_dev *smcd)
1630 spin_lock_bh(&smcd->lgr_lock);
1631 list_splice_init(&smcd->lgr_list, &lgr_free_list);
1634 spin_unlock_bh(&smcd->lgr_lock);
1641 if (atomic_read(&smcd->lgr_cnt))
1642 wait_event(smcd->lgrs_deleted, !atomic_read(&smcd->lgr_cnt));
1951 lgr->smcd != smcismdev)
2538 smc_ism_support_dmb_nocopy(smc->conn.lgr->smcd))
2562 struct smcd_dev *smcd = conn->lgr->smcd;
2576 rc = smc_ism_attach_dmb(smcd, peer_token, buf_desc);
2712 struct smcd_dev *smcd;
2724 list_for_each_entry(smcd, &smcd_dev_list.list, list) {
2725 smcd->going_away = 1;
2733 struct smcd_dev *smcd;
2740 list_for_each_entry(smcd, &smcd_dev_list.list, list)
2741 smc_smcd_terminate_all(smcd);