| /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_msi_test.c | 34 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/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/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 | 739 int pidx; in create_workqueues() local 742 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues() 743 ppd = dd->pport + pidx; in create_workqueues() 751 dd->unit, pidx); in create_workqueues() 765 dd->unit, pidx); in create_workqueues() 772 pr_err("alloc_workqueue failed for port %d\n", pidx + 1); in create_workqueues() 773 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in create_workqueues() 774 ppd = dd->pport + pidx; in create_workqueues() 793 int pidx; in destroy_workqueues() local 796 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in destroy_workqueues() [all …]
|
| /linux/drivers/ntb/hw/idt/ |
| H A D | ntb_hw_idt.c | 482 unsigned char pidx, port, part; in idt_scan_ports() local 502 for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { in idt_scan_ports() 503 port = ndev->swcfg->ports[pidx]; in idt_scan_ports() 577 static int idt_ntb_peer_port_number(struct ntb_dev *ntb, int pidx) in idt_ntb_peer_port_number() argument 581 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_port_number() 585 return ndev->peers[pidx].port; in idt_ntb_peer_port_number() 638 unsigned char pidx; in idt_init_link() local 646 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_init_link() 647 port_mask &= ~BIT(ndev->peers[pidx].port); in idt_init_link() 648 part_mask &= ~BIT(ndev->peers[pidx].part); in idt_init_link() [all …]
|
| /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 | 54 unsigned int pidx, in __vlan_group_get_device() argument 59 array = vg->vlan_devices_arrays[pidx] in __vlan_group_get_device() 72 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_get_device() local 74 if (pidx < 0) in vlan_group_get_device() 77 return __vlan_group_get_device(vg, pidx, vlan_id); in vlan_group_get_device() 84 int pidx = vlan_proto_idx(vlan_proto); in vlan_group_set_device() local 87 if (!vg || pidx < 0) in vlan_group_set_device() 89 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/clk/starfive/ |
| H A D | clk-starfive-jh7110-sys.c | 478 unsigned int pidx = jh7110_sysclk_data[idx].parents[i]; in jh7110_syscrg_probe() local 480 if (pidx < JH7110_SYSCLK_END) in jh7110_syscrg_probe() 481 parents[i].hw = &priv->reg[pidx].hw; in jh7110_syscrg_probe() 482 else if (pidx == JH7110_SYSCLK_OSC) in jh7110_syscrg_probe() 484 else if (pidx == JH7110_SYSCLK_GMAC1_RMII_REFIN) in jh7110_syscrg_probe() 486 else if (pidx == JH7110_SYSCLK_GMAC1_RGMII_RXIN) in jh7110_syscrg_probe() 488 else if (pidx == JH7110_SYSCLK_I2STX_BCLK_EXT) in jh7110_syscrg_probe() 490 else if (pidx == JH7110_SYSCLK_I2STX_LRCK_EXT) in jh7110_syscrg_probe() 492 else if (pidx == JH7110_SYSCLK_I2SRX_BCLK_EXT) in jh7110_syscrg_probe() 494 else if (pidx == JH7110_SYSCLK_I2SRX_LRCK_EXT) in jh7110_syscrg_probe() [all …]
|
| 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()
|
| /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/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/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() 303 flq->pidx = flq->inc_idx = flq->credits - 8; in csio_wr_alloc_q() 868 (q->pidx * CSIO_QCREDIT_SZ)); in csio_wr_get() 871 uint16_t pidx = q->pidx; in csio_wr_get() local 881 if (pidx > cidx) { in csio_wr_get() 882 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get() 883 } 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()
|
| /linux/net/sched/ |
| H A D | sch_choke.c | 180 unsigned int *pidx) in choke_peek_random() argument 186 *pidx = (q->head + get_random_u32_below(choke_len(q))) & q->tab_mask; in choke_peek_random() 187 skb = q->tab[*pidx]; in choke_peek_random() 192 return q->tab[*pidx = q->head]; in choke_peek_random() 201 unsigned int *pidx) in choke_match_random() argument 208 oskb = choke_peek_random(q, pidx); in choke_match_random()
|
| /linux/drivers/dma/amd/qdma/ |
| H A D | qdma.c | 408 static inline int qdma_update_pidx(const struct qdma_queue *queue, u16 pidx) in qdma_update_pidx() argument 413 pidx | QDMA_QUEUE_ARM_BIT); in qdma_update_pidx() 594 queue->pidx = 0; in qdma_alloc_queue_resources() 617 queue->issued_vdesc->pidx, CHAN_STR(queue), queue->qid); in qdma_xfer_start() 619 ret = qdma_update_pidx(queue, queue->issued_vdesc->pidx); in qdma_xfer_start() 622 queue->pidx, CHAN_STR(queue), queue->qid); in qdma_xfer_start() 649 if (((q->pidx + 1) & q->idx_mask) == q->cidx) in qdma_get_desc() 652 desc = q->desc_base + q->pidx; in qdma_get_desc() 653 q->pidx = (q->pidx + 1) & q->idx_mask; in qdma_get_desc() 703 vdesc->pidx = q->pidx; in qdma_hw_enqueue()
|
| /linux/drivers/ntb/hw/mscc/ |
| H A D | ntb_hw_switchtec.c | 166 static int switchtec_ntb_mw_count(struct ntb_dev *ntb, int pidx) in switchtec_ntb_mw_count() argument 172 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_mw_count() 191 static int switchtec_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, in switchtec_ntb_mw_get_align() argument 200 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_mw_get_align() 270 static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, in switchtec_ntb_mw_set_trans() argument 279 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_mw_set_trans() 283 widx, pidx, &addr, &size); in switchtec_ntb_mw_set_trans() 285 if (widx >= switchtec_ntb_mw_count(ntb, pidx)) in switchtec_ntb_mw_set_trans() 759 static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, in switchtec_ntb_peer_spad_read() argument 764 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_peer_spad_read() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | sge.c | 542 __be64 *d = &q->desc[q->pidx]; in refill_fl() 543 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl() 582 if (++q->pidx == q->size) { in refill_fl() 583 q->pidx = 0; in refill_fl() 611 if (++q->pidx == q->size) { in refill_fl() 612 q->pidx = 0; in refill_fl() 1034 q->db_pidx = q->pidx; in cxgb4_ring_tx_db() 1052 int index = (q->pidx in cxgb4_ring_tx_db() 1053 ? (q->pidx - 1) in cxgb4_ring_tx_db() 1227 q->pidx += n; in txq_advance() [all …]
|