/linux-6.1.9/include/linux/ |
D | ntb.h | 64 struct ntb_dev; 174 int (*probe)(struct ntb_client *client, struct ntb_dev *ntb); 175 void (*remove)(struct ntb_client *client, struct ntb_dev *ntb); 261 int (*port_number)(struct ntb_dev *ntb); 262 int (*peer_port_count)(struct ntb_dev *ntb); 263 int (*peer_port_number)(struct ntb_dev *ntb, int pidx); 264 int (*peer_port_idx)(struct ntb_dev *ntb, int port); 266 u64 (*link_is_up)(struct ntb_dev *ntb, 268 int (*link_enable)(struct ntb_dev *ntb, 270 int (*link_disable)(struct ntb_dev *ntb); [all …]
|
/linux-6.1.9/drivers/ntb/hw/intel/ |
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, 163 int intel_ntb_peer_mw_count(struct ntb_dev *ntb); 164 int intel_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int idx, 166 u64 intel_ntb_link_is_up(struct ntb_dev *ntb, enum ntb_speed *speed, 168 int intel_ntb_link_disable(struct ntb_dev *ntb); 169 u64 intel_ntb_db_valid_mask(struct ntb_dev *ntb); 170 int intel_ntb_db_vector_count(struct ntb_dev *ntb); 171 u64 intel_ntb_db_vector_mask(struct ntb_dev *ntb, int db_vector); 172 int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits); [all …]
|
D | ntb_hw_gen3.h | 107 int intel_ntb3_link_enable(struct ntb_dev *ntb, enum ntb_speed max_speed, 109 u64 intel_ntb3_db_read(struct ntb_dev *ntb); 110 int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits); 111 int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits); 112 int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr,
|
D | ntb_hw_gen1.c | 796 int intel_ntb_mw_count(struct ntb_dev *ntb, int pidx) in intel_ntb_mw_count() 804 int intel_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb_mw_get_align() 842 static int intel_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb_mw_set_trans() 943 u64 intel_ntb_link_is_up(struct ntb_dev *ntb, enum ntb_speed *speed, in intel_ntb_link_is_up() 965 static int intel_ntb_link_enable(struct ntb_dev *ntb, in intel_ntb_link_enable() 996 int intel_ntb_link_disable(struct ntb_dev *ntb) in intel_ntb_link_disable() 1020 int intel_ntb_peer_mw_count(struct ntb_dev *ntb) in intel_ntb_peer_mw_count() 1026 int intel_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int idx, in intel_ntb_peer_mw_get_addr() 1050 static int intel_ntb_db_is_unsafe(struct ntb_dev *ntb) in intel_ntb_db_is_unsafe() 1055 u64 intel_ntb_db_valid_mask(struct ntb_dev *ntb) in intel_ntb_db_valid_mask() [all …]
|
D | ntb_hw_gen3.c | 418 int intel_ntb3_link_enable(struct ntb_dev *ntb, enum ntb_speed max_speed, in intel_ntb3_link_enable() 443 static int intel_ntb3_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb3_mw_set_trans() 534 int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr, in intel_ntb3_peer_db_addr() 565 int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_peer_db_set() 583 u64 intel_ntb3_db_read(struct ntb_dev *ntb) in intel_ntb3_db_read() 592 int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_db_clear()
|
D | ntb_hw_gen4.c | 337 static int intel_ntb4_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb4_mw_set_trans() 431 static int intel_ntb4_link_enable(struct ntb_dev *ntb, in intel_ntb4_link_enable() 495 static int intel_ntb4_link_disable(struct ntb_dev *ntb) in intel_ntb4_link_disable() 524 static int intel_ntb4_mw_get_align(struct ntb_dev *ntb, int pidx, int idx, in intel_ntb4_mw_get_align()
|
D | ntb_hw_intel.h | 139 struct ntb_dev ntb;
|
/linux-6.1.9/drivers/ntb/ |
D | core.c | 101 int ntb_register_device(struct ntb_dev *ntb) in ntb_register_device() 127 void ntb_unregister_device(struct ntb_dev *ntb) in ntb_unregister_device() 134 int ntb_set_ctx(struct ntb_dev *ntb, void *ctx, in ntb_set_ctx() 155 void ntb_clear_ctx(struct ntb_dev *ntb) in ntb_clear_ctx() 168 void ntb_link_event(struct ntb_dev *ntb) in ntb_link_event() 181 void ntb_db_event(struct ntb_dev *ntb, int vector) in ntb_db_event() 194 void ntb_msg_event(struct ntb_dev *ntb) in ntb_msg_event() 207 int ntb_default_port_number(struct ntb_dev *ntb) in ntb_default_port_number() 222 int ntb_default_peer_port_count(struct ntb_dev *ntb) in ntb_default_peer_port_count() 228 int ntb_default_peer_port_number(struct ntb_dev *ntb, int pidx) in ntb_default_peer_port_number() [all …]
|
D | msi.c | 31 int ntb_msi_init(struct ntb_dev *ntb, in ntb_msi_init() 95 int ntb_msi_setup_mws(struct ntb_dev *ntb) in ntb_msi_setup_mws() 174 void ntb_msi_clear_mws(struct ntb_dev *ntb) in ntb_msi_clear_mws() 190 struct ntb_dev *ntb; 195 static int ntb_msi_set_desc(struct ntb_dev *ntb, struct msi_desc *entry, in ntb_msi_set_desc() 235 static int ntbm_msi_setup_callback(struct ntb_dev *ntb, struct msi_desc *entry, in ntbm_msi_setup_callback() 280 int ntbm_msi_request_threaded_irq(struct ntb_dev *ntb, irq_handler_t handler, in ntbm_msi_request_threaded_irq() 326 struct ntb_dev *ntb = dev_ntb(dev); in ntbm_msi_callback_match() 341 void ntbm_msi_free_irq(struct ntb_dev *ntb, unsigned int irq, void *dev_id) in ntbm_msi_free_irq() 367 int ntb_msi_peer_trigger(struct ntb_dev *ntb, int peer, in ntb_msi_peer_trigger() [all …]
|
D | ntb_transport.c | 133 struct ntb_dev *ndev; 226 struct ntb_dev *ndev; 618 struct ntb_dev *ndev = nt->ndev; in ntb_transport_setup_qp_mw() 1022 struct ntb_dev *ndev = nt->ndev; in ntb_transport_link_work() 1241 static int ntb_transport_probe(struct ntb_client *self, struct ntb_dev *ndev) in ntb_transport_probe() 1401 static void ntb_transport_free(struct ntb_client *self, struct ntb_dev *ndev) in ntb_transport_free() 1978 struct ntb_dev *ndev; in ntb_transport_create_queue()
|
/linux-6.1.9/drivers/ntb/hw/epf/ |
D | ntb_hw_epf.c | 61 struct ntb_dev ntb; 150 static int ntb_epf_mw_count(struct ntb_dev *ntb, int 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() 193 static u64 ntb_epf_link_is_up(struct ntb_dev *ntb, in ntb_epf_link_is_up() 205 static u32 ntb_epf_spad_read(struct ntb_dev *ntb, int idx) in ntb_epf_spad_read() 222 static int ntb_epf_spad_write(struct ntb_dev *ntb, in ntb_epf_spad_write() 241 static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) 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() 284 static int ntb_epf_link_enable(struct ntb_dev *ntb, in ntb_epf_link_enable() 301 static int ntb_epf_link_disable(struct ntb_dev *ntb) in ntb_epf_link_disable() [all …]
|
/linux-6.1.9/drivers/pci/endpoint/functions/ |
D | pci-epf-vntb.c | 119 struct ntb_dev ntb; 1023 static int vntb_epf_mw_count(struct ntb_dev *ntb, int pidx) in vntb_epf_mw_count() 1030 static int vntb_epf_spad_count(struct ntb_dev *ntb) in vntb_epf_spad_count() 1035 static int vntb_epf_peer_mw_count(struct ntb_dev *ntb) in vntb_epf_peer_mw_count() 1040 static u64 vntb_epf_db_valid_mask(struct ntb_dev *ntb) in vntb_epf_db_valid_mask() 1045 static int vntb_epf_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in vntb_epf_db_set_mask() 1050 static int vntb_epf_mw_set_trans(struct ntb_dev *ndev, int pidx, int idx, in vntb_epf_mw_set_trans() 1074 static int vntb_epf_mw_clear_trans(struct ntb_dev *ntb, int pidx, int idx) in vntb_epf_mw_clear_trans() 1079 static int vntb_epf_peer_mw_get_addr(struct ntb_dev *ndev, int idx, in vntb_epf_peer_mw_get_addr() 1094 static int vntb_epf_link_enable(struct ntb_dev *ntb, in vntb_epf_link_enable() [all …]
|
/linux-6.1.9/drivers/ntb/hw/mscc/ |
D | ntb_hw_switchtec.c | 46 struct ntb_dev ntb; 93 static struct switchtec_ntb *ntb_sndev(struct ntb_dev *ntb) in ntb_sndev() 166 static int switchtec_ntb_mw_count(struct ntb_dev *ntb, int pidx) 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() 270 static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx, in switchtec_ntb_mw_set_trans() 341 static int switchtec_ntb_peer_mw_count(struct ntb_dev *ntb) in switchtec_ntb_peer_mw_count() 402 static int switchtec_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int idx, in switchtec_ntb_peer_mw_get_addr() 559 static u64 switchtec_ntb_link_is_up(struct ntb_dev *ntb, in switchtec_ntb_link_is_up() 573 static int switchtec_ntb_link_enable(struct ntb_dev *ntb, in switchtec_ntb_link_enable() 589 static int switchtec_ntb_link_disable(struct ntb_dev *ntb) in switchtec_ntb_link_disable() [all …]
|
/linux-6.1.9/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() 92 static int amd_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int 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() 313 static u64 amd_ntb_link_is_up(struct ntb_dev *ntb, in amd_ntb_link_is_up() 341 static int amd_ntb_link_enable(struct ntb_dev *ntb, in amd_ntb_link_enable() 359 static int amd_ntb_link_disable(struct ntb_dev *ntb) in amd_ntb_link_disable() 375 static int amd_ntb_peer_mw_count(struct ntb_dev *ntb) in amd_ntb_peer_mw_count() 381 static int amd_ntb_peer_mw_get_addr(struct ntb_dev *ntb, int idx, in amd_ntb_peer_mw_get_addr() 400 static u64 amd_ntb_db_valid_mask(struct ntb_dev *ntb) in amd_ntb_db_valid_mask() 405 static int amd_ntb_db_vector_count(struct ntb_dev *ntb) in amd_ntb_db_vector_count() [all …]
|
D | ntb_hw_amd.h | 181 struct ntb_dev ntb;
|
/linux-6.1.9/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.c | 548 static int idt_ntb_port_number(struct ntb_dev *ntb) in idt_ntb_port_number() 563 static int idt_ntb_peer_port_count(struct ntb_dev *ntb) in idt_ntb_peer_port_count() 577 static int idt_ntb_peer_port_number(struct ntb_dev *ntb, int pidx) in idt_ntb_peer_port_number() 598 static int idt_ntb_peer_port_idx(struct ntb_dev *ntb, int port) in idt_ntb_peer_port_idx() 879 static u64 idt_ntb_link_is_up(struct ntb_dev *ntb, in idt_ntb_link_is_up() 920 static int idt_ntb_link_enable(struct ntb_dev *ntb, enum ntb_speed speed, in idt_ntb_link_enable() 941 static int idt_ntb_link_disable(struct ntb_dev *ntb) in idt_ntb_link_disable() 1170 static int idt_ntb_mw_count(struct ntb_dev *ntb, int pidx) in idt_ntb_mw_count() 1194 static int idt_ntb_mw_get_align(struct ntb_dev *ntb, int pidx, int widx, in idt_ntb_mw_get_align() 1232 static int idt_ntb_peer_mw_count(struct ntb_dev *ntb) in idt_ntb_peer_mw_count() [all …]
|
D | ntb_hw_idt.h | 1125 struct ntb_dev ntb;
|
/linux-6.1.9/drivers/ntb/test/ |
D | ntb_pingpong.c | 100 struct ntb_dev *ntb; 242 static int pp_check_ntb(struct ntb_dev *ntb) in pp_check_ntb() 276 static struct pp_ctx *pp_create_data(struct ntb_dev *ntb) in pp_create_data() 367 static int pp_probe(struct ntb_client *client, struct ntb_dev *ntb) in pp_probe() 395 static void pp_remove(struct ntb_client *client, struct ntb_dev *ntb) in pp_remove()
|
D | ntb_msi_test.c | 20 struct ntb_dev *ntb; 319 static int ntb_msit_probe(struct ntb_client *client, struct ntb_dev *ntb) in ntb_msit_probe() 388 static void ntb_msit_remove(struct ntb_client *client, struct ntb_dev *ntb) in ntb_msit_remove()
|
D | ntb_tool.c | 257 struct ntb_dev *ntb; 343 u64 (*fn_read)(struct ntb_dev *)) in tool_fn_read() argument 362 int (*fn_set)(struct ntb_dev *, u64), in tool_fn_write() argument 363 int (*fn_clear)(struct ntb_dev *, u64)) in tool_fn_write() argument 1443 static struct tool_ctx *tool_create_data(struct ntb_dev *ntb) in tool_create_data() 1612 static int tool_probe(struct ntb_client *self, struct ntb_dev *ntb) in tool_probe() 1654 static void tool_remove(struct ntb_client *self, struct ntb_dev *ntb) in tool_remove()
|
D | ntb_perf.c | 188 struct ntb_dev *ntb; 1390 static struct perf_ctx *perf_create_data(struct ntb_dev *ntb) in perf_create_data() 1484 static int perf_probe(struct ntb_client *client, struct ntb_dev *ntb) in perf_probe() 1512 static void perf_remove(struct ntb_client *client, struct ntb_dev *ntb) in perf_remove()
|
/linux-6.1.9/drivers/net/ |
D | ntb_netdev.c | 403 struct ntb_dev *ntb; in ntb_netdev_probe()
|