Lines Matching refs:gidx
146 int gidx; member
191 int gidx; member
278 PERF_SPAD_CMD(perf->gidx)); in perf_spad_cmd_send()
285 PERF_SPAD_LDATA(perf->gidx), in perf_spad_cmd_send()
288 PERF_SPAD_HDATA(perf->gidx), in perf_spad_cmd_send()
291 PERF_SPAD_CMD(perf->gidx), in perf_spad_cmd_send()
293 ntb_peer_db_set(perf->ntb, PERF_SPAD_NOTIFY(peer->gidx)); in perf_spad_cmd_send()
296 PERF_SPAD_NOTIFY(peer->gidx)); in perf_spad_cmd_send()
310 ntb_db_clear(perf->ntb, PERF_SPAD_NOTIFY(perf->gidx)); in perf_spad_cmd_recv()
324 val = ntb_spad_read(perf->ntb, PERF_SPAD_CMD(peer->gidx)); in perf_spad_cmd_recv()
330 val = ntb_spad_read(perf->ntb, PERF_SPAD_LDATA(peer->gidx)); in perf_spad_cmd_recv()
333 val = ntb_spad_read(perf->ntb, PERF_SPAD_HDATA(peer->gidx)); in perf_spad_cmd_recv()
337 ntb_spad_write(perf->ntb, PERF_SPAD_CMD(peer->gidx), in perf_spad_cmd_recv()
534 (void)ntb_peer_mw_clear_trans(peer->perf->ntb, peer->pidx, peer->gidx); in perf_free_outbuf()
543 ret = ntb_peer_mw_set_trans(perf->ntb, peer->pidx, peer->gidx, in perf_setup_outbuf()
562 (void)ntb_mw_clear_trans(peer->perf->ntb, peer->pidx, peer->gidx); in perf_free_inbuf()
575 ret = ntb_mw_get_align(perf->ntb, peer->pidx, perf->gidx, in perf_setup_inbuf()
606 ret = ntb_mw_set_trans(perf->ntb, peer->pidx, peer->gidx, in perf_setup_inbuf()
723 incmd_bit = PERF_SPAD_NOTIFY(perf->gidx); in perf_enable_service()
750 (void)ntb_db_set_mask(perf->ntb, PERF_SPAD_NOTIFY(perf->gidx)); in perf_disable_service()
764 ntb_spad_write(perf->ntb, PERF_SPAD_CMD(peer->gidx), 0); in perf_disable_service()
767 ntb_db_clear(perf->ntb, PERF_SPAD_NOTIFY(perf->gidx)); in perf_disable_service()
1203 perf->gidx); in perf_dbgfs_read_info()
1220 peer->gidx); in perf_dbgfs_read_info()
1416 ret = ntb_peer_mw_get_addr(perf->ntb, perf->gidx, &phys_addr, in perf_setup_peer_mw()
1444 perf->gidx = -1; in perf_init_peers()
1451 if (perf->gidx == -1) in perf_init_peers()
1452 perf->gidx = pidx; in perf_init_peers()
1453 peer->gidx = pidx + 1; in perf_init_peers()
1455 peer->gidx = pidx; in perf_init_peers()
1460 if (perf->gidx == -1) in perf_init_peers()
1461 perf->gidx = pidx; in perf_init_peers()
1469 perf->gidx = 0; in perf_init_peers()
1470 perf->peers[0].gidx = 0; in perf_init_peers()
1479 dev_dbg(&perf->ntb->dev, "Global port index %d\n", perf->gidx); in perf_init_peers()