/kernel/linux/linux-5.10/drivers/media/usb/pwc/ |
D | pwc-ctrl.c | 95 static int recv_control_msg(struct pwc_device *pdev, in recv_control_msg() argument 100 rc = usb_control_msg(pdev->udev, usb_rcvctrlpipe(pdev->udev, 0), in recv_control_msg() 103 value, pdev->vcinterface, in recv_control_msg() 104 pdev->ctrl_buf, recv_count, USB_CTRL_GET_TIMEOUT); in recv_control_msg() 111 static inline int send_video_command(struct pwc_device *pdev, in send_video_command() argument 116 memcpy(pdev->ctrl_buf, buf, buflen); in send_video_command() 118 rc = usb_control_msg(pdev->udev, usb_sndctrlpipe(pdev->udev, 0), in send_video_command() 122 pdev->ctrl_buf, buflen, USB_CTRL_SET_TIMEOUT); in send_video_command() 124 memcpy(pdev->cmd_buf, buf, buflen); in send_video_command() 131 int send_control_msg(struct pwc_device *pdev, in send_control_msg() argument [all …]
|
D | pwc-if.c | 119 static void pwc_isoc_cleanup(struct pwc_device *pdev); 187 static struct pwc_frame_buf *pwc_get_next_fill_buf(struct pwc_device *pdev) in pwc_get_next_fill_buf() argument 192 spin_lock_irqsave(&pdev->queued_bufs_lock, flags); in pwc_get_next_fill_buf() 193 if (list_empty(&pdev->queued_bufs)) in pwc_get_next_fill_buf() 196 buf = list_entry(pdev->queued_bufs.next, struct pwc_frame_buf, list); in pwc_get_next_fill_buf() 199 spin_unlock_irqrestore(&pdev->queued_bufs_lock, flags); in pwc_get_next_fill_buf() 203 static void pwc_snapshot_button(struct pwc_device *pdev, int down) in pwc_snapshot_button() argument 212 if (pdev->button_dev) { in pwc_snapshot_button() 213 input_report_key(pdev->button_dev, KEY_CAMERA, down); in pwc_snapshot_button() 214 input_sync(pdev->button_dev); in pwc_snapshot_button() [all …]
|
D | pwc-v4l.c | 150 int pwc_init_controls(struct pwc_device *pdev) in pwc_init_controls() argument 156 hdl = &pdev->ctrl_handler; in pwc_init_controls() 162 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, BRIGHTNESS_FORMATTER, &def); in pwc_init_controls() 165 pdev->brightness = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 168 r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, CONTRAST_FORMATTER, &def); in pwc_init_controls() 171 pdev->contrast = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 174 if (pdev->type >= 675) { in pwc_init_controls() 175 if (pdev->type < 730) in pwc_init_controls() 176 pdev->saturation_fmt = SATURATION_MODE_FORMATTER2; in pwc_init_controls() 178 pdev->saturation_fmt = SATURATION_MODE_FORMATTER1; in pwc_init_controls() [all …]
|
D | pwc-misc.c | 29 int pwc_get_size(struct pwc_device *pdev, int width, int height) in pwc_get_size() argument 36 if (!(pdev->image_mask & (1 << i))) in pwc_get_size() 46 if (pdev->image_mask & (1 << i)) in pwc_get_size() 55 void pwc_construct(struct pwc_device *pdev) in pwc_construct() argument 57 if (DEVICE_USE_CODEC1(pdev->type)) { in pwc_construct() 59 pdev->image_mask = 1 << PSZ_SQCIF | 1 << PSZ_QCIF | 1 << PSZ_CIF; in pwc_construct() 60 pdev->vcinterface = 2; in pwc_construct() 61 pdev->vendpoint = 4; in pwc_construct() 62 pdev->frame_header_size = 0; in pwc_construct() 63 pdev->frame_trailer_size = 0; in pwc_construct() [all …]
|
/kernel/linux/linux-5.10/arch/mips/pci/ |
D | fixup-fuloong2e.c | 47 static void loongson2e_nec_fixup(struct pci_dev *pdev) in loongson2e_nec_fixup() argument 52 pci_read_config_dword(pdev, 0xe0, &val); in loongson2e_nec_fixup() 53 pci_write_config_dword(pdev, 0xe0, (val & ~7) | 0x4); in loongson2e_nec_fixup() 56 pci_write_config_dword(pdev, 0xe4, 1 << 5); in loongson2e_nec_fixup() 59 static void loongson2e_686b_func0_fixup(struct pci_dev *pdev) in loongson2e_686b_func0_fixup() argument 63 sb_slot = PCI_SLOT(pdev->devfn); in loongson2e_686b_func0_fixup() 68 pci_write_config_byte(pdev, 0x40, 0x08); in loongson2e_686b_func0_fixup() 71 pci_write_config_byte(pdev, 0x41, 0x01); in loongson2e_686b_func0_fixup() 74 pci_write_config_byte(pdev, 0x45, 0x00); in loongson2e_686b_func0_fixup() 77 pci_write_config_byte(pdev, 0x46, 0xe0); in loongson2e_686b_func0_fixup() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | ats.c | 59 struct pci_dev *pdev; in pci_enable_ats() local 76 pdev = pci_physfn(dev); in pci_enable_ats() 77 if (pdev->ats_stu != ps) in pci_enable_ats() 159 int pci_ats_page_aligned(struct pci_dev *pdev) in pci_ats_page_aligned() argument 163 if (!pdev->ats_cap) in pci_ats_page_aligned() 166 pci_read_config_word(pdev, pdev->ats_cap + PCI_ATS_CAP, &cap); in pci_ats_page_aligned() 175 void pci_pri_init(struct pci_dev *pdev) in pci_pri_init() argument 179 pdev->pri_cap = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PRI); in pci_pri_init() 181 if (!pdev->pri_cap) in pci_pri_init() 184 pci_read_config_word(pdev, pdev->pri_cap + PCI_PRI_STATUS, &status); in pci_pri_init() [all …]
|
D | xen-pcifront.c | 59 struct pcifront_device *pdev; member 65 return sd->pdev; in pcifront_get_pdev() 70 struct pcifront_device *pdev) in pcifront_init_sd() argument 75 sd->pdev = pdev; in pcifront_init_sd() 103 static inline void schedule_pcifront_aer_op(struct pcifront_device *pdev) in schedule_pcifront_aer_op() argument 105 if (test_bit(_XEN_PCIB_active, (unsigned long *)&pdev->sh_info->flags) in schedule_pcifront_aer_op() 106 && !test_and_set_bit(_PDEVB_op_active, &pdev->flags)) { in schedule_pcifront_aer_op() 107 dev_dbg(&pdev->xdev->dev, "schedule aer frontend job\n"); in schedule_pcifront_aer_op() 108 schedule_work(&pdev->op_work); in schedule_pcifront_aer_op() 112 static int do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op) in do_pci_op() argument [all …]
|
/kernel/linux/linux-5.10/drivers/pci/pcie/ |
D | dpc.c | 77 static bool dpc_completed(struct pci_dev *pdev) in dpc_completed() argument 81 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_STATUS, &status); in dpc_completed() 85 if (test_bit(PCI_DPC_RECOVERING, &pdev->priv_flags)) in dpc_completed() 99 bool pci_dpc_recovered(struct pci_dev *pdev) in pci_dpc_recovered() argument 103 if (!pdev->dpc_cap) in pci_dpc_recovered() 110 host = pci_find_host_bridge(pdev->bus); in pci_dpc_recovered() 119 wait_event_timeout(dpc_completed_waitqueue, dpc_completed(pdev), in pci_dpc_recovered() 122 return test_and_clear_bit(PCI_DPC_RECOVERED, &pdev->priv_flags); in pci_dpc_recovered() 126 static int dpc_wait_rp_inactive(struct pci_dev *pdev) in dpc_wait_rp_inactive() argument 129 u16 cap = pdev->dpc_cap, status; in dpc_wait_rp_inactive() [all …]
|
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/ |
D | xenbus.c | 39 struct xen_pcibk_device *pdev; in alloc_pdev() local 41 pdev = kzalloc(sizeof(struct xen_pcibk_device), GFP_KERNEL); in alloc_pdev() 42 if (pdev == NULL) in alloc_pdev() 44 dev_dbg(&xdev->dev, "allocated pdev @ 0x%p\n", pdev); in alloc_pdev() 46 pdev->xdev = xdev; in alloc_pdev() 48 mutex_init(&pdev->dev_lock); in alloc_pdev() 50 pdev->sh_info = NULL; in alloc_pdev() 51 pdev->evtchn_irq = INVALID_EVTCHN_IRQ; in alloc_pdev() 52 pdev->be_watching = 0; in alloc_pdev() 54 INIT_WORK(&pdev->op_work, xen_pcibk_do_op); in alloc_pdev() [all …]
|
/kernel/linux/linux-5.10/drivers/w1/masters/ |
D | ds2482.c | 106 struct ds2482_data *pdev; member 148 static inline int ds2482_select_register(struct ds2482_data *pdev, u8 read_ptr) in ds2482_select_register() argument 150 if (pdev->read_prt != read_ptr) { in ds2482_select_register() 151 if (i2c_smbus_write_byte_data(pdev->client, in ds2482_select_register() 156 pdev->read_prt = read_ptr; in ds2482_select_register() 169 static inline int ds2482_send_cmd(struct ds2482_data *pdev, u8 cmd) in ds2482_send_cmd() argument 171 if (i2c_smbus_write_byte(pdev->client, cmd) < 0) in ds2482_send_cmd() 174 pdev->read_prt = DS2482_PTR_CODE_STATUS; in ds2482_send_cmd() 188 static inline int ds2482_send_cmd_data(struct ds2482_data *pdev, in ds2482_send_cmd_data() argument 191 if (i2c_smbus_write_byte_data(pdev->client, cmd, byte) < 0) in ds2482_send_cmd_data() [all …]
|
/kernel/linux/linux-5.10/arch/m68k/amiga/ |
D | platform.c | 51 struct platform_device *pdev; in amiga_init_bus() local 58 pdev = platform_device_register_simple("amiga-zorro", -1, in amiga_init_bus() 60 return PTR_ERR_OR_ZERO(pdev); in amiga_init_bus() 136 struct platform_device *pdev; in amiga_init_devices() local 144 pdev = platform_device_register_simple("amiga-video", -1, NULL, in amiga_init_devices() 146 if (IS_ERR(pdev)) in amiga_init_devices() 147 return PTR_ERR(pdev); in amiga_init_devices() 153 pdev = platform_device_register_simple("amiga-audio", -1, NULL, in amiga_init_devices() 155 if (IS_ERR(pdev)) in amiga_init_devices() 156 return PTR_ERR(pdev); in amiga_init_devices() [all …]
|
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/ |
D | ne_pci_dev.c | 46 static void ne_submit_request(struct pci_dev *pdev, enum ne_pci_dev_cmd_type cmd_type, in ne_submit_request() argument 49 struct ne_pci_dev *ne_pci_dev = pci_get_drvdata(pdev); in ne_submit_request() 64 static void ne_retrieve_reply(struct pci_dev *pdev, struct ne_pci_dev_cmd_reply *cmd_reply, in ne_retrieve_reply() argument 67 struct ne_pci_dev *ne_pci_dev = pci_get_drvdata(pdev); in ne_retrieve_reply() 81 static int ne_wait_for_reply(struct pci_dev *pdev) in ne_wait_for_reply() argument 83 struct ne_pci_dev *ne_pci_dev = pci_get_drvdata(pdev); in ne_wait_for_reply() 99 int ne_do_request(struct pci_dev *pdev, enum ne_pci_dev_cmd_type cmd_type, in ne_do_request() argument 103 struct ne_pci_dev *ne_pci_dev = pci_get_drvdata(pdev); in ne_do_request() 107 dev_err_ratelimited(&pdev->dev, "Invalid cmd type=%u\n", cmd_type); in ne_do_request() 113 dev_err_ratelimited(&pdev->dev, "Null cmd request for cmd type=%u\n", in ne_do_request() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | xhci-pci.c | 89 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument 98 if (!pci_set_mwi(pdev)) in xhci_pci_reinit() 107 struct pci_dev *pdev = to_pci_dev(dev); in xhci_pci_quirks() local 111 id = pci_match_id(pdev->driver->id_table, pdev); in xhci_pci_quirks() 119 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks() 120 (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || in xhci_pci_quirks() 121 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400)) { in xhci_pci_quirks() 122 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks() 123 pdev->revision == 0x0) { in xhci_pci_quirks() 129 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks() [all …]
|
D | xhci-pci-renesas.c | 159 static bool renesas_check_rom(struct pci_dev *pdev) in renesas_check_rom() argument 165 retval = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_status); in renesas_check_rom() 171 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom() 178 static int renesas_check_rom_state(struct pci_dev *pdev) in renesas_check_rom_state() argument 185 err = pci_read_config_dword(pdev, RENESAS_FW_VERSION, &version); in renesas_check_rom_state() 191 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state() 196 err = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_state); in renesas_check_rom_state() 202 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state() 210 dev_dbg(&pdev->dev, "Unknown ROM status ...\n"); in renesas_check_rom_state() 215 dev_err(&pdev->dev, "Invalid ROM.."); in renesas_check_rom_state() [all …]
|
D | ehci-pci.c | 29 static inline bool is_intel_quark_x1000(struct pci_dev *pdev) in is_intel_quark_x1000() argument 31 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000() 32 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000() 48 static inline bool is_bypassed_id(struct pci_dev *pdev) in is_bypassed_id() argument 50 return !!pci_match_id(bypass_pci_id_table, pdev); in is_bypassed_id() 63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument 72 retval = pci_set_mwi(pdev); in ehci_pci_reinit() 77 if (is_intel_quark_x1000(pdev)) { in ehci_pci_reinit() 93 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup() local 108 switch (pdev->vendor) { in ehci_pci_setup() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/eeprom/ |
D | idt_89hpesx.c | 289 static int idt_smb_write_byte(struct idt_89hpesx_dev *pdev, in idt_smb_write_byte() argument 306 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_byte() 321 static int idt_smb_read_byte(struct idt_89hpesx_dev *pdev, in idt_smb_read_byte() argument 338 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_byte() 354 static int idt_smb_write_word(struct idt_89hpesx_dev *pdev, in idt_smb_write_word() argument 374 sts = idt_smb_safe(write_word, pdev->client, ccode, in idt_smb_write_word() 388 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_word() 403 static int idt_smb_read_word(struct idt_89hpesx_dev *pdev, in idt_smb_read_word() argument 423 sts = idt_smb_safe(read_word, pdev->client, ccode); in idt_smb_read_word() 438 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_word() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/mei/ |
D | pci-txe.c | 50 static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) in mei_txe_probe() argument 58 err = pcim_enable_device(pdev); in mei_txe_probe() 60 dev_err(&pdev->dev, "failed to enable pci device.\n"); in mei_txe_probe() 64 pci_set_master(pdev); in mei_txe_probe() 66 err = pcim_iomap_regions(pdev, mask, KBUILD_MODNAME); in mei_txe_probe() 68 dev_err(&pdev->dev, "failed to get pci regions.\n"); in mei_txe_probe() 72 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(36)); in mei_txe_probe() 74 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); in mei_txe_probe() 76 dev_err(&pdev->dev, "No suitable DMA available.\n"); in mei_txe_probe() 82 dev = mei_txe_dev_init(pdev); in mei_txe_probe() [all …]
|
/kernel/linux/linux-5.10/arch/x86/pci/ |
D | sta2x11-fixup.c | 45 static void sta2x11_new_instance(struct pci_dev *pdev) in sta2x11_new_instance() argument 53 instance->bus0 = pdev->subordinate->number + 1; in sta2x11_new_instance() 58 dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); in sta2x11_new_instance() 60 dev_emerg(&pdev->dev, "init swiotlb failed\n"); in sta2x11_new_instance() 69 static struct sta2x11_instance *sta2x11_pdev_to_instance(struct pci_dev *pdev) in sta2x11_pdev_to_instance() argument 75 ep = pdev->bus->number - instance->bus0; in sta2x11_pdev_to_instance() 82 static int sta2x11_pdev_to_ep(struct pci_dev *pdev) in sta2x11_pdev_to_ep() argument 86 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_ep() 90 return pdev->bus->number - instance->bus0; in sta2x11_pdev_to_ep() 94 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev) in sta2x11_get_instance() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cgs.c | 256 if ((adev->pdev->revision == 0x81) && in amdgpu_cgs_get_firmware_info() 257 ((adev->pdev->device == 0x6810) || in amdgpu_cgs_get_firmware_info() 258 (adev->pdev->device == 0x6811))) { in amdgpu_cgs_get_firmware_info() 266 if (((adev->pdev->device == 0x6820) && in amdgpu_cgs_get_firmware_info() 267 ((adev->pdev->revision == 0x81) || in amdgpu_cgs_get_firmware_info() 268 (adev->pdev->revision == 0x83))) || in amdgpu_cgs_get_firmware_info() 269 ((adev->pdev->device == 0x6821) && in amdgpu_cgs_get_firmware_info() 270 ((adev->pdev->revision == 0x83) || in amdgpu_cgs_get_firmware_info() 271 (adev->pdev->revision == 0x87))) || in amdgpu_cgs_get_firmware_info() 272 ((adev->pdev->revision == 0x87) && in amdgpu_cgs_get_firmware_info() [all …]
|
/kernel/linux/linux-5.10/drivers/base/ |
D | platform.c | 80 devm_platform_get_and_ioremap_resource(struct platform_device *pdev, in devm_platform_get_and_ioremap_resource() argument 85 r = platform_get_resource(pdev, IORESOURCE_MEM, index); in devm_platform_get_and_ioremap_resource() 88 return devm_ioremap_resource(&pdev->dev, r); in devm_platform_get_and_ioremap_resource() 103 void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, in devm_platform_ioremap_resource() argument 106 return devm_platform_get_and_ioremap_resource(pdev, index, NULL); in devm_platform_ioremap_resource() 121 void __iomem *devm_platform_ioremap_resource_wc(struct platform_device *pdev, in devm_platform_ioremap_resource_wc() argument 126 res = platform_get_resource(pdev, IORESOURCE_MEM, index); in devm_platform_ioremap_resource_wc() 127 return devm_ioremap_resource_wc(&pdev->dev, res); in devm_platform_ioremap_resource_wc() 143 devm_platform_ioremap_resource_byname(struct platform_device *pdev, in devm_platform_ioremap_resource_byname() argument 148 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); in devm_platform_ioremap_resource_byname() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | ath9k_pci_owl_loader.c | 31 static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data, in ath9k_pci_fixup() argument 47 dev_err(&pdev->dev, "invalid calibration data\n"); in ath9k_pci_fixup() 51 dev_dbg(&pdev->dev, "calibration data needs swapping\n"); in ath9k_pci_fixup() 55 dev_info(&pdev->dev, "fixup device configuration\n"); in ath9k_pci_fixup() 57 mem = pcim_iomap(pdev, 0, 0); in ath9k_pci_fixup() 59 dev_err(&pdev->dev, "ioremap error\n"); in ath9k_pci_fixup() 63 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &bar0); in ath9k_pci_fixup() 64 pci_write_config_dword(pdev, PCI_BASE_ADDRESS_0, in ath9k_pci_fixup() 65 pci_resource_start(pdev, 0)); in ath9k_pci_fixup() 66 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in ath9k_pci_fixup() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | eeh_sysfs.c | 27 struct pci_dev *pdev = to_pci_dev(dev); \ 28 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \ 43 struct pci_dev *pdev = to_pci_dev(dev); in eeh_pe_state_show() local 44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() 59 struct pci_dev *pdev = to_pci_dev(dev); in eeh_pe_state_store() local 60 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() 82 struct pci_dev *pdev = to_pci_dev(dev); in eeh_notify_resume_show() local 83 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() 84 struct pci_dn *pdn = pci_get_pdn(pdev); in eeh_notify_resume_show() 96 struct pci_dev *pdev = to_pci_dev(dev); in eeh_notify_resume_store() local [all …]
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_sil680.c | 86 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_cable_detect() local 89 pci_read_config_byte(pdev, addr, &ata66); in sil680_cable_detect() 118 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_piomode() local 130 pci_write_config_word(pdev, addr, speed_p[pio]); in sil680_set_piomode() 131 pci_write_config_word(pdev, tfaddr, speed_t[lowest_pio]); in sil680_set_piomode() 133 pci_read_config_word(pdev, tfaddr-2, ®); in sil680_set_piomode() 134 pci_read_config_byte(pdev, addr_mask, &mode); in sil680_set_piomode() 143 pci_write_config_word(pdev, tfaddr-2, reg); in sil680_set_piomode() 144 pci_write_config_byte(pdev, addr_mask, mode); in sil680_set_piomode() 166 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_dmamode() local [all …]
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | cdns3-pci-wrap.c | 43 static struct pci_dev *cdns3_get_second_fun(struct pci_dev *pdev) in cdns3_get_second_fun() argument 53 func = pci_get_device(pdev->vendor, pdev->device, NULL); in cdns3_get_second_fun() 57 if (func->devfn == pdev->devfn) { in cdns3_get_second_fun() 58 func = pci_get_device(pdev->vendor, pdev->device, func); in cdns3_get_second_fun() 66 static int cdns3_pci_probe(struct pci_dev *pdev, in cdns3_pci_probe() argument 79 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && in cdns3_pci_probe() 80 pdev->devfn != PCI_DEV_FN_OTG)) in cdns3_pci_probe() 83 func = cdns3_get_second_fun(pdev); in cdns3_pci_probe() 87 err = pcim_enable_device(pdev); in cdns3_pci_probe() 89 dev_err(&pdev->dev, "Enabling PCI device has failed %d\n", err); in cdns3_pci_probe() [all …]
|
/kernel/linux/linux-5.10/include/linux/ssb/ |
D | ssb_driver_gige.h | 55 extern bool pdev_is_ssb_gige_core(struct pci_dev *pdev); 58 static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) in pdev_to_ssb_gige() argument 60 if (!pdev_is_ssb_gige_core(pdev)) in pdev_to_ssb_gige() 62 return container_of(pdev->bus->ops, struct ssb_gige, pci_ops); in pdev_to_ssb_gige() 66 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) in ssb_gige_is_rgmii() argument 68 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_is_rgmii() 73 static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) in ssb_gige_have_roboswitch() argument 75 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_have_roboswitch() 83 static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) in ssb_gige_one_dma_at_once() argument 85 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_one_dma_at_once() [all …]
|