Home
last modified time | relevance | path

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

/linux-4.1.27/arch/cris/arch-v10/drivers/
Daxisflashmap.c273 int pidx = 0; in init_axis_flash() local
296 pidx++; /* First partition is always set to the default. */ in init_axis_flash()
344 && pidx < MAX_PARTITIONS) { in init_axis_flash()
346 axis_partitions[pidx].offset = offset + ptable->offset; in init_axis_flash()
347 axis_partitions[pidx].size = ptable->size; in init_axis_flash()
349 printk(pmsg, pidx, axis_partitions[pidx].offset, in init_axis_flash()
350 axis_partitions[pidx].size); in init_axis_flash()
351 pidx++; in init_axis_flash()
360 axis_partitions[pidx].name = "romfs"; in init_axis_flash()
361 axis_partitions[pidx].size = romfs_length; in init_axis_flash()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_init.c324 int ret, pidx; in init_pioavailregs() local
348 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in init_pioavailregs()
349 dd->pport[pidx].statusp = status_page; in init_pioavailregs()
541 int i, pidx; in init_piobuf_state() local
553 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state()
554 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); in init_piobuf_state()
601 int pidx; in qib_create_workqueues() local
604 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
605 ppd = dd->pport + pidx; in qib_create_workqueues()
610 dd->unit, pidx); in qib_create_workqueues()
[all …]
Dqib_driver.c101 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()
761 int pidx; in qib_reset_device() local
789 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_reset_device()
790 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))
1715 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()
1399 u32 pidx = ctxt % dd->num_pports; in choose_port_ctxt() local
1401 if (usable(dd->pport + pidx)) in choose_port_ctxt()
1402 ppd = dd->pport + pidx; in choose_port_ctxt()
1404 for (pidx = 0; pidx < dd->num_pports && !ppd; in choose_port_ctxt()
[all …]
Dqib_mad.c282 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()
Dqib.h1231 unsigned pidx = port - 1; /* IB number port from 1, hdw from 0 */ in to_iport() local
1233 WARN_ON(pidx >= dd->num_pports); in to_iport()
1234 return &dd->pport[pidx].ibport_data; in to_iport()
Dqib_qp.c645 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()
/linux-4.1.27/arch/cris/arch-v32/drivers/
Daxisflashmap.c308 int pidx = 0; in init_axis_flash() local
397 pidx++; in init_axis_flash()
486 && pidx < MAX_PARTITIONS - 1) { in init_axis_flash()
488 axis_partitions[pidx].offset = offset + ptable->offset; in init_axis_flash()
491 axis_partitions[pidx].size = in init_axis_flash()
500 axis_partitions[pidx].size = ptable->size; in init_axis_flash()
510 ram_rootfs_partition = pidx; in init_axis_flash()
512 pidx++; in init_axis_flash()
524 pidx = NUM_DEFAULT_PARTITIONS; in init_axis_flash()
534 axis_partitions[pidx].size = romfs_length; in init_axis_flash()
[all …]
/linux-4.1.27/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
469 static inline const char *port_name(struct adapter *adapter, int pidx) in port_name() argument
471 return adapter->port[pidx]->name; in port_name()
483 static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx, in t4_os_set_hw_addr() argument
486 memcpy(adapter->port[pidx]->dev_addr, hw_addr, ETH_ALEN); in t4_os_set_hw_addr()
507 static inline struct port_info *adap2pinfo(struct adapter *adapter, int pidx) in adap2pinfo() argument
509 return netdev_priv(adapter->port[pidx]); in adap2pinfo()
Dcxgb4vf_main.c144 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) in t4vf_os_link_changed() argument
146 struct net_device *dev = adapter->port[pidx]; in t4vf_os_link_changed()
217 void t4vf_os_portmod_changed(struct adapter *adapter, int pidx) in t4vf_os_portmod_changed() argument
222 const struct net_device *dev = adapter->port[pidx]; in t4vf_os_portmod_changed()
293 int pidx; in name_msix_vecs() local
305 for_each_port(adapter, pidx) { in name_msix_vecs()
306 struct net_device *dev = adapter->port[pidx]; in name_msix_vecs()
532 int err, pidx, msix; in setup_sge_queues() local
570 for_each_port(adapter, pidx) { in setup_sge_queues()
571 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues()
[all …]
Dsge.c613 __be64 *d = &fl->desc[fl->pidx]; in refill_fl()
614 struct rx_sw_desc *sdesc = &fl->sdesc[fl->pidx]; in refill_fl()
669 if (++fl->pidx == fl->size) { in refill_fl()
670 fl->pidx = 0; in refill_fl()
698 if (++fl->pidx == fl->size) { in refill_fl()
699 fl->pidx = 0; in refill_fl()
1003 unsigned int index = (tq->pidx in ring_tx_db()
1004 ? (tq->pidx - 1) in ring_tx_db()
1147 tq->pidx += n; in txq_advance()
1148 if (tq->pidx >= tq->size) in txq_advance()
[all …]
Dt4vf_hw.c282 int t4vf_port_init(struct adapter *adapter, int pidx) in t4vf_port_init() argument
284 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_port_init()
305 t4_os_set_hw_addr(adapter, pidx, vi_rpl.mac); in t4vf_port_init()
1356 int t4vf_get_port_stats(struct adapter *adapter, int pidx, in t4vf_get_port_stats() argument
1359 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_get_port_stats()
1493 int action, port_id, link_ok, speed, fc, pidx; in t4vf_handle_fw_rpl() local
1533 for_each_port(adapter, pidx) { in t4vf_handle_fw_rpl()
1534 struct port_info *pi = adap2pinfo(adapter, pidx); in t4vf_handle_fw_rpl()
1545 t4vf_os_portmod_changed(adapter, pidx); in t4vf_handle_fw_rpl()
1556 t4vf_os_link_changed(adapter, pidx, link_ok); in t4vf_handle_fw_rpl()
/linux-4.1.27/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 …]
/linux-4.1.27/net/sunrpc/
Dsvc.c185 unsigned int pidx = 0; in svc_pool_map_init_percpu() local
194 BUG_ON(pidx >= maxpools); in svc_pool_map_init_percpu()
195 m->to_pool[cpu] = pidx; in svc_pool_map_init_percpu()
196 m->pool_to[pidx] = cpu; in svc_pool_map_init_percpu()
197 pidx++; in svc_pool_map_init_percpu()
201 return pidx; in svc_pool_map_init_percpu()
213 unsigned int pidx = 0; in svc_pool_map_init_pernode() local
223 BUG_ON(pidx > maxpools); in svc_pool_map_init_pernode()
224 m->to_pool[node] = pidx; in svc_pool_map_init_pernode()
225 m->pool_to[pidx] = node; in svc_pool_map_init_pernode()
[all …]
Dsvc_xprt.c1300 unsigned int pidx = (unsigned int)*pos; in svc_pool_stats_start() local
1303 dprintk("svc_pool_stats_start, *pidx=%u\n", pidx); in svc_pool_stats_start()
1305 if (!pidx) in svc_pool_stats_start()
1307 return (pidx > serv->sv_nrpools ? NULL : &serv->sv_pools[pidx-1]); in svc_pool_stats_start()
1320 unsigned int pidx = (pool - &serv->sv_pools[0]); in svc_pool_stats_next() local
1321 if (pidx < serv->sv_nrpools-1) in svc_pool_stats_next()
1322 pool = &serv->sv_pools[pidx+1]; in svc_pool_stats_next()
/linux-4.1.27/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
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dt4.h51 __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 …]
Dqp.c763 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()
Dcq.c251 while (idx != wq->sq.pidx) { in c4iw_flush_sq()
280 while (cidx != wq->sq.pidx) { in flush_completed_wrs()
325 while (rptr != wq->sq.pidx) { in advance_oldest_read()
/linux-4.1.27/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)
/linux-4.1.27/net/sched/
Dsch_choke.c235 unsigned int *pidx) in choke_peek_random() argument
241 *pidx = (q->head + prandom_u32_max(choke_len(q))) & q->tab_mask; in choke_peek_random()
242 skb = q->tab[*pidx]; in choke_peek_random()
247 return q->tab[*pidx = q->head]; in choke_peek_random()
256 unsigned int *pidx) in choke_match_random() argument
263 oskb = choke_peek_random(q, pidx); in choke_match_random()
/linux-4.1.27/net/8021q/
Dvlan.h52 unsigned int pidx, in __vlan_group_get_device() argument
57 array = vg->vlan_devices_arrays[pidx] in __vlan_group_get_device()
Dvlan.c58 unsigned int pidx, vidx; in vlan_group_prealloc_vid() local
63 pidx = vlan_proto_idx(vlan_proto); in vlan_group_prealloc_vid()
65 array = vg->vlan_devices_arrays[pidx][vidx]; in vlan_group_prealloc_vid()
74 vg->vlan_devices_arrays[pidx][vidx] = array; in vlan_group_prealloc_vid()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c593 __be64 *d = &q->desc[q->pidx]; in refill_fl()
594 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
627 if (++q->pidx == q->size) { in refill_fl()
628 q->pidx = 0; in refill_fl()
655 if (++q->pidx == q->size) { in refill_fl()
656 q->pidx = 0; in refill_fl()
951 q->db_pidx = q->pidx; in ring_tx_db()
969 int index = (q->pidx in ring_tx_db()
970 ? (q->pidx - 1) in ring_tx_db()
1087 q->pidx += n; in txq_advance()
[all …]
Dt4_hw.h140 __be16 pidx; member
Dcxgb4_debugfs.c1666 int pidx; in ethqset2pinfo() local
1668 for_each_port(adap, pidx) { in ethqset2pinfo()
1669 struct port_info *pi = adap2pinfo(adap, pidx); in ethqset2pinfo()
1723 T("TxQ PIDX:", q.pidx); in sge_qinfo_show()
1745 R("FL PIDX:", fl.pidx); in sge_qinfo_show()
1757 T("TxQ PIDX:", q.pidx); in sge_qinfo_show()
1770 R("FL PIDX:", fl.pidx); in sge_qinfo_show()
1792 R("FL PIDX:", fl.pidx); in sge_qinfo_show()
1818 T("TxQ PIDX:", q.pidx); in sge_qinfo_show()
Dcxgb4_uld.h298 int cxgb4_sync_txq_pidx(struct net_device *dev, u16 qid, u16 pidx, u16 size);
Dcxgb4.h453 unsigned int pidx; /* producer index */ member
557 unsigned int pidx; /* producer index */ member
Dcxgb4_main.c1994 static int read_eq_indices(struct adapter *adap, u16 qid, u16 *pidx, u16 *cidx) in read_eq_indices() argument
2007 *pidx = (be64_to_cpu(indices) >> 9) & 0xffff; in read_eq_indices()
2012 int cxgb4_sync_txq_pidx(struct net_device *dev, u16 qid, u16 pidx, in cxgb4_sync_txq_pidx() argument
2023 if (pidx != hw_pidx) { in cxgb4_sync_txq_pidx()
2027 if (pidx >= hw_pidx) in cxgb4_sync_txq_pidx()
2028 delta = pidx - hw_pidx; in cxgb4_sync_txq_pidx()
2030 delta = size - hw_pidx + pidx; in cxgb4_sync_txq_pidx()
Dt4_msg.h952 __be16 pidx; member
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpcd.c551 int i, pidx; in ptlrpcd_bind() local
556 for (pidx = 0, i = 0; i < index; i++) { in ptlrpcd_bind()
559 pc->pc_partners[pidx++] = ppc; in ptlrpcd_bind()
566 pc->pc_npartners = pidx; in ptlrpcd_bind()
/linux-4.1.27/kernel/
Drelay.c1218 unsigned int pidx, poff, total_len, subbuf_pages, nr_pages; in subbuf_splice_actor() local
1252 pidx = (read_start / PAGE_SIZE) % subbuf_pages; in subbuf_splice_actor()
1266 spd.pages[spd.nr_pages] = rbuf->page_array[pidx]; in subbuf_splice_actor()
1280 pidx = (pidx + 1) % subbuf_pages; in subbuf_splice_actor()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_file_ops.c613 int i, any = 0, pidx = -1; in ipath_set_part_key() local
647 if (!pd->port_pkeys[i] && pidx == -1) in ipath_set_part_key()
648 pidx = i; in ipath_set_part_key()
657 if (pidx == -1) { in ipath_set_part_key()
672 pd->port_pkeys[pidx] = key; in ipath_set_part_key()
713 pd->port_pkeys[pidx] = dd->ipath_pkeys[i] = key; in ipath_set_part_key()
721 pd->port_port, key, i, pidx, in ipath_set_part_key()
Dipath_driver.c2251 int pidx; in ipath_run_led_override() local
2257 pidx = dd->ipath_led_override_phase++ & 1; in ipath_run_led_override()
2258 dd->ipath_led_override = dd->ipath_led_override_vals[pidx]; in ipath_run_led_override()
/linux-4.1.27/drivers/scsi/be2iscsi/
Dbe_cmds.h251 u8 pidx[13]; /* dword 1 */ member
515 u8 pidx[11]; /* dword 1 */ member
Dbe_main.h1004 u32 pidx; /* producer index -- not used by most rings */ member
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h308 u8 pidx[13]; /* dword 1*/ member
400 u8 pidx[11]; /* dword 1*/ member
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c889 int vidx, pidx; in mlx4_MAD_IFC_wrapper() local
923 pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; in mlx4_MAD_IFC_wrapper()
924 outtab[vidx % 32] = cpu_to_be16(table[pidx]); in mlx4_MAD_IFC_wrapper()