/freebsd-11-stable/sys/dev/ow/ |
H A D | own.h | 42 own_send_command(device_t pdev, struct ow_cmd *cmd) argument 44 device_t ndev = device_get_parent(pdev); 46 return OWN_SEND_COMMAND(ndev, pdev, cmd); 56 own_acquire_bus(device_t pdev, int how) argument 58 device_t ndev = device_get_parent(pdev); 60 return OWN_ACQUIRE_BUS(ndev, pdev, how); 64 own_release_bus(device_t pdev) argument 66 device_t ndev = device_get_parent(pdev); 68 OWN_RELEASE_BUS(ndev, pdev); 72 own_crc(device_t pdev, uint8_ argument 80 own_self_command(device_t pdev, struct ow_cmd *cmd, uint8_t xpt_cmd) argument 94 own_command_wait(device_t pdev, struct ow_cmd *cmd) argument [all...] |
/freebsd-11-stable/usr.sbin/usbconfig/ |
H A D | dump.h | 35 void dump_string_by_index(struct libusb20_device *pdev, uint8_t index); 36 void dump_device_info(struct libusb20_device *pdev, uint8_t show_drv); 39 void dump_device_desc(struct libusb20_device *pdev); 40 void dump_device_stats(struct libusb20_device *pdev); 41 void dump_config(struct libusb20_device *pdev, uint8_t all_cfg);
|
H A D | dump.c | 43 #define DUMP0(n,type,field,...) dump_field(pdev, " ", #field, n->field); 44 #define DUMP1(n,type,field,...) dump_field(pdev, " ", #field, n->field); 45 #define DUMP2(n,type,field,...) dump_field(pdev, " ", #field, n->field); 46 #define DUMP3(n,type,field,...) dump_field(pdev, " ", #field, n->field); 98 dump_field(struct libusb20_device *pdev, const char *plevel, argument 152 if (libusb20_dev_req_string_simple_sync(pdev, value, 271 dump_endpoint(struct libusb20_device *pdev, argument 283 dump_iface(struct libusb20_device *pdev, argument 295 dump_endpoint(pdev, iface->endpoints + z); 301 dump_device_info(struct libusb20_device *pdev, uint8_ argument 392 dump_device_desc(struct libusb20_device *pdev) argument 402 dump_config(struct libusb20_device *pdev, uint8_t all_cfg) argument 451 dump_string_by_index(struct libusb20_device *pdev, uint8_t str_index) argument 488 dump_device_stats(struct libusb20_device *pdev) argument [all...] |
/freebsd-11-stable/tools/tools/usbtest/ |
H A D | usb_control_ep_test.c | 81 struct libusb20_device *pdev; local 89 pdev = find_usb_device(vid, pid); 90 if (pdev == NULL) { 94 error = libusb20_dev_open(pdev, 0); 97 libusb20_dev_free(pdev); 101 bus = libusb20_dev_get_bus_number(pdev); 102 dev = libusb20_dev_get_address(pdev); 117 error = libusb20_dev_request_sync(pdev, &req, buffer, 128 error = libusb20_dev_request_sync(pdev, &req, buffer, 133 error = libusb20_dev_request_sync(pdev, 166 struct libusb20_device *pdev; local 245 struct libusb20_device *pdev; local 311 struct libusb20_device *pdev; local 370 struct libusb20_device *pdev; local 387 struct libusb20_device *pdev; local 473 struct libusb20_device *pdev; local 609 struct libusb20_device *pdev; local [all...] |
/freebsd-11-stable/lib/libusb/ |
H A D | libusb20.c | 133 error = xfer->pdev->methods->tr_close(xfer); 210 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, 213 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, 227 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) argument 229 if (trIndex >= pdev->nTransfer) { 232 return (pdev->pTransfer + trIndex); 323 xfer->pdev->methods->tr_cancel_async(xfer); 346 xfer->pdev->methods->tr_clear_stall_sync(xfer); 474 struct libusb20_device *pdev = xfer->pdev; local 577 libusb20_dev_close(struct libusb20_device *pdev) argument 625 libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t ifaceIndex) argument 634 libusb20_dev_get_device_desc(struct libusb20_device *pdev) argument 640 libusb20_dev_get_fd(struct libusb20_device *pdev) argument 646 libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t ifaceIndex) argument 655 libusb20_dev_open(struct libusb20_device *pdev, uint16_t nTransferMax) argument 705 libusb20_dev_reset(struct libusb20_device *pdev) argument 714 libusb20_dev_check_connected(struct libusb20_device *pdev) argument 723 libusb20_dev_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument 732 libusb20_dev_get_power_mode(struct libusb20_device *pdev) argument 744 libusb20_dev_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument 769 libusb20_dev_get_power_usage(struct libusb20_device *pdev) argument 781 libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t ifaceIndex, uint8_t altIndex) argument 790 libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex) argument 799 libusb20_dev_request_sync(struct libusb20_device *pdev, struct LIBUSB20_CONTROL_SETUP_DECODED *setup, void *data, uint16_t *pactlen, uint32_t timeout, uint8_t flags) argument 811 libusb20_dev_req_string_sync(struct libusb20_device *pdev, uint8_t str_index, uint16_t langid, void *ptr, uint16_t len) argument 865 libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t str_index, void *ptr, uint16_t len) argument 949 libusb20_dev_alloc_config(struct libusb20_device *pdev, uint8_t configIndex) argument 996 struct libusb20_device *pdev; local 1011 libusb20_dev_get_config_index(struct libusb20_device *pdev) argument 1040 libusb20_dev_get_mode(struct libusb20_device *pdev) argument 1046 libusb20_dev_get_speed(struct libusb20_device *pdev) argument 1052 libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstats) argument 1078 libusb20_dev_process(struct libusb20_device *pdev) argument 1087 libusb20_dev_wait_process(struct libusb20_device *pdev, int timeout) argument 1105 libusb20_dev_free(struct libusb20_device *pdev) argument 1121 libusb20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument 1131 libusb20_dev_get_backend_name(struct libusb20_device *pdev) argument 1137 libusb20_dev_get_desc(struct libusb20_device *pdev) argument 1143 libusb20_dev_set_debug(struct libusb20_device *pdev, int debug) argument 1150 libusb20_dev_get_debug(struct libusb20_device *pdev) argument 1156 libusb20_dev_get_address(struct libusb20_device *pdev) argument 1162 libusb20_dev_get_parent_address(struct libusb20_device *pdev) argument 1168 libusb20_dev_get_parent_port(struct libusb20_device *pdev) argument 1174 libusb20_dev_get_bus_number(struct libusb20_device *pdev) argument 1180 libusb20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument 1240 libusb20_be_device_foreach(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument 1307 struct libusb20_device *pdev; local 1325 libusb20_be_enqueue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument 1332 libusb20_be_dequeue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument [all...] |
H A D | libusb20.h | 208 struct libusb20_transfer *libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t tr_index); 243 const char *libusb20_dev_get_backend_name(struct libusb20_device *pdev); 244 const char *libusb20_dev_get_desc(struct libusb20_device *pdev); 245 int libusb20_dev_close(struct libusb20_device *pdev); 246 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index); 247 int libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex); 248 int libusb20_dev_get_debug(struct libusb20_device *pdev); 249 int libusb20_dev_get_fd(struct libusb20_device *pdev); 250 int libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstat); 251 int libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_ [all...] |
H A D | libusb20_ugen20.c | 132 ugen20_enumerate(struct libusb20_device *pdev, const char *id) argument 143 pdev->bus_number = ugen20_path_convert_one(&tmp); 144 pdev->device_address = ugen20_path_convert_one(&tmp); 147 pdev->bus_number, pdev->device_address); 158 pdev->session_data.plugtime = plugtime; 164 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); 166 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); 168 if (pdev->ddesc.bNumConfigurations == 0) { 171 } else if (pdev 286 struct libusb20_device *pdev; local 318 ugen20_tr_release(struct libusb20_device *pdev) argument 336 ugen20_tr_renew(struct libusb20_device *pdev) argument 377 ugen20_open_device(struct libusb20_device *pdev, uint16_t nMaxTransfer) argument 439 ugen20_close_device(struct libusb20_device *pdev) argument 466 ugen20_get_config_desc_full(struct libusb20_device *pdev, uint8_t **ppbuf, uint16_t *plen, uint8_t cfg_index) argument 518 ugen20_get_config_index(struct libusb20_device *pdev, uint8_t *pindex) argument 531 ugen20_set_config_index(struct libusb20_device *pdev, uint8_t cfg_index) argument 545 ugen20_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index) argument 565 ugen20_reset_device(struct libusb20_device *pdev) argument 579 ugen20_check_connected(struct libusb20_device *pdev) argument 598 ugen20_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument 628 ugen20_get_power_mode(struct libusb20_device *pdev, uint8_t *power_mode) argument 660 ugen20_get_power_usage(struct libusb20_device *pdev, uint16_t *power_usage) argument 672 ugen20_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstats) argument 695 ugen20_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index) argument 707 ugen20_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index) argument 719 ugen20_do_request_sync(struct libusb20_device *pdev, struct LIBUSB20_CONTROL_SETUP_DECODED *setup, void *data, uint16_t *pactlen, uint32_t timeout, uint8_t flags) argument 746 ugen20_process(struct libusb20_device *pdev) argument 950 ugen20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument 968 ugen20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument [all...] |
H A D | libusb20_int.h | 57 typedef int (libusb20_close_device_t)(struct libusb20_device *pdev); 58 typedef int (libusb20_dev_get_info_t)(struct libusb20_device *pdev, struct usb_device_info *pinfo); 59 typedef int (libusb20_dev_get_iface_desc_t)(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len); 61 typedef int (libusb20_open_device_t)(struct libusb20_device *pdev, uint16_t transfer_count_max); 99 typedef int (libusb20_detach_kernel_driver_t)(struct libusb20_device *pdev, uint8_t iface_index); 100 typedef int (libusb20_do_request_sync_t)(struct libusb20_device *pdev, struct LIBUSB20_CONTROL_SETUP_DECODED *setup, void *data, uint16_t *pactlen, uint32_t timeout, uint8_t flags); 101 typedef int (libusb20_get_config_desc_full_t)(struct libusb20_device *pdev, uint8_t **ppbuf, uint16_t *plen, uint8_t index); 102 typedef int (libusb20_get_config_index_t)(struct libusb20_device *pdev, uint8_t *pindex); 103 typedef int (libusb20_kernel_driver_active_t)(struct libusb20_device *pdev, uint8_t iface_index); 104 typedef int (libusb20_process_t)(struct libusb20_device *pdev); 153 struct libusb20_device *pdev; /* the USB device we belong to */ member in struct:libusb20_transfer [all...] |
H A D | libusb10.c | 276 struct libusb20_device *pdev; local 293 pdev = NULL; 295 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) 306 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) { 320 libusb20_be_dequeue_device(usb_backend, pdev); 331 dev->os_priv = pdev; 332 pdev->privLuData = dev; 512 struct libusb20_device *pdev = dev->os_priv; local 525 err = libusb20_dev_open(pdev, LIBUSB_NUM_SW_ENDPOINT 546 struct libusb20_device *pdev; local 584 libusb_close(struct libusb20_device *pdev) argument 607 libusb_get_device(struct libusb20_device *pdev) argument 615 libusb_get_configuration(struct libusb20_device *pdev, int *config) argument 634 libusb_set_configuration(struct libusb20_device *pdev, int configuration) argument 680 libusb_claim_interface(struct libusb20_device *pdev, int interface_number) argument 706 libusb_release_interface(struct libusb20_device *pdev, int interface_number) argument 735 libusb_set_interface_alt_setting(struct libusb20_device *pdev, int interface_number, int alternate_setting) argument 771 libusb10_get_transfer(struct libusb20_device *pdev, uint8_t endpoint, uint8_t xfer_index) argument 786 libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint) argument 819 libusb_reset_device(struct libusb20_device *pdev) argument 842 libusb_check_connected(struct libusb20_device *pdev) argument 857 libusb_kernel_driver_active(struct libusb20_device *pdev, int interface) argument 869 libusb_get_driver_np(struct libusb20_device *pdev, int interface, char *name, int namelen) argument 876 libusb_get_driver(struct libusb20_device *pdev, int interface, char *name, int namelen) argument 904 libusb_detach_kernel_driver_np(struct libusb20_device *pdev, int interface) argument 910 libusb_detach_kernel_driver(struct libusb20_device *pdev, int interface) argument 924 libusb_attach_kernel_driver(struct libusb20_device *pdev, int interface) argument 986 libusb10_get_maxframe(struct libusb20_device *pdev, libusb_transfer *xfer) argument 1005 libusb10_get_buffsize(struct libusb20_device *pdev, libusb_transfer *xfer) argument 1320 libusb10_submit_transfer_sub(struct libusb20_device *pdev, uint8_t endpoint) argument 1590 struct libusb20_device *pdev = dev->os_priv; local 1604 libusb10_cancel_all_transfer_locked(struct libusb20_device *pdev, struct libusb_device *dev) argument [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 140 struct pci_dev *pdev; local 151 pdev = device_get_softc(dev); 162 pdev->dev.parent = &linux_root_device; 163 pdev->dev.bsddev = dev; 164 INIT_LIST_HEAD(&pdev->dev.irqents); 165 pdev->devfn = PCI_DEVFN(pci_get_slot(dev), pci_get_function(dev)); 166 pdev->device = dinfo->cfg.device; 167 pdev->vendor = dinfo->cfg.vendor; 168 pdev->subsystem_vendor = dinfo->cfg.subvendor; 169 pdev 209 struct pci_dev *pdev; local 231 struct pci_dev *pdev; local 253 struct pci_dev *pdev; local 275 struct pci_dev *pdev; local 287 struct pci_dev *pdev; local 302 struct pci_dev *pdev; local 313 struct pci_dev *pdev; local [all...] |
/freebsd-11-stable/sys/dev/xen/pcifront/ |
H A D | pcifront.c | 106 struct pcifront_device *pdev; member in struct:xpcib_softc 113 struct pcifront_device *pdev = NULL; local 120 xenbus_dev_fatal(pdev->xdev, err, "Error scanning pci device instance number"); 124 pdev = (struct pcifront_device *)malloc(sizeof(struct pcifront_device), M_DEVBUF, M_NOWAIT); 125 if (pdev == NULL) { 130 pdev->unit = unit; 131 pdev->xdev = xdev; 132 pdev->ref_cnt = 1; 134 pdev->sh_info = (struct xen_pci_sharedinfo *)malloc(PAGE_SIZE, M_DEVBUF, M_NOWAIT); 135 if (pdev 161 get_pdev(struct pcifront_device *pdev) argument 168 put_pdev(struct pcifront_device *pdev) argument 189 pcifront_publish_info(struct pcifront_device *pdev) argument 249 pcifront_connect(struct pcifront_device *pdev) argument 284 pcifront_disconnect(struct pcifront_device *pdev) argument 307 struct pcifront_device *pdev; local 337 struct pcifront_device *pdev = xdev->data; local 362 do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op) argument 441 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(dev); local 451 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(dev); local 543 struct pcifront_device *pdev = (struct pcifront_device *)device_get_ivars(device_get_parent(dev)); local [all...] |
/freebsd-11-stable/sys/dev/vxge/vxgehal/ |
H A D | vxgehal-swapper.c | 37 * @pdev: PCI device object. 38 * @regh: BAR0 mapped memory handle (Solaris), or simply PCI device @pdev 51 pci_dev_h pdev, 64 "pdev = 0x"VXGE_OS_STXFMT", regh = 0x"VXGE_OS_STXFMT", " 65 "legacy_reg = 0x"VXGE_OS_STXFMT, (ptr_t) pdev, (ptr_t) regh, 68 val64 = vxge_os_pio_mem_read64(pdev, regh, &legacy_reg->toc_swapper_fb); 80 vxge_os_pio_mem_write64(pdev, regh, 83 vxge_os_pio_mem_write64(pdev, regh, 86 vxge_os_pio_mem_write64(pdev, regh, 89 vxge_os_pio_mem_write64(pdev, reg 50 __hal_legacy_swapper_set( pci_dev_h pdev, pci_reg_h regh, vxge_hal_legacy_reg_t *legacy_reg) argument [all...] |
H A D | vxgehal-srpcim.c | 66 alarm_status = vxge_os_pio_mem_read64(hldev->header.pdev, 75 xgmac_status = vxge_os_pio_mem_read64(hldev->header.pdev, 85 val64 = vxge_os_pio_mem_read64(hldev->header.pdev, 93 vxge_os_pio_mem_write64(hldev->header.pdev, 103 pic_status = vxge_os_pio_mem_read64(hldev->header.pdev, 113 val64 = vxge_os_pio_mem_read64(hldev->header.pdev, 121 vxge_os_pio_mem_write64(hldev->header.pdev, 130 val64 = vxge_os_pio_mem_read64(hldev->header.pdev, 138 vxge_os_pio_mem_write64(hldev->header.pdev, 196 val64 = vxge_os_pio_mem_read64(hldev->header.pdev, [all...] |
H A D | vxgehal-ifmsg.c | 131 hldev->header.pdev, 179 vxge_os_pio_mem_write64(hldev->header.pdev, 187 vxge_os_pio_mem_write64(hldev->header.pdev, 197 vxge_os_pio_mem_write64(hldev->header.pdev, 211 vxge_hal_pio_mem_write32_lower(hldev->header.pdev, 218 vxge_hal_pio_mem_write32_upper(hldev->header.pdev, 225 status = vxge_hal_device_register_poll(hldev->header.pdev, 238 val64 = vxge_os_pio_mem_read64(hldev->header.pdev, 244 vxge_os_pio_mem_read64(hldev->header.pdev,
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | pci.h | 242 linux_pci_get_rle(struct pci_dev *pdev, int type, int rid) argument 247 dinfo = device_get_ivars(pdev->dev.bsddev); 253 linux_pci_get_bar(struct pci_dev *pdev, int bar) argument 258 if ((rle = linux_pci_get_rle(pdev, SYS_RES_MEMORY, bar)) == NULL) 259 rle = linux_pci_get_rle(pdev, SYS_RES_IOPORT, bar); 266 struct pci_dev *pdev; local 271 list_for_each_entry(pdev, &pci_devices, links) { 272 if (irq == pdev->dev.irq || 273 (irq >= pdev->dev.irq_start && irq < pdev 283 pci_resource_start(struct pci_dev *pdev, int bar) argument 293 pci_resource_len(struct pci_dev *pdev, int bar) argument 303 pci_resource_type(struct pci_dev *pdev, int bar) argument 321 pci_resource_flags(struct pci_dev *pdev, int bar) argument 339 pci_get_drvdata(struct pci_dev *pdev) argument 346 pci_set_drvdata(struct pci_dev *pdev, void *data) argument 353 pci_enable_device(struct pci_dev *pdev) argument 362 pci_disable_device(struct pci_dev *pdev) argument 369 pci_set_master(struct pci_dev *pdev) argument 377 pci_set_power_state(struct pci_dev *pdev, int state) argument 385 pci_clear_master(struct pci_dev *pdev) argument 393 pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) argument 409 pci_release_region(struct pci_dev *pdev, int bar) argument 419 pci_release_regions(struct pci_dev *pdev) argument 428 pci_request_regions(struct pci_dev *pdev, const char *res_name) argument 444 pci_disable_msix(struct pci_dev *pdev) argument 463 linux_pci_disable_msi(struct pci_dev *pdev) argument 475 pci_bus_address(struct pci_dev *pdev, int bar) argument 493 pci_find_capability(struct pci_dev *pdev, int capid) argument 509 pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val) argument 517 pci_read_config_word(struct pci_dev *pdev, int where, u16 *val) argument 525 pci_read_config_dword(struct pci_dev *pdev, int where, u32 *val) argument 533 pci_write_config_byte(struct pci_dev *pdev, int where, u8 val) argument 541 pci_write_config_word(struct pci_dev *pdev, int where, u16 val) argument 549 pci_write_config_dword(struct pci_dev *pdev, int where, u32 val) argument 579 pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq) argument 641 pci_enable_msi(struct pci_dev *pdev) argument 664 pci_channel_offline(struct pci_dev *pdev) argument 998 pcie_bandwidth_available(struct pci_dev *pdev, struct pci_dev **limiting, enum pci_bus_speed *speed, enum pcie_link_width *width) argument [all...] |
/freebsd-11-stable/sys/dev/mthca/ |
H A D | mthca_reset.c | 77 while ((bridge = pci_get_device(mdev->pdev->vendor, 78 mdev->pdev->device + 2, 81 bridge->subordinate == mdev->pdev->bus) { 95 pci_name(mdev->pdev)); 116 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { 124 hca_pcix_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX); 125 hca_pcie_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP); 159 void __iomem *reset = ioremap(pci_resource_start(mdev->pdev, 0) + 182 if (pci_read_config_dword(bridge ? bridge : mdev->pdev, 0, &v)) { 246 if (pci_write_config_dword(mdev->pdev, hca_pcix_ca [all...] |
H A D | mthca_main.c | 143 if (pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX)) { 144 if (pcix_set_mmrbc(mdev->pdev, pcix_get_max_mmrbc(mdev->pdev))) { 152 if (pci_is_pcie(mdev->pdev)) { 153 if (pcie_set_readrq(mdev->pdev, 4096)) { 189 if (dev_lim->uar_size > pci_resource_len(mdev->pdev, 2)) { 193 (unsigned long long)pci_resource_len(mdev->pdev, 2)); 768 dev->pdev->irq); 861 err = pci_enable_msix_range(mdev->pdev, entries, ARRAY_SIZE(entries), ARRAY_SIZE(entries)); 900 static int __mthca_init_one(struct pci_dev *pdev, in argument 1084 __mthca_remove_one(struct pci_dev *pdev) argument 1125 __mthca_restart_one(struct pci_dev *pdev) argument 1138 mthca_init_one(struct pci_dev *pdev, const struct pci_device_id *id) argument 1160 mthca_remove_one(struct pci_dev *pdev) argument [all...] |
/freebsd-11-stable/sys/dev/nxge/xgehal/ |
H A D | xgehal-mm.c | 72 mempool->memblocks_arr[i] = xge_os_dma_malloc(mempool->pdev, 91 mempool->memblocks_priv_arr[i] = xge_os_malloc(mempool->pdev, 94 xge_os_dma_free(mempool->pdev, 110 dma_object->addr = xge_os_dma_map(mempool->pdev, 122 xge_os_free(mempool->pdev, mempool->memblocks_priv_arr[i], 125 xge_os_dma_free(mempool->pdev, 174 xge_os_free(mempool->pdev, 178 xge_os_dma_unmap(mempool->pdev, 183 xge_os_dma_free(mempool->pdev, 230 __hal_mempool_create(pci_dev_h pdev, in argument [all...] |
H A D | xgehal-device.c | 87 __hal_pio_mem_write32_upper(pci_dev_h pdev, pci_reg_h regh, u32 val, void *addr) argument 90 xge_os_pio_mem_write32(pdev, regh, val, addr); 92 xge_os_pio_mem_write32(pdev, regh, val, (void *)((char *)addr + 4)); 104 __hal_pio_mem_write32_lower(pci_dev_h pdev, pci_reg_h regh, u32 val, argument 108 xge_os_pio_mem_write32(pdev, regh, val, 111 xge_os_pio_mem_write32(pdev, regh, val, addr); 137 val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, reg); 146 val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, reg); 214 xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, 216 xge_os_pci_read16(hldev->pdev,hlde [all...] |
H A D | xgehal-ring.c | 110 xge_os_dma_sync(ring->channel.pdev, 253 /* Note: at this point we have channel.devh and channel.pdev 265 xge_os_spin_lock_init(&ring->channel.reserve_lock, hldev->pdev); 270 xge_os_spin_lock_init(&ring->channel.post_lock, hldev->pdev); 286 ring->reserved_rxds_arr = (void **) xge_os_malloc(ring->channel.pdev, 295 hldev->pdev, 358 xge_assert(ring->channel.pdev); 367 xge_os_free(ring->channel.pdev, 375 xge_os_spin_lock_destroy(&ring->channel.reserve_lock, hldev->pdev); 377 xge_os_spin_lock_destroy_irq(&ring->channel.reserve_lock, hldev->pdev); [all...] |
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_reset.c | 79 pcie_cap = pci_pcie_cap(dev->persist->pdev); 84 if (pci_read_config_dword(dev->persist->pdev, i * 4, 92 reset = ioremap(pci_resource_start(dev->persist->pdev, 0) + 127 if (!pci_read_config_word(dev->persist->pdev, PCI_VENDOR_ID, 143 if (pcie_capability_write_word(dev->persist->pdev, 151 if (pcie_capability_write_word(dev->persist->pdev, 164 if (pci_write_config_dword(dev->persist->pdev, i * 4, 173 if (pci_write_config_dword(dev->persist->pdev, PCI_COMMAND,
|
/freebsd-11-stable/sys/dev/vxge/ |
H A D | vxge-osdep.h | 394 #define vxge_os_malloc(pdev, size) \ 397 #define vxge_os_free(pdev, vaddr, size) \ 412 #define vxge_os_pci_read8(pdev, cfgh, where, val) \ 413 (*(val) = pci_read_config(pdev->ndev, where, 1)) 415 #define vxge_os_pci_write8(pdev, cfgh, where, val) \ 416 pci_write_config(pdev->ndev, where, val, 1) 418 #define vxge_os_pci_read16(pdev, cfgh, where, val) \ 419 (*(val) = pci_read_config(pdev->ndev, where, 2)) 421 #define vxge_os_pci_write16(pdev, cfgh, where, val) \ 422 pci_write_config(pdev 431 vxge_os_pci_res_len(pci_dev_h pdev, pci_reg_h regh) argument 437 vxge_os_pio_mem_read8(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 448 vxge_os_pio_mem_read16(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 459 vxge_os_pio_mem_read32(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 470 vxge_os_pio_mem_read64(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 490 vxge_os_pio_mem_write8(pci_dev_h pdev, pci_reg_h regh, u8 val, void *addr) argument 501 vxge_os_pio_mem_write16(pci_dev_h pdev, pci_reg_h regh, u16 val, void *addr) argument 512 vxge_os_pio_mem_write32(pci_dev_h pdev, pci_reg_h regh, u32 val, void *addr) argument 523 vxge_os_pio_mem_write64(pci_dev_h pdev, pci_reg_h regh, u64 val, void *addr) argument 552 vxge_os_dma_malloc(pci_dev_h pdev, u_long bytes, int dma_flags, pci_dma_h * p_dmah, pci_dma_acc_h * p_dma_acch) argument 609 vxge_dma_free(pci_dev_h pdev, const void *vaddr, u_long size, pci_dma_h *p_dmah, pci_dma_acc_h *p_dma_acch, const char *file, int line) argument 626 vxge_os_dma_malloc_async(pci_dev_h pdev, void *devh, u_long size, int dma_flags) argument 642 vxge_os_dma_sync(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_paddr, u64 dma_offset, size_t length, int dir) argument 666 vxge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, u_long size, int dir, int dma_flags) argument 682 vxge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_paddr, u32 size, int dir) argument 693 vxge_os_is_my_packet(void *pdev, unsigned long addr) argument [all...] |
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga/ |
H A D | core.h | 87 dev_dbg(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d:(pid %d): " format, \ 91 dev_err(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d:(pid %d): " format, \ 95 dev_warn(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d:(pid %d): " format, \ 99 dev_warn_ratelimited(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d: " \ 103 dev_notice(&(__adev)->mdev->pdev->dev, "FPGA: " format, ##__VA_ARGS__) 106 dev_info(&(__adev)->mdev->pdev->dev, "FPGA: " format, ##__VA_ARGS__)
|
/freebsd-11-stable/sys/dev/cxgb/common/ |
H A D | cxgb_ctl_defs.h | 81 struct pci_dev *pdev; member in struct:ddp_params 103 struct pci_dev *pdev; member in struct:ulp_iscsi_info 127 struct device *pdev; /* associated PCI device */ member in struct:rdma_info
|
/freebsd-11-stable/sys/dev/nxge/ |
H A D | xge-osdep.h | 287 * @pdev: Device context. 300 xge_os_malloc(pci_dev_h pdev, unsigned long size) { argument 312 * @pdev: Device context. 322 xge_os_free(pci_dev_h pdev, const void *vaddr, unsigned long size) { argument 337 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory. 354 xge_os_dma_malloc(pci_dev_h pdev, unsigned long size, int dma_flags, argument 357 bus_get_dma_tag(pdev->device), /* Parent */ 393 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory. 403 xge_os_dma_free(pci_dev_h pdev, const void *vaddr, int size, argument 424 * @pdev 520 xge_os_pio_mem_read8(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 543 xge_os_pio_mem_write8(pci_dev_h pdev, pci_reg_h regh, u8 val, void *addr) argument 565 xge_os_pio_mem_read16(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 588 xge_os_pio_mem_write16(pci_dev_h pdev, pci_reg_h regh, u16 val, void *addr) argument 609 xge_os_pio_mem_read32(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 632 xge_os_pio_mem_write32(pci_dev_h pdev, pci_reg_h regh, u32 val, void *addr) argument 652 xge_os_pio_mem_read64(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 681 xge_os_pio_mem_write64(pci_dev_h pdev, pci_reg_h regh, u64 val, void *addr) argument 712 xge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, size_t size, int dir, int dma_flags) argument 740 xge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr, size_t size, int dir) argument 766 xge_os_dma_sync(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr, u64 dma_offset, size_t length, int dir) argument [all...] |