/linux/drivers/usb/cdns3/ |
H A D | cdnsp-gadget.c | 102 void cdnsp_set_link_state(struct cdnsp_device *pdev, in cdnsp_set_link_state() 117 if (pdev->active_port) in cdnsp_set_link_state() 118 port_num = pdev->active_port->port_num; in cdnsp_set_link_state() 125 static void cdnsp_disable_port(struct cdnsp_device *pdev, in cdnsp_disable_port() 133 static void cdnsp_clear_port_change_bit(struct cdnsp_device *pdev, in cdnsp_clear_port_change_bit() 142 static void cdnsp_set_chicken_bits_2(struct cdnsp_device *pdev, u32 bit) in cdnsp_set_chicken_bits_2() 148 base = &pdev->cap_regs->hc_capbase; in cdnsp_set_chicken_bits_2() 156 static void cdnsp_clear_chicken_bits_2(struct cdnsp_device *pdev, u32 bit) in cdnsp_clear_chicken_bits_2() 162 base = &pdev->cap_regs->hc_capbase; in cdnsp_clear_chicken_bits_2() 173 static void cdnsp_quiesce(struct cdnsp_device *pdev) in cdnsp_quiesce() 101 cdnsp_set_link_state(struct cdnsp_device * pdev,__le32 __iomem * port_regs,u32 link_state) cdnsp_set_link_state() argument 124 cdnsp_disable_port(struct cdnsp_device * pdev,__le32 __iomem * port_regs) cdnsp_disable_port() argument 132 cdnsp_clear_port_change_bit(struct cdnsp_device * pdev,__le32 __iomem * port_regs) cdnsp_clear_port_change_bit() argument 141 cdnsp_set_chicken_bits_2(struct cdnsp_device * pdev,u32 bit) cdnsp_set_chicken_bits_2() argument 155 cdnsp_clear_chicken_bits_2(struct cdnsp_device * pdev,u32 bit) cdnsp_clear_chicken_bits_2() argument 172 cdnsp_quiesce(struct cdnsp_device * pdev) cdnsp_quiesce() argument 198 cdnsp_halt(struct cdnsp_device * pdev) cdnsp_halt() argument 222 cdnsp_died(struct cdnsp_device * pdev) cdnsp_died() argument 232 cdnsp_start(struct cdnsp_device * pdev) cdnsp_start() argument 265 cdnsp_reset(struct cdnsp_device * pdev) cdnsp_reset() argument 346 struct cdnsp_device *pdev = pep->pdev; cdnsp_ep_enqueue() local 425 struct cdnsp_device *pdev = pep->pdev; cdnsp_ep_dequeue() local 439 cdnsp_zero_in_ctx(struct cdnsp_device * pdev) cdnsp_zero_in_ctx() argument 471 cdnsp_configure_endpoint(struct cdnsp_device * pdev) cdnsp_configure_endpoint() argument 487 cdnsp_invalidate_ep_events(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_invalidate_ep_events() argument 522 cdnsp_wait_for_cmd_compl(struct cdnsp_device * pdev) cdnsp_wait_for_cmd_compl() argument 595 cdnsp_halt_endpoint(struct cdnsp_device * pdev,struct cdnsp_ep * pep,int value) cdnsp_halt_endpoint() argument 635 cdnsp_update_eps_configuration(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_update_eps_configuration() argument 688 cdnsp_reset_device(struct cdnsp_device * pdev) cdnsp_reset_device() argument 742 cdnsp_setup_streams_ep_input_ctx(struct cdnsp_device * pdev,struct cdnsp_ep_ctx * ep_ctx,struct cdnsp_stream_info * stream_info) cdnsp_setup_streams_ep_input_ctx() argument 765 cdnsp_alloc_streams(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_alloc_streams() argument 803 cdnsp_disable_slot(struct cdnsp_device * pdev) cdnsp_disable_slot() argument 822 cdnsp_enable_slot(struct cdnsp_device * pdev) cdnsp_enable_slot() argument 853 cdnsp_setup_device(struct cdnsp_device * pdev,enum cdnsp_setup_dev setup) cdnsp_setup_device() argument 905 cdnsp_set_usb2_hardware_lpm(struct cdnsp_device * pdev,struct usb_request * req,int enable) cdnsp_set_usb2_hardware_lpm() argument 921 cdnsp_get_frame(struct cdnsp_device * pdev) cdnsp_get_frame() argument 930 struct cdnsp_device *pdev; cdnsp_gadget_ep_enable() local 1004 struct cdnsp_device *pdev; cdnsp_gadget_ep_disable() local 1093 struct cdnsp_device *pdev; cdnsp_gadget_ep_queue() local 1122 struct cdnsp_device *pdev = pep->pdev; cdnsp_gadget_ep_dequeue() local 1150 struct cdnsp_device *pdev = pep->pdev; cdnsp_gadget_ep_set_halt() local 1176 struct cdnsp_device *pdev = pep->pdev; cdnsp_gadget_ep_set_wedge() local 1214 struct cdnsp_device *pdev = pep->pdev; cdnsp_gadget_giveback() local 1239 cdnsp_run(struct cdnsp_device * pdev,enum usb_device_speed speed) cdnsp_run() argument 1314 struct cdnsp_device *pdev = gadget_to_cdnsp(g); cdnsp_gadget_udc_start() local 1335 cdnsp_update_erst_dequeue(struct cdnsp_device * pdev,union cdnsp_trb * event_ring_deq,u8 clear_ehb) cdnsp_update_erst_dequeue() argument 1361 cdnsp_clear_cmd_ring(struct cdnsp_device * pdev) cdnsp_clear_cmd_ring() argument 1384 cdnsp_consume_all_events(struct cdnsp_device * pdev) cdnsp_consume_all_events() argument 1421 cdnsp_stop(struct cdnsp_device * pdev) cdnsp_stop() argument 1465 struct cdnsp_device *pdev = gadget_to_cdnsp(g); cdnsp_gadget_udc_stop() local 1478 struct cdnsp_device *pdev = gadget_to_cdnsp(g); cdnsp_gadget_get_frame() local 1483 __cdnsp_gadget_wakeup(struct cdnsp_device * pdev) __cdnsp_gadget_wakeup() argument 1509 struct cdnsp_device *pdev = gadget_to_cdnsp(g); cdnsp_gadget_wakeup() local 1522 struct cdnsp_device *pdev = gadget_to_cdnsp(g); cdnsp_gadget_set_selfpowered() local 1534 struct cdnsp_device *pdev = gadget_to_cdnsp(gadget); cdnsp_gadget_pullup() local 1569 cdnsp_get_ep_buffering(struct cdnsp_device * pdev,struct cdnsp_ep * pep) cdnsp_get_ep_buffering() argument 1596 cdnsp_gadget_init_endpoints(struct cdnsp_device * pdev) cdnsp_gadget_init_endpoints() argument 1687 cdnsp_gadget_free_endpoints(struct cdnsp_device * pdev) cdnsp_gadget_free_endpoints() argument 1699 cdnsp_disconnect_gadget(struct cdnsp_device * pdev) cdnsp_disconnect_gadget() argument 1715 cdnsp_suspend_gadget(struct cdnsp_device * pdev) cdnsp_suspend_gadget() argument 1724 cdnsp_resume_gadget(struct cdnsp_device * pdev) cdnsp_resume_gadget() argument 1733 cdnsp_irq_reset(struct cdnsp_device * pdev) cdnsp_irq_reset() argument 1768 cdnsp_get_rev_cap(struct cdnsp_device * pdev) cdnsp_get_rev_cap() argument 1783 cdnsp_gen_setup(struct cdnsp_device * pdev) cdnsp_gen_setup() argument 1853 struct cdnsp_device *pdev; __cdnsp_gadget_init() local 1947 struct cdnsp_device *pdev = cdns->gadget_dev; cdnsp_gadget_exit() local 1962 struct cdnsp_device *pdev = cdns->gadget_dev; cdnsp_gadget_suspend() local 1978 struct cdnsp_device *pdev = cdns->gadget_dev; cdnsp_gadget_resume() local [all...] |
H A 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 …]
|
H A 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 …]
|
H A D | cdnsp-ring.c | 129 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 …]
|
/linux/drivers/media/usb/pwc/ |
H A 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 …]
|
H A 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/drivers/usb/gadget/udc/cdns2/ |
H A 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 …]
|
H A D | cdns2-gadget.c | 75 static int cdns2_get_dma_pos(struct cdns2_device *pdev, in cdns2_get_dma_pos() 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() 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() 114 dma_pool_free(pdev->eps_dma_pool, ring->trbs, ring->dma); in cdns2_free_tr_segment() 122 struct cdns2_device *pdev in cdns2_alloc_tr_segment() 74 cdns2_get_dma_pos(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_get_dma_pos() argument 90 cdns2_select_ep(struct cdns2_device * pdev,u32 ep) cdns2_select_ep() argument 109 struct cdns2_device *pdev = pep->pdev; cdns2_free_tr_segment() local 121 struct cdns2_device *pdev = pep->pdev; cdns2_alloc_tr_segment() local 155 struct cdns2_device *pdev = pep->pdev; cdns2_ep_stall_flush() local 205 cdns2_enable_l1(struct cdns2_device * pdev,int enable) cdns2_enable_l1() argument 215 cdns2_get_speed(struct cdns2_device * pdev) cdns2_get_speed() argument 241 struct cdns2_device *pdev = pep->pdev; cdns2_gadget_giveback() local 283 struct cdns2_device *pdev = pep->pdev; cdns2_wa1_update_guard() local 302 cdns2_wa1_tray_restore_cycle_bit(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_wa1_tray_restore_cycle_bit() argument 315 cdns2_prepare_ring(struct cdns2_device * pdev,struct cdns2_endpoint * pep,int num_trbs) cdns2_prepare_ring() argument 471 cdsn2_isoc_burst_opt(struct cdns2_device * pdev) cdsn2_isoc_burst_opt() argument 688 cdns2_set_drdy(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_set_drdy() argument 711 cdns2_prepare_first_isoc_transfer(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_prepare_first_isoc_transfer() argument 764 struct cdns2_device *pdev = pep->pdev; cdns2_ep_run_transfer() local 821 cdns2_start_all_request(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_start_all_request() argument 881 struct cdns2_device *pdev = pep->pdev; cdns2_trb_handled() local 949 cdns2_skip_isoc_td(struct cdns2_device * pdev,struct cdns2_endpoint * pep,struct cdns2_request * preq) cdns2_skip_isoc_td() argument 971 cdns2_transfer_completed(struct cdns2_device * pdev,struct cdns2_endpoint * pep) cdns2_transfer_completed() argument 1042 cdns2_wakeup(struct cdns2_device * pdev) cdns2_wakeup() argument 1053 struct cdns2_device *pdev = pep->pdev; cdns2_rearm_transfer() local 1074 struct cdns2_device *pdev = pep->pdev; cdns2_handle_epx_interrupt() local 1163 cdns2_disconnect_gadget(struct cdns2_device * pdev) cdns2_disconnect_gadget() argument 1171 struct cdns2_device *pdev = data; cdns2_usb_irq_handler() local 1209 cdns2_thread_usb_irq_handler(struct cdns2_device * pdev) cdns2_thread_usb_irq_handler() argument 1290 struct cdns2_device *pdev = data; cdns2_thread_irq_handler() local 1340 cdns2_eps_onchip_buffer_init(struct cdns2_device * pdev) cdns2_eps_onchip_buffer_init() argument 1414 struct cdns2_device *pdev = pep->pdev; cdns2_ep_config() local 1532 struct cdns2_device *pdev; cdns2_gadget_ep_enable() local 1615 struct cdns2_device *pdev; cdns2_gadget_ep_disable() local 1672 struct cdns2_device *pdev = pep->pdev; cdns2_ep_enqueue() local 1701 struct cdns2_device *pdev; cdns2_gadget_ep_queue() local 1822 cdns2_halt_endpoint(struct cdns2_device * pdev,struct cdns2_endpoint * pep,int value) cdns2_halt_endpoint() argument 1888 struct cdns2_device *pdev = pep->pdev; cdns2_gadget_ep_set_halt() local 1923 cdns2_find_available_ep(struct cdns2_device * pdev,struct usb_endpoint_descriptor * desc) cdns2_find_available_ep() argument 1965 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_match_ep() local 2001 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_get_frame() local 2008 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_wakeup() local 2021 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_set_selfpowered() local 2031 cdns2_quiesce(struct cdns2_device * pdev) cdns2_quiesce() argument 2044 cdns2_gadget_config(struct cdns2_device * pdev) cdns2_gadget_config() argument 2058 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_pullup() local 2086 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_udc_start() local 2129 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); cdns2_gadget_udc_stop() local 2167 cdns2_free_all_eps(struct cdns2_device * pdev) cdns2_free_all_eps() argument 2176 cdns2_init_eps(struct cdns2_device * pdev) cdns2_init_eps() argument 2250 cdns2_gadget_start(struct cdns2_device * pdev) cdns2_gadget_start() argument 2373 cdns2_gadget_suspend(struct cdns2_device * pdev) cdns2_gadget_suspend() argument 2394 cdns2_gadget_resume(struct cdns2_device * pdev,bool hibernated) cdns2_gadget_resume() argument 2415 cdns2_gadget_remove(struct cdns2_device * pdev) cdns2_gadget_remove() argument 2428 cdns2_gadget_init(struct cdns2_device * pdev) cdns2_gadget_init() argument [all...] |
/linux/arch/mips/pci/ |
H A 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/drivers/xen/xen-pciback/ |
H A 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/drivers/pci/ |
H A 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 …]
|
H A D | tph.c | 136 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, ®); in set_ctrl_reg_req_en() 145 pci_write_config_dword(pdev, pdev->tph_cap + PCI_TPH_CTRL, reg); in set_ctrl_reg_req_en() 148 static u8 get_st_modes(struct pci_dev *pdev) in get_st_modes() argument 152 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CAP, ®); in get_st_modes() 158 static u32 get_st_table_loc(struct pci_dev *pdev) in get_st_table_loc() argument 162 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CAP, ®); in get_st_table_loc() 171 static u16 get_st_table_size(struct pci_dev *pdev) in get_st_table_size() argument 177 loc = get_st_table_loc(pdev); in get_st_table_size() 184 pci_read_config_dword(pdev, pdev->tph_cap + PCI_TPH_CAP, ®); in get_st_table_size() [all …]
|
/linux/drivers/w1/masters/ |
H A D | ds2482.c | 104 struct ds2482_data *pdev; 142 * @pdev: The ds2482 client pointer 146 static inline int ds2482_select_register(struct ds2482_data *pdev, u8 read_ptr) in ds2482_select_register() 148 if (pdev->read_prt != read_ptr) { in ds2482_select_register() 149 if (i2c_smbus_write_byte_data(pdev->client, in ds2482_select_register() 154 pdev->read_prt = read_ptr; in ds2482_select_register() 161 * @pdev: The ds2482 client pointer 167 static inline int ds2482_send_cmd(struct ds2482_data *pdev, u8 cmd) in ds2482_send_cmd() 169 if (i2c_smbus_write_byte(pdev->client, cmd) < 0) in ds2482_send_cmd() 172 pdev in ds2482_send_cmd() 103 struct ds2482_data *pdev; global() member 145 ds2482_select_register(struct ds2482_data * pdev,u8 read_ptr) ds2482_select_register() argument 166 ds2482_send_cmd(struct ds2482_data * pdev,u8 cmd) ds2482_send_cmd() argument 185 ds2482_send_cmd_data(struct ds2482_data * pdev,u8 cmd,u8 byte) ds2482_send_cmd_data() argument 210 ds2482_wait_1wire_idle(struct ds2482_data * pdev) ds2482_wait_1wire_idle() argument 237 ds2482_set_channel(struct ds2482_data * pdev,u8 channel) ds2482_set_channel() argument 263 struct ds2482_data *pdev = pchan->pdev; ds2482_w1_touch_bit() local 295 struct ds2482_data *pdev = pchan->pdev; ds2482_w1_triplet() local 325 struct ds2482_data *pdev = pchan->pdev; ds2482_w1_write_byte() local 349 struct ds2482_data *pdev = pchan->pdev; ds2482_w1_read_byte() local 386 struct ds2482_data *pdev = pchan->pdev; ds2482_w1_reset_bus() local 418 struct ds2482_data *pdev = pchan->pdev; ds2482_w1_set_pullup() local [all...] |
/linux/drivers/virt/nitro_enclaves/ |
H A 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/arch/m68k/amiga/ |
H A 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/drivers/misc/eeprom/ |
H A D | idt_89hpesx.c | 255 * @pdev: Pointer to the driver data 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() 287 * @pdev: Pointer to the driver data 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() 320 * @pdev: Pointer to the driver data 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 in idt_smb_write_word() 372 idt_smb_read_word(struct idt_89hpesx_dev * pdev,struct idt_smb_seq * seq) idt_smb_read_word() argument 423 idt_smb_write_block(struct idt_89hpesx_dev * pdev,const struct idt_smb_seq * seq) idt_smb_write_block() argument 446 idt_smb_read_block(struct idt_89hpesx_dev * pdev,struct idt_smb_seq * seq) idt_smb_read_block() argument 476 idt_smb_write_i2c_block(struct idt_89hpesx_dev * pdev,const struct idt_smb_seq * seq) idt_smb_write_i2c_block() argument 506 idt_smb_read_i2c_block(struct idt_89hpesx_dev * pdev,struct idt_smb_seq * seq) idt_smb_read_i2c_block() argument 544 idt_eeprom_read_byte(struct idt_89hpesx_dev * pdev,u16 memaddr,u8 * data) idt_eeprom_read_byte() argument 616 idt_eeprom_write(struct idt_89hpesx_dev * pdev,u16 memaddr,u16 len,const u8 * data) idt_eeprom_write() argument 682 idt_eeprom_read(struct idt_89hpesx_dev * pdev,u16 memaddr,u16 len,u8 * buf) idt_eeprom_read() argument 718 idt_csr_write(struct idt_89hpesx_dev * pdev,u16 csraddr,const u32 data) idt_csr_write() argument 784 idt_csr_read(struct idt_89hpesx_dev * pdev,u16 csraddr,u32 * data) idt_csr_read() argument 853 struct idt_89hpesx_dev *pdev; eeprom_write() local 877 struct idt_89hpesx_dev *pdev; eeprom_read() local 906 struct idt_89hpesx_dev *pdev = filep->private_data; idt_dbgfs_csr_write() local 993 struct idt_89hpesx_dev *pdev = filep->private_data; idt_dbgfs_csr_read() local 1041 idt_set_defval(struct idt_89hpesx_dev * pdev) idt_set_defval() argument 1081 idt_get_fw_data(struct idt_89hpesx_dev * pdev) idt_get_fw_data() argument 1136 struct idt_89hpesx_dev *pdev; idt_create_pdev() local 1170 idt_free_pdev(struct idt_89hpesx_dev * pdev) idt_free_pdev() argument 1181 idt_set_smbus_ops(struct idt_89hpesx_dev * pdev) idt_set_smbus_ops() argument 1245 idt_check_dev(struct idt_89hpesx_dev * pdev) idt_check_dev() argument 1275 idt_create_sysfs_files(struct idt_89hpesx_dev * pdev) idt_create_sysfs_files() argument 1315 idt_remove_sysfs_files(struct idt_89hpesx_dev * pdev) idt_remove_sysfs_files() argument 1332 idt_create_dbgfs_files(struct idt_89hpesx_dev * pdev) idt_create_dbgfs_files() argument 1350 idt_remove_dbgfs_files(struct idt_89hpesx_dev * pdev) idt_remove_dbgfs_files() argument 1361 struct idt_89hpesx_dev *pdev; idt_probe() local 1400 struct idt_89hpesx_dev *pdev = i2c_get_clientdata(client); idt_remove() local [all...] |
/linux/drivers/usb/host/ |
H A D | xhci-pci.c | 111 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_msix_sync_irqs() local 114 synchronize_irq(pci_irq_vector(pdev, 0)); in xhci_msix_sync_irqs() 122 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix() local 127 free_irq(pci_irq_vector(pdev, 0), xhci_to_hcd(xhci)); in xhci_cleanup_msix() 128 pci_free_irq_vectors(pdev); in xhci_cleanup_msix() 135 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_try_enable_msi() local 159 xhci->nvecs = pci_alloc_irq_vectors(pdev, 1, xhci->nvecs, in xhci_try_enable_msi() 167 ret = request_irq(pci_irq_vector(pdev, 0), xhci_msi_irq, 0, "xhci_hcd", in xhci_try_enable_msi() 173 hcd->msix_enabled = pdev->msix_enabled; in xhci_try_enable_msi() 178 pdev->msix_enabled ? "MSI-X" : "MSI"); in xhci_try_enable_msi() [all …]
|
H A D | xhci-pci-renesas.c | 157 static bool renesas_check_rom(struct pci_dev *pdev) in renesas_check_rom() argument 163 retval = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_status); in renesas_check_rom() 169 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom() 176 static int renesas_check_rom_state(struct pci_dev *pdev) in renesas_check_rom_state() argument 183 err = pci_read_config_dword(pdev, RENESAS_FW_VERSION, &version); in renesas_check_rom_state() 189 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state() 194 err = pci_read_config_word(pdev, RENESAS_ROM_STATUS, &rom_state); in renesas_check_rom_state() 200 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state() 208 dev_dbg(&pdev->dev, "Unknown ROM status ...\n"); in renesas_check_rom_state() 213 dev_err(&pdev->dev, "Invalid ROM.."); in renesas_check_rom_state() [all …]
|
H A 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/drivers/ata/ |
H A 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/drivers/misc/mei/ |
H A 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/drivers/net/can/esd/ |
H A D | esd_402_pci-core.c | 99 struct pci_dev *pdev = dev_id; in pci402_interrupt() local 100 struct pci402_card *card = pci_get_drvdata(pdev); in pci402_interrupt() 108 static int pci402_set_msiconfig(struct pci_dev *pdev) in pci402_set_msiconfig() argument 110 struct pci402_card *card = pci_get_drvdata(pdev); in pci402_set_msiconfig() 121 err = pci_read_config_word(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_FLAGS, &csr); in pci402_set_msiconfig() 125 err = pci_read_config_dword(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_ADDRESS_LO, in pci402_set_msiconfig() 129 err = pci_read_config_dword(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_ADDRESS_HI, in pci402_set_msiconfig() 134 err = pci_read_config_dword(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_DATA_64, in pci402_set_msiconfig() 158 pci_warn(pdev, "Error while setting MSI configuration:\n" in pci402_set_msiconfig() 165 static int pci402_init_card(struct pci_dev *pdev) in pci402_init_card() argument [all …]
|
/linux/arch/x86/pci/ |
H A D | sta2x11-fixup.c | 47 static void sta2x11_new_instance(struct pci_dev *pdev) in sta2x11_new_instance() argument 55 instance->bus0 = pdev->subordinate->number + 1; in sta2x11_new_instance() 60 dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); in sta2x11_new_instance() 62 dev_emerg(&pdev->dev, "init swiotlb failed\n"); in sta2x11_new_instance() 71 static struct sta2x11_instance *sta2x11_pdev_to_instance(struct pci_dev *pdev) in sta2x11_pdev_to_instance() argument 77 ep = pdev->bus->number - instance->bus0; in sta2x11_pdev_to_instance() 84 static int sta2x11_pdev_to_ep(struct pci_dev *pdev) in sta2x11_pdev_to_ep() argument 88 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_ep() 92 return pdev->bus->number - instance->bus0; in sta2x11_pdev_to_ep() 96 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev) in sta2x11_get_instance() argument [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ath9k_pci_owl_loader.c | 25 struct pci_dev *pdev; member 35 static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data, in ath9k_pci_fixup() argument 51 dev_err(&pdev->dev, "eeprom has an invalid size.\n"); in ath9k_pci_fixup() 57 dev_err(&pdev->dev, "invalid calibration data\n"); in ath9k_pci_fixup() 61 dev_dbg(&pdev->dev, "calibration data needs swapping\n"); in ath9k_pci_fixup() 65 dev_info(&pdev->dev, "fixup device configuration\n"); in ath9k_pci_fixup() 67 mem = pci_iomap(pdev, 0, 0); in ath9k_pci_fixup() 69 dev_err(&pdev->dev, "ioremap error\n"); in ath9k_pci_fixup() 73 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &bar0); in ath9k_pci_fixup() 74 pci_write_config_dword(pdev, PCI_BASE_ADDRESS_0, in ath9k_pci_fixup() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | eeh_sysfs.c | 28 struct pci_dev *pdev = to_pci_dev(dev); \ 29 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \ 44 struct pci_dev *pdev = to_pci_dev(dev); in eeh_pe_state_show() local 45 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() 60 struct pci_dev *pdev = to_pci_dev(dev); in eeh_pe_state_store() local 61 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() 83 struct pci_dev *pdev = to_pci_dev(dev); in eeh_notify_resume_show() local 84 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() 85 struct pci_dn *pdn = pci_get_pdn(pdev); in eeh_notify_resume_show() 97 struct pci_dev *pdev = to_pci_dev(dev); in eeh_notify_resume_store() local [all …]
|