Lines Matching refs:peers
38 } peers[]; member
134 struct ntb_msi_desc *desc = nm->peers[peer].msi_desc; in ntb_msit_copy_peer_desc()
135 int irq_count = nm->peers[peer].num_irqs; in ntb_msit_copy_peer_desc()
146 complete_all(&nm->peers[peer].init_comp); in ntb_msit_copy_peer_desc()
171 kfree(nm->peers[peer].msi_desc); in ntb_msit_db_event()
172 nm->peers[peer].msi_desc = desc; in ntb_msit_db_event()
173 nm->peers[peer].num_irqs = irq_count; in ntb_msit_db_event()
283 nm->peers[i].pidx = i; in ntb_msit_create_dbgfs()
284 nm->peers[i].nm = nm; in ntb_msit_create_dbgfs()
285 init_completion(&nm->peers[i].init_comp); in ntb_msit_create_dbgfs()
291 &nm->peers[i], in ntb_msit_create_dbgfs()
295 &nm->peers[i], &ntb_msit_port_fops); in ntb_msit_create_dbgfs()
298 &nm->peers[i], in ntb_msit_create_dbgfs()
302 &nm->peers[i], in ntb_msit_create_dbgfs()
322 int peers; in ntb_msit_probe() local
325 peers = ntb_peer_port_count(ntb); in ntb_msit_probe()
326 if (peers <= 0) in ntb_msit_probe()
341 ret = ntb_db_clear_mask(ntb, GENMASK(peers - 1, 0)); in ntb_msit_probe()
354 nm = devm_kzalloc(&ntb->dev, struct_size(nm, peers, peers), GFP_KERNEL); in ntb_msit_probe()
398 kfree(nm->peers[i].msi_desc); in ntb_msit_remove()