/openbmc/linux/drivers/ntb/test/ |
H A D | ntb_tool.c | 449 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers() 450 tc->peers[pidx].pidx = pidx; in tool_init_peers() 832 outmw->pidx = pidx; in tool_setup_peer_mw() 976 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_mws() 986 tc->peers[pidx].inmws[widx].pidx = pidx; in tool_init_mws() 998 tc->peers[pidx].outmws[widx].pidx = pidx; in tool_init_mws() 1015 for (pidx = 0; pidx < tc->peer_cnt; pidx++) in tool_clear_mws() 1251 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_spads() 1261 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads() 1415 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_msgs() [all …]
|
H A D | ntb_perf.c | 145 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 …]
|
H A D | ntb_pingpong.c | 119 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 …]
|
/openbmc/linux/include/linux/ |
H A D | ntb.h | 678 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 …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_init.c | 333 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 …]
|
H A D | qib_driver.c | 99 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()
|
/openbmc/linux/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 93 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() 355 for (pidx = 0; pidx < num_processes; ++pidx) in main() [all …]
|
/openbmc/linux/drivers/clk/starfive/ |
H A D | clk-starfive-jh7110-aon.c | 101 unsigned int pidx = jh7110_aonclk_data[idx].parents[i]; in jh7110_aoncrg_probe() local 103 if (pidx < JH7110_AONCLK_END) in jh7110_aoncrg_probe() 104 parents[i].hw = &priv->reg[pidx].hw; in jh7110_aoncrg_probe() 105 else if (pidx == JH7110_AONCLK_OSC) in jh7110_aoncrg_probe() 107 else if (pidx == JH7110_AONCLK_GMAC0_RMII_REFIN) in jh7110_aoncrg_probe() 109 else if (pidx == JH7110_AONCLK_GMAC0_RGMII_RXIN) in jh7110_aoncrg_probe() 111 else if (pidx == JH7110_AONCLK_STG_AXIAHB) in jh7110_aoncrg_probe() 113 else if (pidx == JH7110_AONCLK_APB_BUS) in jh7110_aoncrg_probe() 115 else if (pidx == JH7110_AONCLK_GMAC0_GTXCLK) in jh7110_aoncrg_probe() 117 else if (pidx == JH7110_AONCLK_RTC_OSC) in jh7110_aoncrg_probe()
|
H A D | clk-starfive-jh7110-sys.c | 490 if (pidx < JH7110_SYSCLK_END) in jh7110_syscrg_probe() 491 parents[i].hw = &priv->reg[pidx].hw; in jh7110_syscrg_probe() 492 else if (pidx == JH7110_SYSCLK_OSC) in jh7110_syscrg_probe() 494 else if (pidx == JH7110_SYSCLK_GMAC1_RMII_REFIN) in jh7110_syscrg_probe() 496 else if (pidx == JH7110_SYSCLK_GMAC1_RGMII_RXIN) in jh7110_syscrg_probe() 498 else if (pidx == JH7110_SYSCLK_I2STX_BCLK_EXT) in jh7110_syscrg_probe() 500 else if (pidx == JH7110_SYSCLK_I2STX_LRCK_EXT) in jh7110_syscrg_probe() 502 else if (pidx == JH7110_SYSCLK_I2SRX_BCLK_EXT) in jh7110_syscrg_probe() 504 else if (pidx == JH7110_SYSCLK_I2SRX_LRCK_EXT) in jh7110_syscrg_probe() 506 else if (pidx == JH7110_SYSCLK_TDM_EXT) in jh7110_syscrg_probe() [all …]
|
H A D | clk-starfive-jh7100-audio.c | 128 unsigned int pidx = jh7100_audclk_data[idx].parents[i]; in jh7100_audclk_probe() local 130 if (pidx < JH7100_AUDCLK_END) in jh7100_audclk_probe() 131 parents[i].hw = &priv->reg[pidx].hw; in jh7100_audclk_probe() 132 else if (pidx == JH7100_AUDCLK_AUDIO_SRC) in jh7100_audclk_probe() 134 else if (pidx == JH7100_AUDCLK_AUDIO_12288) in jh7100_audclk_probe() 136 else if (pidx == JH7100_AUDCLK_DOM7AHB_BUS) in jh7100_audclk_probe()
|
H A D | clk-starfive-jh7110-stg.c | 131 unsigned int pidx = jh7110_stgclk_data[idx].parents[i]; in jh7110_stgcrg_probe() local 133 if (pidx < JH7110_STGCLK_END) in jh7110_stgcrg_probe() 134 parents[i].hw = &priv->reg[pidx].hw; in jh7110_stgcrg_probe() 135 else if (pidx < JH7110_STGCLK_EXT_END) in jh7110_stgcrg_probe() 136 parents[i].fw_name = fw_name[pidx - JH7110_STGCLK_END]; in jh7110_stgcrg_probe()
|
H A D | clk-starfive-jh7110-vout.c | 179 unsigned int pidx = jh7110_voutclk_data[idx].parents[i]; in jh7110_voutcrg_probe() local 181 if (pidx < JH7110_VOUTCLK_END) in jh7110_voutcrg_probe() 182 parents[i].hw = &priv->reg[pidx].hw; in jh7110_voutcrg_probe() 183 else if (pidx < JH7110_VOUTCLK_EXT_END) in jh7110_voutcrg_probe() 184 parents[i].fw_name = fw_name[pidx - JH7110_VOUTCLK_END]; in jh7110_voutcrg_probe()
|
H A D | clk-starfive-jh7100.c | 329 unsigned int pidx = jh7100_clk_data[idx].parents[i]; in clk_starfive_jh7100_probe() local 331 if (pidx < JH7100_CLK_PLL0_OUT) in clk_starfive_jh7100_probe() 332 parents[i].hw = &priv->reg[pidx].hw; in clk_starfive_jh7100_probe() 333 else if (pidx < JH7100_CLK_END) in clk_starfive_jh7100_probe() 334 parents[i].hw = priv->pll[pidx - JH7100_CLK_PLL0_OUT]; in clk_starfive_jh7100_probe() 335 else if (pidx == JH7100_CLK_OSC_SYS) in clk_starfive_jh7100_probe() 337 else if (pidx == JH7100_CLK_OSC_AUD) in clk_starfive_jh7100_probe() 339 else if (pidx == JH7100_CLK_GMAC_RMII_REF) in clk_starfive_jh7100_probe() 341 else if (pidx == JH7100_CLK_GMAC_GR_MII_RX) in clk_starfive_jh7100_probe()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | init.c | 743 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 …]
|
/openbmc/linux/drivers/ntb/hw/idt/ |
H A D | ntb_hw_idt.c | 502 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 …]
|
/openbmc/linux/drivers/char/ipmi/ |
H A D | ipmi_plat_data.c | 15 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()
|
/openbmc/linux/net/8021q/ |
H A D | vlan.h | 53 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()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | adapter.h | 100 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()
|
H A D | cxgb4vf_main.c | 352 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() 3282 int pidx; in cxgb4vf_pci_remove() local [all …]
|
/openbmc/u-boot/cmd/ |
H A D | mmc.c | 564 memset(&pconf->gp_part[pidx], 0, sizeof(pconf->gp_part[pidx])); in parse_hwpart_gp() 573 pconf->gp_part[pidx].enhanced = 1; in parse_hwpart_gp() 580 pconf->gp_part[pidx].wr_rel_set = 1; in parse_hwpart_gp() 582 pconf->gp_part[pidx].wr_rel_set = 0; in parse_hwpart_gp() 599 int i, r, pidx; in do_mmc_hwpartition() local 618 pidx = argv[i][2] - '1'; in do_mmc_hwpartition() 650 for (pidx = 0; pidx < 4; pidx++) { in do_mmc_hwpartition() 651 if (pconf.gp_part[pidx].size) { in do_mmc_hwpartition() 652 printf("\tGP%i Capacity: ", pidx+1); in do_mmc_hwpartition() 654 pconf.gp_part[pidx].enhanced ? in do_mmc_hwpartition() [all …]
|
/openbmc/linux/drivers/ntb/hw/epf/ |
H A D | ntb_hw_epf.c | 150 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 …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 853 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 …]
|
/openbmc/linux/drivers/ntb/hw/intel/ |
H A D | ntb_hw_gen1.h | 159 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,
|
/openbmc/linux/drivers/infiniband/hw/cxgb4/ |
H A D | t4.h | 53 __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 …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 544 q->pidx = 0; in refill_fl() 588 q->pidx = 0; in recycle_rx_buf() 1137 pidx = 0; in write_wr_hdr_sgl() 1321 pidx = q->pidx; in t3_eth_xmit() 1322 q->pidx += ndesc; in t3_eth_xmit() 1504 q->pidx = 0; in ctrl_xmit() 1536 q->pidx = 0; in restart_ctrlq() 1721 pidx = q->pidx; in ofld_xmit() 1722 q->pidx += ndesc; in ofld_xmit() 1774 pidx = q->pidx; in restart_offloadq() [all …]
|