/linux/drivers/ntb/test/ |
H A D | ntb_tool.c | 207 int pidx; member 226 int pidx; member 232 int pidx; member 238 int pidx; member 243 int pidx; member 430 ntb_peer_port_number(tc->ntb, peer->pidx)); in tool_peer_port_read() 441 int pidx; in tool_init_peers() local 449 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers() 450 tc->peers[pidx].pidx = pidx; in tool_init_peers() 451 tc->peers[pidx].tc = tc; in tool_init_peers() [all …]
|
H A D | ntb_perf.c | 145 int pidx; member 205 int (*cmd_recv)(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, 254 return !!(link & BIT_ULL_MASK(peer->pidx)); in perf_link_is_up() 277 sts = ntb_peer_spad_read(perf->ntb, peer->pidx, in perf_spad_cmd_send() 284 ntb_peer_spad_write(perf->ntb, peer->pidx, in perf_spad_cmd_send() 287 ntb_peer_spad_write(perf->ntb, peer->pidx, in perf_spad_cmd_send() 290 ntb_peer_spad_write(perf->ntb, peer->pidx, in perf_spad_cmd_send() 304 static int perf_spad_cmd_recv(struct perf_ctx *perf, int *pidx, in perf_spad_cmd_recv() argument 318 for (*pidx = 0; *pidx < perf->pcnt; (*pidx)++) { in perf_spad_cmd_recv() 319 peer = &perf->peers[*pidx]; in perf_spad_cmd_recv() [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() 131 out_db = BIT_ULL(ntb_peer_port_number(pp->ntb, pidx)); 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() 204 spad_data, msg_data, ntb_peer_port_number(pp->ntb, pidx)); in pp_pong() 295 int pidx, lport, pcnt; in pp_init_flds() local 300 for (pidx = 0; pidx < pcnt; pidx++) { in pp_init_flds() [all …]
|
/linux/include/linux/ |
H A D | ntb.h | 263 int (*peer_port_number)(struct ntb_dev *ntb, int pidx); 272 int (*mw_count)(struct ntb_dev *ntb, int pidx); 273 int (*mw_get_align)(struct ntb_dev *ntb, int pidx, int widx, 277 int (*mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx, 279 int (*mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx); 283 int (*peer_mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx, 285 int (*peer_mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx); 317 int (*peer_spad_addr)(struct ntb_dev *ntb, int pidx, int sidx, 319 u32 (*peer_spad_read)(struct ntb_dev *ntb, int pidx, int sidx); 320 int (*peer_spad_write)(struct ntb_dev *ntb, int pidx, int sidx, [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_init.c | 309 int ret, pidx; in init_pioavailregs() local 333 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in init_pioavailregs() 334 dd->pport[pidx].statusp = status_page; in init_pioavailregs() 518 int i, pidx; in init_piobuf_state() local 530 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state() 531 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); in init_piobuf_state() 578 int pidx; in qib_create_workqueues() local 581 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues() 582 ppd = dd->pport + pidx; in qib_create_workqueues() 586 dd->unit, pidx); in qib_create_workqueues() [all …]
|
/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() 306 validate(get_cs_cookie(pid) == get_cs_cookie(procs[pidx].thr_tids[0])); in main() 316 validate(get_cs_cookie(pid) != get_cs_cookie(procs[pidx].thr_tids[0])); in main() 319 procs[pidx].thr_tids[0], getpid()); in main() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | init.c | 740 int pidx; in create_workqueues() local 743 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues() 744 ppd = dd->pport + pidx; in create_workqueues() 752 dd->unit, pidx); in create_workqueues() 766 dd->unit, pidx); in create_workqueues() 773 pr_err("alloc_workqueue failed for port %d\n", pidx + 1); in create_workqueues() 774 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues() 775 ppd = dd->pport + pidx; in create_workqueues() 794 int pidx; in destroy_workqueues() local 797 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in destroy_workqueues() [all …]
|
/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 | 488 unsigned int pidx = jh7110_sysclk_data[idx].parents[i]; in jh7110_syscrg_probe() local 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() [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-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()
|
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()
|
/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()
|
/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()
|
/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 | 137 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) in t4vf_os_link_changed() argument 139 struct net_device *dev = adapter->port[pidx]; in t4vf_os_link_changed() 213 void t4vf_os_portmod_changed(struct adapter *adapter, int pidx) in t4vf_os_portmod_changed() argument 218 const struct net_device *dev = adapter->port[pidx]; in t4vf_os_portmod_changed() 352 int pidx; in name_msix_vecs() local 364 for_each_port(adapter, pidx) { in name_msix_vecs() 365 struct net_device *dev = adapter->port[pidx]; in name_msix_vecs() 591 int err, pidx, msix; in setup_sge_queues() local 629 for_each_port(adapter, pidx) { in setup_sge_queues() 630 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues() [all …]
|
/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() 163 static int ntb_epf_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, in ntb_epf_mw_get_align() argument 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() 241 static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) in ntb_epf_peer_spad_read() argument 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() 261 static int ntb_epf_peer_spad_write(struct ntb_dev *ntb, int pidx, in ntb_epf_peer_spad_write() argument [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 175 u16 pidx; /* producer index (SW) */ member 188 u16 pidx; /* producer index (SW) */ member 824 struct freelQ_ce *ce = &q->centries[q->pidx]; in refill_free_list() 825 struct freelQ_e *e = &q->entries[q->pidx]; in refill_free_list() 852 if (++q->pidx == q->size) { in refill_free_list() 853 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/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() 438 srq->queue[srq->size].status.host_pidx = srq->pidx; 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() 540 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce() [all …]
|
/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,
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 503 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl() 504 struct rx_desc *d = &q->desc[q->pidx]; in refill_fl() 543 if (++q->pidx == q->size) { in refill_fl() 544 q->pidx = 0; in refill_fl() 578 struct rx_desc *to = &q->desc[q->pidx]; in recycle_rx_buf() 580 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf() 587 if (++q->pidx == q->size) { in recycle_rx_buf() 588 q->pidx = 0; in recycle_rx_buf() 1088 struct tx_desc *d, unsigned int pidx, in write_wr_hdr_sgl() argument 1096 struct tx_sw_desc *sd = &q->sdesc[pidx]; in write_wr_hdr_sgl() [all …]
|
/linux/net/sunrpc/ |
H A D | svc.c | 234 unsigned int pidx = 0; in svc_pool_map_init_percpu() local 243 BUG_ON(pidx >= maxpools); in svc_pool_map_init_percpu() 244 m->to_pool[cpu] = pidx; in svc_pool_map_init_percpu() 245 m->pool_to[pidx] = cpu; in svc_pool_map_init_percpu() 246 pidx++; in svc_pool_map_init_percpu() 250 return pidx; in svc_pool_map_init_percpu() 262 unsigned int pidx = 0; in svc_pool_map_init_pernode() local 272 BUG_ON(pidx > maxpools); in svc_pool_map_init_pernode() 273 m->to_pool[node] = pidx; in svc_pool_map_init_pernode() 274 m->pool_to[pidx] = node; in svc_pool_map_init_pernode() [all …]
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_wr.c | 155 flq->pidx += n; in csio_wr_update_fl() 156 if (unlikely(flq->pidx >= flq->credits)) in csio_wr_update_fl() 157 flq->pidx -= (uint16_t)flq->credits; in csio_wr_update_fl() 247 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q() 304 flq->pidx = flq->inc_idx = flq->credits - 8; 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() 883 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get() 884 } else if (cidx > pidx) { in csio_wr_get() [all …]
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_common.h | 89 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()
|