Searched refs:pdev (Results 1 - 25 of 142) sorted by relevance

123456

/freebsd-10-stable/usr.sbin/usbconfig/
H A Ddump.h33 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_device_stats(struct libusb20_device *pdev);
39 void dump_config(struct libusb20_device *pdev, uint8_t all_cfg);
H A Ddump.c41 #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
150 if (libusb20_dev_req_string_simple_sync(pdev, value,
269 dump_endpoint(struct libusb20_device *pdev, argument
281 dump_iface(struct libusb20_device *pdev, argument
293 dump_endpoint(pdev, iface->endpoints + z);
299 dump_device_info(struct libusb20_device *pdev, uint8_ argument
390 dump_device_desc(struct libusb20_device *pdev) argument
400 dump_config(struct libusb20_device *pdev, uint8_t all_cfg) argument
449 dump_string_by_index(struct libusb20_device *pdev, uint8_t str_index) argument
486 dump_device_stats(struct libusb20_device *pdev) argument
[all...]
/freebsd-10-stable/tools/tools/usbtest/
H A Dusb_control_ep_test.c81 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-stable/lib/libusb/
H A Dlibusb20.c134 error = xfer->pdev->methods->tr_close(xfer);
211 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize,
214 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize,
228 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) argument
230 if (trIndex >= pdev->nTransfer) {
233 return (pdev->pTransfer + trIndex);
324 xfer->pdev->methods->tr_cancel_async(xfer);
347 xfer->pdev->methods->tr_clear_stall_sync(xfer);
475 struct libusb20_device *pdev = xfer->pdev; local
578 libusb20_dev_close(struct libusb20_device *pdev) argument
626 libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t ifaceIndex) argument
635 libusb20_dev_get_device_desc(struct libusb20_device *pdev) argument
641 libusb20_dev_get_fd(struct libusb20_device *pdev) argument
647 libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t ifaceIndex) argument
656 libusb20_dev_open(struct libusb20_device *pdev, uint16_t nTransferMax) argument
706 libusb20_dev_reset(struct libusb20_device *pdev) argument
715 libusb20_dev_check_connected(struct libusb20_device *pdev) argument
724 libusb20_dev_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument
733 libusb20_dev_get_power_mode(struct libusb20_device *pdev) argument
745 libusb20_dev_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument
751 libusb20_dev_get_power_usage(struct libusb20_device *pdev) argument
763 libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t ifaceIndex, uint8_t altIndex) argument
772 libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex) argument
781 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
793 libusb20_dev_req_string_sync(struct libusb20_device *pdev, uint8_t str_index, uint16_t langid, void *ptr, uint16_t len) argument
847 libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t str_index, void *ptr, uint16_t len) argument
931 libusb20_dev_alloc_config(struct libusb20_device *pdev, uint8_t configIndex) argument
978 struct libusb20_device *pdev; local
993 libusb20_dev_get_config_index(struct libusb20_device *pdev) argument
1022 libusb20_dev_get_mode(struct libusb20_device *pdev) argument
1028 libusb20_dev_get_speed(struct libusb20_device *pdev) argument
1034 libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstats) argument
1060 libusb20_dev_process(struct libusb20_device *pdev) argument
1069 libusb20_dev_wait_process(struct libusb20_device *pdev, int timeout) argument
1087 libusb20_dev_free(struct libusb20_device *pdev) argument
1103 libusb20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument
1113 libusb20_dev_get_backend_name(struct libusb20_device *pdev) argument
1119 libusb20_dev_get_desc(struct libusb20_device *pdev) argument
1125 libusb20_dev_set_debug(struct libusb20_device *pdev, int debug) argument
1132 libusb20_dev_get_debug(struct libusb20_device *pdev) argument
1138 libusb20_dev_get_address(struct libusb20_device *pdev) argument
1144 libusb20_dev_get_parent_address(struct libusb20_device *pdev) argument
1150 libusb20_dev_get_parent_port(struct libusb20_device *pdev) argument
1156 libusb20_dev_get_bus_number(struct libusb20_device *pdev) argument
1162 libusb20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument
1222 libusb20_be_device_foreach(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument
1289 struct libusb20_device *pdev; local
1307 libusb20_be_enqueue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument
1314 libusb20_be_dequeue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev) argument
[all...]
H A Dlibusb20.h208 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 Dlibusb20_ugen20.c133 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
279 struct libusb20_device *pdev; local
311 ugen20_tr_release(struct libusb20_device *pdev) argument
329 ugen20_tr_renew(struct libusb20_device *pdev) argument
370 ugen20_open_device(struct libusb20_device *pdev, uint16_t nMaxTransfer) argument
432 ugen20_close_device(struct libusb20_device *pdev) argument
459 ugen20_get_config_desc_full(struct libusb20_device *pdev, uint8_t **ppbuf, uint16_t *plen, uint8_t cfg_index) argument
511 ugen20_get_config_index(struct libusb20_device *pdev, uint8_t *pindex) argument
524 ugen20_set_config_index(struct libusb20_device *pdev, uint8_t cfg_index) argument
538 ugen20_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index) argument
558 ugen20_reset_device(struct libusb20_device *pdev) argument
572 ugen20_check_connected(struct libusb20_device *pdev) argument
591 ugen20_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode) argument
621 ugen20_get_power_mode(struct libusb20_device *pdev, uint8_t *power_mode) argument
653 ugen20_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize) argument
669 ugen20_get_power_usage(struct libusb20_device *pdev, uint16_t *power_usage) argument
681 ugen20_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstats) argument
704 ugen20_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index) argument
716 ugen20_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index) argument
728 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
755 ugen20_process(struct libusb20_device *pdev) argument
959 ugen20_dev_get_iface_desc(struct libusb20_device *pdev, uint8_t iface_index, char *buf, uint8_t len) argument
977 ugen20_dev_get_info(struct libusb20_device *pdev, struct usb_device_info *pinfo) argument
[all...]
H A Dlibusb20_int.h57 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);
155 struct libusb20_device *pdev; /* the USB device we belong to */ member in struct:libusb20_transfer
[all...]
H A Dlibusb10.c261 struct libusb20_device *pdev; local
278 pdev = NULL;
280 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev)))
291 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) {
305 libusb20_be_dequeue_device(usb_backend, pdev);
316 dev->os_priv = pdev;
317 pdev->privLuData = dev;
497 struct libusb20_device *pdev = dev->os_priv; local
510 err = libusb20_dev_open(pdev, LIBUSB_NUM_SW_ENDPOINT
531 struct libusb20_device *pdev; local
569 libusb_close(struct libusb20_device *pdev) argument
592 libusb_get_device(struct libusb20_device *pdev) argument
600 libusb_get_configuration(struct libusb20_device *pdev, int *config) argument
619 libusb_set_configuration(struct libusb20_device *pdev, int configuration) argument
665 libusb_claim_interface(struct libusb20_device *pdev, int interface_number) argument
691 libusb_release_interface(struct libusb20_device *pdev, int interface_number) argument
720 libusb_set_interface_alt_setting(struct libusb20_device *pdev, int interface_number, int alternate_setting) argument
756 libusb10_get_transfer(struct libusb20_device *pdev, uint8_t endpoint, uint8_t xfer_index) argument
771 libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint) argument
804 libusb_reset_device(struct libusb20_device *pdev) argument
827 libusb_check_connected(struct libusb20_device *pdev) argument
842 libusb_kernel_driver_active(struct libusb20_device *pdev, int interface) argument
854 libusb_get_driver_np(struct libusb20_device *pdev, int interface, char *name, int namelen) argument
861 libusb_get_driver(struct libusb20_device *pdev, int interface, char *name, int namelen) argument
889 libusb_detach_kernel_driver_np(struct libusb20_device *pdev, int interface) argument
895 libusb_detach_kernel_driver(struct libusb20_device *pdev, int interface) argument
909 libusb_attach_kernel_driver(struct libusb20_device *pdev, int interface) argument
971 libusb10_get_maxframe(struct libusb20_device *pdev, libusb_transfer *xfer) argument
990 libusb10_get_buffsize(struct libusb20_device *pdev, libusb_transfer *xfer) argument
1312 libusb10_submit_transfer_sub(struct libusb20_device *pdev, uint8_t endpoint) argument
1582 struct libusb20_device *pdev = dev->os_priv; local
1596 libusb10_cancel_all_transfer_locked(struct libusb20_device *pdev, struct libusb_device *dev) argument
[all...]
/freebsd-10-stable/sys/dev/xen/pcifront/
H A Dpcifront.c106 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-stable/sys/dev/vxge/vxgehal/
H A Dvxgehal-swapper.c37 * @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 Dvxgehal-srpcim.c66 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 Dvxgehal-ifmsg.c131 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 Dvxgehal-virtualpath.c37 * @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-stable/sys/ofed/include/linux/
H A Dpci.h157 _pci_get_rle(struct pci_dev *pdev, int type, int rid) argument
162 dinfo = device_get_ivars(pdev->dev.bsddev);
168 _pci_get_bar(struct pci_dev *pdev, int bar) argument
173 if ((rle = _pci_get_rle(pdev, SYS_RES_MEMORY, bar)) == NULL)
174 rle = _pci_get_rle(pdev, SYS_RES_IOPORT, bar);
181 struct pci_dev *pdev; local
184 list_for_each_entry(pdev, &pci_devices, links) {
185 if (irq == pdev->dev.irq)
187 if (irq >= pdev->dev.msix && irq < pdev
197 pci_resource_start(struct pci_dev *pdev, int bar) argument
207 pci_resource_len(struct pci_dev *pdev, int bar) argument
217 pci_resource_type(struct pci_dev *pdev, int bar) argument
235 pci_resource_flags(struct pci_dev *pdev, int bar) argument
253 pci_get_drvdata(struct pci_dev *pdev) argument
260 pci_set_drvdata(struct pci_dev *pdev, void *data) argument
267 pci_enable_device(struct pci_dev *pdev) argument
276 pci_disable_device(struct pci_dev *pdev) argument
281 pci_set_master(struct pci_dev *pdev) argument
289 pci_clear_master(struct pci_dev *pdev) argument
297 pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) argument
313 pci_release_region(struct pci_dev *pdev, int bar) argument
323 pci_release_regions(struct pci_dev *pdev) argument
332 pci_request_regions(struct pci_dev *pdev, const char *res_name) argument
348 pci_disable_msix(struct pci_dev *pdev) argument
368 pci_find_capability(struct pci_dev *pdev, int capid) argument
398 pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val) argument
406 pci_read_config_word(struct pci_dev *pdev, int where, u16 *val) argument
414 pci_read_config_dword(struct pci_dev *pdev, int where, u32 *val) argument
422 pci_write_config_byte(struct pci_dev *pdev, int where, u8 val) argument
430 pci_write_config_word(struct pci_dev *pdev, int where, u16 val) argument
438 pci_write_config_dword(struct pci_dev *pdev, int where, u32 val) argument
488 struct pci_dev *pdev; local
531 struct pci_dev *pdev; local
600 pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq) argument
656 pci_channel_offline(struct pci_dev *pdev) argument
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/
H A Dmthca_reset.c77 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 Dmthca_catas.c73 struct pci_dev *pdev = dev->pdev; local
74 ret = __mthca_restart_one(dev->pdev);
78 pci_name(pdev), ret);
80 struct mthca_dev *d = pci_get_drvdata(pdev);
156 addr = pci_resource_start(dev->pdev, 0) +
157 ((pci_resource_len(dev->pdev, 0) - 1) &
/freebsd-10-stable/sys/dev/nxge/xgehal/
H A Dxgehal-mm.c72 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 Dxgehal-device.c87 __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 Dxgehal-ring.c110 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-10-stable/sys/ofed/drivers/net/mlx4/
H A Dreset.c80 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 Dcatas.c75 if (pci_channel_offline(dev->pdev))
108 struct pci_dev *pdev = priv->dev.pdev; local
111 if (pci_channel_offline(pdev))
114 ret = mlx4_restart_one(priv->dev.pdev);
118 pci_name(pdev), ret);
120 dev = pci_get_drvdata(pdev);
139 addr = pci_resource_start(dev->pdev, priv->fw.catas_bar) +
/freebsd-10-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c155 static int set_dma_caps(struct pci_dev *pdev) argument
159 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
161 device_printf((&pdev->dev)->bsddev, "WARN: ""Warning: couldn't set 64-bit PCI DMA mask\n");
162 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
164 device_printf((&pdev->dev)->bsddev, "ERR: ""Can't set PCI DMA mask, aborting\n");
169 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
171 device_printf((&pdev->dev)->bsddev, "WARN: ""Warning: couldn't set 64-bit consistent PCI DMA mask\n");
172 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
174 device_printf((&pdev->dev)->bsddev, "ERR: ""Can't set consistent PCI DMA mask, aborting\n");
179 dma_set_max_seg_size(&pdev
183 request_bar(struct pci_dev *pdev) argument
199 release_bar(struct pci_dev *pdev) argument
630 mlx5_dev_init(struct mlx5_core_dev *dev, struct pci_dev *pdev) argument
1012 init_one(struct pci_dev *pdev, const struct pci_device_id *id) argument
1055 remove_one(struct pci_dev *pdev) argument
[all...]
/freebsd-10-stable/sys/dev/vxge/
H A Dvxge-osdep.h394 #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-stable/sys/dev/cxgb/common/
H A Dcxgb_ctl_defs.h81 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-stable/sys/dev/nxge/
H A Dxge-osdep.h287 * @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...]

Completed in 257 milliseconds

123456