/linux-master/drivers/ntb/test/ |
H A D | ntb_tool.c | 207 int pidx; member in struct:tool_mw 226 int pidx; member in struct:tool_mw_wrap 232 int pidx; member in struct:tool_msg 238 int pidx; member in struct:tool_spad 243 int pidx; member in struct:tool_peer 430 ntb_peer_port_number(tc->ntb, peer->pidx)); 441 int pidx; local 449 for (pidx = 0; pidx < tc->peer_cnt; pidx 569 tool_setup_mw(struct tool_ctx *tc, int pidx, int widx, size_t req_size) argument 619 tool_free_mw(struct tool_ctx *tc, int pidx, int widx) argument 804 tool_setup_peer_mw(struct tool_ctx *tc, int pidx, int widx, u64 req_addr, size_t req_size) argument 960 int widx, pidx; local 1008 int widx, pidx; local 1235 int sidx, pidx; local 1281 int pidx; local 1399 int midx, pidx; local 1480 int pidx, widx, sidx, midx; local [all...] |
H A D | ntb_perf.c | 145 int pidx; member in struct:perf_peer 205 int (*cmd_recv)(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, 254 return !!(link & BIT_ULL_MASK(peer->pidx)); 277 sts = ntb_peer_spad_read(perf->ntb, peer->pidx, 284 ntb_peer_spad_write(perf->ntb, peer->pidx, 287 ntb_peer_spad_write(perf->ntb, peer->pidx, 290 ntb_peer_spad_write(perf->ntb, peer->pidx, 304 static int perf_spad_cmd_recv(struct perf_ctx *perf, int *pidx, argument 318 for (*pidx = 0; *pidx < per 393 perf_msg_cmd_recv(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, u64 *data) argument 459 int ret, pidx, cmd; local 487 int pidx; local 742 int pidx; local 1189 int ret, pidx; local 1292 int pidx, ret; local 1441 int pidx, lport, ret; local [all...] |
H A D | ntb_pingpong.c | 119 int pidx; local 125 pidx = __ffs64(link & pp->nmask); 127 pidx = __ffs64(link & pp->pmask); 131 out_db = BIT_ULL(ntb_peer_port_number(pp->ntb, pidx)); 134 pp->out_pidx = pidx; 191 int pidx = 0; local 195 msg_data = ntb_msg_read(pp->ntb, &pidx, 0); 204 spad_data, msg_data, ntb_peer_port_number(pp->ntb, pidx)); 295 int pidx, lport, pcnt; local 300 for (pidx [all...] |
/linux-master/drivers/char/ipmi/ |
H A D | ipmi_plat_data.c | 15 unsigned int num_r = 1, size = 0, pidx = 0; local 35 pr[pidx++] = PROPERTY_ENTRY_U8("ipmi-type", p->type); 37 pr[pidx++] = PROPERTY_ENTRY_U16("i2c-addr", p->addr); 41 pr[pidx++] = PROPERTY_ENTRY_U8("slave-addr", p->slave_addr); 42 pr[pidx++] = PROPERTY_ENTRY_U8("addr-source", p->addr_source); 44 pr[pidx++] = PROPERTY_ENTRY_U8("reg-shift", p->regshift); 45 pr[pidx++] = PROPERTY_ENTRY_U8("reg-size", p->regsize);
|
/linux-master/drivers/clk/starfive/ |
H A D | clk-starfive-jh7110-aon.c | 101 unsigned int pidx = jh7110_aonclk_data[idx].parents[i]; local 103 if (pidx < JH7110_AONCLK_END) 104 parents[i].hw = &priv->reg[pidx].hw; 105 else if (pidx == JH7110_AONCLK_OSC) 107 else if (pidx == JH7110_AONCLK_GMAC0_RMII_REFIN) 109 else if (pidx == JH7110_AONCLK_GMAC0_RGMII_RXIN) 111 else if (pidx == JH7110_AONCLK_STG_AXIAHB) 113 else if (pidx == JH7110_AONCLK_APB_BUS) 115 else if (pidx == JH7110_AONCLK_GMAC0_GTXCLK) 117 else if (pidx [all...] |
H A D | clk-starfive-jh7100-audio.c | 128 unsigned int pidx = jh7100_audclk_data[idx].parents[i]; local 130 if (pidx < JH7100_AUDCLK_END) 131 parents[i].hw = &priv->reg[pidx].hw; 132 else if (pidx == JH7100_AUDCLK_AUDIO_SRC) 134 else if (pidx == JH7100_AUDCLK_AUDIO_12288) 136 else if (pidx == JH7100_AUDCLK_DOM7AHB_BUS)
|
H A D | clk-starfive-jh7110-stg.c | 131 unsigned int pidx = jh7110_stgclk_data[idx].parents[i]; local 133 if (pidx < JH7110_STGCLK_END) 134 parents[i].hw = &priv->reg[pidx].hw; 135 else if (pidx < JH7110_STGCLK_EXT_END) 136 parents[i].fw_name = fw_name[pidx - JH7110_STGCLK_END];
|
H A D | clk-starfive-jh7110-sys.c | 459 unsigned int pidx = jh7110_sysclk_data[idx].parents[i]; local 461 if (pidx < JH7110_SYSCLK_END) 462 parents[i].hw = &priv->reg[pidx].hw; 463 else if (pidx == JH7110_SYSCLK_OSC) 465 else if (pidx == JH7110_SYSCLK_GMAC1_RMII_REFIN) 467 else if (pidx == JH7110_SYSCLK_GMAC1_RGMII_RXIN) 469 else if (pidx == JH7110_SYSCLK_I2STX_BCLK_EXT) 471 else if (pidx == JH7110_SYSCLK_I2STX_LRCK_EXT) 473 else if (pidx == JH7110_SYSCLK_I2SRX_BCLK_EXT) 475 else if (pidx [all...] |
H A D | clk-starfive-jh7100.c | 329 unsigned int pidx = jh7100_clk_data[idx].parents[i]; local 331 if (pidx < JH7100_CLK_PLL0_OUT) 332 parents[i].hw = &priv->reg[pidx].hw; 333 else if (pidx < JH7100_CLK_END) 334 parents[i].hw = priv->pll[pidx - JH7100_CLK_PLL0_OUT]; 335 else if (pidx == JH7100_CLK_OSC_SYS) 337 else if (pidx == JH7100_CLK_OSC_AUD) 339 else if (pidx == JH7100_CLK_GMAC_RMII_REF) 341 else if (pidx == JH7100_CLK_GMAC_GR_MII_RX)
|
H A D | clk-starfive-jh7110-vout.c | 179 unsigned int pidx = jh7110_voutclk_data[idx].parents[i]; local 181 if (pidx < JH7110_VOUTCLK_END) 182 parents[i].hw = &priv->reg[pidx].hw; 183 else if (pidx < JH7110_VOUTCLK_EXT_END) 184 parents[i].fw_name = fw_name[pidx - JH7110_VOUTCLK_END];
|
/linux-master/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 93 int pidx; local 97 for (pidx = 0; pidx < num_processes; ++pidx) 98 kill(procs[pidx].cpid, 15); 238 int pidx; local 293 pidx = rand() % num_processes; 294 pid = procs[pidx].cpid; 297 validate(get_cs_cookie(0) == get_cs_cookie(procs[pidx].thr_tids[0])); 306 validate(get_cs_cookie(pid) == get_cs_cookie(procs[pidx] [all...] |
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_init.c | 309 int ret, pidx; local 333 for (pidx = 0; pidx < dd->num_pports; ++pidx) { 334 dd->pport[pidx].statusp = status_page; 518 int i, pidx; local 530 for (pidx = 0; pidx < dd->num_pports; ++pidx) 531 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUS 578 int pidx; local 634 int ret = 0, pidx, lastfail = 0; local 799 int pidx; local 830 unsigned pidx; local 1132 u32 pidx; local 1293 int pidx; local 1395 int ret, j, pidx, initfail; local [all...] |
H A D | qib_driver.c | 93 int pidx, nunits_active = 0; local 99 for (pidx = 0; pidx < dd->num_pports; ++pidx) { 100 ppd = dd->pport + pidx; 122 int pidx; local 130 for (pidx = 0; pidx < dd->num_pports; ++pidx) { 131 ppd = dd->pport + pidx; 739 int pidx; local [all...] |
/linux-master/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, in 653 ntb_peer_port_number(struct ntb_dev *ntb, int pidx) argument 678 int pidx; local 705 ntb_peer_logical_port_number(struct ntb_dev *ntb, int pidx) argument 802 ntb_mw_count(struct ntb_dev *ntb, int pidx) argument 823 ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, resource_size_t *addr_align, resource_size_t *size_align, resource_size_t *size_max) argument 854 ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, dma_addr_t addr, resource_size_t size) argument 875 ntb_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) argument 936 ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, u64 addr, resource_size_t size) argument 960 ntb_peer_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) argument 1359 ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, phys_addr_t *spad_addr) argument 1378 ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) argument 1397 ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, u32 val) argument 1536 ntb_msg_read(struct ntb_dev *ntb, int *pidx, int midx) argument 1557 ntb_peer_msg_write(struct ntb_dev *ntb, int pidx, int midx, u32 msg) argument 1597 ntb_peer_resource_idx(struct ntb_dev *ntb, int pidx) argument 1625 ntb_peer_highest_mw_idx(struct ntb_dev *ntb, int pidx) argument [all...] |
/linux-master/net/8021q/ |
H A D | vlan.h | 53 unsigned int pidx, 58 array = vg->vlan_devices_arrays[pidx] 71 int pidx = vlan_proto_idx(vlan_proto); local 73 if (pidx < 0) 76 return __vlan_group_get_device(vg, pidx, vlan_id); 83 int pidx = vlan_proto_idx(vlan_proto); local 86 if (!vg || pidx < 0) 88 array = vg->vlan_devices_arrays[pidx] 52 __vlan_group_get_device(struct vlan_group *vg, unsigned int pidx, u16 vlan_id) argument
|
/linux-master/drivers/ntb/hw/idt/ |
H A D | ntb_hw_idt.c | 482 unsigned char pidx, port, part; local 502 for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { 503 port = ndev->swcfg->ports[pidx]; 573 * @pidx: Peer port index. 577 static int idt_ntb_peer_port_number(struct ntb_dev *ntb, int pidx) argument 581 if (pidx < 0 || ndev->peer_cnt <= pidx) 585 return ndev->peers[pidx] 638 unsigned char pidx; local 835 idt_ntb_peer_link_is_up(struct idt_ntb_dev *ndev, int pidx) argument 883 unsigned char pidx; local 1130 unsigned char pidx; local 1170 idt_ntb_mw_count(struct ntb_dev *ntb, int pidx) argument 1194 idt_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, resource_size_t *addr_align, resource_size_t *size_align, resource_size_t *size_max) argument 1287 idt_ntb_peer_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, u64 addr, resource_size_t size) argument 1356 idt_ntb_peer_mw_clear_trans(struct ntb_dev *ntb, int pidx, int widx) argument 1751 idt_ntb_msg_read(struct ntb_dev *ntb, int *pidx, int midx) argument 1787 idt_ntb_peer_msg_write(struct ntb_dev *ntb, int pidx, int midx, u32 msg) argument 2338 unsigned char idx, pidx, cnt; local [all...] |
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_common.h | 89 q->pidx += n; 90 if (q->pidx >= q->size) 91 q->pidx -= q->size;
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | adapter.h | 100 u8 pidx; /* index into adapter port[] */ member in struct:port_info 130 unsigned int pidx; /* producer index */ member in struct:sge_fl 237 unsigned int pidx; /* producer index */ member in struct:sge_txq 490 * @pidx: the port index 494 static inline const char *port_name(struct adapter *adapter, int pidx) argument 496 return adapter->port[pidx]->name; 502 * @pidx: the port index 508 static inline void t4_os_set_hw_addr(struct adapter *adapter, int pidx, argument 511 eth_hw_addr_set(adapter->port[pidx], hw_addr); 528 * @pidx 532 adap2pinfo(struct adapter *adapter, int pidx) argument [all...] |
H A D | cxgb4vf_main.c | 137 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) argument 139 struct net_device *dev = adapter->port[pidx]; 213 void t4vf_os_portmod_changed(struct adapter *adapter, int pidx) argument 218 const struct net_device *dev = adapter->port[pidx]; 352 int pidx; local 364 for_each_port(adapter, pidx) { 365 struct net_device *dev = adapter->port[pidx]; 591 int err, pidx, msix; local 629 for_each_port(adapter, pidx) { 630 struct net_device *dev = adapter->port[pidx]; 701 int pidx; local 2339 int pidx = (uintptr_t)v - 2; local 2671 int q10g, n10g, qidx, pidx, qs; local 2869 unsigned int naddr = 1, pidx = 0; local 2902 int err, pidx; local 3282 int pidx; local 3350 int pidx; local [all...] |
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | init.c | 740 int pidx; local 743 for (pidx = 0; pidx < dd->num_pports; ++pidx) { 744 ppd = dd->pport + pidx; 752 dd->unit, pidx); 766 dd->unit, pidx); 773 pr_err("alloc_workqueue failed for port %d\n", pidx + 1); 774 for (pidx = 0; pidx < d 794 int pidx; local 845 int ret = 0, pidx, lastfail = 0; local 984 int pidx; local 1008 unsigned pidx; local 1317 u32 pidx; local 1483 int pidx; local 1558 int ret = 0, j, pidx, initfail; local [all...] |
/linux-master/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-master/drivers/ntb/hw/epf/ |
H A D | ntb_hw_epf.c | 150 static int ntb_epf_mw_count(struct ntb_dev *ntb, int pidx) argument 155 if (pidx != NTB_DEF_PEER_IDX) { 156 dev_err(dev, "Unsupported Peer ID %d\n", pidx); 163 static int ntb_epf_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, argument 172 if (pidx != NTB_DEF_PEER_IDX) { 173 dev_err(dev, "Unsupported Peer ID %d\n", pidx); 241 static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) argument 247 if (pidx != NTB_DEF_PEER_IDX) { 248 dev_err(dev, "Unsupported Peer ID %d\n", pidx); 261 static int ntb_epf_peer_spad_write(struct ntb_dev *ntb, int pidx, argument 403 ntb_epf_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, dma_addr_t addr, resource_size_t size) argument 435 ntb_epf_mw_clear_trans(struct ntb_dev *ntb, int pidx, int idx) argument [all...] |
/linux-master/drivers/infiniband/hw/cxgb4/ |
H A D | t4.h | 53 __be16 pidx; member in struct:t4_status_page 347 u16 pidx; member in struct:t4_sq 377 u16 pidx; member in struct:t4_rq 414 u16 pidx; member in struct:t4_srq 433 if (++srq->pidx == srq->size) 434 srq->pidx = 0; 438 srq->queue[srq->size].status.host_pidx = srq->pidx; 498 if (++wq->rq.pidx == wq->rq.size) 499 wq->rq.pidx = 0; 540 if (++wq->sq.pidx [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 175 u16 pidx; /* producer index (SW) */ member in struct:cmdQ 188 u16 pidx; /* producer index (SW) */ member in struct:freelQ 824 struct freelQ_ce *ce = &q->centries[q->pidx]; 825 struct freelQ_e *e = &q->entries[q->pidx]; 852 if (++q->pidx == q->size) { 853 q->pidx = 0; 1006 struct freelQ_e *to = &fl->entries[fl->pidx]; 1008 fl->centries[fl->pidx] = fl->centries[idx]; 1016 if (++fl->pidx == fl->size) { 1017 fl->pidx 1160 write_large_page_tx_descs(unsigned int pidx, struct cmdQ_e **e, struct cmdQ_ce **ce, unsigned int *gen, dma_addr_t *desc_mapping, unsigned int *desc_len, unsigned int nfrags, struct cmdQ *q) argument 1201 write_tx_descs(struct adapter *adapter, struct sk_buff *skb, unsigned int pidx, unsigned int gen, struct cmdQ *q) argument 1321 unsigned int genbit, pidx, count; local 1702 unsigned int credits, pidx, genbit, count, use_sched_skb = 0; local [all...] |
/linux-master/net/sunrpc/ |
H A D | svc.c | 190 unsigned int pidx = 0; local 199 BUG_ON(pidx >= maxpools); 200 m->to_pool[cpu] = pidx; 201 m->pool_to[pidx] = cpu; 202 pidx++; 206 return pidx; 218 unsigned int pidx = 0; local 228 BUG_ON(pidx > maxpools); 229 m->to_pool[node] = pidx; 230 m->pool_to[pidx] 315 svc_pool_map_get_node(unsigned int pidx) argument 332 svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx) argument 374 unsigned int pidx = 0; local [all...] |