/linux-6.6.21/drivers/usb/cdns3/ |
D | cdnsp-gadget.c | 101 void cdnsp_set_link_state(struct cdnsp_device *pdev, in cdnsp_set_link_state() argument 116 if (pdev->active_port) in cdnsp_set_link_state() 117 port_num = pdev->active_port->port_num; in cdnsp_set_link_state() 124 static void cdnsp_disable_port(struct cdnsp_device *pdev, in cdnsp_disable_port() argument 132 static void cdnsp_clear_port_change_bit(struct cdnsp_device *pdev, in cdnsp_clear_port_change_bit() argument 141 static void cdnsp_set_chicken_bits_2(struct cdnsp_device *pdev, u32 bit) in cdnsp_set_chicken_bits_2() argument 147 base = &pdev->cap_regs->hc_capbase; in cdnsp_set_chicken_bits_2() 155 static void cdnsp_clear_chicken_bits_2(struct cdnsp_device *pdev, u32 bit) in cdnsp_clear_chicken_bits_2() argument 161 base = &pdev->cap_regs->hc_capbase; in cdnsp_clear_chicken_bits_2() 172 static void cdnsp_quiesce(struct cdnsp_device *pdev) in cdnsp_quiesce() argument [all …]
|
D | cdnsp-ep0.c | 18 static void cdnsp_ep0_stall(struct cdnsp_device *pdev) in cdnsp_ep0_stall() argument 23 pep = &pdev->eps[0]; in cdnsp_ep0_stall() 26 if (pdev->three_stage_setup) { in cdnsp_ep0_stall() 27 cdnsp_halt_endpoint(pdev, pep, true); in cdnsp_ep0_stall() 37 cdnsp_status_stage(pdev); in cdnsp_ep0_stall() 41 static int cdnsp_ep0_delegate_req(struct cdnsp_device *pdev, in cdnsp_ep0_delegate_req() argument 46 spin_unlock(&pdev->lock); in cdnsp_ep0_delegate_req() 47 ret = pdev->gadget_driver->setup(&pdev->gadget, ctrl); in cdnsp_ep0_delegate_req() 48 spin_lock(&pdev->lock); in cdnsp_ep0_delegate_req() 53 static int cdnsp_ep0_set_config(struct cdnsp_device *pdev, in cdnsp_ep0_set_config() argument [all …]
|
D | cdnsp-mem.c | 21 static void cdnsp_free_stream_info(struct cdnsp_device *pdev, 29 static struct cdnsp_segment *cdnsp_segment_alloc(struct cdnsp_device *pdev, in cdnsp_segment_alloc() argument 42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc() 65 dma_pool_free(pdev->segment_pool, seg->trbs, dma); in cdnsp_segment_alloc() 71 static void cdnsp_segment_free(struct cdnsp_device *pdev, in cdnsp_segment_free() argument 75 dma_pool_free(pdev->segment_pool, seg->trbs, seg->dma); in cdnsp_segment_free() 81 static void cdnsp_free_segments_for_ring(struct cdnsp_device *pdev, in cdnsp_free_segments_for_ring() argument 91 cdnsp_segment_free(pdev, seg); in cdnsp_free_segments_for_ring() 95 cdnsp_segment_free(pdev, first); in cdnsp_free_segments_for_ring() 105 static void cdnsp_link_segments(struct cdnsp_device *pdev, in cdnsp_link_segments() argument [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 | 58 struct pcifront_device *pdev; member 64 return sd->pdev; in pcifront_get_pdev() 69 struct pcifront_device *pdev) in pcifront_init_sd() argument 74 sd->pdev = pdev; in pcifront_init_sd() 102 static inline void schedule_pcifront_aer_op(struct pcifront_device *pdev) in schedule_pcifront_aer_op() argument 104 if (test_bit(_XEN_PCIB_active, (unsigned long *)&pdev->sh_info->flags) in schedule_pcifront_aer_op() 105 && !test_and_set_bit(_PDEVB_op_active, &pdev->flags)) { in schedule_pcifront_aer_op() 106 dev_dbg(&pdev->xdev->dev, "schedule aer frontend job\n"); in schedule_pcifront_aer_op() 107 schedule_work(&pdev->op_work); in schedule_pcifront_aer_op() 111 static int do_pci_op(struct pcifront_device *pdev, struct xen_pci_op *op) in do_pci_op() argument [all …]
|
/linux-6.6.21/drivers/usb/gadget/udc/cdns2/ |
D | cdns2-ep0.c | 32 static bool cdns2_check_new_setup(struct cdns2_device *pdev) in cdns2_check_new_setup() argument 36 reg = readb(&pdev->ep0_regs->cs); in cdns2_check_new_setup() 41 static void cdns2_ep0_enqueue(struct cdns2_device *pdev, dma_addr_t dma_addr, in cdns2_ep0_enqueue() argument 44 struct cdns2_adma_regs __iomem *regs = pdev->adma_regs; in cdns2_ep0_enqueue() 45 struct cdns2_endpoint *pep = &pdev->eps[0]; in cdns2_ep0_enqueue() 67 writel(0, &pdev->ep0_regs->rxbc); in cdns2_ep0_enqueue() 69 cdns2_select_ep(pdev, pep->dir); in cdns2_ep0_enqueue() 79 static int cdns2_ep0_delegate_req(struct cdns2_device *pdev) in cdns2_ep0_delegate_req() argument 83 spin_unlock(&pdev->lock); in cdns2_ep0_delegate_req() 84 ret = pdev->gadget_driver->setup(&pdev->gadget, &pdev->setup); in cdns2_ep0_delegate_req() [all …]
|
D | cdns2-gadget.c | 74 static int cdns2_get_dma_pos(struct cdns2_device *pdev, in cdns2_get_dma_pos() argument 79 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; in cdns2_get_dma_pos() 90 void cdns2_select_ep(struct cdns2_device *pdev, u32 ep) in cdns2_select_ep() argument 92 if (pdev->selected_ep == ep) in cdns2_select_ep() 95 pdev->selected_ep = ep; in cdns2_select_ep() 96 writel(ep, &pdev->adma_regs->ep_sel); in cdns2_select_ep() 109 struct cdns2_device *pdev = pep->pdev; in cdns2_free_tr_segment() local 113 dma_pool_free(pdev->eps_dma_pool, ring->trbs, ring->dma); in cdns2_free_tr_segment() 121 struct cdns2_device *pdev = pep->pdev; in cdns2_alloc_tr_segment() local 128 ring->trbs = dma_pool_alloc(pdev->eps_dma_pool, in cdns2_alloc_tr_segment() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/w1/masters/ |
D | ds2482.c | 103 struct ds2482_data *pdev; member 145 static inline int ds2482_select_register(struct ds2482_data *pdev, u8 read_ptr) in ds2482_select_register() argument 147 if (pdev->read_prt != read_ptr) { in ds2482_select_register() 148 if (i2c_smbus_write_byte_data(pdev->client, in ds2482_select_register() 153 pdev->read_prt = read_ptr; in ds2482_select_register() 166 static inline int ds2482_send_cmd(struct ds2482_data *pdev, u8 cmd) in ds2482_send_cmd() argument 168 if (i2c_smbus_write_byte(pdev->client, cmd) < 0) in ds2482_send_cmd() 171 pdev->read_prt = DS2482_PTR_CODE_STATUS; in ds2482_send_cmd() 185 static inline int ds2482_send_cmd_data(struct ds2482_data *pdev, in ds2482_send_cmd_data() argument 188 if (i2c_smbus_write_byte_data(pdev->client, cmd, byte) < 0) in ds2482_send_cmd_data() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/misc/eeprom/ |
D | idt_89hpesx.c | 258 static int idt_smb_write_byte(struct idt_89hpesx_dev *pdev, in idt_smb_write_byte() argument 275 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_byte() 290 static int idt_smb_read_byte(struct idt_89hpesx_dev *pdev, in idt_smb_read_byte() argument 307 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_byte() 323 static int idt_smb_write_word(struct idt_89hpesx_dev *pdev, in idt_smb_write_word() argument 343 sts = idt_smb_safe(write_word, pdev->client, ccode, in idt_smb_write_word() 357 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_word() 372 static int idt_smb_read_word(struct idt_89hpesx_dev *pdev, in idt_smb_read_word() argument 392 sts = idt_smb_safe(read_word, pdev->client, ccode); in idt_smb_read_word() 407 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_word() [all …]
|
/linux-6.6.21/drivers/usb/host/ |
D | xhci-pci.c | 97 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_msix_sync_irqs() local 101 synchronize_irq(pci_irq_vector(pdev, i)); in xhci_msix_sync_irqs() 109 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix() local 119 free_irq(pci_irq_vector(pdev, i), xhci_to_hcd(xhci)); in xhci_cleanup_msix() 121 free_irq(pci_irq_vector(pdev, 0), xhci_to_hcd(xhci)); in xhci_cleanup_msix() 124 pci_free_irq_vectors(pdev); in xhci_cleanup_msix() 137 struct pci_dev *pdev = to_pci_dev(xhci_to_hcd(xhci)->self.controller); in xhci_setup_msi() local 139 ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI); in xhci_setup_msi() 146 ret = request_irq(pdev->irq, xhci_msi_irq, in xhci_setup_msi() 151 pci_free_irq_vectors(pdev); in xhci_setup_msi() [all …]
|
D | xhci-pci-renesas.c | 155 static bool renesas_check_rom(struct pci_dev *pdev) in renesas_check_rom() argument 161 retval = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_status); in renesas_check_rom() 167 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom() 174 static int renesas_check_rom_state(struct pci_dev *pdev) in renesas_check_rom_state() argument 181 err = pci_read_config_dword(pdev, RENESAS_FW_VERSION, &version); in renesas_check_rom_state() 187 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state() 192 err = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_state); in renesas_check_rom_state() 198 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state() 206 dev_dbg(&pdev->dev, "Unknown ROM status ...\n"); in renesas_check_rom_state() 211 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 …]
|
/linux-6.6.21/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 = dma_set_mask(&pdev->dev, DMA_BIT_MASK(36)); in mei_txe_probe() 74 err = dma_set_mask(&pdev->dev, 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 …]
|
/linux-6.6.21/drivers/ata/ |
D | pata_sil680.c | 82 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_cable_detect() local 86 pci_read_config_byte(pdev, addr, &ata66); in sil680_cable_detect() 115 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_piomode() local 127 pci_write_config_word(pdev, addr, speed_p[pio]); in sil680_set_piomode() 128 pci_write_config_word(pdev, tfaddr, speed_t[lowest_pio]); in sil680_set_piomode() 130 pci_read_config_word(pdev, tfaddr-2, ®); in sil680_set_piomode() 131 pci_read_config_byte(pdev, addr_mask, &mode); in sil680_set_piomode() 140 pci_write_config_word(pdev, tfaddr-2, reg); in sil680_set_piomode() 141 pci_write_config_byte(pdev, addr_mask, mode); in sil680_set_piomode() 163 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_dmamode() local [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath9k/ |
D | ath9k_pci_owl_loader.c | 26 struct pci_dev *pdev; member 36 static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data, in ath9k_pci_fixup() argument 52 dev_err(&pdev->dev, "eeprom has an invalid size.\n"); in ath9k_pci_fixup() 58 dev_err(&pdev->dev, "invalid calibration data\n"); in ath9k_pci_fixup() 62 dev_dbg(&pdev->dev, "calibration data needs swapping\n"); in ath9k_pci_fixup() 66 dev_info(&pdev->dev, "fixup device configuration\n"); in ath9k_pci_fixup() 68 mem = pcim_iomap(pdev, 0, 0); in ath9k_pci_fixup() 70 dev_err(&pdev->dev, "ioremap error\n"); in ath9k_pci_fixup() 74 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &bar0); in ath9k_pci_fixup() 75 pci_write_config_dword(pdev, PCI_BASE_ADDRESS_0, in ath9k_pci_fixup() [all …]
|
/linux-6.6.21/arch/x86/pci/ |
D | sta2x11-fixup.c | 46 static void sta2x11_new_instance(struct pci_dev *pdev) in sta2x11_new_instance() argument 54 instance->bus0 = pdev->subordinate->number + 1; in sta2x11_new_instance() 59 dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); in sta2x11_new_instance() 61 dev_emerg(&pdev->dev, "init swiotlb failed\n"); in sta2x11_new_instance() 70 static struct sta2x11_instance *sta2x11_pdev_to_instance(struct pci_dev *pdev) in sta2x11_pdev_to_instance() argument 76 ep = pdev->bus->number - instance->bus0; in sta2x11_pdev_to_instance() 83 static int sta2x11_pdev_to_ep(struct pci_dev *pdev) in sta2x11_pdev_to_ep() argument 87 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_ep() 91 return pdev->bus->number - instance->bus0; in sta2x11_pdev_to_ep() 95 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev) in sta2x11_get_instance() argument [all …]
|
/linux-6.6.21/arch/s390/pci/ |
D | pci_event.c | 80 static pci_ers_result_t zpci_event_notify_error_detected(struct pci_dev *pdev, in zpci_event_notify_error_detected() argument 85 ers_res = driver->err_handler->error_detected(pdev, pdev->error_state); in zpci_event_notify_error_detected() 87 pr_info("%s: Automatic recovery failed after initial reporting\n", pci_name(pdev)); in zpci_event_notify_error_detected() 89 pr_debug("%s: Driver needs reset to recover\n", pci_name(pdev)); in zpci_event_notify_error_detected() 94 static pci_ers_result_t zpci_event_do_error_state_clear(struct pci_dev *pdev, in zpci_event_do_error_state_clear() argument 98 struct zpci_dev *zdev = to_zpci(pdev); in zpci_event_do_error_state_clear() 101 pr_info("%s: Unblocking device access for examination\n", pci_name(pdev)); in zpci_event_do_error_state_clear() 104 pr_err("%s: Unblocking device access failed\n", pci_name(pdev)); in zpci_event_do_error_state_clear() 110 ers_res = driver->err_handler->mmio_enabled(pdev); in zpci_event_do_error_state_clear() 113 pci_name(pdev)); in zpci_event_do_error_state_clear() [all …]
|