Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/ntb/test/
A Dntb_tool.c456 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers()
457 tc->peers[pidx].pidx = pidx; in tool_init_peers()
839 outmw->pidx = pidx; in tool_setup_peer_mw()
983 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_mws()
993 tc->peers[pidx].inmws[widx].pidx = pidx; in tool_init_mws()
1003 tc->peers[pidx].outmws[widx].pidx = pidx; in tool_init_mws()
1020 for (pidx = 0; pidx < tc->peer_cnt; pidx++) in tool_clear_mws()
1256 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_spads()
1266 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads()
1420 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_msgs()
[all …]
A Dntb_perf.c145 int pidx; member
318 for (*pidx = 0; *pidx < perf->pcnt; (*pidx)++) { in perf_spad_cmd_recv()
489 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_link_event()
755 for (pidx = 0; pidx < perf->pcnt; pidx++) in perf_disable_service()
758 for (pidx = 0; pidx < perf->pcnt; pidx++) in perf_disable_service()
761 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_disable_service()
1214 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_dbgfs_read_info()
1298 if (pidx < 0 || pidx >= perf->pcnt) in perf_dbgfs_write_run()
1445 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_init_peers()
1449 peer->pidx = pidx; in perf_init_peers()
[all …]
A Dntb_pingpong.c119 int pidx; in pp_find_next_peer() local
125 pidx = __ffs64(link & pp->nmask); in pp_find_next_peer()
127 pidx = __ffs64(link & pp->pmask); in pp_find_next_peer()
134 pp->out_pidx = pidx; in pp_find_next_peer()
191 int pidx = 0; in pp_pong() local
195 msg_data = ntb_msg_read(pp->ntb, &pidx, 0); in pp_pong()
295 int pidx, lport, pcnt; in pp_init_flds() local
300 for (pidx = 0; pidx < pcnt; pidx++) { in pp_init_flds()
301 if (lport < ntb_peer_port_number(pp->ntb, pidx)) in pp_init_flds()
306 pp->pmask = GENMASK_ULL(pidx, 0) >> 1; in pp_init_flds()
[all …]
A Dntb_msi_test.c34 int pidx; member
192 idx, peer->pidx); in ntb_msit_dbgfs_trigger()
194 return ntb_msi_peer_trigger(peer->nm->ntb, peer->pidx, in ntb_msit_dbgfs_trigger()
205 *port = ntb_peer_port_number(peer->nm->ntb, peer->pidx); in ntb_msit_dbgfs_port_get()
283 nm->peers[i].pidx = i; in ntb_msit_create_dbgfs()
/linux-6.3-rc2/include/linux/
A Dntb.h678 int pidx; in ntb_logical_port_number() local
683 for (pidx = 0; pidx < ntb_peer_port_count(ntb); pidx++) in ntb_logical_port_number()
685 return pidx; in ntb_logical_port_number()
687 return pidx; in ntb_logical_port_number()
708 return pidx; in ntb_peer_logical_port_number()
710 return pidx + 1; in ntb_peer_logical_port_number()
804 return ntb->ops->mw_count(ntb, pidx); in ntb_mw_count()
1541 return ntb->ops->msg_read(ntb, pidx, midx); in ntb_msg_read()
1601 if (pidx >= ntb_peer_port_count(ntb)) in ntb_peer_resource_idx()
1629 ret = ntb_peer_resource_idx(ntb, pidx); in ntb_peer_highest_mw_idx()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/qib/
A Dqib_init.c333 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in init_pioavailregs()
530 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state()
581 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
598 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
642 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
686 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
805 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_stop_timers()
836 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
851 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
870 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
[all …]
A Dqib_driver.c99 int pidx, nunits_active = 0; in qib_count_active_units() local
105 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_count_active_units()
106 ppd = dd->pport + pidx; in qib_count_active_units()
128 int pidx; in qib_count_units() local
136 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_count_units()
137 ppd = dd->pport + pidx; in qib_count_units()
745 int pidx; in qib_reset_device() local
773 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_reset_device()
774 ppd = dd->pport + pidx; in qib_reset_device()
A Dqib_iba7322.c1687 for (pidx = 0; pidx < dd->num_pports; ++pidx) in handle_7322_errors()
2032 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_7322_clear_freeze()
2054 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_7322_clear_freeze()
2149 for (; pidx < dd->num_pports; ++pidx, ppd++) { in qib_7322_handle_hwerrors()
2210 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_7322_init_hwerrors()
5094 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_get_7322_faststats()
5829 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in sendctrl_hook()
6037 for (pidx = 0; pidx < dd->num_pports; ++pidx) in set_no_qsfp_atten()
6106 for (pidx = 0; pidx < dd->num_pports; ++pidx) in set_no_qsfp_atten()
6268 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in write_7322_initregs()
[all …]
/linux-6.3-rc2/tools/testing/selftests/sched/
A Dcs_prctl_test.c93 int pidx; in __handle_error() local
97 for (pidx = 0; pidx < num_processes; ++pidx) in __handle_error()
98 kill(procs[pidx].cpid, 15); in __handle_error()
238 int pidx; in main() local
293 pidx = rand() % num_processes; in main()
294 pid = procs[pidx].cpid; in main()
297 validate(get_cs_cookie(0) == get_cs_cookie(procs[pidx].thr_tids[0])); in main()
319 procs[pidx].thr_tids[0], getpid()); in main()
325 validate(get_cs_cookie(0) == get_cs_cookie(procs[pidx].thr_tids[0])); in main()
349 for (pidx = 0; pidx < num_processes; ++pidx) in main()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Dinit.c743 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues()
774 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues()
797 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in destroy_workqueues()
866 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_init()
917 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_init()
943 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in hfi1_init()
986 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in stop_timers()
1015 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in shutdown_device()
1029 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in shutdown_device()
1054 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in shutdown_device()
[all …]
/linux-6.3-rc2/drivers/ntb/hw/idt/
A Dntb_hw_idt.c502 for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { in idt_scan_ports()
581 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_port_number()
646 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_init_link()
902 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_ntb_link_is_up()
1141 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_init_mws()
1174 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_mw_count()
1202 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_mw_get_align()
1294 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_mw_set_trans()
1362 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_mw_clear_trans()
2423 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_dbgfs_info_read()
[all …]
/linux-6.3-rc2/drivers/char/ipmi/
A Dipmi_plat_data.c15 unsigned int num_r = 1, size = 0, pidx = 0; in ipmi_platform_add() local
35 pr[pidx++] = PROPERTY_ENTRY_U8("ipmi-type", p->type); in ipmi_platform_add()
37 pr[pidx++] = PROPERTY_ENTRY_U16("i2c-addr", p->addr); in ipmi_platform_add()
41 pr[pidx++] = PROPERTY_ENTRY_U8("slave-addr", p->slave_addr); in ipmi_platform_add()
42 pr[pidx++] = PROPERTY_ENTRY_U8("addr-source", p->addr_source); in ipmi_platform_add()
44 pr[pidx++] = PROPERTY_ENTRY_U8("reg-shift", p->regshift); in ipmi_platform_add()
45 pr[pidx++] = PROPERTY_ENTRY_U8("reg-size", p->regsize); in ipmi_platform_add()
/linux-6.3-rc2/net/8021q/
A Dvlan.h53 unsigned int pidx, in __vlan_group_get_device() argument
58 array = vg->vlan_devices_arrays[pidx] in __vlan_group_get_device()
71 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_get_device() local
73 if (pidx < 0) in vlan_group_get_device()
76 return __vlan_group_get_device(vg, pidx, vlan_id); in vlan_group_get_device()
83 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_set_device() local
86 if (!vg || pidx < 0) in vlan_group_set_device()
88 array = vg->vlan_devices_arrays[pidx] in vlan_group_set_device()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4vf/
A Dadapter.h100 u8 pidx; /* index into adapter port[] */ member
130 unsigned int pidx; /* producer index */ member
237 unsigned int pidx; /* producer index */ member
494 static inline const char *port_name(struct adapter *adapter, int pidx) in port_name() argument
496 return adapter->port[pidx]->name; in port_name()
508 static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx, in t4_os_set_hw_addr() argument
511 eth_hw_addr_set(adapter->port[pidx], hw_addr); in t4_os_set_hw_addr()
532 static inline struct port_info *adap2pinfo(struct adapter *adapter, int pidx) in adap2pinfo() argument
534 return netdev_priv(adapter->port[pidx]); in adap2pinfo()
A Dcxgb4vf_main.c352 int pidx; in name_msix_vecs() local
591 int err, pidx, msix; in setup_sge_queues() local
701 int pidx; in setup_rss() local
2079 T("TxQ PIdx:", q.pidx); in sge_qinfo_show()
2092 R("FL PIdx:", fl.pidx); in sge_qinfo_show()
2882 pidx++; in cxgb4vf_get_port_mask()
2902 int err, pidx; in cxgb4vf_pci_probe() local
3060 pi->pidx = pidx; in cxgb4vf_pci_probe()
3107 pidx); in cxgb4vf_pci_probe()
3283 int pidx; in cxgb4vf_pci_remove() local
[all …]
/linux-6.3-rc2/drivers/clk/starfive/
A Dclk-starfive-jh7100-audio.c129 unsigned int pidx = jh7100_audclk_data[idx].parents[i]; in jh7100_audclk_probe() local
131 if (pidx < JH7100_AUDCLK_END) in jh7100_audclk_probe()
132 parents[i].hw = &priv->reg[pidx].hw; in jh7100_audclk_probe()
133 else if (pidx == JH7100_AUDCLK_AUDIO_SRC) in jh7100_audclk_probe()
135 else if (pidx == JH7100_AUDCLK_AUDIO_12288) in jh7100_audclk_probe()
137 else if (pidx == JH7100_AUDCLK_DOM7AHB_BUS) in jh7100_audclk_probe()
A Dclk-starfive-jh7100.c651 unsigned int pidx = jh7100_clk_data[idx].parents[i]; in clk_starfive_jh7100_probe() local
653 if (pidx < JH7100_CLK_PLL0_OUT) in clk_starfive_jh7100_probe()
654 parents[i].hw = &priv->reg[pidx].hw; in clk_starfive_jh7100_probe()
655 else if (pidx < JH7100_CLK_END) in clk_starfive_jh7100_probe()
656 parents[i].hw = priv->pll[pidx - JH7100_CLK_PLL0_OUT]; in clk_starfive_jh7100_probe()
657 else if (pidx == JH7100_CLK_OSC_SYS) in clk_starfive_jh7100_probe()
659 else if (pidx == JH7100_CLK_OSC_AUD) in clk_starfive_jh7100_probe()
661 else if (pidx == JH7100_CLK_GMAC_RMII_REF) in clk_starfive_jh7100_probe()
663 else if (pidx == JH7100_CLK_GMAC_GR_MII_RX) in clk_starfive_jh7100_probe()
/linux-6.3-rc2/drivers/ntb/hw/epf/
A Dntb_hw_epf.c150 static int ntb_epf_mw_count(struct ntb_dev *ntb, int pidx) in ntb_epf_mw_count() argument
155 if (pidx != NTB_DEF_PEER_IDX) { in ntb_epf_mw_count()
156 dev_err(dev, "Unsupported Peer ID %d\n", pidx); in ntb_epf_mw_count()
172 if (pidx != NTB_DEF_PEER_IDX) { in ntb_epf_mw_get_align()
173 dev_err(dev, "Unsupported Peer ID %d\n", pidx); in ntb_epf_mw_get_align()
247 if (pidx != NTB_DEF_PEER_IDX) { in ntb_epf_peer_spad_read()
248 dev_err(dev, "Unsupported Peer ID %d\n", pidx); in ntb_epf_peer_spad_read()
268 if (pidx != NTB_DEF_PEER_IDX) { in ntb_epf_peer_spad_write()
269 dev_err(dev, "Unsupported Peer ID %d\n", pidx); in ntb_epf_peer_spad_write()
411 if (pidx != NTB_DEF_PEER_IDX) { in ntb_epf_mw_set_trans()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb/
A Dsge.c853 q->pidx = 0; in refill_free_list()
1184 pidx = 0; in write_large_page_tx_descs()
1194 return pidx; in write_large_page_tx_descs()
1238 pidx = 0; in write_tx_descs()
1243 pidx = write_large_page_tx_descs(pidx, &e1, &ce, &gen, in write_tx_descs()
1261 pidx = 0; in write_tx_descs()
1272 pidx = write_large_page_tx_descs(pidx, &e1, &ce, &gen, in write_tx_descs()
1326 pidx = q->pidx; in restart_sched()
1708 pidx = q->pidx; in t1_sge_tx()
1746 pidx = q->pidx; in t1_sge_tx()
[all …]
/linux-6.3-rc2/drivers/ntb/hw/intel/
A Dntb_hw_gen1.h159 int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx);
160 int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx,
178 u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx);
179 int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx,
181 int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
/linux-6.3-rc2/drivers/infiniband/hw/cxgb4/
A Dt4.h53 __be16 pidx; member
347 u16 pidx; member
377 u16 pidx; member
414 u16 pidx; member
433 if (++srq->pidx == srq->size) in t4_srq_produce()
434 srq->pidx = 0; in t4_srq_produce()
498 if (++wq->rq.pidx == wq->rq.size) in t4_rq_produce()
499 wq->rq.pidx = 0; in t4_rq_produce()
541 wq->sq.pidx = 0; in t4_sq_produce()
589 __func__, srq->pidx, len16); in t4_ring_srq_db()
[all …]
/linux-6.3-rc2/net/sunrpc/
A Dsvc.c190 unsigned int pidx = 0; in svc_pool_map_init_percpu() local
200 m->to_pool[cpu] = pidx; in svc_pool_map_init_percpu()
201 m->pool_to[pidx] = cpu; in svc_pool_map_init_percpu()
202 pidx++; in svc_pool_map_init_percpu()
206 return pidx; in svc_pool_map_init_percpu()
218 unsigned int pidx = 0; in svc_pool_map_init_pernode() local
228 BUG_ON(pidx > maxpools); in svc_pool_map_init_pernode()
231 pidx++; in svc_pool_map_init_pernode()
235 return pidx; in svc_pool_map_init_pernode()
374 unsigned int pidx = 0; in svc_pool_for_cpu() local
[all …]
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb3/
A Dsge.c549 q->pidx = 0; in refill_fl()
593 q->pidx = 0; in recycle_rx_buf()
1142 pidx = 0; in write_wr_hdr_sgl()
1326 pidx = q->pidx; in t3_eth_xmit()
1327 q->pidx += ndesc; in t3_eth_xmit()
1509 q->pidx = 0; in ctrl_xmit()
1541 q->pidx = 0; in restart_ctrlq()
1726 pidx = q->pidx; in ofld_xmit()
1727 q->pidx += ndesc; in ofld_xmit()
1779 pidx = q->pidx; in restart_offloadq()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
A Dchcr_common.h89 q->pidx += n; in chcr_txq_advance()
90 if (q->pidx >= q->size) in chcr_txq_advance()
91 q->pidx -= q->size; in chcr_txq_advance()
/linux-6.3-rc2/drivers/scsi/csiostor/
A Dcsio_wr.c155 flq->pidx += n; in csio_wr_update_fl()
247 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q()
869 (q->pidx * CSIO_QCREDIT_SZ)); in csio_wr_get()
872 uint16_t pidx = q->pidx; in csio_wr_get() local
882 if (pidx > cidx) { in csio_wr_get()
884 } else if (cidx > pidx) { in csio_wr_get()
885 credits = cidx - pidx - 1; in csio_wr_get()
927 q->pidx = 0; in csio_wr_get()
1002 if (q->pidx > q->cidx) in csio_wr_avail_qcredits()
1003 return q->pidx - q->cidx; in csio_wr_avail_qcredits()
[all …]

Completed in 97 milliseconds

1234