/freebsd-10.1-release/usr.sbin/usbconfig/ |
H A D | dump.h | 33 void dump_string_by_index(struct libusb20_device *pdev, uint8_t index); 34 void dump_device_info(struct libusb20_device *pdev, uint8_t show_drv); 37 void dump_device_desc(struct libusb20_device *pdev); 38 void dump_config(struct libusb20_device *pdev, uint8_t all_cfg);
|
H A D | dump.c | 41 #define DUMP0(n,type,field,...) dump_field(pdev, " ", #field, n->field); 42 #define DUMP1(n,type,field,...) dump_field(pdev, " ", #field, n->field); 43 #define DUMP2(n,type,field,...) dump_field(pdev, " ", #field, n->field); 44 #define DUMP3(n,type,field,...) dump_field(pdev, " ", #field, n->field); 96 dump_field(struct libusb20_device *pdev, const char *plevel, argument 152 if (libusb20_dev_req_string_simple_sync(pdev, value, 194 dump_endpoint(struct libusb20_device *pdev, argument 206 dump_iface(struct libusb20_device *pdev, argument 218 dump_endpoint(pdev, iface->endpoints + z); 224 dump_device_info(struct libusb20_device *pdev, uint8_ argument 315 dump_device_desc(struct libusb20_device *pdev) argument 325 dump_config(struct libusb20_device *pdev, uint8_t all_cfg) argument 374 dump_string_by_index(struct libusb20_device *pdev, uint8_t str_index) argument [all...] |
/freebsd-10.1-release/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-10.1-release/lib/libusb/ |
H A D | libusb20.c | 133 error = xfer->pdev->methods->tr_close(xfer); 203 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, 216 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) argument 218 if (trIndex >= pdev->nTransfer) { 221 return (pdev->pTransfer + trIndex); 312 xfer->pdev->methods->tr_cancel_async(xfer); 335 xfer->pdev->methods->tr_clear_stall_sync(xfer); 463 struct libusb20_device *pdev = xfer->pdev; local 492 while (libusb20_dev_process(pdev) 566 libusb20_dev_close(struct libusb20_device *pdev) argument 608 libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t ifaceIndex) argument 617 libusb20_dev_get_device_desc(struct libusb20_device *pdev) argument 623 libusb20_dev_get_fd(struct libusb20_device *pdev) argument 629 libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t ifaceIndex) argument 638 libusb20_dev_open(struct libusb20_device *pdev, uint16_t nTransferMax) argument 688 libusb20_dev_reset(struct libusb20_device *pdev) argument 697 libusb20_dev_check_connected(struct libusb20_device *pdev) argument 706 libusb20_dev_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument 715 libusb20_dev_get_power_mode(struct libusb20_device *pdev) argument 727 libusb20_dev_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument 733 libusb20_dev_get_power_usage(struct libusb20_device *pdev) argument 745 libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t ifaceIndex, uint8_t altIndex) argument 754 libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex) argument 763 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 775 libusb20_dev_req_string_sync(struct libusb20_device *pdev, uint8_t str_index, uint16_t langid, void *ptr, uint16_t len) argument 826 libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t str_index, void *ptr, uint16_t len) argument 910 libusb20_dev_alloc_config(struct libusb20_device *pdev, uint8_t configIndex) argument 949 struct libusb20_device *pdev; local 964 libusb20_dev_get_config_index(struct libusb20_device *pdev) argument 993 libusb20_dev_get_mode(struct libusb20_device *pdev) argument 999 libusb20_dev_get_speed(struct libusb20_device *pdev) argument 1006 libusb20_dev_process(struct libusb20_device *pdev) argument 1015 libusb20_dev_wait_process(struct libusb20_device *pdev, int timeout) argument 1033 libusb20_dev_free(struct libusb20_device *pdev) argument 1049 libusb20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument 1059 libusb20_dev_get_backend_name(struct libusb20_device *pdev) argument 1065 libusb20_dev_get_desc(struct libusb20_device *pdev) argument 1071 libusb20_dev_set_debug(struct libusb20_device *pdev, int debug) argument 1078 libusb20_dev_get_debug(struct libusb20_device *pdev) argument 1084 libusb20_dev_get_address(struct libusb20_device *pdev) argument 1090 libusb20_dev_get_parent_address(struct libusb20_device *pdev) argument 1096 libusb20_dev_get_parent_port(struct libusb20_device *pdev) argument 1102 libusb20_dev_get_bus_number(struct libusb20_device *pdev) argument 1108 libusb20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument 1168 libusb20_be_device_foreach(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument 1235 struct libusb20_device *pdev; local 1253 libusb20_be_enqueue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument 1260 libusb20_be_dequeue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument [all...] |
H A D | libusb20.h | 202 struct libusb20_transfer *libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t tr_index); 237 const char *libusb20_dev_get_backend_name(struct libusb20_device *pdev); 238 const char *libusb20_dev_get_desc(struct libusb20_device *pdev); 239 int libusb20_dev_close(struct libusb20_device *pdev); 240 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index); 241 int libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex); 242 int libusb20_dev_get_debug(struct libusb20_device *pdev); 243 int libusb20_dev_get_fd(struct libusb20_device *pdev); 244 int libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index); 245 int libusb20_dev_open(struct libusb20_device *pdev, uint16_ [all...] |
H A D | libusb20_ugen20.c | 132 ugen20_enumerate(struct libusb20_device *pdev, const char *id) argument 142 pdev->bus_number = ugen20_path_convert_one(&tmp); 143 pdev->device_address = ugen20_path_convert_one(&tmp); 146 pdev->bus_number, pdev->device_address); 157 pdev->session_data.plugtime = plugtime; 163 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); 165 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); 167 if (pdev->ddesc.bNumConfigurations == 0) { 170 } else if (pdev 278 struct libusb20_device *pdev; local 310 ugen20_tr_release(struct libusb20_device *pdev) argument 328 ugen20_tr_renew(struct libusb20_device *pdev) argument 369 ugen20_open_device(struct libusb20_device *pdev, uint16_t nMaxTransfer) argument 431 ugen20_close_device(struct libusb20_device *pdev) argument 458 ugen20_get_config_desc_full(struct libusb20_device *pdev, uint8_t **ppbuf, uint16_t *plen, uint8_t cfg_index) argument 510 ugen20_get_config_index(struct libusb20_device *pdev, uint8_t *pindex) argument 523 ugen20_set_config_index(struct libusb20_device *pdev, uint8_t cfg_index) argument 537 ugen20_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index) argument 557 ugen20_reset_device(struct libusb20_device *pdev) argument 571 ugen20_check_connected(struct libusb20_device *pdev) argument 590 ugen20_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument 620 ugen20_get_power_mode(struct libusb20_device *pdev, uint8_t *power_mode) argument 652 ugen20_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument 668 ugen20_get_power_usage(struct libusb20_device *pdev, uint16_t *power_usage) argument 680 ugen20_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index) argument 692 ugen20_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index) argument 704 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 731 ugen20_process(struct libusb20_device *pdev) argument 935 ugen20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument 953 ugen20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument [all...] |
H A D | libusb10.c | 203 struct libusb20_device *pdev; local 220 pdev = NULL; 222 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) 233 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) { 247 libusb20_be_dequeue_device(usb_backend, pdev); 258 dev->os_priv = pdev; 259 pdev->privLuData = dev; 431 struct libusb20_device *pdev = dev->os_priv; local 445 err = libusb20_dev_open(pdev, 1 470 struct libusb20_device *pdev; local 508 libusb_close(struct libusb20_device *pdev) argument 538 libusb_get_device(struct libusb20_device *pdev) argument 546 libusb_get_configuration(struct libusb20_device *pdev, int *config) argument 565 libusb_set_configuration(struct libusb20_device *pdev, int configuration) argument 611 libusb_claim_interface(struct libusb20_device *pdev, int interface_number) argument 630 libusb_release_interface(struct libusb20_device *pdev, int interface_number) argument 653 libusb_set_interface_alt_setting(struct libusb20_device *pdev, int interface_number, int alternate_setting) argument 689 libusb10_get_transfer(struct libusb20_device *pdev, uint8_t endpoint, uint8_t xfer_index) argument 704 libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint) argument 737 libusb_reset_device(struct libusb20_device *pdev) argument 760 libusb_check_connected(struct libusb20_device *pdev) argument 775 libusb_kernel_driver_active(struct libusb20_device *pdev, int interface) argument 787 libusb_get_driver_np(struct libusb20_device *pdev, int interface, char *name, int namelen) argument 794 libusb_get_driver(struct libusb20_device *pdev, int interface, char *name, int namelen) argument 822 libusb_detach_kernel_driver_np(struct libusb20_device *pdev, int interface) argument 828 libusb_detach_kernel_driver(struct libusb20_device *pdev, int interface) argument 842 libusb_attach_kernel_driver(struct libusb20_device *pdev, int interface) argument 897 libusb10_get_maxframe(struct libusb20_device *pdev, libusb_transfer *xfer) argument 916 libusb10_get_buffsize(struct libusb20_device *pdev, libusb_transfer *xfer) argument 1238 libusb10_submit_transfer_sub(struct libusb20_device *pdev, uint8_t endpoint) 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); 152 struct libusb20_device *pdev; /* the USB device we belong to */ member in struct:libusb20_transfer [all...] |
/freebsd-10.1-release/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-10.1-release/sys/ofed/include/linux/ |
H A D | pci.h | 158 _pci_get_rle(struct pci_dev *pdev, int type, int rid) argument 163 dinfo = device_get_ivars(pdev->dev.bsddev); 169 _pci_get_bar(struct pci_dev *pdev, int bar) argument 174 if ((rle = _pci_get_rle(pdev, SYS_RES_MEMORY, bar)) == NULL) 175 rle = _pci_get_rle(pdev, SYS_RES_IOPORT, bar); 182 struct pci_dev *pdev; local 185 list_for_each_entry(pdev, &pci_devices, links) { 186 if (irq == pdev->dev.irq) 188 if (irq >= pdev->dev.msix && irq < pdev 198 pci_resource_start(struct pci_dev *pdev, int bar) argument 208 pci_resource_len(struct pci_dev *pdev, int bar) argument 221 pci_resource_flags(struct pci_dev *pdev, int bar) argument 238 pci_get_drvdata(struct pci_dev *pdev) argument 245 pci_set_drvdata(struct pci_dev *pdev, void *data) argument 252 pci_enable_device(struct pci_dev *pdev) argument 261 pci_disable_device(struct pci_dev *pdev) argument 266 pci_set_master(struct pci_dev *pdev) argument 274 pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) argument 290 pci_release_region(struct pci_dev *pdev, int bar) argument 300 pci_release_regions(struct pci_dev *pdev) argument 309 pci_request_regions(struct pci_dev *pdev, const char *res_name) argument 325 pci_disable_msix(struct pci_dev *pdev) argument 336 pci_find_capability(struct pci_dev *pdev, int capid) argument 366 pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val) argument 374 pci_read_config_word(struct pci_dev *pdev, int where, u16 *val) argument 382 pci_read_config_dword(struct pci_dev *pdev, int where, u32 *val) argument 390 pci_write_config_byte(struct pci_dev *pdev, int where, u8 val) argument 398 pci_write_config_word(struct pci_dev *pdev, int where, u16 val) argument 406 pci_write_config_dword(struct pci_dev *pdev, int where, u32 val) argument 456 struct pci_dev *pdev; local 499 struct pci_dev *pdev; local 564 pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq) argument 588 pci_channel_offline(struct pci_dev *pdev) argument [all...] |
/freebsd-10.1-release/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,
|
H A D | vxgehal-virtualpath.c | 37 * @pdev: PCI device object. 38 * @regh0: BAR0 mapped memory handle, or simply PCI device @pdev 52 pci_dev_h pdev, 70 "pdev = 0x"VXGE_OS_STXFMT", regh0 = 0x"VXGE_OS_STXFMT", " 73 "data1 = 0x"VXGE_OS_STXFMT, (ptr_t) pdev, (ptr_t) regh0, 77 vxge_os_pio_mem_write64(pdev, 84 vxge_os_pio_mem_write64(pdev, 89 vxge_os_pio_mem_write64(pdev, 102 vxge_hal_pio_mem_write32_lower(pdev, 109 vxge_hal_pio_mem_write32_upper(pdev, 51 __hal_vpath_fw_memo_get( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg, u32 action, u64 param_index, u64 *data0, u64 *data1) argument 168 __hal_vpath_fw_flash_ver_get( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg, vxge_hal_device_version_t *fw_version, vxge_hal_device_date_t *fw_date, vxge_hal_device_version_t *flash_version, vxge_hal_device_date_t *flash_date) argument 291 __hal_vpath_card_info_get( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg, u8 *serial_number, u8 *part_number, u8 *product_description) argument 408 __hal_vpath_pmd_info_get( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg, u32 *ports, vxge_hal_device_pmd_info_t *pmd_port0, vxge_hal_device_pmd_info_t *pmd_port1) argument 615 __hal_vpath_pci_func_mode_get( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg) argument 706 __hal_vpath_vpath_map_get(pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, u32 vh, u32 func, vxge_hal_vpath_reg_t *vpath_reg) argument 815 __hal_vpath_fw_upgrade( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg, u8 *buffer, u32 length) argument 1814 __hal_vpath_hw_addr_get( pci_dev_h pdev, pci_reg_h regh0, u32 vp_id, vxge_hal_vpath_reg_t *vpath_reg, macaddr_t macaddr, macaddr_t macaddr_mask) argument [all...] |
/freebsd-10.1-release/sys/ofed/drivers/infiniband/hw/mthca/ |
H A D | mthca_reset.c | 73 while ((bridge = pci_get_device(mdev->pdev->vendor, 74 mdev->pdev->device + 2, 77 bridge->subordinate == mdev->pdev->bus) { 91 pci_name(mdev->pdev)); 112 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { 120 hca_pcix_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX); 121 hca_pcie_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP); 155 void __iomem *reset = ioremap(pci_resource_start(mdev->pdev, 0) + 178 if (pci_read_config_dword(bridge ? bridge : mdev->pdev, 0, &v)) { 240 if (pci_write_config_dword(mdev->pdev, hca_pcix_ca [all...] |
H A D | mthca_catas.c | 71 struct pci_dev *pdev = dev->pdev; local 72 ret = __mthca_restart_one(dev->pdev); 76 pci_name(pdev), ret); 78 struct mthca_dev *d = pci_get_drvdata(pdev); 154 addr = pci_resource_start(dev->pdev, 0) + 155 ((pci_resource_len(dev->pdev, 0) - 1) &
|
/freebsd-10.1-release/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...] |
H A D | xgehal-mgmt.c | 64 xge_os_pci_read16(hldev->pdev, hldev->cfgh, 68 xge_os_pci_read16(hldev->pdev, hldev->cfgh, 72 xge_os_pci_read16(hldev->pdev, hldev->cfgh, 76 xge_os_pci_read16(hldev->pdev, hldev->cfgh, 80 xge_os_pci_read8(hldev->pdev, hldev->cfgh, 134 *value = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, 148 *value = xge_os_pio_mem_read64(hldev->pdev, hldev->regh1, 190 xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, value, 204 xge_os_pio_mem_write64(hldev->pdev, hldev->regh1, value, 491 rbc = xge_os_pio_mem_read64(hldev->pdev, hlde [all...] |
/freebsd-10.1-release/sys/ofed/drivers/net/mlx4/ |
H A D | reset.c | 80 pcie_cap = pci_pcie_cap(dev->pdev); 85 if (pci_read_config_dword(dev->pdev, i * 4, hca_header + i)) { 93 reset = ioremap(pci_resource_start(dev->pdev, 0) + MLX4_RESET_BASE, 127 if (!pci_read_config_word(dev->pdev, PCI_VENDOR_ID, &vendor) && 144 if (pcie_capability_write_word(dev->pdev, PCI_EXP_DEVCTL, 152 if (pcie_capability_write_word(dev->pdev, PCI_EXP_LNKCTL, 165 if (pci_write_config_dword(dev->pdev, i * 4, hca_header[i])) { 173 if (pci_write_config_dword(dev->pdev, PCI_COMMAND,
|
H A D | catas.c | 73 if (pci_channel_offline(dev->pdev)) 106 struct pci_dev *pdev = priv->dev.pdev; local 109 if (pci_channel_offline(pdev)) 112 ret = mlx4_restart_one(priv->dev.pdev); 116 pci_name(pdev), ret); 118 dev = pci_get_drvdata(pdev); 137 addr = pci_resource_start(dev->pdev, priv->fw.catas_bar) +
|
/freebsd-10.1-release/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 627 vxge_os_dma_malloc_async(pci_dev_h pdev, void *devh, u_long size, int dma_flags) argument 643 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 667 vxge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, u_long size, int dir, int dma_flags) argument 683 vxge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_paddr, u32 size, int dir) argument 694 vxge_os_is_my_packet(void *pdev, unsigned long addr) argument [all...] |
/freebsd-10.1-release/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-10.1-release/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 425 * @pdev 521 xge_os_pio_mem_read8(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 544 xge_os_pio_mem_write8(pci_dev_h pdev, pci_reg_h regh, u8 val, void *addr) argument 566 xge_os_pio_mem_read16(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 589 xge_os_pio_mem_write16(pci_dev_h pdev, pci_reg_h regh, u16 val, void *addr) argument 610 xge_os_pio_mem_read32(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 633 xge_os_pio_mem_write32(pci_dev_h pdev, pci_reg_h regh, u32 val, void *addr) argument 653 xge_os_pio_mem_read64(pci_dev_h pdev, pci_reg_h regh, void *addr) argument 682 xge_os_pio_mem_write64(pci_dev_h pdev, pci_reg_h regh, u64 val, void *addr) argument 713 xge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, size_t size, int dir, int dma_flags) argument 741 xge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr, size_t size, int dir) argument 767 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...] |