Lines Matching refs:pidx
119 int pidx; in pp_find_next_peer() local
125 pidx = __ffs64(link & pp->nmask); in pp_find_next_peer()
127 pidx = __ffs64(link & pp->pmask); in pp_find_next_peer()
131 out_db = BIT_ULL(ntb_peer_port_number(pp->ntb, pidx)); in pp_find_next_peer()
134 pp->out_pidx = pidx; in pp_find_next_peer()
191 int pidx = 0; in pp_pong() local
195 msg_data = ntb_msg_read(pp->ntb, &pidx, 0); in pp_pong()
204 spad_data, msg_data, ntb_peer_port_number(pp->ntb, pidx)); in pp_pong()
295 int pidx, lport, pcnt; in pp_init_flds() local
300 for (pidx = 0; pidx < pcnt; pidx++) { in pp_init_flds()
301 if (lport < ntb_peer_port_number(pp->ntb, pidx)) in pp_init_flds()
306 pp->pmask = GENMASK_ULL(pidx, 0) >> 1; in pp_init_flds()
307 pp->nmask = GENMASK_ULL(pcnt - 1, pidx); in pp_init_flds()