/linux-4.19.296/drivers/ntb/test/ |
D | ntb_tool.c | 207 int pidx; member 226 int pidx; member 232 int pidx; member 238 int pidx; member 243 int pidx; member 437 ntb_peer_port_number(tc->ntb, peer->pidx)); in tool_peer_port_read() 448 int pidx; in tool_init_peers() local 456 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers() 457 tc->peers[pidx].pidx = pidx; in tool_init_peers() 458 tc->peers[pidx].tc = tc; in tool_init_peers() [all …]
|
D | ntb_perf.c | 145 int pidx; member 204 int (*cmd_recv)(struct perf_ctx *perf, int *pidx, enum perf_cmd *cmd, 253 return !!(link & BIT_ULL_MASK(peer->pidx)); in perf_link_is_up() 276 sts = ntb_peer_spad_read(perf->ntb, peer->pidx, in perf_spad_cmd_send() 283 ntb_peer_spad_write(perf->ntb, peer->pidx, in perf_spad_cmd_send() 286 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() 305 static int perf_spad_cmd_recv(struct perf_ctx *perf, int *pidx, in perf_spad_cmd_recv() argument 319 for (*pidx = 0; *pidx < perf->pcnt; (*pidx)++) { in perf_spad_cmd_recv() 320 peer = &perf->peers[*pidx]; in perf_spad_cmd_recv() [all …]
|
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-4.19.296/include/linux/ |
D | ntb.h | 261 int (*peer_port_number)(struct ntb_dev *ntb, int pidx); 270 int (*mw_count)(struct ntb_dev *ntb, int pidx); 271 int (*mw_get_align)(struct ntb_dev *ntb, int pidx, int widx, 275 int (*mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx, 277 int (*mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx); 281 int (*peer_mw_set_trans)(struct ntb_dev *ntb, int pidx, int widx, 283 int (*peer_mw_clear_trans)(struct ntb_dev *ntb, int pidx, int widx); 314 int (*peer_spad_addr)(struct ntb_dev *ntb, int pidx, int sidx, 316 u32 (*peer_spad_read)(struct ntb_dev *ntb, int pidx, int sidx); 317 int (*peer_spad_write)(struct ntb_dev *ntb, int pidx, int sidx, [all …]
|
/linux-4.19.296/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.c | 481 unsigned char pidx, port, part; in idt_scan_ports() local 501 for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { in idt_scan_ports() 502 port = ndev->swcfg->ports[pidx]; in idt_scan_ports() 576 static int idt_ntb_peer_port_number(struct ntb_dev *ntb, int pidx) in idt_ntb_peer_port_number() argument 580 if (pidx < 0 || ndev->peer_cnt <= pidx) in idt_ntb_peer_port_number() 584 return ndev->peers[pidx].port; in idt_ntb_peer_port_number() 637 unsigned char pidx; in idt_init_link() local 645 for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { in idt_init_link() 646 port_mask &= ~BIT(ndev->peers[pidx].port); in idt_init_link() 647 part_mask &= ~BIT(ndev->peers[pidx].part); in idt_init_link() [all …]
|
/linux-4.19.296/drivers/ntb/hw/intel/ |
D | ntb_hw_gen1.h | 154 int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx); 155 int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, 175 u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx); 176 int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, 178 int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
|
D | ntb_hw_gen1.c | 795 int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx) in intel_ntb_mw_count() argument 797 if (pidx != NTB_DEF_PEER_IDX) in intel_ntb_mw_count() 803 int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb_mw_get_align() argument 812 if (pidx != NTB_DEF_PEER_IDX) in intel_ntb_mw_get_align() 841 static int intel_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb_mw_set_trans() argument 851 if (pidx != NTB_DEF_PEER_IDX) in intel_ntb_mw_set_trans() 1164 int intel_ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx, in intel_ntb_peer_spad_addr() argument 1173 u32 intel_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) in intel_ntb_peer_spad_read() argument 1182 int intel_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, int sidx, in intel_ntb_peer_spad_write() argument
|
D | ntb_hw_gen3.c | 444 static int intel_ntb3_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb3_mw_set_trans() argument 454 if (pidx != NTB_DEF_PEER_IDX) in intel_ntb3_mw_set_trans()
|
/linux-4.19.296/drivers/char/ipmi/ |
D | ipmi_dmi.c | 43 unsigned int pidx = 0; in dmi_add_platform_ipmi() local 79 p[pidx++] = PROPERTY_ENTRY_U8("ipmi-type", si_type); in dmi_add_platform_ipmi() 81 p[pidx++] = PROPERTY_ENTRY_U8("slave-addr", slave_addr); in dmi_add_platform_ipmi() 82 p[pidx++] = PROPERTY_ENTRY_U8("addr-source", SI_SMBIOS); in dmi_add_platform_ipmi() 107 p[pidx++] = PROPERTY_ENTRY_U16("i2c-addr", base_addr); in dmi_add_platform_ipmi()
|
/linux-4.19.296/drivers/ntb/hw/mscc/ |
D | ntb_hw_switchtec.c | 202 static int switchtec_ntb_mw_count(struct ntb_dev *ntb, int pidx) in switchtec_ntb_mw_count() argument 208 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_mw_count() 227 static int switchtec_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, in switchtec_ntb_mw_get_align() argument 236 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_mw_get_align() 303 static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, in switchtec_ntb_mw_set_trans() argument 312 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_mw_set_trans() 316 widx, pidx, &addr, &size); in switchtec_ntb_mw_set_trans() 318 if (widx >= switchtec_ntb_mw_count(ntb, pidx)) in switchtec_ntb_mw_set_trans() 773 static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, in switchtec_ntb_peer_spad_read() argument 778 if (pidx != NTB_DEF_PEER_IDX) in switchtec_ntb_peer_spad_read() [all …]
|
/linux-4.19.296/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 84 static int amd_ntb_mw_count(struct ntb_dev *ntb, int pidx) in amd_ntb_mw_count() argument 86 if (pidx != NTB_DEF_PEER_IDX) in amd_ntb_mw_count() 92 static int amd_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, in amd_ntb_mw_get_align() argument 100 if (pidx != NTB_DEF_PEER_IDX) in amd_ntb_mw_get_align() 119 static int amd_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, in amd_ntb_mw_set_trans() argument 129 if (pidx != NTB_DEF_PEER_IDX) in amd_ntb_mw_set_trans() 435 static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) in amd_ntb_peer_spad_read() argument 448 static int amd_ntb_peer_spad_write(struct ntb_dev *ntb, int pidx, in amd_ntb_peer_spad_write() argument
|
/linux-4.19.296/drivers/ntb/ |
D | ntb.c | 228 int ntb_default_peer_port_number(struct ntb_dev *ntb, int pidx) in ntb_default_peer_port_number() argument 230 if (pidx != NTB_DEF_PEER_IDX) in ntb_default_peer_port_number()
|