Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 3920) sorted by relevance

12345678910>>...157

/linux/drivers/usb/cdns3/
H A Dcdnsp-gadget.c103 void cdnsp_set_link_state(struct cdnsp_device *pdev, in cdnsp_set_link_state() argument
118 if (pdev->active_port) in cdnsp_set_link_state()
119 port_num = pdev->active_port->port_num; in cdnsp_set_link_state()
126 static void cdnsp_disable_port(struct cdnsp_device *pdev, in cdnsp_disable_port() argument
138 static void cdnsp_clear_port_change_bit(struct cdnsp_device *pdev, in cdnsp_clear_port_change_bit() argument
151 static void cdnsp_set_apb_timeout_value(struct cdnsp_device *pdev) in cdnsp_set_apb_timeout_value() argument
153 struct cdns *cdns = dev_get_drvdata(pdev->dev); in cdnsp_set_apb_timeout_value()
162 base = &pdev->cap_regs->hc_capbase; in cdnsp_set_apb_timeout_value()
171 static void cdnsp_set_chicken_bits_2(struct cdnsp_device *pdev, u32 bit) in cdnsp_set_chicken_bits_2() argument
177 base = &pdev->cap_regs->hc_capbase; in cdnsp_set_chicken_bits_2()
[all …]
H A Dcdnsp-ep0.c18 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 …]
H A Dcdnsp-mem.c21 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 …]
H A Dcdns3-pci-wrap.c40 static struct pci_dev *cdns3_get_second_fun(struct pci_dev *pdev) in cdns3_get_second_fun() argument
50 func = pci_get_device(pdev->vendor, pdev->device, NULL); in cdns3_get_second_fun()
54 if (func->devfn == pdev->devfn) { in cdns3_get_second_fun()
55 func = pci_get_device(pdev->vendor, pdev->device, func); in cdns3_get_second_fun()
68 static int cdns3_pci_probe(struct pci_dev *pdev, in cdns3_pci_probe() argument
81 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && in cdns3_pci_probe()
82 pdev->devfn != PCI_DEV_FN_OTG)) in cdns3_pci_probe()
85 func = cdns3_get_second_fun(pdev); in cdns3_pci_probe()
171 cdns3_pci_remove(struct pci_dev * pdev) cdns3_pci_remove() argument
[all...]
/linux/drivers/media/usb/pwc/
H A Dpwc-ctrl.c95 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 …]
H A Dpwc-v4l.c150 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/arch/mips/pci/
H A Dfixup-fuloong2e.c47 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/drivers/xen/xen-pciback/
H A Dxenbus.c39 struct xen_pcibk_device *pdev; in alloc_pdev() local
41 pdev = kzalloc_obj(struct xen_pcibk_device); 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/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c32 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 …]
H A Dcdns2-gadget.c75 static int cdns2_get_dma_pos(struct cdns2_device *pdev, in cdns2_get_dma_pos() argument
80 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; in cdns2_get_dma_pos()
91 void cdns2_select_ep(struct cdns2_device *pdev, u32 ep) in cdns2_select_ep() argument
93 if (pdev->selected_ep == ep) in cdns2_select_ep()
96 pdev->selected_ep = ep; in cdns2_select_ep()
97 writel(ep, &pdev->adma_regs->ep_sel); in cdns2_select_ep()
110 struct cdns2_device *pdev = pep->pdev; in cdns2_free_tr_segment() local
114 dma_pool_free(pdev->eps_dma_pool, ring->trbs, ring->dma); in cdns2_free_tr_segment()
122 struct cdns2_device *pdev = pep->pdev; in cdns2_alloc_tr_segment() local
129 ring->trbs = dma_pool_alloc(pdev->eps_dma_pool, in cdns2_alloc_tr_segment()
[all …]
/linux/drivers/pci/
H A Dtsm.c38 static inline bool is_dsm(struct pci_dev *pdev) in is_dsm() argument
40 return pdev->tsm && pdev->tsm->dsm_dev == pdev; in is_dsm()
43 static inline bool has_tee(struct pci_dev *pdev) in has_tee() argument
45 return pdev->devcap & PCI_EXP_DEVCAP_TEE; in has_tee()
59 pci_WARN_ONCE(tsm->pdev, 1, "invalid context object\n"); in to_pci_tsm_pf0()
68 struct pci_dev *pdev; in tsm_remove() local
73 pdev = tsm->pdev; in tsm_remove()
75 pdev->tsm = NULL; in tsm_remove()
79 static void pci_tsm_walk_fns(struct pci_dev *pdev, in DEFINE_FREE()
80 int (*cb)(struct pci_dev *pdev, void *data), in DEFINE_FREE()
[all …]
H A Dtph.c136 static void set_ctrl_reg_req_en(struct pci_dev *pdev, u8 req_type) in set_ctrl_reg_req_en() argument
140 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CTRL, &reg); in set_ctrl_reg_req_en()
144 pci_write_config_dword(pdev, pdev->tph_cap + PCI_TPH_CTRL, reg); in set_ctrl_reg_req_en()
147 static u8 get_st_modes(struct pci_dev *pdev) in get_st_modes() argument
151 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CAP, &reg); in get_st_modes()
166 u32 pcie_tph_get_st_table_loc(struct pci_dev *pdev) in pcie_tph_get_st_table_loc() argument
170 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CAP, &reg); in pcie_tph_get_st_table_loc()
180 u16 pcie_tph_get_st_table_size(struct pci_dev *pdev) in pcie_tph_get_st_table_size() argument
186 loc = pcie_tph_get_st_table_loc(pdev); in pcie_tph_get_st_table_size()
193 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CAP, &reg); in pcie_tph_get_st_table_size()
[all …]
H A Dxen-pcifront.c58 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 …]
H A Dide.c30 static int sel_ide_offset(struct pci_dev *pdev, in sel_ide_offset() argument
33 return __sel_ide_offset(pdev->ide_cap, pdev->nr_link_ide, in sel_ide_offset()
34 settings->stream_index, pdev->nr_ide_mem); in sel_ide_offset()
37 static bool reserve_stream_index(struct pci_dev *pdev, u8 idx) in reserve_stream_index() argument
41 ret = ida_alloc_range(&pdev->ide_stream_ida, idx, idx, GFP_KERNEL); in reserve_stream_index()
54 struct pci_dev *pdev, u8 stream_idx) in claim_stream() argument
66 if (!pdev) in claim_stream()
69 if (!reserve_stream_index(pdev, stream_idx)) { in claim_stream()
70 pci_info(pdev, "Failed to claim active Selective Stream %d\n", in claim_stream()
78 void pci_ide_init(struct pci_dev *pdev) in pci_ide_init() argument
[all …]
/linux/drivers/virt/nitro_enclaves/
H A Dne_pci_dev.c46 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/arch/m68k/amiga/
H A Dplatform.c51 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/drivers/misc/eeprom/
H A Didt_89hpesx.c252 static int idt_smb_write_byte(struct idt_89hpesx_dev *pdev, in idt_smb_write_byte() argument
269 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_byte()
284 static int idt_smb_read_byte(struct idt_89hpesx_dev *pdev, in idt_smb_read_byte() argument
301 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_byte()
317 static int idt_smb_write_word(struct idt_89hpesx_dev *pdev, in idt_smb_write_word() argument
337 sts = idt_smb_safe(write_word, pdev->client, ccode, in idt_smb_write_word()
351 sts = idt_smb_safe(write_byte, pdev->client, ccode, in idt_smb_write_word()
366 static int idt_smb_read_word(struct idt_89hpesx_dev *pdev, in idt_smb_read_word() argument
386 sts = idt_smb_safe(read_word, pdev->client, ccode); in idt_smb_read_word()
401 sts = idt_smb_safe(read_byte, pdev->client, ccode); in idt_smb_read_word()
[all …]
/linux/drivers/usb/host/
H A Dxhci-pci-renesas.c158 static bool renesas_check_rom(struct pci_dev *pdev) in renesas_check_rom() argument
164 retval = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_status); in renesas_check_rom()
170 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom()
177 static int renesas_check_rom_state(struct pci_dev *pdev) in renesas_check_rom_state() argument
184 err = pci_read_config_dword(pdev, RENESAS_FW_VERSION, &version); in renesas_check_rom_state()
190 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state()
195 err = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_state); in renesas_check_rom_state()
201 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state()
209 dev_dbg(&pdev->dev, "Unknown ROM status ...\n"); in renesas_check_rom_state()
214 dev_err(&pdev->dev, "Invalid ROM.."); in renesas_check_rom_state()
[all …]
H A Dpci-quirks.c199 struct pci_dev *pdev = to_pci_dev(dev); in sb800_prefetch() local
201 pci_read_config_word(pdev, 0x50, &misc); in sb800_prefetch()
203 pci_write_config_word(pdev, 0x50, misc & 0xfcff); in sb800_prefetch()
205 pci_write_config_word(pdev, 0x50, misc | 0x0300); in sb800_prefetch()
289 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev) in usb_hcd_amd_remote_wakeup_quirk() argument
295 dev_dbg(&pdev->dev, "QUIRK: Enable AMD remote wakeup fix\n"); in usb_hcd_amd_remote_wakeup_quirk()
509 struct pci_dev *pdev; in usb_amd_pt_check_port() local
512 pdev = to_pci_dev(device); in usb_amd_pt_check_port()
513 pci_write_config_word(pdev, PT_ADDR_INDX, PT_SIG_1_ADDR); in usb_amd_pt_check_port()
515 pci_read_config_byte(pdev, PT_READ_INDX, &value); in usb_amd_pt_check_port()
[all …]
/linux/drivers/ata/
H A Dpata_sil680.c82 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, &reg); 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/drivers/net/ethernet/zte/dinghai/
H A Den_pf.c47 pci_set_drvdata(zxdh_dev->pdev, zxdh_dev); in zxdh_pf_pci_init()
49 ret = pci_enable_device(zxdh_dev->pdev); in zxdh_pf_pci_init()
57 ret = pci_request_selected_regions(zxdh_dev->pdev, in zxdh_pf_pci_init()
58 pci_select_bars(zxdh_dev->pdev, IORESOURCE_MEM), in zxdh_pf_pci_init()
65 pci_set_master(zxdh_dev->pdev); in zxdh_pf_pci_init()
66 ret = pci_save_state(zxdh_dev->pdev); in zxdh_pf_pci_init()
72 if (!(pci_resource_flags(zxdh_dev->pdev, 0) & IORESOURCE_MEM)) { in zxdh_pf_pci_init()
79 ioremap(pci_resource_start(zxdh_dev->pdev, 0), in zxdh_pf_pci_init()
80 pci_resource_len(zxdh_dev->pdev, 0)); in zxdh_pf_pci_init()
90 pci_release_selected_regions(zxdh_dev->pdev, in zxdh_pf_pci_init()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_debugfs.c28 dev_info(&pf->pdev->dev, "%d: bad seid\n", seid); in i40e_dbg_find_vsi()
67 dev_info(&pf->pdev->dev, in i40e_dbg_dump_vsi_seid()
71 dev_info(&pf->pdev->dev, "vsi seid %d\n", seid); in i40e_dbg_dump_vsi_seid()
75 dev_info(&pf->pdev->dev, " netdev: name = %s, state = %lu, flags = 0x%08x\n", in i40e_dbg_dump_vsi_seid()
77 dev_info(&pf->pdev->dev, " features = 0x%08lx\n", in i40e_dbg_dump_vsi_seid()
79 dev_info(&pf->pdev->dev, " hw_features = 0x%08lx\n", in i40e_dbg_dump_vsi_seid()
81 dev_info(&pf->pdev->dev, " vlan_features = 0x%08lx\n", in i40e_dbg_dump_vsi_seid()
84 dev_info(&pf->pdev->dev, in i40e_dbg_dump_vsi_seid()
88 dev_info(&pf->pdev->dev, in i40e_dbg_dump_vsi_seid()
92 dev_info(&pf->pdev->dev, " MAC address: %pM Port MAC: %pM\n", in i40e_dbg_dump_vsi_seid()
[all …]
/linux/arch/s390/pci/
H A Dpci_event.c55 static int zpci_store_pci_error(struct pci_dev *pdev, in zpci_store_pci_error() argument
58 struct zpci_dev *zdev = to_zpci(pdev); in zpci_store_pci_error()
66 dev_warn_ratelimited(&pdev->dev, in zpci_store_pci_error()
68 pci_name(pdev), in zpci_store_pci_error()
117 static pci_ers_result_t zpci_event_notify_error_detected(struct pci_dev *pdev, in zpci_event_notify_error_detected() argument
122 ers_res = driver->err_handler->error_detected(pdev, pdev->error_state); in zpci_event_notify_error_detected()
123 pci_uevent_ers(pdev, ers_res); in zpci_event_notify_error_detected()
125 pr_info("%s: Automatic recovery failed after initial reporting\n", pci_name(pdev)); in zpci_event_notify_error_detected()
127 pr_debug("%s: Driver needs reset to recover\n", pci_name(pdev)); in zpci_event_notify_error_detected()
132 static pci_ers_result_t zpci_event_do_error_state_clear(struct pci_dev *pdev, in zpci_event_do_error_state_clear() argument
[all …]
/linux/drivers/mmc/host/
H A Dsdhci-pci-o2micro.c171 pci_read_config_dword(chip->pdev, in o2_pci_set_baseclk()
177 pci_write_config_dword(chip->pdev, in o2_pci_set_baseclk()
254 pci_read_config_byte(chip->pdev, in sdhci_o2_dll_recovery()
257 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch_8); in sdhci_o2_dll_recovery()
267 pci_read_config_dword(chip->pdev, in sdhci_o2_dll_recovery()
272 pci_write_config_dword(chip->pdev, O2_SD_FUNC_REG4, scratch_32); in sdhci_o2_dll_recovery()
307 pci_read_config_byte(chip->pdev, in sdhci_o2_dll_recovery()
310 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch_8); in sdhci_o2_dll_recovery()
343 switch (chip->pdev->device) { in sdhci_o2_execute_tuning()
357 pci_read_config_byte(chip->pdev, O2_SD_LOCK_WP, &scratch_8); in sdhci_o2_execute_tuning()
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dpci-sriov.c143 static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev) in pnv_pci_ioda_fixup_iov_resources() argument
145 struct pnv_phb *phb = pci_bus_to_pnvhb(pdev->bus); in pnv_pci_ioda_fixup_iov_resources()
155 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources()
159 res = &pdev->resource[i + PCI_IOV_RESOURCES]; in pnv_pci_ioda_fixup_iov_resources()
163 dev_warn(&pdev->dev, "Don't support SR-IOV with non M64 VF BAR%d: %pR. \n", in pnv_pci_ioda_fixup_iov_resources()
168 vf_bar_sz = pci_iov_resource_size(pdev, i + PCI_IOV_RESOURCES); in pnv_pci_ioda_fixup_iov_resources()
189 pci_err(pdev, "VF BAR%d: %pR can't be mapped in single PE mode\n", in pnv_pci_ioda_fixup_iov_resources()
202 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res); in pnv_pci_ioda_fixup_iov_resources()
204 pci_dbg(pdev, " %pR\n", res); in pnv_pci_ioda_fixup_iov_resources()
206 pci_info(pdev, "VF BAR%d: %pR (expanded to %d VFs for PE alignment)", in pnv_pci_ioda_fixup_iov_resources()
[all …]

12345678910>>...157