Lines Matching refs:pidx
119 int pidx; in pp_find_next_peer() local
125 pidx = __ffs64(link & pp->nmask); in pp_find_next_peer()
126 out_db = BIT_ULL(pidx + 1); in pp_find_next_peer()
128 pidx = __ffs64(link & pp->pmask); in pp_find_next_peer()
129 out_db = BIT_ULL(pidx); in pp_find_next_peer()
135 pp->out_pidx = pidx; in pp_find_next_peer()
192 int pidx = 0; in pp_pong() local
196 msg_data = ntb_msg_read(pp->ntb, &pidx, 0); in pp_pong()
205 spad_data, msg_data, ntb_peer_port_number(pp->ntb, pidx)); in pp_pong()
296 int pidx, lport, pcnt; in pp_init_flds() local
301 for (pidx = 0; pidx < pcnt; pidx++) { in pp_init_flds()
302 if (lport < ntb_peer_port_number(pp->ntb, pidx)) in pp_init_flds()
306 pp->in_db = BIT_ULL(pidx); in pp_init_flds()
307 pp->pmask = GENMASK_ULL(pidx, 0) >> 1; in pp_init_flds()
308 pp->nmask = GENMASK_ULL(pcnt - 1, pidx); in pp_init_flds()