Home
last modified time | relevance | path

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

12345678910>>...172

/Linux-v5.15/drivers/media/usb/pwc/
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 …]
Dpwc-if.c119 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 …]
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-v5.15/drivers/usb/cdns3/
Dcdnsp-gadget.c101 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 …]
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 …]
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 …]
Dcdnsp-ring.c129 static void cdnsp_next_trb(struct cdnsp_device *pdev, in cdnsp_next_trb() argument
146 void cdnsp_inc_deq(struct cdnsp_device *pdev, struct cdnsp_ring *ring) in cdnsp_inc_deq() argument
187 static void cdnsp_inc_enq(struct cdnsp_device *pdev, in cdnsp_inc_enq() argument
236 static bool cdnsp_room_on_ring(struct cdnsp_device *pdev, in cdnsp_room_on_ring() argument
260 static void cdnsp_force_l0_go(struct cdnsp_device *pdev) in cdnsp_force_l0_go() argument
262 if (pdev->active_port == &pdev->usb2_port && pdev->gadget.lpm_capable) in cdnsp_force_l0_go()
263 cdnsp_set_link_state(pdev, &pdev->active_port->regs->portsc, XDEV_U0); in cdnsp_force_l0_go()
267 void cdnsp_ring_cmd_db(struct cdnsp_device *pdev) in cdnsp_ring_cmd_db() argument
269 writel(DB_VALUE_CMD, &pdev->dba->cmd_db); in cdnsp_ring_cmd_db()
276 static bool cdnsp_ring_ep_doorbell(struct cdnsp_device *pdev, in cdnsp_ring_ep_doorbell() argument
[all …]
Dcdns3-pci-wrap.c43 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 …]
/Linux-v5.15/drivers/pci/
Dats.c59 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 …]
Dxen-pcifront.c59 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 …]
/Linux-v5.15/drivers/pci/pcie/
Ddpc.c77 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-v5.15/arch/mips/pci/
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-v5.15/drivers/xen/xen-pciback/
Dxenbus.c39 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-v5.15/drivers/w1/masters/
Dds2482.c106 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 …]
/Linux-v5.15/drivers/usb/host/
Dxhci-pci.c85 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument
94 if (!pci_set_mwi(pdev)) in xhci_pci_reinit()
103 struct pci_dev *pdev = to_pci_dev(dev); in xhci_pci_quirks() local
107 id = pci_match_id(pdev->driver->id_table, pdev); in xhci_pci_quirks()
115 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
116 (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || in xhci_pci_quirks()
117 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1100 || in xhci_pci_quirks()
118 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400)) { in xhci_pci_quirks()
119 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
120 pdev->revision == 0x0) { in xhci_pci_quirks()
[all …]
Dxhci-pci-renesas.c159 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 …]
Dehci-pci.c26 static inline bool is_intel_quark_x1000(struct pci_dev *pdev) in is_intel_quark_x1000() argument
28 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000()
29 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000()
45 static inline bool is_bypassed_id(struct pci_dev *pdev) in is_bypassed_id() argument
47 return !!pci_match_id(bypass_pci_id_table, pdev); in is_bypassed_id()
60 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument
69 retval = pci_set_mwi(pdev); in ehci_pci_reinit()
74 if (is_intel_quark_x1000(pdev)) { in ehci_pci_reinit()
90 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup() local
105 switch (pdev->vendor) { in ehci_pci_setup()
[all …]
/Linux-v5.15/drivers/virt/nitro_enclaves/
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-v5.15/arch/m68k/amiga/
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-v5.15/drivers/misc/eeprom/
Didt_89hpesx.c258 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-v5.15/drivers/misc/mei/
Dpci-txe.c50 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 …]
/Linux-v5.15/arch/x86/pci/
Dsta2x11-fixup.c46 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-v5.15/drivers/net/wireless/ath/ath9k/
Dath9k_pci_owl_loader.c31 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 …]
/Linux-v5.15/arch/powerpc/kernel/
Deeh_sysfs.c27 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 …]
/Linux-v5.15/drivers/ata/
Dpata_sil680.c87 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_cable_detect() local
90 pci_read_config_byte(pdev, addr, &ata66); in sil680_cable_detect()
119 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_piomode() local
131 pci_write_config_word(pdev, addr, speed_p[pio]); in sil680_set_piomode()
132 pci_write_config_word(pdev, tfaddr, speed_t[lowest_pio]); in sil680_set_piomode()
134 pci_read_config_word(pdev, tfaddr-2, &reg); in sil680_set_piomode()
135 pci_read_config_byte(pdev, addr_mask, &mode); in sil680_set_piomode()
144 pci_write_config_word(pdev, tfaddr-2, reg); in sil680_set_piomode()
145 pci_write_config_byte(pdev, addr_mask, mode); in sil680_set_piomode()
167 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sil680_set_dmamode() local
[all …]

12345678910>>...172