pidx 1875 block/blk-iocost.c int pidx, rw; pidx 1882 block/blk-iocost.c pidx = QOS_RLAT; pidx 1886 block/blk-iocost.c pidx = QOS_WLAT; pidx 1896 block/blk-iocost.c if (on_q_ns <= ioc->params.qos[pidx] * NSEC_PER_USEC) pidx 15 drivers/char/ipmi/ipmi_plat_data.c unsigned int num_r = 1, size = 0, pidx = 0; pidx 35 drivers/char/ipmi/ipmi_plat_data.c pr[pidx++] = PROPERTY_ENTRY_U8("ipmi-type", p->type); pidx 37 drivers/char/ipmi/ipmi_plat_data.c pr[pidx++] = PROPERTY_ENTRY_U16("i2c-addr", p->addr); pidx 41 drivers/char/ipmi/ipmi_plat_data.c pr[pidx++] = PROPERTY_ENTRY_U8("slave-addr", p->slave_addr); pidx 42 drivers/char/ipmi/ipmi_plat_data.c pr[pidx++] = PROPERTY_ENTRY_U8("addr-source", p->addr_source); pidx 44 drivers/char/ipmi/ipmi_plat_data.c pr[pidx++] = PROPERTY_ENTRY_U8("reg-shift", p->regshift); pidx 45 drivers/char/ipmi/ipmi_plat_data.c pr[pidx++] = PROPERTY_ENTRY_U8("reg-size", p->regsize); pidx 665 drivers/crypto/chelsio/chcr_ipsec.c q->pidx += n; pidx 666 drivers/crypto/chelsio/chcr_ipsec.c if (q->pidx >= q->size) pidx 667 drivers/crypto/chelsio/chcr_ipsec.c q->pidx -= q->size; pidx 724 drivers/crypto/chelsio/chcr_ipsec.c pos = (u64 *)&q->q.desc[q->q.pidx]; pidx 751 drivers/crypto/chelsio/chcr_ipsec.c last_desc = q->q.pidx + ndesc - 1; pidx 250 drivers/infiniband/hw/cxgb4/cq.c while (idx != wq->sq.pidx) { pidx 276 drivers/infiniband/hw/cxgb4/cq.c while (cidx != wq->sq.pidx) { pidx 319 drivers/infiniband/hw/cxgb4/cq.c while (rptr != wq->sq.pidx) { pidx 469 drivers/infiniband/hw/cxgb4/cq.c srq->sw_rq[srq->pidx].wr_id = pwr->wr_id; pidx 470 drivers/infiniband/hw/cxgb4/cq.c srq->sw_rq[srq->pidx].valid = 1; pidx 474 drivers/infiniband/hw/cxgb4/cq.c srq->cidx, srq->pidx, srq->wq_pidx, pidx 501 drivers/infiniband/hw/cxgb4/cq.c __func__, rel_idx, srq->cidx, srq->pidx, pidx 507 drivers/infiniband/hw/cxgb4/cq.c __func__, srq->cidx, srq->pidx, pidx 519 drivers/infiniband/hw/cxgb4/cq.c srq->pidx, srq->wq_pidx, pidx 710 drivers/infiniband/hw/cxgb4/qp.c swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; pidx 712 drivers/infiniband/hw/cxgb4/qp.c swsqe->idx = qhp->wq.sq.pidx; pidx 723 drivers/infiniband/hw/cxgb4/qp.c write_wrid = qhp->wq.sq.pidx; pidx 727 drivers/infiniband/hw/cxgb4/qp.c if (++qhp->wq.sq.pidx == qhp->wq.sq.size) pidx 728 drivers/infiniband/hw/cxgb4/qp.c qhp->wq.sq.pidx = 0; pidx 731 drivers/infiniband/hw/cxgb4/qp.c swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; pidx 736 drivers/infiniband/hw/cxgb4/qp.c swsqe->idx = qhp->wq.sq.pidx; pidx 748 drivers/infiniband/hw/cxgb4/qp.c wqe->write_cmpl.wrid_send = qhp->wq.sq.pidx; pidx 1149 drivers/infiniband/hw/cxgb4/qp.c swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; pidx 1228 drivers/infiniband/hw/cxgb4/qp.c swsqe->idx = qhp->wq.sq.pidx; pidx 1240 drivers/infiniband/hw/cxgb4/qp.c init_wr_hdr(wqe, qhp->wq.sq.pidx, fw_opcode, fw_flags, len16); pidx 1243 drivers/infiniband/hw/cxgb4/qp.c (unsigned long long)wr->wr_id, qhp->wq.sq.pidx, pidx 1307 drivers/infiniband/hw/cxgb4/qp.c qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].wr_id = wr->wr_id; pidx 1309 drivers/infiniband/hw/cxgb4/qp.c qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].sge_ts = pidx 1312 drivers/infiniband/hw/cxgb4/qp.c qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].host_time = pidx 1318 drivers/infiniband/hw/cxgb4/qp.c wqe->recv.wrid = qhp->wq.rq.pidx; pidx 1324 drivers/infiniband/hw/cxgb4/qp.c (unsigned long long)wr->wr_id, qhp->wq.rq.pidx); pidx 1346 drivers/infiniband/hw/cxgb4/qp.c __func__, srq->cidx, srq->pidx, srq->wq_pidx, pidx 1392 drivers/infiniband/hw/cxgb4/qp.c wqe->recv.wrid = srq->wq.pidx; pidx 1400 drivers/infiniband/hw/cxgb4/qp.c srq->wq.sw_rq[srq->wq.pidx].valid) { pidx 1403 drivers/infiniband/hw/cxgb4/qp.c srq->wq.sw_rq[srq->wq.pidx].wr_id = wr->wr_id; pidx 1404 drivers/infiniband/hw/cxgb4/qp.c srq->wq.sw_rq[srq->wq.pidx].valid = 1; pidx 1408 drivers/infiniband/hw/cxgb4/qp.c srq->wq.pidx, srq->wq.wq_pidx, pidx 50 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "pidx", wq->sq.pidx)) pidx 76 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "pidx", wq->rq.pidx)) pidx 161 drivers/infiniband/hw/cxgb4/restrack.c if (wq.sq.cidx != wq.sq.pidx) { pidx 165 drivers/infiniband/hw/cxgb4/restrack.c last_sq_idx = wq.sq.pidx; pidx 53 drivers/infiniband/hw/cxgb4/t4.h __be16 pidx; pidx 347 drivers/infiniband/hw/cxgb4/t4.h u16 pidx; pidx 377 drivers/infiniband/hw/cxgb4/t4.h u16 pidx; pidx 414 drivers/infiniband/hw/cxgb4/t4.h u16 pidx; pidx 433 drivers/infiniband/hw/cxgb4/t4.h if (++srq->pidx == srq->size) pidx 434 drivers/infiniband/hw/cxgb4/t4.h srq->pidx = 0; pidx 438 drivers/infiniband/hw/cxgb4/t4.h srq->queue[srq->size].status.host_pidx = srq->pidx; pidx 503 drivers/infiniband/hw/cxgb4/t4.h if (++wq->rq.pidx == wq->rq.size) pidx 504 drivers/infiniband/hw/cxgb4/t4.h wq->rq.pidx = 0; pidx 550 drivers/infiniband/hw/cxgb4/t4.h if (++wq->sq.pidx == wq->sq.size) pidx 551 drivers/infiniband/hw/cxgb4/t4.h wq->sq.pidx = 0; pidx 599 drivers/infiniband/hw/cxgb4/t4.h __func__, srq->pidx, len16); pidx 603 drivers/infiniband/hw/cxgb4/t4.h __func__, srq->pidx, len16); pidx 618 drivers/infiniband/hw/cxgb4/t4.h pr_debug("WC wq->sq.pidx = %d\n", wq->sq.pidx); pidx 623 drivers/infiniband/hw/cxgb4/t4.h pr_debug("DB wq->sq.pidx = %d\n", wq->sq.pidx); pidx 643 drivers/infiniband/hw/cxgb4/t4.h pr_debug("WC wq->rq.pidx = %d\n", wq->rq.pidx); pidx 648 drivers/infiniband/hw/cxgb4/t4.h pr_debug("DB wq->rq.pidx = %d\n", wq->rq.pidx); pidx 177 drivers/infiniband/hw/hfi1/driver.c int pidx, nunits_active = 0; pidx 183 drivers/infiniband/hw/hfi1/driver.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 184 drivers/infiniband/hw/hfi1/driver.c ppd = dd->pport + pidx; pidx 1359 drivers/infiniband/hw/hfi1/driver.c int pidx; pidx 1386 drivers/infiniband/hw/hfi1/driver.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1387 drivers/infiniband/hw/hfi1/driver.c ppd = dd->pport + pidx; pidx 1850 drivers/infiniband/hw/hfi1/hfi.h unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ pidx 1852 drivers/infiniband/hw/hfi1/hfi.h WARN_ON(pidx >= dd->num_pports); pidx 1853 drivers/infiniband/hw/hfi1/hfi.h return &dd->pport[pidx].ibport_data; pidx 799 drivers/infiniband/hw/hfi1/init.c int pidx; pidx 802 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 803 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 811 drivers/infiniband/hw/hfi1/init.c dd->unit, pidx); pidx 825 drivers/infiniband/hw/hfi1/init.c dd->unit, pidx); pidx 832 drivers/infiniband/hw/hfi1/init.c pr_err("alloc_workqueue failed for port %d\n", pidx + 1); pidx 833 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 834 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 881 drivers/infiniband/hw/hfi1/init.c int ret = 0, pidx, lastfail = 0; pidx 902 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 903 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 967 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 968 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 993 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 994 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 1034 drivers/infiniband/hw/hfi1/init.c int pidx; pidx 1036 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1037 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 1058 drivers/infiniband/hw/hfi1/init.c unsigned pidx; pidx 1065 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1066 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 1079 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1080 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 1104 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1105 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 1368 drivers/infiniband/hw/hfi1/init.c u32 pidx; pidx 1372 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1375 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 1534 drivers/infiniband/hw/hfi1/init.c int pidx; pidx 1537 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1538 drivers/infiniband/hw/hfi1/init.c struct hfi1_pportdata *ppd = &dd->pport[pidx]; pidx 1639 drivers/infiniband/hw/hfi1/init.c int ret = 0, j, pidx, initfail; pidx 1748 drivers/infiniband/hw/hfi1/init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1749 drivers/infiniband/hw/hfi1/init.c hfi1_quiet_serdes(dd->pport + pidx); pidx 1750 drivers/infiniband/hw/hfi1/init.c ppd = dd->pport + pidx; pidx 609 drivers/infiniband/hw/hfi1/mad.c unsigned pidx = port - 1; /* IB number port from 1, hw from 0 */ pidx 614 drivers/infiniband/hw/hfi1/mad.c if (am || pidx >= dd->num_pports || ibdev->node_guid == 0 || pidx 648 drivers/infiniband/hw/hfi1/mad.c unsigned pidx = port - 1; /* IB number port from 1, hw from 0 */ pidx 651 drivers/infiniband/hw/hfi1/mad.c if (smp->attr_mod || pidx >= dd->num_pports || pidx 876 drivers/infiniband/hw/hfi1/qp.c int mtu, pidx = qp->port_num - 1; pidx 887 drivers/infiniband/hw/hfi1/qp.c if (mtu > dd->pport[pidx].ibmtu) pidx 888 drivers/infiniband/hw/hfi1/qp.c return mtu_to_enum(dd->pport[pidx].ibmtu, IB_MTU_2048); pidx 1206 drivers/infiniband/hw/qib/qib.h unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ pidx 1208 drivers/infiniband/hw/qib/qib.h WARN_ON(pidx >= dd->num_pports); pidx 1209 drivers/infiniband/hw/qib/qib.h return &dd->pport[pidx].ibport_data; pidx 98 drivers/infiniband/hw/qib/qib_driver.c int pidx, nunits_active = 0; pidx 104 drivers/infiniband/hw/qib/qib_driver.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 105 drivers/infiniband/hw/qib/qib_driver.c ppd = dd->pport + pidx; pidx 127 drivers/infiniband/hw/qib/qib_driver.c int pidx; pidx 135 drivers/infiniband/hw/qib/qib_driver.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 136 drivers/infiniband/hw/qib/qib_driver.c ppd = dd->pport + pidx; pidx 744 drivers/infiniband/hw/qib/qib_driver.c int pidx; pidx 772 drivers/infiniband/hw/qib/qib_driver.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 773 drivers/infiniband/hw/qib/qib_driver.c ppd = dd->pport + pidx; pidx 575 drivers/infiniband/hw/qib/qib_file_ops.c int i, pidx = -1; pidx 595 drivers/infiniband/hw/qib/qib_file_ops.c if (!rcd->pkeys[i] && pidx == -1) pidx 596 drivers/infiniband/hw/qib/qib_file_ops.c pidx = i; pidx 600 drivers/infiniband/hw/qib/qib_file_ops.c if (pidx == -1) pidx 611 drivers/infiniband/hw/qib/qib_file_ops.c rcd->pkeys[pidx] = key; pidx 633 drivers/infiniband/hw/qib/qib_file_ops.c rcd->pkeys[pidx] = key; pidx 1375 drivers/infiniband/hw/qib/qib_file_ops.c u32 pidx = ctxt % dd->num_pports; pidx 1377 drivers/infiniband/hw/qib/qib_file_ops.c if (usable(dd->pport + pidx)) pidx 1378 drivers/infiniband/hw/qib/qib_file_ops.c ppd = dd->pport + pidx; pidx 1380 drivers/infiniband/hw/qib/qib_file_ops.c for (pidx = 0; pidx < dd->num_pports && !ppd; pidx 1381 drivers/infiniband/hw/qib/qib_file_ops.c pidx++) pidx 1382 drivers/infiniband/hw/qib/qib_file_ops.c if (usable(dd->pport + pidx)) pidx 1383 drivers/infiniband/hw/qib/qib_file_ops.c ppd = dd->pport + pidx; pidx 960 drivers/infiniband/hw/qib/qib_iba7322.c #define QIB_I_P_SDMAINT(pidx) \ pidx 961 drivers/infiniband/hw/qib/qib_iba7322.c (INT_MASK_P(SDma, pidx) | INT_MASK_P(SDmaIdle, pidx) | \ pidx 962 drivers/infiniband/hw/qib/qib_iba7322.c INT_MASK_P(SDmaProgress, pidx) | \ pidx 963 drivers/infiniband/hw/qib/qib_iba7322.c INT_MASK_PM(SDmaCleanupDone, pidx)) pidx 966 drivers/infiniband/hw/qib/qib_iba7322.c #define QIB_I_P_BITSEXTANT(pidx) \ pidx 967 drivers/infiniband/hw/qib/qib_iba7322.c (INT_MASK_P(Err, pidx) | INT_MASK_P(SendDone, pidx) | \ pidx 968 drivers/infiniband/hw/qib/qib_iba7322.c INT_MASK_P(SDma, pidx) | INT_MASK_P(SDmaIdle, pidx) | \ pidx 969 drivers/infiniband/hw/qib/qib_iba7322.c INT_MASK_P(SDmaProgress, pidx) | \ pidx 970 drivers/infiniband/hw/qib/qib_iba7322.c INT_MASK_PM(SDmaCleanupDone, pidx)) pidx 1702 drivers/infiniband/hw/qib/qib_iba7322.c int pidx; pidx 1709 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 1710 drivers/infiniband/hw/qib/qib_iba7322.c if (dd->pport[pidx].link_speed_supported) pidx 1711 drivers/infiniband/hw/qib/qib_iba7322.c *dd->pport[pidx].statusp &= ~QIB_STATUS_IB_CONF; pidx 2049 drivers/infiniband/hw/qib/qib_iba7322.c int pidx; pidx 2054 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 2055 drivers/infiniband/hw/qib/qib_iba7322.c if (dd->pport[pidx].link_speed_supported) pidx 2056 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_kreg_port(dd->pport + pidx, krp_errmask, pidx 2076 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 2077 drivers/infiniband/hw/qib/qib_iba7322.c if (!dd->pport[pidx].link_speed_supported) pidx 2079 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_kreg_port(dd->pport + pidx, krp_errclear, ~0Ull); pidx 2080 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_kreg_port(dd->pport + pidx, krp_errmask, ~0Ull); pidx 2166 drivers/infiniband/hw/qib/qib_iba7322.c int pidx = 0; pidx 2171 drivers/infiniband/hw/qib/qib_iba7322.c for (; pidx < dd->num_pports; ++pidx, ppd++) { pidx 2173 drivers/infiniband/hw/qib/qib_iba7322.c if (pidx == 0 && (hwerrs & pidx 2176 drivers/infiniband/hw/qib/qib_iba7322.c if (pidx == 1 && (hwerrs & pidx 2215 drivers/infiniband/hw/qib/qib_iba7322.c int pidx; pidx 2232 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 2233 drivers/infiniband/hw/qib/qib_iba7322.c if (dd->pport[pidx].link_speed_supported) pidx 2234 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_kreg_port(dd->pport + pidx, krp_errmask, pidx 2722 drivers/infiniband/hw/qib/qib_iba7322.c unsigned pidx = ppd->port - 1; pidx 2726 drivers/infiniband/hw/qib/qib_iba7322.c if (cspec->sdma_cpu[pidx] != cpu) { pidx 2727 drivers/infiniband/hw/qib/qib_iba7322.c cspec->sdma_cpu[pidx] = cpu; pidx 2955 drivers/infiniband/hw/qib/qib_iba7322.c int pidx; pidx 2977 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports && (dd->flags & QIB_HAS_QSFP); pidx 2978 drivers/infiniband/hw/qib/qib_iba7322.c ++pidx) { pidx 2983 drivers/infiniband/hw/qib/qib_iba7322.c if (!dd->pport[pidx].link_speed_supported) pidx 2986 drivers/infiniband/hw/qib/qib_iba7322.c ppd = dd->pport + pidx; pidx 5116 drivers/infiniband/hw/qib/qib_iba7322.c int pidx; pidx 5118 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 5119 drivers/infiniband/hw/qib/qib_iba7322.c ppd = dd->pport + pidx; pidx 5843 drivers/infiniband/hw/qib/qib_iba7322.c unsigned pidx; pidx 5853 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 5857 drivers/infiniband/hw/qib/qib_iba7322.c ppd = dd->pport + pidx; pidx 5868 drivers/infiniband/hw/qib/qib_iba7322.c if (pidx >= dd->num_pports) pidx 6052 drivers/infiniband/hw/qib/qib_iba7322.c u32 pidx, unit, port, deflt, h1; pidx 6061 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 6062 drivers/infiniband/hw/qib/qib_iba7322.c dd->pport[pidx].cpspec->no_eep = deflt; pidx 6103 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; dd->unit == unit && pidx < dd->num_pports; pidx 6104 drivers/infiniband/hw/qib/qib_iba7322.c ++pidx) { pidx 6105 drivers/infiniband/hw/qib/qib_iba7322.c struct qib_pportdata *ppd = &dd->pport[pidx]; pidx 6130 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 6131 drivers/infiniband/hw/qib/qib_iba7322.c if (dd->pport[pidx].link_speed_supported) pidx 6132 drivers/infiniband/hw/qib/qib_iba7322.c init_txdds_table(&dd->pport[pidx], 0); pidx 6286 drivers/infiniband/hw/qib/qib_iba7322.c int i, pidx; pidx 6292 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 6297 drivers/infiniband/hw/qib/qib_iba7322.c !dd->pport[pidx].link_speed_supported) pidx 6300 drivers/infiniband/hw/qib/qib_iba7322.c ppd = &dd->pport[pidx]; pidx 6318 drivers/infiniband/hw/qib/qib_iba7322.c ctxt = (i % n) * dd->num_pports + pidx; pidx 6370 drivers/infiniband/hw/qib/qib_iba7322.c unsigned features, pidx, sbufcnt; pidx 6465 drivers/infiniband/hw/qib/qib_iba7322.c for (pidx = 0; pidx < NUM_IB_PORTS; ++pidx) { pidx 6472 drivers/infiniband/hw/qib/qib_iba7322.c dd->skip_kctxt_mask |= 1 << pidx; pidx 6473 drivers/infiniband/hw/qib/qib_iba7322.c if (pidx == 0) { pidx 6509 drivers/infiniband/hw/qib/qib_iba7322.c ret = qib_init_pportdata(ppd, dd, pidx, dd->num_pports); pidx 309 drivers/infiniband/hw/qib/qib_init.c int ret, pidx; pidx 333 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 334 drivers/infiniband/hw/qib/qib_init.c dd->pport[pidx].statusp = status_page; pidx 518 drivers/infiniband/hw/qib/qib_init.c int i, pidx; pidx 530 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 531 drivers/infiniband/hw/qib/qib_init.c dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); pidx 578 drivers/infiniband/hw/qib/qib_init.c int pidx; pidx 581 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 582 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 587 drivers/infiniband/hw/qib/qib_init.c dd->unit, pidx); pidx 597 drivers/infiniband/hw/qib/qib_init.c pidx + 1); pidx 598 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 599 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 634 drivers/infiniband/hw/qib/qib_init.c int ret = 0, pidx, lastfail = 0; pidx 642 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 643 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 686 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 691 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 740 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 741 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 799 drivers/infiniband/hw/qib/qib_init.c int pidx; pidx 805 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 806 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 830 drivers/infiniband/hw/qib/qib_init.c unsigned pidx; pidx 836 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 837 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 851 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 852 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 870 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 871 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 1133 drivers/infiniband/hw/qib/qib_init.c u32 pidx; pidx 1137 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1140 drivers/infiniband/hw/qib/qib_init.c ppd = dd->pport + pidx; pidx 1294 drivers/infiniband/hw/qib/qib_init.c int pidx; pidx 1299 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) { pidx 1300 drivers/infiniband/hw/qib/qib_init.c if (dd->pport[pidx].statusp) pidx 1301 drivers/infiniband/hw/qib/qib_init.c *dd->pport[pidx].statusp &= ~QIB_STATUS_CHIP_PRESENT; pidx 1303 drivers/infiniband/hw/qib/qib_init.c spin_lock(&dd->pport[pidx].cc_shadow_lock); pidx 1305 drivers/infiniband/hw/qib/qib_init.c kfree(dd->pport[pidx].congestion_entries); pidx 1306 drivers/infiniband/hw/qib/qib_init.c dd->pport[pidx].congestion_entries = NULL; pidx 1307 drivers/infiniband/hw/qib/qib_init.c kfree(dd->pport[pidx].ccti_entries); pidx 1308 drivers/infiniband/hw/qib/qib_init.c dd->pport[pidx].ccti_entries = NULL; pidx 1309 drivers/infiniband/hw/qib/qib_init.c kfree(dd->pport[pidx].ccti_entries_shadow); pidx 1310 drivers/infiniband/hw/qib/qib_init.c dd->pport[pidx].ccti_entries_shadow = NULL; pidx 1311 drivers/infiniband/hw/qib/qib_init.c kfree(dd->pport[pidx].congestion_entries_shadow); pidx 1312 drivers/infiniband/hw/qib/qib_init.c dd->pport[pidx].congestion_entries_shadow = NULL; pidx 1314 drivers/infiniband/hw/qib/qib_init.c spin_unlock(&dd->pport[pidx].cc_shadow_lock); pidx 1396 drivers/infiniband/hw/qib/qib_init.c int ret, j, pidx, initfail; pidx 1468 drivers/infiniband/hw/qib/qib_init.c for (pidx = 0; pidx < dd->num_pports; ++pidx) pidx 1469 drivers/infiniband/hw/qib/qib_init.c dd->f_quiet_serdes(dd->pport + pidx); pidx 284 drivers/infiniband/hw/qib/qib_mad.c unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ pidx 287 drivers/infiniband/hw/qib/qib_mad.c if (smp->attr_mod || pidx >= dd->num_pports || pidx 288 drivers/infiniband/hw/qib/qib_mad.c dd->pport[pidx].guid == 0) pidx 291 drivers/infiniband/hw/qib/qib_mad.c nip->port_guid = dd->pport[pidx].guid; pidx 319 drivers/infiniband/hw/qib/qib_mad.c unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ pidx 325 drivers/infiniband/hw/qib/qib_mad.c if (startgx == 0 && pidx < dd->num_pports) { pidx 326 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = dd->pport + pidx; pidx 626 drivers/infiniband/hw/qib/qib_mad.c unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ pidx 630 drivers/infiniband/hw/qib/qib_mad.c if (startgx == 0 && pidx < dd->num_pports) { pidx 631 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = dd->pport + pidx; pidx 294 drivers/infiniband/hw/qib/qib_qp.c int mtu, pmtu, pidx = qp->port_num - 1; pidx 302 drivers/infiniband/hw/qib/qib_qp.c if (mtu > dd->pport[pidx].ibmtu) pidx 303 drivers/infiniband/hw/qib/qib_qp.c pmtu = mtu_to_enum(dd->pport[pidx].ibmtu); pidx 117 drivers/infiniband/hw/qib/qib_tx.c unsigned pidx; pidx 119 drivers/infiniband/hw/qib/qib_tx.c for (pidx = 0; pidx < dd->num_pports; pidx++) { pidx 120 drivers/infiniband/hw/qib/qib_tx.c ppd = dd->pport + pidx; pidx 2772 drivers/infiniband/sw/rdmavt/qp.c int pidx; pidx 2774 drivers/infiniband/sw/rdmavt/qp.c pidx = n % rdi->ibdev.phys_port_cnt; pidx 2775 drivers/infiniband/sw/rdmavt/qp.c rvp = rdi->ports[pidx]; pidx 184 drivers/net/ethernet/chelsio/cxgb/sge.c u16 pidx; /* producer index (SW) */ pidx 197 drivers/net/ethernet/chelsio/cxgb/sge.c u16 pidx; /* producer index (SW) */ pidx 827 drivers/net/ethernet/chelsio/cxgb/sge.c struct freelQ_ce *ce = &q->centries[q->pidx]; pidx 828 drivers/net/ethernet/chelsio/cxgb/sge.c struct freelQ_e *e = &q->entries[q->pidx]; pidx 855 drivers/net/ethernet/chelsio/cxgb/sge.c if (++q->pidx == q->size) { pidx 856 drivers/net/ethernet/chelsio/cxgb/sge.c q->pidx = 0; pidx 1005 drivers/net/ethernet/chelsio/cxgb/sge.c struct freelQ_e *to = &fl->entries[fl->pidx]; pidx 1007 drivers/net/ethernet/chelsio/cxgb/sge.c fl->centries[fl->pidx] = fl->centries[idx]; pidx 1015 drivers/net/ethernet/chelsio/cxgb/sge.c if (++fl->pidx == fl->size) { pidx 1016 drivers/net/ethernet/chelsio/cxgb/sge.c fl->pidx = 0; pidx 1158 drivers/net/ethernet/chelsio/cxgb/sge.c static inline unsigned int write_large_page_tx_descs(unsigned int pidx, pidx 1181 drivers/net/ethernet/chelsio/cxgb/sge.c if (++pidx == q->size) { pidx 1182 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = 0; pidx 1192 drivers/net/ethernet/chelsio/cxgb/sge.c return pidx; pidx 1200 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int pidx, unsigned int gen, pidx 1209 drivers/net/ethernet/chelsio/cxgb/sge.c e = e1 = &q->entries[pidx]; pidx 1210 drivers/net/ethernet/chelsio/cxgb/sge.c ce = &q->centries[pidx]; pidx 1235 drivers/net/ethernet/chelsio/cxgb/sge.c if (++pidx == q->size) { pidx 1236 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = 0; pidx 1241 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = write_large_page_tx_descs(pidx, &e1, &ce, &gen, pidx 1258 drivers/net/ethernet/chelsio/cxgb/sge.c if (++pidx == q->size) { pidx 1259 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = 0; pidx 1270 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = write_large_page_tx_descs(pidx, &e1, &ce, &gen, pidx 1318 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int genbit, pidx, count; pidx 1323 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = q->pidx; pidx 1324 drivers/net/ethernet/chelsio/cxgb/sge.c q->pidx += count; pidx 1325 drivers/net/ethernet/chelsio/cxgb/sge.c if (q->pidx >= q->size) { pidx 1326 drivers/net/ethernet/chelsio/cxgb/sge.c q->pidx -= q->size; pidx 1329 drivers/net/ethernet/chelsio/cxgb/sge.c write_tx_descs(adapter, skb, pidx, genbit, q); pidx 1664 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int credits, pidx, genbit, count, use_sched_skb = 0; pidx 1670 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = q->pidx; pidx 1708 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = q->pidx; pidx 1715 drivers/net/ethernet/chelsio/cxgb/sge.c pidx = q->pidx; pidx 1716 drivers/net/ethernet/chelsio/cxgb/sge.c q->pidx += count; pidx 1717 drivers/net/ethernet/chelsio/cxgb/sge.c if (q->pidx >= q->size) { pidx 1718 drivers/net/ethernet/chelsio/cxgb/sge.c q->pidx -= q->size; pidx 1723 drivers/net/ethernet/chelsio/cxgb/sge.c write_tx_descs(adapter, skb, pidx, genbit, q); pidx 108 drivers/net/ethernet/chelsio/cxgb3/adapter.h unsigned int pidx; /* producer index */ pidx 172 drivers/net/ethernet/chelsio/cxgb3/adapter.h unsigned int pidx; /* producer index */ pidx 507 drivers/net/ethernet/chelsio/cxgb3/sge.c struct rx_sw_desc *sd = &q->sdesc[q->pidx]; pidx 508 drivers/net/ethernet/chelsio/cxgb3/sge.c struct rx_desc *d = &q->desc[q->pidx]; pidx 547 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++q->pidx == q->size) { pidx 548 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx = 0; pidx 582 drivers/net/ethernet/chelsio/cxgb3/sge.c struct rx_desc *to = &q->desc[q->pidx]; pidx 584 drivers/net/ethernet/chelsio/cxgb3/sge.c q->sdesc[q->pidx] = q->sdesc[idx]; pidx 591 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++q->pidx == q->size) { pidx 592 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx = 0; pidx 1092 drivers/net/ethernet/chelsio/cxgb3/sge.c struct tx_desc *d, unsigned int pidx, pidx 1100 drivers/net/ethernet/chelsio/cxgb3/sge.c struct tx_sw_desc *sd = &q->sdesc[pidx]; pidx 1140 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++pidx == q->size) { pidx 1141 drivers/net/ethernet/chelsio/cxgb3/sge.c pidx = 0; pidx 1181 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int pidx, unsigned int gen, pidx 1187 drivers/net/ethernet/chelsio/cxgb3/sge.c struct tx_desc *d = &q->desc[pidx]; pidx 1218 drivers/net/ethernet/chelsio/cxgb3/sge.c q->sdesc[pidx].skb = NULL; pidx 1243 drivers/net/ethernet/chelsio/cxgb3/sge.c write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, pidx 1266 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int ndesc, pidx, credits, gen, compl; pidx 1324 drivers/net/ethernet/chelsio/cxgb3/sge.c pidx = q->pidx; pidx 1325 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx += ndesc; pidx 1326 drivers/net/ethernet/chelsio/cxgb3/sge.c if (q->pidx >= q->size) { pidx 1327 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx -= q->size; pidx 1366 drivers/net/ethernet/chelsio/cxgb3/sge.c write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl, addr); pidx 1503 drivers/net/ethernet/chelsio/cxgb3/sge.c write_imm(&q->desc[q->pidx], skb, skb->len, q->gen); pidx 1506 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++q->pidx >= q->size) { pidx 1507 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx = 0; pidx 1535 drivers/net/ethernet/chelsio/cxgb3/sge.c write_imm(&q->desc[q->pidx], skb, skb->len, q->gen); pidx 1537 drivers/net/ethernet/chelsio/cxgb3/sge.c if (++q->pidx >= q->size) { pidx 1538 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx = 0; pidx 1630 drivers/net/ethernet/chelsio/cxgb3/sge.c struct sge_txq *q, unsigned int pidx, pidx 1637 drivers/net/ethernet/chelsio/cxgb3/sge.c struct tx_desc *d = &q->desc[pidx]; pidx 1640 drivers/net/ethernet/chelsio/cxgb3/sge.c q->sdesc[pidx].skb = NULL; pidx 1661 drivers/net/ethernet/chelsio/cxgb3/sge.c write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, pidx 1698 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; pidx 1721 drivers/net/ethernet/chelsio/cxgb3/sge.c pidx = q->pidx; pidx 1722 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx += ndesc; pidx 1723 drivers/net/ethernet/chelsio/cxgb3/sge.c if (q->pidx >= q->size) { pidx 1724 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx -= q->size; pidx 1729 drivers/net/ethernet/chelsio/cxgb3/sge.c write_ofld_wr(adap, skb, q, pidx, gen, ndesc, (dma_addr_t *)skb->head); pidx 1753 drivers/net/ethernet/chelsio/cxgb3/sge.c unsigned int gen, pidx; pidx 1773 drivers/net/ethernet/chelsio/cxgb3/sge.c pidx = q->pidx; pidx 1774 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx += ndesc; pidx 1776 drivers/net/ethernet/chelsio/cxgb3/sge.c if (q->pidx >= q->size) { pidx 1777 drivers/net/ethernet/chelsio/cxgb3/sge.c q->pidx -= q->size; pidx 1783 drivers/net/ethernet/chelsio/cxgb3/sge.c write_ofld_wr(adap, skb, q, pidx, gen, ndesc, pidx 637 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int pidx; /* producer index */ pidx 741 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int pidx; /* producer index */ pidx 1704 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int t4_get_mps_bg_map(struct adapter *adapter, int pidx); pidx 1705 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h unsigned int t4_get_tp_ch_map(struct adapter *adapter, int pidx); pidx 2611 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c int pidx; pidx 2613 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c for_each_port(adap, pidx) { pidx 2614 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct port_info *pi = adap2pinfo(adap, pidx); pidx 2717 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c T("TxQ PIDX:", q.pidx); pidx 2738 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL PIDX:", fl.pidx); pidx 2775 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c T("TxQ PIDX:", q.pidx); pidx 2802 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL PIDX:", fl.pidx); pidx 2852 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL PIDX:", fl.pidx); pidx 2878 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL PIDX:", fl.pidx); pidx 2904 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL PIDX:", fl.pidx); pidx 2926 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c T("TxQ PIDX:", q.pidx); pidx 2938 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c R("FL PIDX:", fl.pidx); pidx 2955 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c T("TxQ PIDX:", q.pidx); pidx 1814 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c static int read_eq_indices(struct adapter *adap, u16 qid, u16 *pidx, u16 *cidx) pidx 1827 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c *pidx = (be64_to_cpu(indices) >> 9) & 0xffff; pidx 1832 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c int cxgb4_sync_txq_pidx(struct net_device *dev, u16 qid, u16 pidx, pidx 1843 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pidx != hw_pidx) { pidx 1847 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (pidx >= hw_pidx) pidx 1848 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c delta = pidx - hw_pidx; pidx 1850 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c delta = size - hw_pidx + pidx; pidx 414 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h int cxgb4_sync_txq_pidx(struct net_device *dev, u16 qid, u16 pidx, u16 size); pidx 598 drivers/net/ethernet/chelsio/cxgb4/sge.c __be64 *d = &q->desc[q->pidx]; pidx 599 drivers/net/ethernet/chelsio/cxgb4/sge.c struct rx_sw_desc *sd = &q->sdesc[q->pidx]; pidx 638 drivers/net/ethernet/chelsio/cxgb4/sge.c if (++q->pidx == q->size) { pidx 639 drivers/net/ethernet/chelsio/cxgb4/sge.c q->pidx = 0; pidx 667 drivers/net/ethernet/chelsio/cxgb4/sge.c if (++q->pidx == q->size) { pidx 668 drivers/net/ethernet/chelsio/cxgb4/sge.c q->pidx = 0; pidx 983 drivers/net/ethernet/chelsio/cxgb4/sge.c q->db_pidx = q->pidx; pidx 1001 drivers/net/ethernet/chelsio/cxgb4/sge.c int index = (q->pidx pidx 1002 drivers/net/ethernet/chelsio/cxgb4/sge.c ? (q->pidx - 1) pidx 1176 drivers/net/ethernet/chelsio/cxgb4/sge.c q->pidx += n; pidx 1177 drivers/net/ethernet/chelsio/cxgb4/sge.c if (q->pidx >= q->size) pidx 1178 drivers/net/ethernet/chelsio/cxgb4/sge.c q->pidx -= q->size; pidx 1338 drivers/net/ethernet/chelsio/cxgb4/sge.c hw_in_use = q->pidx - hw_cidx; pidx 1481 drivers/net/ethernet/chelsio/cxgb4/sge.c wr = (void *)&q->q.desc[q->q.pidx]; pidx 1609 drivers/net/ethernet/chelsio/cxgb4/sge.c last_desc = q->q.pidx + ndesc - 1; pidx 1801 drivers/net/ethernet/chelsio/cxgb4/sge.c wr = (void *)&txq->q.desc[txq->q.pidx]; pidx 1959 drivers/net/ethernet/chelsio/cxgb4/sge.c last_desc = tq->pidx + ndesc - 1; pidx 2072 drivers/net/ethernet/chelsio/cxgb4/sge.c wr = (struct fw_wr_hdr *)&q->q.desc[q->q.pidx]; pidx 2110 drivers/net/ethernet/chelsio/cxgb4/sge.c wr = (struct fw_wr_hdr *)&q->q.desc[q->q.pidx]; pidx 2285 drivers/net/ethernet/chelsio/cxgb4/sge.c pos = (u64 *)&q->q.desc[q->q.pidx]; pidx 2327 drivers/net/ethernet/chelsio/cxgb4/sge.c last_desc = q->q.pidx + ndesc - 1; pidx 2543 drivers/net/ethernet/chelsio/cxgb4/sge.c pos = (u64 *)&q->q.desc[q->q.pidx]; pidx 3635 drivers/net/ethernet/chelsio/cxgb4/sge.c fl->pidx = fl->cidx = 0; pidx 3712 drivers/net/ethernet/chelsio/cxgb4/sge.c q->cidx = q->pidx = 0; pidx 6116 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int pidx) pidx 6128 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c case 2: return 3 << (2 * pidx); pidx 6129 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c case 4: return 1 << pidx; pidx 6135 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c case 2: return 1 << (2 * pidx); pidx 6155 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int t4_get_mps_bg_map(struct adapter *adapter, int pidx) pidx 6161 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (pidx >= nports) { pidx 6163 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pidx, nports); pidx 6170 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (mps_bg_map[pidx]) pidx 6171 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return mps_bg_map[pidx]; pidx 6200 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return mps_bg_map[pidx]; pidx 6208 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c mps_bg_map[pidx] = compute_mps_bg_map(adapter, pidx); pidx 6209 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return mps_bg_map[pidx]; pidx 6217 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c static unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx) pidx 6224 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (pidx >= nports) { pidx 6226 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pidx, nports); pidx 6238 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c return (val >> (8 * pidx)) & 0xff; pidx 6252 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int t4_get_tp_ch_map(struct adapter *adap, int pidx) pidx 6257 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (pidx >= nports) { pidx 6259 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c pidx, nports); pidx 6272 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c case 2: return 3 << (2 * pidx); pidx 6273 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c case 4: return 1 << pidx; pidx 6280 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c case 2: return 1 << pidx; pidx 152 drivers/net/ethernet/chelsio/cxgb4/t4_hw.h __be16 pidx; pidx 1366 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h __be16 pidx; pidx 99 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h u8 pidx; /* index into adapter port[] */ pidx 129 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h unsigned int pidx; /* producer index */ pidx 236 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h unsigned int pidx; /* producer index */ pidx 493 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h static inline const char *port_name(struct adapter *adapter, int pidx) pidx 495 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h return adapter->port[pidx]->name; pidx 507 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx, pidx 510 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h memcpy(adapter->port[pidx]->dev_addr, hw_addr, ETH_ALEN); pidx 531 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h static inline struct port_info *adap2pinfo(struct adapter *adapter, int pidx) pidx 533 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h return netdev_priv(adapter->port[pidx]); pidx 138 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) pidx 140 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct net_device *dev = adapter->port[pidx]; pidx 214 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c void t4vf_os_portmod_changed(struct adapter *adapter, int pidx) pidx 219 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const struct net_device *dev = adapter->port[pidx]; pidx 354 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int pidx; pidx 366 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 367 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct net_device *dev = adapter->port[pidx]; pidx 593 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int err, pidx, msix; pidx 631 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 632 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct net_device *dev = adapter->port[pidx]; pidx 662 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 663 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct net_device *dev = adapter->port[pidx]; pidx 703 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int pidx; pidx 705 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 706 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = adap2pinfo(adapter, pidx); pidx 915 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c err = t4vf_get_port_stats(adapter, pi->pidx, &stats); pidx 1829 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int err = t4vf_get_port_stats(adapter, pi->pidx, pidx 2091 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c T("TxQ PIdx:", q.pidx); pidx 2104 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c R("FL PIdx:", fl.pidx); pidx 2385 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int pidx = (uintptr_t)v - 2; pidx 2386 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct net_device *dev = adapter->port[pidx]; pidx 2734 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int q10g, n10g, qidx, pidx, qs; pidx 2749 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) pidx 2750 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c n10g += is_x_10g_port(&adap2pinfo(adapter, pidx)->link_cfg); pidx 2771 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 2772 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = adap2pinfo(adapter, pidx); pidx 2929 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int err, pidx; pidx 3085 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 3110 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c adapter->port[pidx] = netdev; pidx 3114 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pi->pidx = pidx; pidx 3160 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c err = t4vf_port_init(adapter, pidx); pidx 3163 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c pidx); pidx 3228 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 3229 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct port_info *pi = netdev_priv(adapter->port[pidx]); pidx 3230 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c netdev = adapter->port[pidx]; pidx 3245 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c set_bit(pidx, &adapter->registered_device_map); pidx 3266 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 3268 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c adapter->port[pidx]->name, pidx 3292 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 3293 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c netdev = adapter->port[pidx]; pidx 3299 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (test_bit(pidx, &adapter->registered_device_map)) pidx 3338 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int pidx; pidx 3344 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) pidx 3345 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (test_bit(pidx, &adapter->registered_device_map)) pidx 3346 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c unregister_netdev(adapter->port[pidx]); pidx 3368 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) { pidx 3369 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct net_device *netdev = adapter->port[pidx]; pidx 3407 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int pidx; pidx 3417 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c for_each_port(adapter, pidx) pidx 3418 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (test_bit(pidx, &adapter->registered_device_map)) pidx 3419 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c unregister_netdev(adapter->port[pidx]); pidx 611 drivers/net/ethernet/chelsio/cxgb4vf/sge.c __be64 *d = &fl->desc[fl->pidx]; pidx 612 drivers/net/ethernet/chelsio/cxgb4vf/sge.c struct rx_sw_desc *sdesc = &fl->sdesc[fl->pidx]; pidx 667 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (++fl->pidx == fl->size) { pidx 668 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->pidx = 0; pidx 696 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (++fl->pidx == fl->size) { pidx 697 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->pidx = 0; pidx 996 drivers/net/ethernet/chelsio/cxgb4vf/sge.c unsigned int index = (tq->pidx pidx 997 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ? (tq->pidx - 1) pidx 1145 drivers/net/ethernet/chelsio/cxgb4vf/sge.c tq->pidx += n; pidx 1146 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (tq->pidx >= tq->size) pidx 1147 drivers/net/ethernet/chelsio/cxgb4vf/sge.c tq->pidx -= tq->size; pidx 1266 drivers/net/ethernet/chelsio/cxgb4vf/sge.c wr = (void *)&txq->q.desc[txq->q.pidx]; pidx 1367 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags); pidx 1438 drivers/net/ethernet/chelsio/cxgb4vf/sge.c last_desc = tq->pidx + ndesc - 1; pidx 2365 drivers/net/ethernet/chelsio/cxgb4vf/sge.c fl->pidx = 0; pidx 2491 drivers/net/ethernet/chelsio/cxgb4vf/sge.c txq->q.pidx = 0; pidx 497 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int t4vf_port_init(struct adapter *adapter, int pidx) pidx 499 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct port_info *pi = adap2pinfo(adapter, pidx); pidx 541 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4_os_set_hw_addr(adapter, pidx, vi_rpl.mac); pidx 1431 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_os_link_changed(adapter, pi->pidx, pidx 1764 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int t4vf_get_port_stats(struct adapter *adapter, int pidx, pidx 1767 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct port_info *pi = adap2pinfo(adapter, pidx); pidx 2012 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_os_portmod_changed(adapter, pi->pidx); pidx 2055 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_os_link_changed(adapter, pi->pidx, link_ok); pidx 2111 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int port_id, pidx; pidx 2123 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c for_each_port(adapter, pidx) { pidx 2124 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct port_info *pi = adap2pinfo(adapter, pidx); pidx 370 drivers/net/ethernet/emulex/benet/be_cmds.h u8 pidx[13]; /* dword 1*/ pidx 462 drivers/net/ethernet/emulex/benet/be_cmds.h u8 pidx[11]; /* dword 1*/ pidx 903 drivers/net/ethernet/mellanox/mlx4/cmd.c int vidx, pidx; pidx 938 drivers/net/ethernet/mellanox/mlx4/cmd.c pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; pidx 939 drivers/net/ethernet/mellanox/mlx4/cmd.c outtab[vidx % 32] = cpu_to_be16(table[pidx]); pidx 230 drivers/ntb/core.c int ntb_default_peer_port_number(struct ntb_dev *ntb, int pidx) pidx 232 drivers/ntb/core.c if (pidx != NTB_DEF_PEER_IDX) pidx 84 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_mw_count(struct ntb_dev *ntb, int pidx) pidx 86 drivers/ntb/hw/amd/ntb_hw_amd.c if (pidx != NTB_DEF_PEER_IDX) pidx 92 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, pidx 100 drivers/ntb/hw/amd/ntb_hw_amd.c if (pidx != NTB_DEF_PEER_IDX) pidx 119 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, pidx 129 drivers/ntb/hw/amd/ntb_hw_amd.c if (pidx != NTB_DEF_PEER_IDX) pidx 435 drivers/ntb/hw/amd/ntb_hw_amd.c static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) pidx 448 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, pidx 482 drivers/ntb/hw/idt/ntb_hw_idt.c unsigned char pidx, port, part; pidx 502 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { pidx 503 drivers/ntb/hw/idt/ntb_hw_idt.c port = ndev->swcfg->ports[pidx]; pidx 577 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_peer_port_number(struct ntb_dev *ntb, int pidx) pidx 581 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) pidx 585 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->peers[pidx].port; pidx 638 drivers/ntb/hw/idt/ntb_hw_idt.c unsigned char pidx; pidx 646 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { pidx 647 drivers/ntb/hw/idt/ntb_hw_idt.c port_mask &= ~BIT(ndev->peers[pidx].port); pidx 648 drivers/ntb/hw/idt/ntb_hw_idt.c part_mask &= ~BIT(ndev->peers[pidx].part); pidx 835 drivers/ntb/hw/idt/ntb_hw_idt.c static bool idt_ntb_peer_link_is_up(struct idt_ntb_dev *ndev, int pidx) pidx 842 drivers/ntb/hw/idt/ntb_hw_idt.c port = ndev->peers[pidx].port; pidx 861 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->peers[pidx].part); pidx 883 drivers/ntb/hw/idt/ntb_hw_idt.c unsigned char pidx; pidx 902 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { pidx 903 drivers/ntb/hw/idt/ntb_hw_idt.c if (idt_ntb_peer_link_is_up(ndev, pidx)) pidx 904 drivers/ntb/hw/idt/ntb_hw_idt.c status |= ((u64)1 << pidx); pidx 1130 drivers/ntb/hw/idt/ntb_hw_idt.c unsigned char pidx; pidx 1141 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { pidx 1142 drivers/ntb/hw/idt/ntb_hw_idt.c peer = &ndev->peers[pidx]; pidx 1170 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_mw_count(struct ntb_dev *ntb, int pidx) pidx 1174 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) pidx 1177 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->peers[pidx].mw_cnt; pidx 1194 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, pidx 1202 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) pidx 1205 drivers/ntb/hw/idt/ntb_hw_idt.c peer = &ndev->peers[pidx]; pidx 1287 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, pidx 1294 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) pidx 1316 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(BARSETUP_TPART, data, ndev->peers[pidx].part); pidx 1331 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(LUTUDATA_PART, 0, ndev->peers[pidx].part) | pidx 1356 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_peer_mw_clear_trans(struct ntb_dev *ntb, int pidx, pidx 1362 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) pidx 1751 drivers/ntb/hw/idt/ntb_hw_idt.c static u32 idt_ntb_msg_read(struct ntb_dev *ntb, int *pidx, int midx) pidx 1759 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx != NULL) { pidx 1763 drivers/ntb/hw/idt/ntb_hw_idt.c *pidx = ndev->part_idx_map[srcpart]; pidx 1766 drivers/ntb/hw/idt/ntb_hw_idt.c if (*pidx == -EINVAL) pidx 1767 drivers/ntb/hw/idt/ntb_hw_idt.c *pidx = 0; pidx 1787 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_peer_msg_write(struct ntb_dev *ntb, int pidx, int midx, pidx 1797 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) pidx 1802 drivers/ntb/hw/idt/ntb_hw_idt.c SET_FIELD(SWPxMSGCTL_PART, 0, ndev->peers[pidx].part); pidx 2338 drivers/ntb/hw/idt/ntb_hw_idt.c unsigned char idx, pidx, cnt; pidx 2423 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { pidx 2426 drivers/ntb/hw/idt/ntb_hw_idt.c pidx, ndev->peers[pidx].port); pidx 2429 drivers/ntb/hw/idt/ntb_hw_idt.c for (idx = 0; idx < ndev->peers[pidx].mw_cnt; idx += cnt) { pidx 2430 drivers/ntb/hw/idt/ntb_hw_idt.c data = ndev->peers[pidx].mws[idx].type; pidx 2442 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].bar); pidx 2446 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].addr_align); pidx 2450 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].size_align, pidx 2451 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].size_max); pidx 793 drivers/ntb/hw/intel/ntb_hw_gen1.c int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx) pidx 795 drivers/ntb/hw/intel/ntb_hw_gen1.c if (pidx != NTB_DEF_PEER_IDX) pidx 801 drivers/ntb/hw/intel/ntb_hw_gen1.c int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, pidx 810 drivers/ntb/hw/intel/ntb_hw_gen1.c if (pidx != NTB_DEF_PEER_IDX) pidx 839 drivers/ntb/hw/intel/ntb_hw_gen1.c static int intel_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, pidx 849 drivers/ntb/hw/intel/ntb_hw_gen1.c if (pidx != NTB_DEF_PEER_IDX) pidx 1177 drivers/ntb/hw/intel/ntb_hw_gen1.c int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, pidx 1186 drivers/ntb/hw/intel/ntb_hw_gen1.c u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) pidx 1195 drivers/ntb/hw/intel/ntb_hw_gen1.c int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, pidx 157 drivers/ntb/hw/intel/ntb_hw_gen1.h int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx); pidx 158 drivers/ntb/hw/intel/ntb_hw_gen1.h int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, pidx 176 drivers/ntb/hw/intel/ntb_hw_gen1.h u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx); pidx 177 drivers/ntb/hw/intel/ntb_hw_gen1.h int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, pidx 179 drivers/ntb/hw/intel/ntb_hw_gen1.h int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, pidx 444 drivers/ntb/hw/intel/ntb_hw_gen3.c static int intel_ntb3_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, pidx 454 drivers/ntb/hw/intel/ntb_hw_gen3.c if (pidx != NTB_DEF_PEER_IDX) pidx 166 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_mw_count(struct ntb_dev *ntb, int pidx) pidx 172 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (pidx != NTB_DEF_PEER_IDX) pidx 191 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, pidx 200 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (pidx != NTB_DEF_PEER_IDX) pidx 270 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, pidx 279 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (pidx != NTB_DEF_PEER_IDX) pidx 283 drivers/ntb/hw/mscc/ntb_hw_switchtec.c widx, pidx, &addr, &size); pidx 285 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (widx >= switchtec_ntb_mw_count(ntb, pidx)) pidx 757 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, pidx 762 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (pidx != NTB_DEF_PEER_IDX) pidx 774 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, pidx 779 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (pidx != NTB_DEF_PEER_IDX) pidx 793 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, pidx 799 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (pidx != NTB_DEF_PEER_IDX) pidx 34 drivers/ntb/test/ntb_msi_test.c int pidx; pidx 192 drivers/ntb/test/ntb_msi_test.c idx, peer->pidx); pidx 194 drivers/ntb/test/ntb_msi_test.c return ntb_msi_peer_trigger(peer->nm->ntb, peer->pidx, pidx 205 drivers/ntb/test/ntb_msi_test.c *port = ntb_peer_port_number(peer->nm->ntb, peer->pidx); pidx 283 drivers/ntb/test/ntb_msi_test.c nm->peers[i].pidx = i; pidx 145 drivers/ntb/test/ntb_perf.c int pidx; pidx 202 drivers/ntb/test/ntb_perf.c int (*cmd_recv)(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, pidx 251 drivers/ntb/test/ntb_perf.c return !!(link & BIT_ULL_MASK(peer->pidx)); pidx 274 drivers/ntb/test/ntb_perf.c sts = ntb_peer_spad_read(perf->ntb, peer->pidx, pidx 281 drivers/ntb/test/ntb_perf.c ntb_peer_spad_write(perf->ntb, peer->pidx, pidx 284 drivers/ntb/test/ntb_perf.c ntb_peer_spad_write(perf->ntb, peer->pidx, pidx 287 drivers/ntb/test/ntb_perf.c ntb_peer_spad_write(perf->ntb, peer->pidx, pidx 301 drivers/ntb/test/ntb_perf.c static int perf_spad_cmd_recv(struct perf_ctx *perf, int *pidx, pidx 315 drivers/ntb/test/ntb_perf.c for (*pidx = 0; *pidx < perf->pcnt; (*pidx)++) { pidx 316 drivers/ntb/test/ntb_perf.c peer = &perf->peers[*pidx]; pidx 370 drivers/ntb/test/ntb_perf.c ntb_peer_msg_write(perf->ntb, peer->pidx, PERF_MSG_LDATA, pidx 378 drivers/ntb/test/ntb_perf.c ntb_peer_msg_write(perf->ntb, peer->pidx, PERF_MSG_HDATA, pidx 382 drivers/ntb/test/ntb_perf.c ntb_peer_msg_write(perf->ntb, peer->pidx, PERF_MSG_CMD, cmd); pidx 390 drivers/ntb/test/ntb_perf.c static int perf_msg_cmd_recv(struct perf_ctx *perf, int *pidx, pidx 401 drivers/ntb/test/ntb_perf.c val = ntb_msg_read(perf->ntb, pidx, PERF_MSG_CMD); pidx 404 drivers/ntb/test/ntb_perf.c val = ntb_msg_read(perf->ntb, pidx, PERF_MSG_LDATA); pidx 407 drivers/ntb/test/ntb_perf.c val = ntb_msg_read(perf->ntb, pidx, PERF_MSG_HDATA); pidx 456 drivers/ntb/test/ntb_perf.c int ret, pidx, cmd; pidx 459 drivers/ntb/test/ntb_perf.c while (!(ret = perf->cmd_recv(perf, &pidx, &cmd, &data))) { pidx 460 drivers/ntb/test/ntb_perf.c peer = &perf->peers[pidx]; pidx 484 drivers/ntb/test/ntb_perf.c int pidx; pidx 486 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) { pidx 487 drivers/ntb/test/ntb_perf.c peer = &perf->peers[pidx]; pidx 531 drivers/ntb/test/ntb_perf.c (void)ntb_peer_mw_clear_trans(peer->perf->ntb, peer->pidx, peer->gidx); pidx 540 drivers/ntb/test/ntb_perf.c ret = ntb_peer_mw_set_trans(perf->ntb, peer->pidx, peer->gidx, pidx 558 drivers/ntb/test/ntb_perf.c (void)ntb_mw_clear_trans(peer->perf->ntb, peer->pidx, peer->gidx); pidx 571 drivers/ntb/test/ntb_perf.c ret = ntb_mw_get_align(perf->ntb, peer->pidx, perf->gidx, pidx 600 drivers/ntb/test/ntb_perf.c ret = ntb_mw_set_trans(perf->ntb, peer->pidx, peer->gidx, pidx 735 drivers/ntb/test/ntb_perf.c int pidx; pidx 748 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) pidx 749 drivers/ntb/test/ntb_perf.c perf_cmd_exec(&perf->peers[pidx], PERF_CMD_CLEAR); pidx 751 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) pidx 752 drivers/ntb/test/ntb_perf.c flush_work(&perf->peers[pidx].service); pidx 754 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) { pidx 755 drivers/ntb/test/ntb_perf.c struct perf_peer *peer = &perf->peers[pidx]; pidx 1095 drivers/ntb/test/ntb_perf.c " Peer %d test statistics:\n", perf->test_peer->pidx); pidx 1157 drivers/ntb/test/ntb_perf.c int ret, pidx; pidx 1176 drivers/ntb/test/ntb_perf.c ntb_peer_port_number(perf->ntb, perf->test_peer->pidx), pidx 1177 drivers/ntb/test/ntb_perf.c perf->test_peer->pidx); pidx 1182 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) { pidx 1183 drivers/ntb/test/ntb_perf.c peer = &perf->peers[pidx]; pidx 1187 drivers/ntb/test/ntb_perf.c ntb_peer_port_number(perf->ntb, peer->pidx), peer->pidx, pidx 1257 drivers/ntb/test/ntb_perf.c int pidx, ret; pidx 1259 drivers/ntb/test/ntb_perf.c ret = kstrtoint_from_user(ubuf, size, 0, &pidx); pidx 1263 drivers/ntb/test/ntb_perf.c if (pidx < 0 || pidx >= perf->pcnt) pidx 1266 drivers/ntb/test/ntb_perf.c peer = &perf->peers[pidx]; pidx 1394 drivers/ntb/test/ntb_perf.c "Peer %d outbuf reduced to %pa\n", peer->pidx, pidx 1404 drivers/ntb/test/ntb_perf.c int pidx, lport, ret; pidx 1408 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) { pidx 1409 drivers/ntb/test/ntb_perf.c peer = &perf->peers[pidx]; pidx 1412 drivers/ntb/test/ntb_perf.c peer->pidx = pidx; pidx 1413 drivers/ntb/test/ntb_perf.c if (lport < ntb_peer_port_number(perf->ntb, pidx)) { pidx 1415 drivers/ntb/test/ntb_perf.c perf->gidx = pidx; pidx 1416 drivers/ntb/test/ntb_perf.c peer->gidx = pidx + 1; pidx 1418 drivers/ntb/test/ntb_perf.c peer->gidx = pidx; pidx 1423 drivers/ntb/test/ntb_perf.c perf->gidx = pidx; pidx 1425 drivers/ntb/test/ntb_perf.c for (pidx = 0; pidx < perf->pcnt; pidx++) { pidx 1426 drivers/ntb/test/ntb_perf.c ret = perf_setup_peer_mw(&perf->peers[pidx]); pidx 119 drivers/ntb/test/ntb_pingpong.c int pidx; pidx 125 drivers/ntb/test/ntb_pingpong.c pidx = __ffs64(link & pp->nmask); pidx 126 drivers/ntb/test/ntb_pingpong.c out_db = BIT_ULL(pidx + 1); pidx 128 drivers/ntb/test/ntb_pingpong.c pidx = __ffs64(link & pp->pmask); pidx 129 drivers/ntb/test/ntb_pingpong.c out_db = BIT_ULL(pidx); pidx 135 drivers/ntb/test/ntb_pingpong.c pp->out_pidx = pidx; pidx 192 drivers/ntb/test/ntb_pingpong.c int pidx = 0; pidx 196 drivers/ntb/test/ntb_pingpong.c msg_data = ntb_msg_read(pp->ntb, &pidx, 0); pidx 205 drivers/ntb/test/ntb_pingpong.c spad_data, msg_data, ntb_peer_port_number(pp->ntb, pidx)); pidx 296 drivers/ntb/test/ntb_pingpong.c int pidx, lport, pcnt; pidx 301 drivers/ntb/test/ntb_pingpong.c for (pidx = 0; pidx < pcnt; pidx++) { pidx 302 drivers/ntb/test/ntb_pingpong.c if (lport < ntb_peer_port_number(pp->ntb, pidx)) pidx 306 drivers/ntb/test/ntb_pingpong.c pp->in_db = BIT_ULL(pidx); pidx 307 drivers/ntb/test/ntb_pingpong.c pp->pmask = GENMASK_ULL(pidx, 0) >> 1; pidx 308 drivers/ntb/test/ntb_pingpong.c pp->nmask = GENMASK_ULL(pcnt - 1, pidx); pidx 207 drivers/ntb/test/ntb_tool.c int pidx; pidx 226 drivers/ntb/test/ntb_tool.c int pidx; pidx 232 drivers/ntb/test/ntb_tool.c int pidx; pidx 238 drivers/ntb/test/ntb_tool.c int pidx; pidx 243 drivers/ntb/test/ntb_tool.c int pidx; pidx 435 drivers/ntb/test/ntb_tool.c ntb_peer_port_number(tc->ntb, peer->pidx)); pidx 446 drivers/ntb/test/ntb_tool.c int pidx; pidx 454 drivers/ntb/test/ntb_tool.c for (pidx = 0; pidx < tc->peer_cnt; pidx++) { pidx 455 drivers/ntb/test/ntb_tool.c tc->peers[pidx].pidx = pidx; pidx 456 drivers/ntb/test/ntb_tool.c tc->peers[pidx].tc = tc; pidx 500 drivers/ntb/test/ntb_tool.c if (ntb_link_is_up(tc->ntb, NULL, NULL) & BIT(peer->pidx)) pidx 528 drivers/ntb/test/ntb_tool.c link_msk = BIT_ULL_MASK(peer->pidx); pidx 574 drivers/ntb/test/ntb_tool.c static int tool_setup_mw(struct tool_ctx *tc, int pidx, int widx, pidx 578 drivers/ntb/test/ntb_tool.c struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; pidx 585 drivers/ntb/test/ntb_tool.c ret = ntb_mw_get_align(tc->ntb, pidx, widx, &addr_align, pidx 603 drivers/ntb/test/ntb_tool.c ret = ntb_mw_set_trans(tc->ntb, pidx, widx, inmw->dma_base, inmw->size); pidx 609 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, inmw, pidx 624 drivers/ntb/test/ntb_tool.c static void tool_free_mw(struct tool_ctx *tc, int pidx, int widx) pidx 626 drivers/ntb/test/ntb_tool.c struct tool_mw *inmw = &tc->peers[pidx].inmws[widx]; pidx 631 drivers/ntb/test/ntb_tool.c ntb_mw_clear_trans(tc->ntb, pidx, widx); pidx 659 drivers/ntb/test/ntb_tool.c ret = ntb_mw_get_align(inmw->tc->ntb, inmw->pidx, inmw->widx, pidx 670 drivers/ntb/test/ntb_tool.c ntb_peer_port_number(inmw->tc->ntb, inmw->pidx), pidx 671 drivers/ntb/test/ntb_tool.c inmw->pidx); pidx 715 drivers/ntb/test/ntb_tool.c tool_free_mw(inmw->tc, inmw->pidx, inmw->widx); pidx 717 drivers/ntb/test/ntb_tool.c ret = tool_setup_mw(inmw->tc, inmw->pidx, inmw->widx, val); pidx 809 drivers/ntb/test/ntb_tool.c static int tool_setup_peer_mw(struct tool_ctx *tc, int pidx, int widx, pidx 825 drivers/ntb/test/ntb_tool.c ret = ntb_peer_mw_set_trans(tc->ntb, pidx, widx, req_addr, req_size); pidx 837 drivers/ntb/test/ntb_tool.c outmw->pidx = pidx; pidx 841 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, outmw, pidx 847 drivers/ntb/test/ntb_tool.c ntb_peer_mw_clear_trans(tc->ntb, pidx, widx); pidx 860 drivers/ntb/test/ntb_tool.c ntb_peer_mw_clear_trans(tc->ntb, outmw->pidx, widx); pidx 866 drivers/ntb/test/ntb_tool.c outmw->pidx = -1; pidx 899 drivers/ntb/test/ntb_tool.c ntb_peer_port_number(outmw->tc->ntb, outmw->pidx), pidx 900 drivers/ntb/test/ntb_tool.c outmw->pidx); pidx 950 drivers/ntb/test/ntb_tool.c ret = tool_setup_peer_mw(outmw->tc, outmw_wrap->pidx, pidx 965 drivers/ntb/test/ntb_tool.c int widx, pidx; pidx 976 drivers/ntb/test/ntb_tool.c tc->outmws[widx].pidx = -1; pidx 981 drivers/ntb/test/ntb_tool.c for (pidx = 0; pidx < tc->peer_cnt; pidx++) { pidx 982 drivers/ntb/test/ntb_tool.c tc->peers[pidx].inmw_cnt = ntb_mw_count(tc->ntb, pidx); pidx 983 drivers/ntb/test/ntb_tool.c tc->peers[pidx].inmws = pidx 984 drivers/ntb/test/ntb_tool.c devm_kcalloc(&tc->ntb->dev, tc->peers[pidx].inmw_cnt, pidx 985 drivers/ntb/test/ntb_tool.c sizeof(*tc->peers[pidx].inmws), GFP_KERNEL); pidx 986 drivers/ntb/test/ntb_tool.c if (tc->peers[pidx].inmws == NULL) pidx 989 drivers/ntb/test/ntb_tool.c for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { pidx 990 drivers/ntb/test/ntb_tool.c tc->peers[pidx].inmws[widx].widx = widx; pidx 991 drivers/ntb/test/ntb_tool.c tc->peers[pidx].inmws[widx].pidx = pidx; pidx 992 drivers/ntb/test/ntb_tool.c tc->peers[pidx].inmws[widx].tc = tc; pidx 995 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmw_cnt = ntb_peer_mw_count(tc->ntb); pidx 996 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmws = pidx 997 drivers/ntb/test/ntb_tool.c devm_kcalloc(&tc->ntb->dev, tc->peers[pidx].outmw_cnt, pidx 998 drivers/ntb/test/ntb_tool.c sizeof(*tc->peers[pidx].outmws), GFP_KERNEL); pidx 1000 drivers/ntb/test/ntb_tool.c for (widx = 0; widx < tc->peers[pidx].outmw_cnt; widx++) { pidx 1001 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmws[widx].pidx = pidx; pidx 1002 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmws[widx].mw = &tc->outmws[widx]; pidx 1011 drivers/ntb/test/ntb_tool.c int widx, pidx; pidx 1018 drivers/ntb/test/ntb_tool.c for (pidx = 0; pidx < tc->peer_cnt; pidx++) pidx 1019 drivers/ntb/test/ntb_tool.c for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) pidx 1020 drivers/ntb/test/ntb_tool.c tool_free_mw(tc, pidx, widx); pidx 1206 drivers/ntb/test/ntb_tool.c ntb_peer_spad_read(spad->tc->ntb, spad->pidx, spad->sidx)); pidx 1227 drivers/ntb/test/ntb_tool.c ret = ntb_peer_spad_write(spad->tc->ntb, spad->pidx, spad->sidx, val); pidx 1238 drivers/ntb/test/ntb_tool.c int sidx, pidx; pidx 1249 drivers/ntb/test/ntb_tool.c tc->inspads[sidx].pidx = -1; pidx 1254 drivers/ntb/test/ntb_tool.c for (pidx = 0; pidx < tc->peer_cnt; pidx++) { pidx 1255 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outspad_cnt = ntb_spad_count(tc->ntb); pidx 1256 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outspads = pidx 1257 drivers/ntb/test/ntb_tool.c devm_kcalloc(&tc->ntb->dev, tc->peers[pidx].outspad_cnt, pidx 1258 drivers/ntb/test/ntb_tool.c sizeof(*tc->peers[pidx].outspads), GFP_KERNEL); pidx 1259 drivers/ntb/test/ntb_tool.c if (tc->peers[pidx].outspads == NULL) pidx 1262 drivers/ntb/test/ntb_tool.c for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { pidx 1263 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outspads[sidx].sidx = sidx; pidx 1264 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outspads[sidx].pidx = pidx; pidx 1265 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outspads[sidx].tc = tc; pidx 1284 drivers/ntb/test/ntb_tool.c int pidx; pidx 1286 drivers/ntb/test/ntb_tool.c data = ntb_msg_read(msg->tc->ntb, &pidx, msg->midx); pidx 1288 drivers/ntb/test/ntb_tool.c pos = scnprintf(buf, sizeof(buf), "0x%08x<-%d\n", data, pidx); pidx 1309 drivers/ntb/test/ntb_tool.c ret = ntb_peer_msg_write(msg->tc->ntb, msg->pidx, msg->midx, val); pidx 1402 drivers/ntb/test/ntb_tool.c int midx, pidx; pidx 1413 drivers/ntb/test/ntb_tool.c tc->inmsgs[midx].pidx = -1; pidx 1418 drivers/ntb/test/ntb_tool.c for (pidx = 0; pidx < tc->peer_cnt; pidx++) { pidx 1419 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmsg_cnt = ntb_msg_count(tc->ntb); pidx 1420 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmsgs = pidx 1421 drivers/ntb/test/ntb_tool.c devm_kcalloc(&tc->ntb->dev, tc->peers[pidx].outmsg_cnt, pidx 1422 drivers/ntb/test/ntb_tool.c sizeof(*tc->peers[pidx].outmsgs), GFP_KERNEL); pidx 1423 drivers/ntb/test/ntb_tool.c if (tc->peers[pidx].outmsgs == NULL) pidx 1426 drivers/ntb/test/ntb_tool.c for (midx = 0; midx < tc->peers[pidx].outmsg_cnt; midx++) { pidx 1427 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmsgs[midx].midx = midx; pidx 1428 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmsgs[midx].pidx = pidx; pidx 1429 drivers/ntb/test/ntb_tool.c tc->peers[pidx].outmsgs[midx].tc = tc; pidx 1483 drivers/ntb/test/ntb_tool.c int pidx, widx, sidx, midx; pidx 1553 drivers/ntb/test/ntb_tool.c for (pidx = 0; pidx < tc->peer_cnt; pidx++) { pidx 1554 drivers/ntb/test/ntb_tool.c snprintf(buf, sizeof(buf), "peer%d", pidx); pidx 1555 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir = pidx 1559 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1560 drivers/ntb/test/ntb_tool.c &tc->peers[pidx], &tool_peer_port_fops); pidx 1563 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1564 drivers/ntb/test/ntb_tool.c &tc->peers[pidx], &tool_peer_link_fops); pidx 1567 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1568 drivers/ntb/test/ntb_tool.c &tc->peers[pidx], &tool_peer_link_event_fops); pidx 1570 drivers/ntb/test/ntb_tool.c for (widx = 0; widx < tc->peers[pidx].inmw_cnt; widx++) { pidx 1573 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1574 drivers/ntb/test/ntb_tool.c &tc->peers[pidx].inmws[widx], pidx 1578 drivers/ntb/test/ntb_tool.c for (widx = 0; widx < tc->peers[pidx].outmw_cnt; widx++) { pidx 1581 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1582 drivers/ntb/test/ntb_tool.c &tc->peers[pidx].outmws[widx], pidx 1586 drivers/ntb/test/ntb_tool.c for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { pidx 1590 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1591 drivers/ntb/test/ntb_tool.c &tc->peers[pidx].outspads[sidx], pidx 1595 drivers/ntb/test/ntb_tool.c for (midx = 0; midx < tc->peers[pidx].outmsg_cnt; midx++) { pidx 1598 drivers/ntb/test/ntb_tool.c tc->peers[pidx].dbgfs_dir, pidx 1599 drivers/ntb/test/ntb_tool.c &tc->peers[pidx].outmsgs[midx], pidx 295 drivers/scsi/be2iscsi/be_cmds.h u8 pidx[13]; /* dword 1 */ pidx 583 drivers/scsi/be2iscsi/be_cmds.h u8 pidx[11]; /* dword 1 */ pidx 958 drivers/scsi/be2iscsi/be_main.h u32 pidx; /* producer index -- not used by most rings */ pidx 155 drivers/scsi/csiostor/csio_wr.c flq->pidx += n; pidx 156 drivers/scsi/csiostor/csio_wr.c if (unlikely(flq->pidx >= flq->credits)) pidx 157 drivers/scsi/csiostor/csio_wr.c flq->pidx -= (uint16_t)flq->credits; pidx 247 drivers/scsi/csiostor/csio_wr.c q->pidx = q->cidx = q->inc_idx = 0; pidx 304 drivers/scsi/csiostor/csio_wr.c flq->pidx = flq->inc_idx = flq->credits - 8; pidx 868 drivers/scsi/csiostor/csio_wr.c (q->pidx * CSIO_QCREDIT_SZ)); pidx 871 drivers/scsi/csiostor/csio_wr.c uint16_t pidx = q->pidx; pidx 881 drivers/scsi/csiostor/csio_wr.c if (pidx > cidx) { pidx 882 drivers/scsi/csiostor/csio_wr.c credits = q->credits - (pidx - cidx) - 1; pidx 883 drivers/scsi/csiostor/csio_wr.c } else if (cidx > pidx) { pidx 884 drivers/scsi/csiostor/csio_wr.c credits = cidx - pidx - 1; pidx 913 drivers/scsi/csiostor/csio_wr.c q->pidx = (uint16_t)(ALIGN(wrp->size2, CSIO_QCREDIT_SZ) / pidx 922 drivers/scsi/csiostor/csio_wr.c q->pidx += (uint16_t)req_credits; pidx 925 drivers/scsi/csiostor/csio_wr.c if (unlikely(q->pidx == q->credits)) { pidx 926 drivers/scsi/csiostor/csio_wr.c q->pidx = 0; pidx 1001 drivers/scsi/csiostor/csio_wr.c if (q->pidx > q->cidx) pidx 1002 drivers/scsi/csiostor/csio_wr.c return q->pidx - q->cidx; pidx 1003 drivers/scsi/csiostor/csio_wr.c else if (q->cidx > q->pidx) pidx 1004 drivers/scsi/csiostor/csio_wr.c return q->credits - (q->cidx - q->pidx); pidx 276 drivers/scsi/csiostor/csio_wr.h __be16 pidx; pidx 395 drivers/scsi/csiostor/csio_wr.h uint16_t pidx; /* producer index */ pidx 454 drivers/scsi/csiostor/csio_wr.h #define csio_q_pidx(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->pidx) pidx 1973 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c unsigned int pidx = ttinfo->idx; pidx 1982 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c for (i = 0; i < npods; i += cnt, pidx += cnt) { pidx 1987 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c err = ddp_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, pidx 231 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c int *pidx) pidx 234 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c int idx = *pidx; pidx 250 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c *pidx = idx; pidx 572 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h int *pidx); pidx 130 drivers/target/iscsi/cxgbit/cxgbit_ddp.c unsigned int pidx = ttinfo->idx; pidx 137 drivers/target/iscsi/cxgbit/cxgbit_ddp.c for (i = 0; i < npods; i += cnt, pidx += cnt) { pidx 143 drivers/target/iscsi/cxgbit/cxgbit_ddp.c ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, pidx 263 include/linux/ntb.h int (*peer_port_number)(struct ntb_dev *ntb, int pidx); pidx 272 include/linux/ntb.h int (*mw_count)(struct ntb_dev *ntb, int pidx); pidx 273 include/linux/ntb.h int (*mw_get_align)(struct ntb_dev *ntb, int pidx, int widx, pidx 277 include/linux/ntb.h int (*mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx, pidx 279 include/linux/ntb.h int (*mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx); pidx 283 include/linux/ntb.h int (*peer_mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx, pidx 285 include/linux/ntb.h int (*peer_mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx); pidx 317 include/linux/ntb.h int (*peer_spad_addr)(struct ntb_dev *ntb, int pidx, int sidx, pidx 319 include/linux/ntb.h u32 (*peer_spad_read)(struct ntb_dev *ntb, int pidx, int sidx); pidx 320 include/linux/ntb.h int (*peer_spad_write)(struct ntb_dev *ntb, int pidx, int sidx, pidx 330 include/linux/ntb.h u32 (*msg_read)(struct ntb_dev *ntb, int *pidx, int midx); pidx 331 include/linux/ntb.h int (*peer_msg_write)(struct ntb_dev *ntb, int pidx, int midx, u32 msg); pidx 591 include/linux/ntb.h int ntb_default_peer_port_number(struct ntb_dev *ntb, int pidx); pidx 653 include/linux/ntb.h static inline int ntb_peer_port_number(struct ntb_dev *ntb, int pidx) pidx 656 include/linux/ntb.h return ntb_default_peer_port_number(ntb, pidx); pidx 658 include/linux/ntb.h return ntb->ops->peer_port_number(ntb, pidx); pidx 678 include/linux/ntb.h int pidx; pidx 683 include/linux/ntb.h for (pidx = 0; pidx < ntb_peer_port_count(ntb); pidx++) pidx 684 include/linux/ntb.h if (lport <= ntb_peer_port_number(ntb, pidx)) pidx 685 include/linux/ntb.h return pidx; pidx 687 include/linux/ntb.h return pidx; pidx 705 include/linux/ntb.h static inline int ntb_peer_logical_port_number(struct ntb_dev *ntb, int pidx) pidx 707 include/linux/ntb.h if (ntb_peer_port_number(ntb, pidx) < ntb_port_number(ntb)) pidx 708 include/linux/ntb.h return pidx; pidx 710 include/linux/ntb.h return pidx + 1; pidx 802 include/linux/ntb.h static inline int ntb_mw_count(struct ntb_dev *ntb, int pidx) pidx 804 include/linux/ntb.h return ntb->ops->mw_count(ntb, pidx); pidx 823 include/linux/ntb.h static inline int ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, pidx 828 include/linux/ntb.h if (!(ntb_link_is_up(ntb, NULL, NULL) & BIT_ULL(pidx))) pidx 831 include/linux/ntb.h return ntb->ops->mw_get_align(ntb, pidx, widx, addr_align, size_align, pidx 854 include/linux/ntb.h static inline int ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, pidx 860 include/linux/ntb.h return ntb->ops->mw_set_trans(ntb, pidx, widx, addr, size); pidx 875 include/linux/ntb.h static inline int ntb_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) pidx 878 include/linux/ntb.h return ntb_mw_set_trans(ntb, pidx, widx, 0, 0); pidx 880 include/linux/ntb.h return ntb->ops->mw_clear_trans(ntb, pidx, widx); pidx 936 include/linux/ntb.h static inline int ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, pidx 942 include/linux/ntb.h return ntb->ops->peer_mw_set_trans(ntb, pidx, widx, addr, size); pidx 960 include/linux/ntb.h static inline int ntb_peer_mw_clear_trans(struct ntb_dev *ntb, int pidx, pidx 964 include/linux/ntb.h return ntb_peer_mw_set_trans(ntb, pidx, widx, 0, 0); pidx 966 include/linux/ntb.h return ntb->ops->peer_mw_clear_trans(ntb, pidx, widx); pidx 1359 include/linux/ntb.h static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, pidx 1365 include/linux/ntb.h return ntb->ops->peer_spad_addr(ntb, pidx, sidx, spad_addr); pidx 1378 include/linux/ntb.h static inline u32 ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) pidx 1383 include/linux/ntb.h return ntb->ops->peer_spad_read(ntb, pidx, sidx); pidx 1397 include/linux/ntb.h static inline int ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, pidx 1403 include/linux/ntb.h return ntb->ops->peer_spad_write(ntb, pidx, sidx, val); pidx 1536 include/linux/ntb.h static inline u32 ntb_msg_read(struct ntb_dev *ntb, int *pidx, int midx) pidx 1541 include/linux/ntb.h return ntb->ops->msg_read(ntb, pidx, midx); pidx 1557 include/linux/ntb.h static inline int ntb_peer_msg_write(struct ntb_dev *ntb, int pidx, int midx, pidx 1563 include/linux/ntb.h return ntb->ops->peer_msg_write(ntb, pidx, midx, msg); pidx 1597 include/linux/ntb.h static inline int ntb_peer_resource_idx(struct ntb_dev *ntb, int pidx) pidx 1601 include/linux/ntb.h if (pidx >= ntb_peer_port_count(ntb)) pidx 1605 include/linux/ntb.h peer_port = ntb_peer_logical_port_number(ntb, pidx); pidx 1625 include/linux/ntb.h static inline int ntb_peer_highest_mw_idx(struct ntb_dev *ntb, int pidx) pidx 1629 include/linux/ntb.h ret = ntb_peer_resource_idx(ntb, pidx); pidx 1633 include/linux/ntb.h return ntb_mw_count(ntb, pidx) - ret - 1; pidx 1205 kernel/relay.c unsigned int pidx, poff, total_len, subbuf_pages, nr_pages; pidx 1238 kernel/relay.c pidx = (read_start / PAGE_SIZE) % subbuf_pages; pidx 1252 kernel/relay.c spd.pages[spd.nr_pages] = rbuf->page_array[pidx]; pidx 1266 kernel/relay.c pidx = (pidx + 1) % subbuf_pages; pidx 3063 kernel/trace/ftrace.c int pidx; pidx 3110 kernel/trace/ftrace.c if (iter->pidx >= size) { pidx 3117 kernel/trace/ftrace.c iter->pidx = 0; pidx 3120 kernel/trace/ftrace.c hhd = &hash->buckets[iter->pidx]; pidx 3123 kernel/trace/ftrace.c iter->pidx++; pidx 3133 kernel/trace/ftrace.c iter->pidx++; pidx 3160 kernel/trace/ftrace.c iter->pidx = 0; pidx 54 net/8021q/vlan.c unsigned int pidx, vidx; pidx 59 net/8021q/vlan.c pidx = vlan_proto_idx(vlan_proto); pidx 61 net/8021q/vlan.c array = vg->vlan_devices_arrays[pidx][vidx]; pidx 70 net/8021q/vlan.c vg->vlan_devices_arrays[pidx][vidx] = array; pidx 53 net/8021q/vlan.h unsigned int pidx, pidx 58 net/8021q/vlan.h array = vg->vlan_devices_arrays[pidx] pidx 187 net/sched/sch_choke.c unsigned int *pidx) pidx 193 net/sched/sch_choke.c *pidx = (q->head + prandom_u32_max(choke_len(q))) & q->tab_mask; pidx 194 net/sched/sch_choke.c skb = q->tab[*pidx]; pidx 199 net/sched/sch_choke.c return q->tab[*pidx = q->head]; pidx 208 net/sched/sch_choke.c unsigned int *pidx) pidx 215 net/sched/sch_choke.c oskb = choke_peek_random(q, pidx); pidx 169 net/sunrpc/svc.c unsigned int pidx = 0; pidx 178 net/sunrpc/svc.c BUG_ON(pidx >= maxpools); pidx 179 net/sunrpc/svc.c m->to_pool[cpu] = pidx; pidx 180 net/sunrpc/svc.c m->pool_to[pidx] = cpu; pidx 181 net/sunrpc/svc.c pidx++; pidx 185 net/sunrpc/svc.c return pidx; pidx 197 net/sunrpc/svc.c unsigned int pidx = 0; pidx 207 net/sunrpc/svc.c BUG_ON(pidx > maxpools); pidx 208 net/sunrpc/svc.c m->to_pool[node] = pidx; pidx 209 net/sunrpc/svc.c m->pool_to[pidx] = node; pidx 210 net/sunrpc/svc.c pidx++; pidx 214 net/sunrpc/svc.c return pidx; pidx 286 net/sunrpc/svc.c static int svc_pool_map_get_node(unsigned int pidx) pidx 292 net/sunrpc/svc.c return cpu_to_node(m->pool_to[pidx]); pidx 294 net/sunrpc/svc.c return m->pool_to[pidx]; pidx 303 net/sunrpc/svc.c svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx) pidx 306 net/sunrpc/svc.c unsigned int node = m->pool_to[pidx]; pidx 339 net/sunrpc/svc.c unsigned int pidx = 0; pidx 349 net/sunrpc/svc.c pidx = m->to_pool[cpu]; pidx 352 net/sunrpc/svc.c pidx = m->to_pool[cpu_to_node(cpu)]; pidx 356 net/sunrpc/svc.c return &serv->sv_pools[pidx % serv->sv_nrpools]; pidx 1365 net/sunrpc/svc_xprt.c unsigned int pidx = (unsigned int)*pos; pidx 1368 net/sunrpc/svc_xprt.c dprintk("svc_pool_stats_start, *pidx=%u\n", pidx); pidx 1370 net/sunrpc/svc_xprt.c if (!pidx) pidx 1372 net/sunrpc/svc_xprt.c return (pidx > serv->sv_nrpools ? NULL : &serv->sv_pools[pidx-1]); pidx 1385 net/sunrpc/svc_xprt.c unsigned int pidx = (pool - &serv->sv_pools[0]); pidx 1386 net/sunrpc/svc_xprt.c if (pidx < serv->sv_nrpools-1) pidx 1387 net/sunrpc/svc_xprt.c pool = &serv->sv_pools[pidx+1];