/drivers/infiniband/hw/qib/ |
D | qib_init.c | 332 int ret, pidx; in init_pioavailregs() local 356 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in init_pioavailregs() 357 dd->pport[pidx].statusp = status_page; in init_pioavailregs() 549 int i, pidx; in init_piobuf_state() local 561 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state() 562 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); in init_piobuf_state() 609 int pidx; in qib_create_workqueues() local 612 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues() 613 ppd = dd->pport + pidx; in qib_create_workqueues() 617 dd->unit, pidx); in qib_create_workqueues() [all …]
|
D | qib_driver.c | 101 int pidx, nunits_active = 0; in qib_count_active_units() local 107 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_count_active_units() 108 ppd = dd->pport + pidx; in qib_count_active_units() 130 int pidx; in qib_count_units() local 139 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_count_units() 140 ppd = dd->pport + pidx; in qib_count_units() 758 int pidx; in qib_reset_device() local 786 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_reset_device() 787 ppd = dd->pport + pidx; in qib_reset_device()
|
D | qib_iba7322.c | 951 #define QIB_I_P_SDMAINT(pidx) \ argument 952 (INT_MASK_P(SDma, pidx) | INT_MASK_P(SDmaIdle, pidx) | \ 953 INT_MASK_P(SDmaProgress, pidx) | \ 954 INT_MASK_PM(SDmaCleanupDone, pidx)) 957 #define QIB_I_P_BITSEXTANT(pidx) \ argument 958 (INT_MASK_P(Err, pidx) | INT_MASK_P(SendDone, pidx) | \ 959 INT_MASK_P(SDma, pidx) | INT_MASK_P(SDmaIdle, pidx) | \ 960 INT_MASK_P(SDmaProgress, pidx) | \ 961 INT_MASK_PM(SDmaCleanupDone, pidx)) 1713 int pidx; in handle_7322_errors() local [all …]
|
D | qib_tx.c | 117 unsigned pidx; in is_sdma_buf() local 119 for (pidx = 0; pidx < dd->num_pports; pidx++) { in is_sdma_buf() 120 ppd = dd->pport + pidx; in is_sdma_buf()
|
D | qib_file_ops.c | 566 int i, any = 0, pidx = -1; in qib_set_part_key() local 590 if (!rcd->pkeys[i] && pidx == -1) in qib_set_part_key() 591 pidx = i; in qib_set_part_key() 597 if (pidx == -1) { in qib_set_part_key() 610 rcd->pkeys[pidx] = key; in qib_set_part_key() 638 rcd->pkeys[pidx] = key; in qib_set_part_key() 1395 u32 pidx = ctxt % dd->num_pports; in choose_port_ctxt() local 1396 if (usable(dd->pport + pidx)) in choose_port_ctxt() 1397 ppd = dd->pport + pidx; in choose_port_ctxt() 1399 for (pidx = 0; pidx < dd->num_pports && !ppd; in choose_port_ctxt() [all …]
|
D | qib_mad.c | 282 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in subn_get_nodeinfo() local 285 if (smp->attr_mod || pidx >= dd->num_pports || in subn_get_nodeinfo() 286 dd->pport[pidx].guid == 0) in subn_get_nodeinfo() 289 nip->port_guid = dd->pport[pidx].guid; in subn_get_nodeinfo() 318 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in subn_get_guidinfo() local 324 if (startgx == 0 && pidx < dd->num_pports) { in subn_get_guidinfo() 325 struct qib_pportdata *ppd = dd->pport + pidx; in subn_get_guidinfo() 623 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in subn_set_guidinfo() local 627 if (startgx == 0 && pidx < dd->num_pports) { in subn_set_guidinfo() 628 struct qib_pportdata *ppd = dd->pport + pidx; in subn_set_guidinfo()
|
D | qib.h | 1232 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in to_iport() local 1234 WARN_ON(pidx >= dd->num_pports); in to_iport() 1235 return &dd->pport[pidx].ibport_data; in to_iport()
|
D | qib_qp.c | 645 int mtu, pidx = qp->port_num - 1; in qib_modify_qp() local 650 if (mtu > dd->pport[pidx].ibmtu) { in qib_modify_qp() 651 switch (dd->pport[pidx].ibmtu) { in qib_modify_qp()
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | adapter.h | 98 u8 pidx; /* index into adapter port[] */ member 125 unsigned int pidx; /* producer index */ member 228 unsigned int pidx; /* producer index */ member 459 static inline const char *port_name(struct adapter *adapter, int pidx) in port_name() argument 461 return adapter->port[pidx]->name; in port_name() 473 static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx, in t4_os_set_hw_addr() argument 476 memcpy(adapter->port[pidx]->dev_addr, hw_addr, ETH_ALEN); in t4_os_set_hw_addr() 497 static inline struct port_info *adap2pinfo(struct adapter *adapter, int pidx) in adap2pinfo() argument 499 return netdev_priv(adapter->port[pidx]); in adap2pinfo()
|
D | cxgb4vf_main.c | 143 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) in t4vf_os_link_changed() argument 145 struct net_device *dev = adapter->port[pidx]; in t4vf_os_link_changed() 260 int pidx; in name_msix_vecs() local 272 for_each_port(adapter, pidx) { in name_msix_vecs() 273 struct net_device *dev = adapter->port[pidx]; in name_msix_vecs() 499 int err, pidx, msix; in setup_sge_queues() local 537 for_each_port(adapter, pidx) { in setup_sge_queues() 538 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues() 568 for_each_port(adapter, pidx) { in setup_sge_queues() 569 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues() [all …]
|
D | sge.c | 591 __be64 *d = &fl->desc[fl->pidx]; in refill_fl() 592 struct rx_sw_desc *sdesc = &fl->sdesc[fl->pidx]; in refill_fl() 646 if (++fl->pidx == fl->size) { in refill_fl() 647 fl->pidx = 0; in refill_fl() 675 if (++fl->pidx == fl->size) { in refill_fl() 676 fl->pidx = 0; in refill_fl() 1060 tq->pidx += n; in txq_advance() 1061 if (tq->pidx >= tq->size) in txq_advance() 1062 tq->pidx -= tq->size; in txq_advance() 1170 wr = (void *)&txq->q.desc[txq->q.pidx]; in t4vf_eth_xmit() [all …]
|
D | t4vf_hw.c | 277 int t4vf_port_init(struct adapter *adapter, int pidx) in t4vf_port_init() argument 279 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_port_init() 301 t4_os_set_hw_addr(adapter, pidx, vi_rpl.mac); in t4vf_port_init() 1220 int t4vf_get_port_stats(struct adapter *adapter, int pidx, in t4vf_get_port_stats() argument 1223 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_get_port_stats() 1357 int action, port_id, link_ok, speed, fc, pidx; in t4vf_handle_fw_rpl() local 1397 for_each_port(adapter, pidx) { in t4vf_handle_fw_rpl() 1398 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_handle_fw_rpl() 1411 t4vf_os_link_changed(adapter, pidx, link_ok); in t4vf_handle_fw_rpl()
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 184 u16 pidx; /* producer index (SW) */ member 197 u16 pidx; /* producer index (SW) */ member 828 struct freelQ_ce *ce = &q->centries[q->pidx]; in refill_free_list() 829 struct freelQ_e *e = &q->entries[q->pidx]; in refill_free_list() 856 if (++q->pidx == q->size) { in refill_free_list() 857 q->pidx = 0; in refill_free_list() 1006 struct freelQ_e *to = &fl->entries[fl->pidx]; in recycle_fl_buf() 1008 fl->centries[fl->pidx] = fl->centries[idx]; in recycle_fl_buf() 1016 if (++fl->pidx == fl->size) { in recycle_fl_buf() 1017 fl->pidx = 0; in recycle_fl_buf() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 502 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl() 503 struct rx_desc *d = &q->desc[q->pidx]; in refill_fl() 542 if (++q->pidx == q->size) { in refill_fl() 543 q->pidx = 0; in refill_fl() 577 struct rx_desc *to = &q->desc[q->pidx]; in recycle_rx_buf() 579 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf() 586 if (++q->pidx == q->size) { in recycle_rx_buf() 587 q->pidx = 0; in recycle_rx_buf() 1050 struct tx_desc *d, unsigned int pidx, in write_wr_hdr_sgl() argument 1058 struct tx_sw_desc *sd = &q->sdesc[pidx]; in write_wr_hdr_sgl() [all …]
|
D | adapter.h | 109 unsigned int pidx; /* producer index */ member 173 unsigned int pidx; /* producer index */ member
|
/drivers/scsi/csiostor/ |
D | csio_wr.c | 154 flq->pidx += n; in csio_wr_update_fl() 155 if (unlikely(flq->pidx >= flq->credits)) in csio_wr_update_fl() 156 flq->pidx -= (uint16_t)flq->credits; in csio_wr_update_fl() 245 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q() 302 flq->pidx = flq->inc_idx = flq->credits - 8; in csio_wr_alloc_q() 863 (q->pidx * CSIO_QCREDIT_SZ)); in csio_wr_get() 866 uint16_t pidx = q->pidx; in csio_wr_get() local 876 if (pidx > cidx) { in csio_wr_get() 877 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get() 878 } else if (cidx > pidx) { in csio_wr_get() [all …]
|
D | csio_wr.h | 276 __be16 pidx; member 395 uint16_t pidx; /* producer index */ member 454 #define csio_q_pidx(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->pidx)
|
/drivers/infiniband/hw/cxgb4/ |
D | t4.h | 51 __be16 pidx; member 299 u16 pidx; member 326 u16 pidx; member 363 if (++wq->rq.pidx == wq->rq.size) in t4_rq_produce() 364 wq->rq.pidx = 0; in t4_rq_produce() 411 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce() 412 wq->sq.pidx = 0; in t4_sq_produce() 463 __func__, wq->sq.pidx); in t4_ring_sq_db() 467 __func__, wq->sq.pidx); in t4_ring_sq_db() 487 __func__, wq->rq.pidx); in t4_ring_rq_db() [all …]
|
D | qp.c | 763 swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; in c4iw_post_send() 820 swsqe->idx = qhp->wq.sq.pidx; in c4iw_post_send() 832 init_wr_hdr(wqe, qhp->wq.sq.pidx, fw_opcode, fw_flags, len16); in c4iw_post_send() 835 __func__, (unsigned long long)wr->wr_id, qhp->wq.sq.pidx, in c4iw_post_send() 893 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].wr_id = wr->wr_id; in c4iw_post_receive() 895 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].sge_ts = in c4iw_post_receive() 899 &qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].host_ts); in c4iw_post_receive() 904 wqe->recv.wrid = qhp->wq.rq.pidx; in c4iw_post_receive() 910 (unsigned long long) wr->wr_id, qhp->wq.rq.pidx); in c4iw_post_receive()
|
D | cq.c | 244 while (idx != wq->sq.pidx) { in c4iw_flush_sq() 273 while (cidx != wq->sq.pidx) { in flush_completed_wrs() 318 while (rptr != wq->sq.pidx) { in advance_oldest_read()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 576 __be64 *d = &q->desc[q->pidx]; in refill_fl() 577 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl() 608 if (++q->pidx == q->size) { in refill_fl() 609 q->pidx = 0; in refill_fl() 636 if (++q->pidx == q->size) { in refill_fl() 637 q->pidx = 0; in refill_fl() 895 q->db_pidx = q->pidx; in ring_tx_db() 915 int index = (q->pidx in ring_tx_db() 916 ? (q->pidx - 1) in ring_tx_db() 1030 q->pidx += n; in txq_advance() [all …]
|
D | t4_hw.h | 116 __be16 pidx; member
|
D | cxgb4_uld.h | 300 int cxgb4_sync_txq_pidx(struct net_device *dev, u16 qid, u16 pidx, u16 size);
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | ptlrpcd.c | 557 int i, pidx; in ptlrpcd_bind() local 562 for (pidx = 0, i = 0; i < index; i++) { in ptlrpcd_bind() 565 pc->pc_partners[pidx++] = ppc; in ptlrpcd_bind() 572 pc->pc_npartners = pidx; in ptlrpcd_bind()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_file_ops.c | 609 int i, any = 0, pidx = -1; in ipath_set_part_key() local 643 if (!pd->port_pkeys[i] && pidx == -1) in ipath_set_part_key() 644 pidx = i; in ipath_set_part_key() 653 if (pidx == -1) { in ipath_set_part_key() 668 pd->port_pkeys[pidx] = key; in ipath_set_part_key() 709 pd->port_pkeys[pidx] = dd->ipath_pkeys[i] = key; in ipath_set_part_key() 717 pd->port_port, key, i, pidx, in ipath_set_part_key()
|