/freebsd-9.3-release/sys/sys/ |
H A D | device_port.h | 62 #define DEVPORT_PDEVUNIT(pdev) device_get_unit(pdev) 63 #define DEVPORT_PDEVFLAGS(pdev) device_get_flags(pdev) 64 #define DEVPORT_PDEVIOBASE(pdev) bus_get_resource_start(pdev, SYS_RES_IOPORT, 0) 65 #define DEVPORT_PDEVIRQ(pdev) bus_get_resource_start(pdev, SYS_RES_IRQ, 0) 66 #define DEVPORT_PDEVMADDR(pdev) bus_get_resource_start(pdev, SYS_RES_MEMOR [all...] |
/freebsd-9.3-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-9.3-release/lib/libusb/ |
H A D | libusb20.c | 129 error = xfer->pdev->methods->tr_close(xfer); 192 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, 205 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) argument 207 if (trIndex >= pdev->nTransfer) { 210 return (pdev->pTransfer + trIndex); 301 xfer->pdev->methods->tr_cancel_async(xfer); 324 xfer->pdev->methods->tr_clear_stall_sync(xfer); 452 struct libusb20_device *pdev = xfer->pdev; local 481 while (libusb20_dev_process(pdev) 555 libusb20_dev_close(struct libusb20_device *pdev) argument 597 libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t ifaceIndex) argument 606 libusb20_dev_get_device_desc(struct libusb20_device *pdev) argument 612 libusb20_dev_get_fd(struct libusb20_device *pdev) argument 618 libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t ifaceIndex) argument 627 libusb20_dev_open(struct libusb20_device *pdev, uint16_t nTransferMax) argument 677 libusb20_dev_reset(struct libusb20_device *pdev) argument 686 libusb20_dev_check_connected(struct libusb20_device *pdev) argument 695 libusb20_dev_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument 704 libusb20_dev_get_power_mode(struct libusb20_device *pdev) argument 716 libusb20_dev_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument 722 libusb20_dev_get_power_usage(struct libusb20_device *pdev) argument 734 libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t ifaceIndex, uint8_t altIndex) argument 743 libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex) argument 752 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 764 libusb20_dev_req_string_sync(struct libusb20_device *pdev, uint8_t str_index, uint16_t langid, void *ptr, uint16_t len) argument 815 libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t str_index, void *ptr, uint16_t len) argument 899 libusb20_dev_alloc_config(struct libusb20_device *pdev, uint8_t configIndex) argument 938 struct libusb20_device *pdev; local 953 libusb20_dev_get_config_index(struct libusb20_device *pdev) argument 982 libusb20_dev_get_mode(struct libusb20_device *pdev) argument 988 libusb20_dev_get_speed(struct libusb20_device *pdev) argument 995 libusb20_dev_process(struct libusb20_device *pdev) argument 1004 libusb20_dev_wait_process(struct libusb20_device *pdev, int timeout) argument 1022 libusb20_dev_free(struct libusb20_device *pdev) argument 1038 libusb20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument 1048 libusb20_dev_get_backend_name(struct libusb20_device *pdev) argument 1054 libusb20_dev_get_desc(struct libusb20_device *pdev) argument 1060 libusb20_dev_set_debug(struct libusb20_device *pdev, int debug) argument 1067 libusb20_dev_get_debug(struct libusb20_device *pdev) argument 1073 libusb20_dev_get_address(struct libusb20_device *pdev) argument 1079 libusb20_dev_get_parent_address(struct libusb20_device *pdev) argument 1085 libusb20_dev_get_parent_port(struct libusb20_device *pdev) argument 1091 libusb20_dev_get_bus_number(struct libusb20_device *pdev) argument 1097 libusb20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument 1157 libusb20_be_device_foreach(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument 1236 struct libusb20_device *pdev; local 1254 libusb20_be_enqueue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument 1261 libusb20_be_dequeue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument [all...] |
H A D | libusb20.h | 205 struct libusb20_transfer *libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t tr_index); 240 const char *libusb20_dev_get_backend_name(struct libusb20_device *pdev); 241 const char *libusb20_dev_get_desc(struct libusb20_device *pdev); 242 int libusb20_dev_close(struct libusb20_device *pdev); 243 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index); 244 int libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex); 245 int libusb20_dev_get_debug(struct libusb20_device *pdev); 246 int libusb20_dev_get_fd(struct libusb20_device *pdev); 247 int libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index); 248 int libusb20_dev_open(struct libusb20_device *pdev, uint16_ [all...] |
H A D | libusb20_ugen20.c | 124 ugen20_enumerate(struct libusb20_device *pdev, const char *id) argument 134 pdev->bus_number = ugen20_path_convert_one(&tmp); 135 pdev->device_address = ugen20_path_convert_one(&tmp); 138 pdev->bus_number, pdev->device_address); 149 pdev->session_data.plugtime = plugtime; 155 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); 157 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); 159 if (pdev->ddesc.bNumConfigurations == 0) { 162 } else if (pdev 270 struct libusb20_device *pdev; local 302 ugen20_tr_release(struct libusb20_device *pdev) argument 320 ugen20_tr_renew(struct libusb20_device *pdev) argument 361 ugen20_open_device(struct libusb20_device *pdev, uint16_t nMaxTransfer) argument 423 ugen20_close_device(struct libusb20_device *pdev) argument 450 ugen20_get_config_desc_full(struct libusb20_device *pdev, uint8_t **ppbuf, uint16_t *plen, uint8_t cfg_index) argument 502 ugen20_get_config_index(struct libusb20_device *pdev, uint8_t *pindex) argument 515 ugen20_set_config_index(struct libusb20_device *pdev, uint8_t cfg_index) argument 529 ugen20_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index) argument 549 ugen20_reset_device(struct libusb20_device *pdev) argument 563 ugen20_check_connected(struct libusb20_device *pdev) argument 582 ugen20_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument 612 ugen20_get_power_mode(struct libusb20_device *pdev, uint8_t *power_mode) argument 644 ugen20_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument 660 ugen20_get_power_usage(struct libusb20_device *pdev, uint16_t *power_usage) argument 672 ugen20_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index) argument 684 ugen20_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index) argument 696 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 723 ugen20_process(struct libusb20_device *pdev) argument 917 ugen20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument 935 ugen20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument [all...] |
H A D | libusb10.c | 197 struct libusb20_device *pdev; local 214 pdev = NULL; 216 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) 227 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) { 241 libusb20_be_dequeue_device(usb_backend, pdev); 252 dev->os_priv = pdev; 253 pdev->privLuData = dev; 425 struct libusb20_device *pdev = dev->os_priv; local 439 err = libusb20_dev_open(pdev, 1 464 struct libusb20_device *pdev; local 502 libusb_close(struct libusb20_device *pdev) argument 532 libusb_get_device(struct libusb20_device *pdev) argument 540 libusb_get_configuration(struct libusb20_device *pdev, int *config) argument 559 libusb_set_configuration(struct libusb20_device *pdev, int configuration) argument 605 libusb_claim_interface(struct libusb20_device *pdev, int interface_number) argument 624 libusb_release_interface(struct libusb20_device *pdev, int interface_number) argument 647 libusb_set_interface_alt_setting(struct libusb20_device *pdev, int interface_number, int alternate_setting) argument 683 libusb10_get_transfer(struct libusb20_device *pdev, uint8_t endpoint, uint8_t xfer_index) argument 698 libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint) argument 731 libusb_reset_device(struct libusb20_device *pdev) argument 754 libusb_check_connected(struct libusb20_device *pdev) argument 769 libusb_kernel_driver_active(struct libusb20_device *pdev, int interface) argument 781 libusb_get_driver_np(struct libusb20_device *pdev, int interface, char *name, int namelen) argument 788 libusb_get_driver(struct libusb20_device *pdev, int interface, char *name, int namelen) argument 816 libusb_detach_kernel_driver_np(struct libusb20_device *pdev, int interface) argument 822 libusb_detach_kernel_driver(struct libusb20_device *pdev, int interface) argument 836 libusb_attach_kernel_driver(struct libusb20_device *pdev, int interface) argument 891 libusb10_get_maxframe(struct libusb20_device *pdev, libusb_transfer *xfer) argument 910 libusb10_get_buffsize(struct libusb20_device *pdev, libusb_transfer *xfer) argument 1232 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-9.3-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-9.3-release/sys/ofed/include/linux/ |
H A D | pci.h | 123 _pci_get_rle(struct pci_dev *pdev, int type, int rid) argument 128 dinfo = device_get_ivars(pdev->dev.bsddev); 134 _pci_get_bar(struct pci_dev *pdev, int bar) argument 139 if ((rle = _pci_get_rle(pdev, SYS_RES_MEMORY, bar)) == NULL) 140 rle = _pci_get_rle(pdev, SYS_RES_IOPORT, bar); 147 struct pci_dev *pdev; local 150 list_for_each_entry(pdev, &pci_devices, links) { 151 if (irq == pdev->dev.irq) 153 if (irq >= pdev->dev.msix && irq < pdev 163 pci_resource_start(struct pci_dev *pdev, int bar) argument 173 pci_resource_len(struct pci_dev *pdev, int bar) argument 186 pci_resource_flags(struct pci_dev *pdev, int bar) argument 203 pci_get_drvdata(struct pci_dev *pdev) argument 210 pci_set_drvdata(struct pci_dev *pdev, void *data) argument 217 pci_enable_device(struct pci_dev *pdev) argument 226 pci_disable_device(struct pci_dev *pdev) argument 231 pci_set_master(struct pci_dev *pdev) argument 239 pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) argument 255 pci_release_region(struct pci_dev *pdev, int bar) argument 265 pci_release_regions(struct pci_dev *pdev) argument 274 pci_request_regions(struct pci_dev *pdev, const char *res_name) argument 290 pci_disable_msix(struct pci_dev *pdev) argument 300 pci_find_capability(struct pci_dev *pdev, int capid) argument 310 pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val) argument 318 pci_read_config_word(struct pci_dev *pdev, int where, u16 *val) argument 326 pci_read_config_dword(struct pci_dev *pdev, int where, u32 *val) argument 334 pci_write_config_byte(struct pci_dev *pdev, int where, u8 val) argument 342 pci_write_config_word(struct pci_dev *pdev, int where, u16 val) argument 350 pci_write_config_dword(struct pci_dev *pdev, int where, u32 val) argument 400 struct pci_dev *pdev; local 443 struct pci_dev *pdev; local 508 pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq) argument [all...] |
/freebsd-9.3-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-9.3-release/sys/ofed/drivers/infiniband/hw/mthca/ |
H A D | mthca_reset.c | 74 while ((bridge = pci_get_device(mdev->pdev->vendor, 75 mdev->pdev->device + 2, 78 bridge->subordinate == mdev->pdev->bus) { 92 pci_name(mdev->pdev)); 113 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { 121 hca_pcix_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX); 122 hca_pcie_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP); 156 void __iomem *reset = ioremap(pci_resource_start(mdev->pdev, 0) + 179 if (pci_read_config_dword(bridge ? bridge : mdev->pdev, 0, &v)) { 241 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-9.3-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-9.3-release/sys/ofed/drivers/net/mlx4/ |
H A D | reset.c | 81 pcie_cap = pci_find_capability(dev->pdev, PCI_CAP_ID_EXP); 86 if (pci_read_config_dword(dev->pdev, i * 4, hca_header + i)) { 94 reset = ioremap(pci_resource_start(dev->pdev, 0) + MLX4_RESET_BASE, 128 if (!pci_read_config_word(dev->pdev, PCI_VENDOR_ID, &vendor) && 145 if (pci_write_config_word(dev->pdev, pcie_cap + PCI_EXP_DEVCTL, 153 if (pci_write_config_word(dev->pdev, pcie_cap + PCI_EXP_LNKCTL, 166 if (pci_write_config_dword(dev->pdev, i * 4, hca_header[i])) { 174 if (pci_write_config_dword(dev->pdev, PCI_COMMAND,
|
H A D | catas.c | 100 struct pci_dev *pdev = priv->dev.pdev; local 102 ret = mlx4_restart_one(priv->dev.pdev); 106 pci_name(pdev), ret); 108 dev = pci_get_drvdata(pdev); 124 addr = pci_resource_start(dev->pdev, priv->fw.catas_bar) +
|
/freebsd-9.3-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-9.3-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-9.3-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...] |