/freebsd-10-stable/sys/dev/ntb/ |
H A D | ntb.h | 37 int ntb_register_device(device_t ntb); 38 int ntb_unregister_device(device_t ntb); 42 * @ntb: NTB device context 47 void ntb_link_event(device_t ntb); 51 * @ntb: NTB device context 62 void ntb_db_event(device_t ntb, uint32_t vec); 65 * ntb_link_is_up() - get the current ntb link state 66 * @ntb: NTB device context 72 bool ntb_link_is_up(device_t ntb, enum ntb_speed *speed, enum ntb_width *width); 75 * ntb_link_enable() - enable the link on the secondary side of the ntb [all...] |
H A D | ntb.c | 40 #include "ntb.h" 43 SYSCTL_NODE(_hw, OID_AUTO, ntb, CTLFLAG_RW, 0, "NTB sysctls"); 108 rm_init(&nc->ctx_lock, "ntb ctx"); 197 ntb_link_is_up(device_t ntb, enum ntb_speed *speed, enum ntb_width *width) argument 200 return (NTB_LINK_IS_UP(device_get_parent(ntb), speed, width)); 204 ntb_link_enable(device_t ntb, enum ntb_speed speed, enum ntb_width width) argument 206 struct ntb_child *nc = device_get_ivars(ntb); 217 return (NTB_LINK_ENABLE(device_get_parent(ntb), speed, width)); 221 ntb_link_disable(device_t ntb) argument 223 struct ntb_child *nc = device_get_ivars(ntb); 238 ntb_link_enabled(device_t ntb) argument 246 ntb_set_ctx(device_t ntb, void *ctx, const struct ntb_ctx_ops *ctx_ops) argument 266 ntb_get_ctx(device_t ntb, const struct ntb_ctx_ops **ctx_ops) argument 277 ntb_clear_ctx(device_t ntb) argument 288 ntb_mw_count(device_t ntb) argument 296 ntb_mw_get_range(device_t ntb, unsigned mw_idx, vm_paddr_t *base, caddr_t *vbase, size_t *size, size_t *align, size_t *align_size, bus_addr_t *plimit) argument 307 ntb_mw_set_trans(device_t ntb, unsigned mw_idx, bus_addr_t addr, size_t size) argument 316 ntb_mw_clear_trans(device_t ntb, unsigned mw_idx) argument 324 ntb_mw_get_wc(device_t ntb, unsigned mw_idx, vm_memattr_t *mode) argument 332 ntb_mw_set_wc(device_t ntb, unsigned mw_idx, vm_memattr_t mode) argument 340 ntb_spad_count(device_t ntb) argument 348 ntb_spad_clear(device_t ntb) argument 358 ntb_spad_write(device_t ntb, unsigned int idx, uint32_t val) argument 366 ntb_spad_read(device_t ntb, unsigned int idx, uint32_t *val) argument 374 ntb_peer_spad_write(device_t ntb, unsigned int idx, uint32_t val) argument 383 ntb_peer_spad_read(device_t ntb, unsigned int idx, uint32_t *val) argument 392 ntb_db_valid_mask(device_t ntb) argument 400 ntb_db_vector_count(device_t ntb) argument 407 ntb_db_vector_mask(device_t ntb, uint32_t vector) argument 416 ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size) argument 423 ntb_db_clear(device_t ntb, uint64_t bits) argument 431 ntb_db_clear_mask(device_t ntb, uint64_t bits) argument 439 ntb_db_read(device_t ntb) argument 448 ntb_db_set_mask(device_t ntb, uint64_t bits) argument 456 ntb_peer_db_set(device_t ntb, uint64_t bits) argument [all...] |
H A D | ntb_transport.c | 63 #include "ntb.h" 296 MALLOC_DEFINE(M_NTB_T, "ntb_transport", "ntb transport driver"); 558 mtx_init(&qp->ntb_rx_q_lock, "ntb rx q", NULL, MTX_SPIN); 559 mtx_init(&qp->ntb_tx_free_q_lock, "ntb tx free q", NULL, MTX_SPIN); 560 mtx_init(&qp->tx_lock, "ntb transport tx", NULL, MTX_DEF); 1413 printf("ntb: Failed to send link down\n"); 1520 MODULE_DEPEND(ntb_transport, ntb, 1, 1, 1);
|
/freebsd-10-stable/sys/modules/ntb/ |
H A D | Makefile | 3 SUBDIR= ntb ntb_hw ntb_transport if_ntb
|
/freebsd-10-stable/sys/modules/ntb/ntb/ |
H A D | Makefile | 3 .PATH: ${.CURDIR}/../../../dev/ntb 5 KMOD = ntb 6 SRCS = ntb.c ntb_if.c 9 MFILES= kern/bus_if.m kern/device_if.m dev/ntb/ntb_if.m
|
/freebsd-10-stable/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw.c | 40 __FBSDID("$FreeBSD: stable/10/sys/dev/ntb/ntb_hw/ntb_hw.c 314667 2017-03-04 13:03:31Z avg $"); 66 #include "../ntb.h" 124 #define HAS_FEATURE(ntb, feature) \ 125 (((ntb)->features & (feature)) != 0) 157 struct ntb_softc *ntb; member in struct:ntb_vec 204 /* ntb.c context. Do not move! Must go first! */ 288 bus_space_read_ ## SIZE (ntb->bar_info[(bar)].pci_bus_tag, \ 289 ntb->bar_info[(bar)].pci_bus_handle, (offset)) 291 bus_space_write_ ## SIZE (ntb->bar_info[(bar)].pci_bus_tag, \ 292 ntb 651 struct ntb_softc *ntb; local 709 struct ntb_softc *ntb; local 740 intel_ntb_mw_to_bar(struct ntb_softc *ntb, unsigned mw) argument 751 bar_is_64bit(struct ntb_softc *ntb, enum ntb_bar bar) argument 759 bar_get_xlat_params(struct ntb_softc *ntb, enum ntb_bar bar, uint32_t *base, uint32_t *xlat, uint32_t *lmt) argument 796 intel_ntb_map_pci_bars(struct ntb_softc *ntb) argument 838 print_map_success(struct ntb_softc *ntb, struct ntb_pci_bar_info *bar, const char *kind) argument 851 map_mmr_bar(struct ntb_softc *ntb, struct ntb_pci_bar_info *bar) argument 866 map_memory_window_bar(struct ntb_softc *ntb, struct ntb_pci_bar_info *bar) argument 949 intel_ntb_unmap_pci_bar(struct ntb_softc *ntb) argument 964 intel_ntb_setup_msix(struct ntb_softc *ntb, uint32_t num_vectors) argument 1039 intel_ntb_init_isr(struct ntb_softc *ntb) argument 1109 intel_ntb_setup_legacy_interrupt(struct ntb_softc *ntb) argument 1136 intel_ntb_teardown_interrupts(struct ntb_softc *ntb) argument 1161 db_ioread(struct ntb_softc *ntb, uint64_t regoff) argument 1173 db_iowrite(struct ntb_softc *ntb, uint64_t regoff, uint64_t val) argument 1187 db_iowrite_raw(struct ntb_softc *ntb, uint64_t regoff, uint64_t val) argument 1202 struct ntb_softc *ntb = device_get_softc(dev); local 1214 struct ntb_softc *ntb = device_get_softc(dev); local 1241 struct ntb_softc *ntb = device_get_softc(dev); local 1252 struct ntb_softc *ntb = device_get_softc(dev); local 1270 intel_ntb_vec_mask(struct ntb_softc *ntb, uint64_t db_vector) argument 1293 intel_ntb_interrupt(struct ntb_softc *ntb, uint32_t vec) argument 1341 intel_ntb_create_msix_vec(struct ntb_softc *ntb, uint32_t num_vectors) argument 1356 intel_ntb_free_msix_vec(struct ntb_softc *ntb) argument 1367 intel_ntb_get_msix_info(struct ntb_softc *ntb) argument 1412 intel_ntb_teardown_xeon(struct ntb_softc *ntb) argument 1420 intel_ntb_detect_max_mw(struct ntb_softc *ntb) argument 1435 intel_ntb_detect_xeon(struct ntb_softc *ntb) argument 1483 intel_ntb_detect_atom(struct ntb_softc *ntb) argument 1508 intel_ntb_xeon_init_dev(struct ntb_softc *ntb) argument 1592 intel_ntb_atom_init_dev(struct ntb_softc *ntb) argument 1636 configure_atom_secondary_side_bars(struct ntb_softc *ntb) argument 1673 xeon_reset_sbar_size(struct ntb_softc *ntb, enum ntb_bar idx, enum ntb_bar regbar) argument 1696 xeon_set_sbar_base_and_limit(struct ntb_softc *ntb, uint64_t bar_addr, enum ntb_bar idx, enum ntb_bar regbar) argument 1730 xeon_set_pbar_xlat(struct ntb_softc *ntb, uint64_t base_addr, enum ntb_bar idx) argument 1746 xeon_setup_b2b_mw(struct ntb_softc *ntb, const struct ntb_b2b_addr *addr, const struct ntb_b2b_addr *peer_addr) argument 1885 _xeon_link_is_up(struct ntb_softc *ntb) argument 1894 link_is_up(struct ntb_softc *ntb) argument 1906 atom_link_is_err(struct ntb_softc *ntb) argument 1924 struct ntb_softc *ntb = arg; local 1953 atom_perform_link_restart(struct ntb_softc *ntb) argument 1995 struct ntb_softc *ntb = device_get_softc(dev); local 2024 struct ntb_softc *ntb = device_get_softc(dev); local 2047 struct ntb_softc *ntb = device_get_softc(dev); local 2065 struct ntb_softc *ntb = arg; local 2110 intel_ntb_poll_link(struct ntb_softc *ntb) argument 2148 intel_ntb_link_sta_speed(struct ntb_softc *ntb) argument 2157 intel_ntb_link_sta_width(struct ntb_softc *ntb) argument 2179 intel_ntb_sysctl_init(struct ntb_softc *ntb) argument 2460 struct ntb_softc *ntb = arg1; local 2478 struct ntb_softc *ntb = arg1; local 2505 struct ntb_softc *ntb = arg1; local 2530 struct ntb_softc *ntb = arg1; local 2545 struct ntb_softc *ntb; local 2614 intel_ntb_user_mw_to_idx(struct ntb_softc *ntb, unsigned uidx) argument 2644 struct ntb_softc *ntb; local 2718 struct ntb_softc *ntb = device_get_softc(dev); local 2726 struct ntb_softc *ntb = device_get_softc(dev); local 2740 struct ntb_softc *ntb = device_get_softc(dev); local 2756 struct ntb_softc *ntb = device_get_softc(dev); local 2766 struct ntb_softc *ntb = device_get_softc(dev); local 2779 struct ntb_softc *ntb = device_get_softc(dev); local 2795 struct ntb_softc *ntb = device_get_softc(dev); local 2813 struct ntb_softc *ntb = device_get_softc(dev); local 2855 struct ntb_softc *ntb = device_get_softc(dev); local 2950 struct ntb_softc *ntb = device_get_softc(dev); local 2965 struct ntb_softc *ntb = device_get_softc(dev); local 2975 intel_ntb_mw_set_wc_internal(struct ntb_softc *ntb, unsigned idx, vm_memattr_t mode) argument 2994 struct ntb_softc *ntb = device_get_softc(dev); local 3023 struct ntb_softc *ntb = device_get_softc(dev); local 3050 struct ntb_softc *ntb = device_get_softc(dev); local 3058 struct ntb_softc *ntb = device_get_softc(dev); local 3066 struct ntb_softc *ntb = device_get_softc(dev); local 3076 struct ntb_softc *ntb = device_get_softc(dev); local [all...] |
/freebsd-10-stable/sys/modules/ntb/ntb_transport/ |
H A D | Makefile | 3 .PATH: ${.CURDIR}/../../../dev/ntb 9 MFILES= kern/bus_if.m kern/device_if.m dev/ntb/ntb_if.m
|
/freebsd-10-stable/sys/modules/ntb/ntb_hw/ |
H A D | Makefile | 3 .PATH: ${.CURDIR}/../../../dev/ntb/ntb_hw 9 MFILES= kern/bus_if.m kern/device_if.m dev/pci/pci_if.m dev/ntb/ntb_if.m
|
/freebsd-10-stable/sys/modules/ntb/if_ntb/ |
H A D | Makefile | 3 .PATH: ${.CURDIR}/../../../dev/ntb/if_ntb
|
/freebsd-10-stable/sbin/dump/ |
H A D | tape.c | 395 union u_spcl *ntb, *otb; local 397 ntb = (union u_spcl *)tslp->tblock[1]; 417 *ntb++ = *otb++; /* copy the datablock also */ 426 ntb--; 441 size = (char *)ntb - (char *)q; 460 ntb = (union u_spcl *)tslp->tblock; 467 *((union u_spcl *)tslp->tblock) = *ntb; 468 ntb = (union u_spcl *)tslp->tblock[1];
|
/freebsd-10-stable/sys/dev/ntb/if_ntb/ |
H A D | if_ntb.c | 41 __FBSDID("$FreeBSD: stable/10/sys/dev/ntb/if_ntb/if_ntb.c 312742 2017-01-25 07:51:53Z mav $"); 141 printf("ntb: Cannot allocate ifnet structure\n"); 159 mtx_init(&q->tx_lock, "ntb tx", NULL, MTX_DEF); 516 static DEFINE_CLASS_0(ntb, ntb_net_driver, ntb_net_methods,
|
/freebsd-10-stable/share/man/man4/ |
H A D | Makefile | 830 _ntb.4= ntb.4
|
/freebsd-10-stable/sys/modules/ |
H A D | Makefile | 779 _ntb= ntb
|