Home
last modified time | relevance | path

Searched refs:pidx (Results 1 – 25 of 40) sorted by relevance

12

/drivers/infiniband/hw/qib/
Dqib_init.c332 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()
547 int i, pidx; in init_piobuf_state() local
559 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state()
560 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); in init_piobuf_state()
607 int pidx; in qib_create_workqueues() local
610 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
611 ppd = dd->pport + pidx; in qib_create_workqueues()
616 dd->unit, pidx); in qib_create_workqueues()
[all …]
Dqib_driver.c117 int pidx, nunits_active = 0; in qib_count_active_units() local
123 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_count_active_units()
124 ppd = dd->pport + pidx; in qib_count_active_units()
146 int pidx; in qib_count_units() local
155 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_count_units()
156 ppd = dd->pport + pidx; in qib_count_units()
767 int pidx; in qib_reset_device() local
795 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_reset_device()
796 ppd = dd->pport + pidx; in qib_reset_device()
Dqib_iba7322.c953 #define QIB_I_P_SDMAINT(pidx) \ argument
954 (INT_MASK_P(SDma, pidx) | INT_MASK_P(SDmaIdle, pidx) | \
955 INT_MASK_P(SDmaProgress, pidx) | \
956 INT_MASK_PM(SDmaCleanupDone, pidx))
959 #define QIB_I_P_BITSEXTANT(pidx) \ argument
960 (INT_MASK_P(Err, pidx) | INT_MASK_P(SendDone, pidx) | \
961 INT_MASK_P(SDma, pidx) | INT_MASK_P(SDmaIdle, pidx) | \
962 INT_MASK_P(SDmaProgress, pidx) | \
963 INT_MASK_PM(SDmaCleanupDone, pidx))
1700 int pidx; in handle_7322_errors() local
[all …]
Dqib_tx.c117 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()
Dqib_file_ops.c571 int i, any = 0, pidx = -1; in qib_set_part_key() local
595 if (!rcd->pkeys[i] && pidx == -1) in qib_set_part_key()
596 pidx = i; in qib_set_part_key()
602 if (pidx == -1) { in qib_set_part_key()
615 rcd->pkeys[pidx] = key; in qib_set_part_key()
643 rcd->pkeys[pidx] = key; in qib_set_part_key()
1396 u32 pidx = ctxt % dd->num_pports; in choose_port_ctxt() local
1398 if (usable(dd->pport + pidx)) in choose_port_ctxt()
1399 ppd = dd->pport + pidx; in choose_port_ctxt()
1401 for (pidx = 0; pidx < dd->num_pports && !ppd; in choose_port_ctxt()
[all …]
Dqib_qp.c332 int mtu, pmtu, pidx = qp->port_num - 1; in qib_get_pmtu_from_attr() local
340 if (mtu > dd->pport[pidx].ibmtu) in qib_get_pmtu_from_attr()
341 pmtu = mtu_to_enum(dd->pport[pidx].ibmtu); in qib_get_pmtu_from_attr()
Dqib_mad.c287 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in subn_get_nodeinfo() local
290 if (smp->attr_mod || pidx >= dd->num_pports || in subn_get_nodeinfo()
291 dd->pport[pidx].guid == 0) in subn_get_nodeinfo()
294 nip->port_guid = dd->pport[pidx].guid; in subn_get_nodeinfo()
323 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in subn_get_guidinfo() local
329 if (startgx == 0 && pidx < dd->num_pports) { in subn_get_guidinfo()
330 struct qib_pportdata *ppd = dd->pport + pidx; in subn_get_guidinfo()
629 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in subn_set_guidinfo() local
633 if (startgx == 0 && pidx < dd->num_pports) { in subn_set_guidinfo()
634 struct qib_pportdata *ppd = dd->pport + pidx; in subn_set_guidinfo()
Dqib.h1228 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in to_iport() local
1230 WARN_ON(pidx >= dd->num_pports); in to_iport()
1231 return &dd->pport[pidx].ibport_data; in to_iport()
/drivers/infiniband/hw/hfi1/
Dinit.c609 int pidx; in create_workqueues() local
612 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues()
613 ppd = dd->pport + pidx; in create_workqueues()
620 dd->unit, pidx); in create_workqueues()
627 pr_err("alloc_workqueue failed for port %d\n", pidx + 1); in create_workqueues()
628 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues()
629 ppd = dd->pport + pidx; in create_workqueues()
655 int ret = 0, pidx, lastfail = 0; in hfi1_init() local
692 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_init()
693 ppd = dd->pport + pidx; in hfi1_init()
[all …]
Ddriver.c188 int pidx, nunits_active = 0; in hfi1_count_active_units() local
194 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_count_active_units()
195 ppd = dd->pport + pidx; in hfi1_count_active_units()
216 int pidx; in hfi1_count_units() local
225 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_count_units()
226 ppd = dd->pport + pidx; in hfi1_count_units()
1266 int pidx; in hfi1_reset_device() local
1294 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_reset_device()
1295 ppd = dd->pport + pidx; in hfi1_reset_device()
Dqp.c692 int pidx; in qp_iter_next() local
694 pidx = n % dev->rdi.ibdev.phys_port_cnt; in qp_iter_next()
695 ppd = &dd_from_dev(dev)->pport[pidx]; in qp_iter_next()
941 int mtu, pidx = qp->port_num - 1; in get_pmtu_from_attr() local
952 if (mtu > dd->pport[pidx].ibmtu) in get_pmtu_from_attr()
953 return mtu_to_enum(dd->pport[pidx].ibmtu, IB_MTU_2048); in get_pmtu_from_attr()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h98 u8 pidx; /* index into adapter port[] */ member
128 unsigned int pidx; /* producer index */ member
235 unsigned int pidx; /* producer index */ member
489 static inline const char *port_name(struct adapter *adapter, int pidx) in port_name() argument
491 return adapter->port[pidx]->name; in port_name()
503 static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx, in t4_os_set_hw_addr() argument
506 memcpy(adapter->port[pidx]->dev_addr, hw_addr, ETH_ALEN); in t4_os_set_hw_addr()
527 static inline struct port_info *adap2pinfo(struct adapter *adapter, int pidx) in adap2pinfo() argument
529 return netdev_priv(adapter->port[pidx]); in adap2pinfo()
Dcxgb4vf_main.c145 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) in t4vf_os_link_changed() argument
147 struct net_device *dev = adapter->port[pidx]; in t4vf_os_link_changed()
218 void t4vf_os_portmod_changed(struct adapter *adapter, int pidx) in t4vf_os_portmod_changed() argument
223 const struct net_device *dev = adapter->port[pidx]; in t4vf_os_portmod_changed()
294 int pidx; in name_msix_vecs() local
306 for_each_port(adapter, pidx) { in name_msix_vecs()
307 struct net_device *dev = adapter->port[pidx]; in name_msix_vecs()
533 int err, pidx, msix; in setup_sge_queues() local
571 for_each_port(adapter, pidx) { in setup_sge_queues()
572 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues()
[all …]
Dsge.c611 __be64 *d = &fl->desc[fl->pidx]; in refill_fl()
612 struct rx_sw_desc *sdesc = &fl->sdesc[fl->pidx]; in refill_fl()
667 if (++fl->pidx == fl->size) { in refill_fl()
668 fl->pidx = 0; in refill_fl()
696 if (++fl->pidx == fl->size) { in refill_fl()
697 fl->pidx = 0; in refill_fl()
1001 unsigned int index = (tq->pidx in ring_tx_db()
1002 ? (tq->pidx - 1) in ring_tx_db()
1150 tq->pidx += n; in txq_advance()
1151 if (tq->pidx >= tq->size) in txq_advance()
[all …]
Dt4vf_hw.c351 int t4vf_port_init(struct adapter *adapter, int pidx) in t4vf_port_init() argument
353 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_port_init()
374 t4_os_set_hw_addr(adapter, pidx, vi_rpl.mac); in t4vf_port_init()
1552 int t4vf_get_port_stats(struct adapter *adapter, int pidx, in t4vf_get_port_stats() argument
1555 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_get_port_stats()
1689 int action, port_id, link_ok, speed, fc, pidx; in t4vf_handle_fw_rpl() local
1733 for_each_port(adapter, pidx) { in t4vf_handle_fw_rpl()
1734 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_handle_fw_rpl()
1745 t4vf_os_portmod_changed(adapter, pidx); in t4vf_handle_fw_rpl()
1758 t4vf_os_link_changed(adapter, pidx, link_ok); in t4vf_handle_fw_rpl()
/drivers/net/ethernet/chelsio/cxgb/
Dsge.c184 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/
Dsge.c502 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 …]
Dadapter.h109 unsigned int pidx; /* producer index */ member
173 unsigned int pidx; /* producer index */ member
/drivers/scsi/csiostor/
Dcsio_wr.c154 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 …]
Dcsio_wr.h276 __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/
Dt4.h52 __be16 pidx; member
304 u16 pidx; member
333 u16 pidx; member
369 if (++wq->rq.pidx == wq->rq.size) in t4_rq_produce()
370 wq->rq.pidx = 0; in t4_rq_produce()
417 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce()
418 wq->sq.pidx = 0; in t4_sq_produce()
468 __func__, wq->sq.pidx); in t4_ring_sq_db()
474 __func__, wq->sq.pidx); in t4_ring_sq_db()
495 __func__, wq->rq.pidx); in t4_ring_rq_db()
[all …]
Dqp.c839 swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; in c4iw_post_send()
912 swsqe->idx = qhp->wq.sq.pidx; in c4iw_post_send()
924 init_wr_hdr(wqe, qhp->wq.sq.pidx, fw_opcode, fw_flags, len16); in c4iw_post_send()
927 __func__, (unsigned long long)wr->wr_id, qhp->wq.sq.pidx, in c4iw_post_send()
986 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].wr_id = wr->wr_id; in c4iw_post_receive()
988 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].sge_ts = in c4iw_post_receive()
992 &qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].host_ts); in c4iw_post_receive()
997 wqe->recv.wrid = qhp->wq.rq.pidx; in c4iw_post_receive()
1003 (unsigned long long) wr->wr_id, qhp->wq.rq.pidx); in c4iw_post_receive()
/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c586 __be64 *d = &q->desc[q->pidx]; in refill_fl()
587 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
626 if (++q->pidx == q->size) { in refill_fl()
627 q->pidx = 0; in refill_fl()
655 if (++q->pidx == q->size) { in refill_fl()
656 q->pidx = 0; in refill_fl()
955 q->db_pidx = q->pidx; in ring_tx_db()
973 int index = (q->pidx in ring_tx_db()
974 ? (q->pidx - 1) in ring_tx_db()
1121 q->pidx += n; in txq_advance()
[all …]
Dt4_hw.h140 __be16 pidx; member
/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c133 unsigned int pidx = ttinfo->idx; in cxgbit_ddp_set_map() local
140 for (i = 0; i < npods; i += cnt, pidx += cnt) { in cxgbit_ddp_set_map()
146 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, in cxgbit_ddp_set_map()

12