/drivers/media/usb/pwc/ |
H A D | pwc-dec1.c | 27 void pwc_dec1_init(struct pwc_device *pdev, const unsigned char *cmd) argument 29 struct pwc_dec1_private *pdec = &pdev->dec1; 31 pdec->version = pdev->release;
|
H A D | pwc-misc.c | 41 int pwc_get_size(struct pwc_device *pdev, int width, int height) argument 48 if (!(pdev->image_mask & (1 << i))) 58 if (pdev->image_mask & (1 << i)) 67 void pwc_construct(struct pwc_device *pdev) argument 69 if (DEVICE_USE_CODEC1(pdev->type)) { 71 pdev->image_mask = 1 << PSZ_SQCIF | 1 << PSZ_QCIF | 1 << PSZ_CIF; 72 pdev->vcinterface = 2; 73 pdev->vendpoint = 4; 74 pdev->frame_header_size = 0; 75 pdev [all...] |
H A D | pwc-ctrl.c | 107 static int recv_control_msg(struct pwc_device *pdev, argument 112 rc = usb_control_msg(pdev->udev, usb_rcvctrlpipe(pdev->udev, 0), 115 value, pdev->vcinterface, 116 pdev->ctrl_buf, recv_count, USB_CTRL_GET_TIMEOUT); 123 static inline int send_video_command(struct pwc_device *pdev, argument 128 memcpy(pdev->ctrl_buf, buf, buflen); 130 rc = usb_control_msg(pdev->udev, usb_sndctrlpipe(pdev->udev, 0), 134 pdev 143 send_control_msg(struct pwc_device *pdev, u8 request, u16 value, void *buf, int buflen) argument 153 set_video_mode_Nala(struct pwc_device *pdev, int size, int pixfmt, int frames, int *compression, int send_to_cam) argument 228 set_video_mode_Timon(struct pwc_device *pdev, int size, int pixfmt, int frames, int *compression, int send_to_cam) argument 279 set_video_mode_Kiara(struct pwc_device *pdev, int size, int pixfmt, int frames, int *compression, int send_to_cam) argument 330 pwc_set_video_mode(struct pwc_device *pdev, int width, int height, int pixfmt, int frames, int *compression, int send_to_cam) argument 359 pwc_get_fps_Nala(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 371 pwc_get_fps_Kiara(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 383 pwc_get_fps_Timon(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 395 pwc_get_fps(struct pwc_device *pdev, unsigned int index, unsigned int size) argument 412 pwc_get_u8_ctrl(struct pwc_device *pdev, u8 request, u16 value, int *data) argument 424 pwc_set_u8_ctrl(struct pwc_device *pdev, u8 request, u16 value, u8 data) argument 436 pwc_get_s8_ctrl(struct pwc_device *pdev, u8 request, u16 value, int *data) argument 448 pwc_get_u16_ctrl(struct pwc_device *pdev, u8 request, u16 value, int *data) argument 460 pwc_set_u16_ctrl(struct pwc_device *pdev, u8 request, u16 value, u16 data) argument 473 pwc_button_ctrl(struct pwc_device *pdev, u16 value) argument 485 pwc_camera_power(struct pwc_device *pdev, int power) argument 506 pwc_set_leds(struct pwc_device *pdev, int on_value, int off_value) argument 535 pwc_get_cmos_sensor(struct pwc_device *pdev, int *sensor) argument [all...] |
H A D | pwc-uncompress.c | 36 int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) argument 45 yuv = fbuf->data + pdev->frame_header_size; /* Skip header */ 48 if (pdev->pixfmt != V4L2_PIX_FMT_YUV420) 51 raw_frame->type = cpu_to_le16(pdev->type); 52 raw_frame->vbandlength = cpu_to_le16(pdev->vbandlength); 56 memcpy(raw_frame->cmd, pdev->cmd_buf, 4); 57 memcpy(raw_frame+1, yuv, pdev->frame_size); 59 pdev->frame_size + sizeof(struct pwc_raw_frame)); 64 pdev->width * pdev [all...] |
H A D | pwc-v4l.c | 162 int pwc_init_controls(struct pwc_device *pdev) argument 168 hdl = &pdev->ctrl_handler; 174 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, BRIGHTNESS_FORMATTER, &def); 177 pdev->brightness = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, 180 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, CONTRAST_FORMATTER, &def); 183 pdev->contrast = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, 186 if (pdev->type >= 675) { 187 if (pdev->type < 730) 188 pdev->saturation_fmt = SATURATION_MODE_FORMATTER2; 190 pdev 422 pwc_vidioc_try_fmt(struct pwc_device *pdev, struct v4l2_format *f) argument 464 struct pwc_device *pdev = video_drvdata(file); local 495 struct pwc_device *pdev = video_drvdata(file); local 529 struct pwc_device *pdev = local 599 pwc_set_awb(struct pwc_device *pdev) argument 644 pwc_set_autogain(struct pwc_device *pdev) argument 673 pwc_set_exposure_auto(struct pwc_device *pdev) argument 703 pwc_set_autogain_expo(struct pwc_device *pdev) argument 741 pwc_set_motor(struct pwc_device *pdev) argument 780 struct pwc_device *pdev = local 885 struct pwc_device *pdev = video_drvdata(file); local 907 struct pwc_device *pdev = video_drvdata(file); local 920 struct pwc_device *pdev = video_drvdata(file); local 928 struct pwc_device *pdev = video_drvdata(file); local 953 struct pwc_device *pdev = video_drvdata(file); local 983 struct pwc_device *pdev = video_drvdata(file); local 1002 struct pwc_device *pdev = video_drvdata(file); local [all...] |
H A D | pwc-if.c | 45 pdev: struct pwc_devive * 119 static void pwc_isoc_cleanup(struct pwc_device *pdev); 158 static struct pwc_frame_buf *pwc_get_next_fill_buf(struct pwc_device *pdev) argument 163 spin_lock_irqsave(&pdev->queued_bufs_lock, flags); 164 if (list_empty(&pdev->queued_bufs)) 167 buf = list_entry(pdev->queued_bufs.next, struct pwc_frame_buf, list); 170 spin_unlock_irqrestore(&pdev->queued_bufs_lock, flags); 174 static void pwc_snapshot_button(struct pwc_device *pdev, int down) argument 183 if (pdev->button_dev) { 184 input_report_key(pdev 190 pwc_frame_complete(struct pwc_device *pdev) argument 258 struct pwc_device *pdev = (struct pwc_device *)urb->context; local 356 pwc_isoc_init(struct pwc_device *pdev) argument 465 pwc_iso_stop(struct pwc_device *pdev) argument 478 pwc_iso_free(struct pwc_device *pdev) argument 499 pwc_isoc_cleanup(struct pwc_device *pdev) argument 511 pwc_cleanup_queued_bufs(struct pwc_device *pdev) argument 562 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); local 577 struct pwc_device *pdev = vb2_get_drv_priv(vq); local 608 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); local 619 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); local 642 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); local 659 struct pwc_device *pdev = vb2_get_drv_priv(vq); local 686 struct pwc_device *pdev = vb2_get_drv_priv(vq); local 722 struct pwc_device *pdev = NULL; local 1120 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); local [all...] |
/drivers/usb/host/ |
H A D | xhci-mvebu.h | 14 int xhci_mvebu_mbus_init_quirk(struct platform_device *pdev); 16 static inline int xhci_mvebu_mbus_init_quirk(struct platform_device *pdev) argument
|
/drivers/staging/android/fiq_debugger/ |
H A D | fiq_debugger.h | 44 int (*uart_init)(struct platform_device *pdev); 45 void (*uart_free)(struct platform_device *pdev); 46 int (*uart_resume)(struct platform_device *pdev); 47 int (*uart_getc)(struct platform_device *pdev); 48 void (*uart_putc)(struct platform_device *pdev, unsigned int c); 49 void (*uart_flush)(struct platform_device *pdev); 50 void (*uart_enable)(struct platform_device *pdev); 51 void (*uart_disable)(struct platform_device *pdev); 53 int (*uart_dev_suspend)(struct platform_device *pdev); 54 int (*uart_dev_resume)(struct platform_device *pdev); [all...] |
/drivers/pci/ |
H A D | irq.c | 13 static void pci_note_irq_problem(struct pci_dev *pdev, const char *reason) argument 15 struct pci_dev *parent = to_pci_dev(pdev->dev.parent); 17 dev_err(&pdev->dev, 20 dev_err(&pdev->dev, "%s\n", reason); 21 dev_err(&pdev->dev, "Please report to linux-kernel@vger.kernel.org\n"); 27 * @pdev: device whose interrupt is lost 37 enum pci_lost_interrupt_reason pci_lost_interrupt(struct pci_dev *pdev) argument 39 if (pdev->msi_enabled || pdev->msix_enabled) { 42 if (pdev [all...] |
H A D | rom.c | 18 * @pdev: PCI device to enable 25 int pci_enable_rom(struct pci_dev *pdev) argument 27 struct resource *res = pdev->resource + PCI_ROM_RESOURCE; 34 pcibios_resource_to_bus(pdev->bus, ®ion, res); 35 pci_read_config_dword(pdev, pdev->rom_base_reg, &rom_addr); 38 pci_write_config_dword(pdev, pdev->rom_base_reg, rom_addr); 45 * @pdev: PCI device to disable 50 void pci_disable_rom(struct pci_dev *pdev) argument 70 pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size) argument 116 pci_map_rom(struct pci_dev *pdev, size_t *size) argument 180 pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom) argument 201 pci_cleanup_rom(struct pci_dev *pdev) argument 220 pci_platform_rom(struct pci_dev *pdev, size_t *size) argument [all...] |
H A D | xen-pcifront.c | 56 struct pcifront_device *pdev; member in struct:pcifront_sd 62 return sd->pdev; 67 struct pcifront_device *pdev) 70 sd->pdev = pdev; 101 static inline void schedule_pcifront_aer_op(struct pcifront_device *pdev) argument 103 if (test_bit(_XEN_PCIB_active, (unsigned long *)&pdev->sh_info->flags) 104 && !test_and_set_bit(_PDEVB_op_active, &pdev->flags)) { 105 dev_dbg(&pdev->xdev->dev, "schedule aer frontend job\n"); 106 schedule_work(&pdev 65 pcifront_init_sd(struct pcifront_sd *sd, unsigned int domain, unsigned int bus, struct pcifront_device *pdev) argument 110 do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op) argument 190 struct pcifront_device *pdev = pcifront_get_pdev(sd); local 229 struct pcifront_device *pdev = pcifront_get_pdev(sd); local 260 struct pcifront_device *pdev = pcifront_get_pdev(sd); local 313 struct pcifront_device *pdev = pcifront_get_pdev(sd); local 332 struct pcifront_device *pdev = pcifront_get_pdev(sd); local 361 struct pcifront_device *pdev = pcifront_get_pdev(sd); local 395 struct pcifront_device *pdev = data; local 416 pcifront_scan_bus(struct pcifront_device *pdev, unsigned int domain, unsigned int bus, struct pci_bus *b) argument 445 pcifront_scan_root(struct pcifront_device *pdev, unsigned int domain, unsigned int bus) argument 511 pcifront_rescan_root(struct pcifront_device *pdev, unsigned int domain, unsigned int bus) argument 558 pcifront_free_roots(struct pcifront_device *pdev) argument 580 pcifront_common_process(int cmd, struct pcifront_device *pdev, pci_channel_state_t state) argument 645 struct pcifront_device *pdev = local 675 struct pcifront_device *pdev = dev; local 679 pcifront_connect_and_init_dma(struct pcifront_device *pdev) argument 701 pcifront_disconnect(struct pcifront_device *pdev) argument 715 struct pcifront_device *pdev; local 752 free_pdev(struct pcifront_device *pdev) argument 777 pcifront_publish_info(struct pcifront_device *pdev) argument 843 pcifront_try_connect(struct pcifront_device *pdev) argument 910 pcifront_try_disconnect(struct pcifront_device *pdev) argument 933 pcifront_attach_devices(struct pcifront_device *pdev) argument 991 pcifront_detach_devices(struct pcifront_device *pdev) argument 1072 struct pcifront_device *pdev = dev_get_drvdata(&xdev->dev); local 1108 struct pcifront_device *pdev = alloc_pdev(xdev); local 1127 struct pcifront_device *pdev = dev_get_drvdata(&xdev->dev); local [all...] |
/drivers/mmc/host/ |
H A D | dw_mmc-pltfm.h | 15 extern int dw_mci_pltfm_register(struct platform_device *pdev, 17 extern int dw_mci_pltfm_remove(struct platform_device *pdev);
|
H A D | sdhci-pci-o2micro.c | 27 pci_read_config_dword(chip->pdev, 33 pci_write_config_dword(chip->pdev, 43 ret = pci_read_config_dword(chip->pdev, 49 pci_write_config_dword(chip->pdev, 52 ret = pci_read_config_dword(chip->pdev, 58 pci_write_config_dword(chip->pdev, 68 ret = pci_read_config_dword(chip->pdev, O2_SD_DEV_CTRL, &scratch_32); 72 pci_write_config_dword(chip->pdev, O2_SD_DEV_CTRL, scratch_32); 75 ret = pci_read_config_dword(chip->pdev, O2_SD_MISC_REG5, &scratch_32); 80 pci_write_config_dword(chip->pdev, O2_SD_MISC_REG [all...] |
/drivers/net/wireless/rt2x00/ |
H A D | rt2x00soc.h | 30 int rt2x00soc_probe(struct platform_device *pdev, const struct rt2x00_ops *ops); 31 int rt2x00soc_remove(struct platform_device *pdev); 33 int rt2x00soc_suspend(struct platform_device *pdev, pm_message_t state); 34 int rt2x00soc_resume(struct platform_device *pdev);
|
/drivers/staging/xgifb/ |
H A D | vb_init.h | 3 extern unsigned char XGIInitNew(struct pci_dev *pdev);
|
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_pci.c | 62 * @pdev: pci device pointer 71 static int stmmac_pci_probe(struct pci_dev *pdev, argument 80 ret = pci_enable_device(pdev); 83 pci_name(pdev)); 86 if (pci_request_regions(pdev, STMMAC_RESOURCE_NAME)) { 94 if (pci_resource_len(pdev, i) == 0) 96 addr = pci_iomap(pdev, i, 0); 105 pci_set_master(pdev); 109 priv = stmmac_dvr_probe(&(pdev->dev), &plat_dat, addr); 115 priv->dev->irq = pdev 141 stmmac_pci_remove(struct pci_dev *pdev) argument 154 stmmac_pci_suspend(struct pci_dev *pdev, pm_message_t state) argument 166 stmmac_pci_resume(struct pci_dev *pdev) argument [all...] |
/drivers/misc/mei/ |
H A D | pci-txe.c | 53 static void mei_txe_pci_iounmap(struct pci_dev *pdev, struct mei_txe_hw *hw) argument 59 pci_iounmap(pdev, hw->mem_addr[i]); 67 * @pdev: PCI device structure 72 static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 80 err = pci_enable_device(pdev); 82 dev_err(&pdev->dev, "failed to enable pci device.\n"); 86 pci_set_master(pdev); 88 err = pci_request_regions(pdev, KBUILD_MODNAME); 90 dev_err(&pdev->dev, "failed to get pci regions.\n"); 94 err = pci_set_dma_mask(pdev, DMA_BIT_MAS 202 mei_txe_remove(struct pci_dev *pdev) argument 243 struct pci_dev *pdev = to_pci_dev(device); local 263 struct pci_dev *pdev = to_pci_dev(device); local 301 struct pci_dev *pdev = to_pci_dev(device); local 316 struct pci_dev *pdev = to_pci_dev(device); local 351 struct pci_dev *pdev = to_pci_dev(device); local 381 struct pci_dev *pdev = to_pci_dev(dev->dev); local [all...] |
/drivers/xen/xen-pciback/ |
H A D | xenbus.c | 39 struct xen_pcibk_device *pdev; local 41 pdev = kzalloc(sizeof(struct xen_pcibk_device), GFP_KERNEL); 42 if (pdev == NULL) 44 dev_dbg(&xdev->dev, "allocated pdev @ 0x%p\n", pdev); 46 pdev->xdev = xdev; 47 dev_set_drvdata(&xdev->dev, pdev); 49 mutex_init(&pdev->dev_lock); 51 pdev->sh_info = NULL; 52 pdev 65 xen_pcibk_disconnect(struct xen_pcibk_device *pdev) argument 87 free_pdev(struct xen_pcibk_device *pdev) argument 106 xen_pcibk_do_attach(struct xen_pcibk_device *pdev, int gnt_ref, int remote_evtchn) argument 141 xen_pcibk_attach(struct xen_pcibk_device *pdev) argument 201 xen_pcibk_publish_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn, unsigned int devid) argument 224 xen_pcibk_export_device(struct xen_pcibk_device *pdev, int domain, int bus, int slot, int func, int devid) argument 271 xen_pcibk_remove_device(struct xen_pcibk_device *pdev, int domain, int bus, int slot, int func) argument 300 xen_pcibk_publish_pci_root(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus) argument 360 xen_pcibk_reconfigure(struct xen_pcibk_device *pdev) argument 518 struct xen_pcibk_device *pdev = dev_get_drvdata(&xdev->dev); local 559 xen_pcibk_setup_backend(struct xen_pcibk_device *pdev) argument 659 struct xen_pcibk_device *pdev = local 676 struct xen_pcibk_device *pdev = alloc_pdev(dev); local 709 struct xen_pcibk_device *pdev = dev_get_drvdata(&dev->dev); local [all...] |
/drivers/net/wireless/ |
H A D | atmel_pci.c | 51 static int atmel_pci_probe(struct pci_dev *pdev, argument 56 if (pci_enable_device(pdev)) 59 pci_set_master(pdev); 61 dev = init_atmel_card(pdev->irq, pdev->resource[1].start, 63 &pdev->dev, NULL, NULL); 67 pci_set_drvdata(pdev, dev); 71 static void atmel_pci_remove(struct pci_dev *pdev) argument 73 stop_atmel_card(pci_get_drvdata(pdev));
|
/drivers/usb/chipidea/ |
H A D | ci_hdrc_zevio.c | 25 static int ci_hdrc_zevio_probe(struct platform_device *pdev) argument 29 dev_dbg(&pdev->dev, "ci_hdrc_zevio_probe\n"); 31 ci_pdev = ci_hdrc_add_device(&pdev->dev, 32 pdev->resource, pdev->num_resources, 36 dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); 40 platform_set_drvdata(pdev, ci_pdev); 45 static int ci_hdrc_zevio_remove(struct platform_device *pdev) argument 47 struct platform_device *ci_pdev = platform_get_drvdata(pdev);
|
/drivers/uio/ |
H A D | uio_pci_generic.c | 34 struct pci_dev *pdev; member in struct:uio_pci_generic_dev 49 if (!pci_check_and_mask_intx(gdev->pdev)) 56 static int probe(struct pci_dev *pdev, argument 62 err = pci_enable_device(pdev); 64 dev_err(&pdev->dev, "%s: pci_enable_device failed: %d\n", 69 if (!pdev->irq) { 70 dev_warn(&pdev->dev, "No IRQ assigned to device: " 72 pci_disable_device(pdev); 76 if (!pci_intx_mask_supported(pdev)) { 89 gdev->info.irq = pdev 107 remove(struct pci_dev *pdev) argument [all...] |
/drivers/net/wireless/orinoco/ |
H A D | orinoco_pci.h | 22 static int orinoco_pci_suspend(struct pci_dev *pdev, pm_message_t state) argument 24 struct orinoco_private *priv = pci_get_drvdata(pdev); 27 free_irq(pdev->irq, priv); 28 pci_save_state(pdev); 29 pci_disable_device(pdev); 30 pci_set_power_state(pdev, PCI_D3hot); 35 static int orinoco_pci_resume(struct pci_dev *pdev) argument 37 struct orinoco_private *priv = pci_get_drvdata(pdev); 41 pci_set_power_state(pdev, PCI_D0); 42 err = pci_enable_device(pdev); [all...] |
/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_pci.c | 28 static void rtl8192_parse_pci_configuration(struct pci_dev *pdev, argument 36 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); 42 pci_read_config_byte(pdev, 0x98, &tmp); 44 pci_write_config_byte(pdev, 0x98, tmp); 47 pci_write_config_byte(pdev, 0x70f, tmp); 50 bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev) argument 58 VenderID = pdev->vendor; 59 DeviceID = pdev->device; 60 RevisionID = pdev->revision; 61 pci_read_config_word(pdev, [all...] |
/drivers/mcb/ |
H A D | mcb-pci.c | 27 struct pci_dev *pdev = to_pci_dev(dev); local 29 return pdev->irq; 32 static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument 40 priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); 44 ret = pci_enable_device(pdev); 46 dev_err(&pdev->dev, "Failed to enable PCI device\n"); 50 mapbase = pci_resource_start(pdev, 0); 52 dev_err(&pdev->dev, "No PCI resource\n"); 56 ret = pci_request_region(pdev, 0, KBUILD_MODNAME); 58 dev_err(&pdev 105 mcb_pci_remove(struct pci_dev *pdev) argument [all...] |
/drivers/spi/ |
H A D | spi-dw-pci.c | 27 struct pci_dev *pdev; member in struct:dw_spi_pci 39 static int spi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 47 ret = pcim_enable_device(pdev); 51 dwpci = devm_kzalloc(&pdev->dev, sizeof(struct dw_spi_pci), 56 dwpci->pdev = pdev; 60 dws->paddr = pci_resource_start(pdev, pci_bar); 62 ret = pcim_iomap_regions(pdev, 1 << pci_bar, pci_name(pdev)); 66 dws->regs = pcim_iomap_table(pdev)[pci_ba 95 spi_pci_remove(struct pci_dev *pdev) argument 105 struct pci_dev *pdev = to_pci_dev(dev); local 113 struct pci_dev *pdev = to_pci_dev(dev); local [all...] |