Home
last modified time | relevance | path

Searched refs:ssp (Results 1 – 24 of 24) sorted by relevance

/drivers/tty/serial/
Dsifive.c237 static void __ssp_writel(u32 v, u16 offs, struct sifive_serial_port *ssp) in __ssp_writel() argument
239 __ssp_early_writel(v, offs, &ssp->port); in __ssp_writel()
254 static u32 __ssp_readl(struct sifive_serial_port *ssp, u16 offs) in __ssp_readl() argument
256 return __ssp_early_readl(&ssp->port, offs); in __ssp_readl()
270 static int sifive_serial_is_txfifo_full(struct sifive_serial_port *ssp) in sifive_serial_is_txfifo_full() argument
272 return __ssp_readl(ssp, SIFIVE_SERIAL_TXDATA_OFFS) & in sifive_serial_is_txfifo_full()
287 static void __ssp_transmit_char(struct sifive_serial_port *ssp, int ch) in __ssp_transmit_char() argument
289 __ssp_writel(ch, SIFIVE_SERIAL_TXDATA_OFFS, ssp); in __ssp_transmit_char()
301 static void __ssp_transmit_chars(struct sifive_serial_port *ssp) in __ssp_transmit_chars() argument
303 struct circ_buf *xmit = &ssp->port.state->xmit; in __ssp_transmit_chars()
[all …]
/drivers/mmc/host/
Dmxs-mmc.c49 struct mxs_ssp ssp; member
65 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd() local
76 !(readl(ssp->base + HW_SSP_STATUS(ssp)) & in mxs_mmc_get_cd()
87 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_reset() local
91 ret = stmp_reset_block(ssp->base); in mxs_mmc_reset()
109 ssp->base + HW_SSP_TIMING(ssp)); in mxs_mmc_reset()
116 writel(ctrl0, ssp->base + HW_SSP_CTRL0); in mxs_mmc_reset()
117 writel(ctrl1, ssp->base + HW_SSP_CTRL1(ssp)); in mxs_mmc_reset()
129 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_request_done() local
133 cmd->resp[3] = readl(ssp->base + HW_SSP_SDRESP0(ssp)); in mxs_mmc_request_done()
[all …]
/drivers/spi/
Dspi-mxs.c58 struct mxs_ssp ssp; member
67 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_setup_transfer() local
76 mxs_ssp_set_clk_rate(ssp, hz); in mxs_spi_setup_transfer()
90 ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_SET); in mxs_spi_setup_transfer()
96 ssp->base + HW_SSP_CTRL1(ssp)); in mxs_spi_setup_transfer()
98 writel(0x0, ssp->base + HW_SSP_CMD0); in mxs_spi_setup_transfer()
99 writel(0x0, ssp->base + HW_SSP_CMD1); in mxs_spi_setup_transfer()
127 struct mxs_ssp *ssp = &spi->ssp; in mxs_ssp_wait() local
131 reg = readl_relaxed(ssp->base + offset); in mxs_ssp_wait()
154 struct mxs_ssp *ssp = dev_id; in mxs_ssp_irq_handler() local
[all …]
Dspi-pxa2xx.c339 drv_data->lpss_base = drv_data->ssp->mmio_base + config->offset; in lpss_ssp_setup()
500 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_off()
639 dev_err(drv_data->ssp->dev, "%s\n", msg); in int_error_stop()
735 dev_err(drv_data->ssp->dev, "bad message state in interrupt handler\n"); in handle_bad_msg()
751 if (pm_runtime_suspended(drv_data->ssp->dev)) in ssp_int()
913 const struct ssp_device *ssp = drv_data->ssp; in ssp_get_clk_div() local
921 if (ssp->type == PXA25x_SSP || ssp->type == CE4100_SSP) in ssp_get_clk_div()
1102 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_transfer_one()
1114 pxa_ssp_enable(drv_data->ssp); in pxa2xx_spi_transfer_one()
1576 struct ssp_device *ssp; in pxa2xx_spi_init_pdata() local
[all …]
Dspi-pxa2xx-pci.c231 struct ssp_device *ssp; in pxa2xx_spi_pci_probe() local
258 ssp = &spi_pdata.ssp; in pxa2xx_spi_pci_probe()
259 ssp->dev = &dev->dev; in pxa2xx_spi_pci_probe()
260 ssp->phys_base = pci_resource_start(dev, 0); in pxa2xx_spi_pci_probe()
261 ssp->mmio_base = pcim_iomap_table(dev)[0]; in pxa2xx_spi_pci_probe()
262 ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn; in pxa2xx_spi_pci_probe()
263 ssp->type = c->type; in pxa2xx_spi_pci_probe()
270 ssp->irq = pci_irq_vector(dev, 0); in pxa2xx_spi_pci_probe()
272 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_probe()
273 ssp->clk = clk_register_fixed_rate(&dev->dev, buf, NULL, 0, in pxa2xx_spi_pci_probe()
[all …]
Dspi-pxa2xx-dma.c48 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_dma_transfer_complete()
90 cfg.dst_addr = drv_data->ssp->phys_base + SSDR; in pxa2xx_spi_dma_prepare_one()
97 cfg.src_addr = drv_data->ssp->phys_base + SSDR; in pxa2xx_spi_dma_prepare_one()
107 dev_warn(drv_data->ssp->dev, "DMA slave config failed\n"); in pxa2xx_spi_dma_prepare_one()
121 dev_err(drv_data->ssp->dev, "FIFO overrun\n"); in pxa2xx_spi_dma_transfer()
141 dev_err(drv_data->ssp->dev, "failed to get DMA TX descriptor\n"); in pxa2xx_spi_dma_prepare()
148 dev_err(drv_data->ssp->dev, "failed to get DMA RX descriptor\n"); in pxa2xx_spi_dma_prepare()
186 struct device *dev = drv_data->ssp->dev; in pxa2xx_spi_dma_setup()
Dspi-pxa2xx.h25 struct ssp_device *ssp; member
80 return pxa_ssp_read_reg(drv_data->ssp, reg); in pxa2xx_spi_read()
85 pxa_ssp_write_reg(drv_data->ssp, reg, val); in pxa2xx_spi_write()
/drivers/input/mouse/
Dnavpoint.c32 struct ssp_device *ssp; member
120 struct ssp_device *ssp = navpoint->ssp; in navpoint_irq() local
124 status = pxa_ssp_read_reg(ssp, SSSR); in navpoint_irq()
128 pxa_ssp_write_reg(ssp, SSSR, (status & sssr)); in navpoint_irq()
135 data = pxa_ssp_read_reg(ssp, SSDR); in navpoint_irq()
143 status = pxa_ssp_read_reg(ssp, SSSR); in navpoint_irq()
152 struct ssp_device *ssp = navpoint->ssp; in navpoint_up() local
155 clk_prepare_enable(ssp->clk); in navpoint_up()
157 pxa_ssp_write_reg(ssp, SSCR1, sscr1); in navpoint_up()
158 pxa_ssp_write_reg(ssp, SSSR, sssr); in navpoint_up()
[all …]
/drivers/clk/mxs/
Dclk-ssp.c21 void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate) in mxs_ssp_set_clk_rate() argument
27 ssp_clk = clk_get_rate(ssp->clk); in mxs_ssp_set_clk_rate()
37 dev_err(ssp->dev, in mxs_ssp_set_clk_rate()
44 val = readl(ssp->base + HW_SSP_TIMING(ssp)); in mxs_ssp_set_clk_rate()
48 writel(val, ssp->base + HW_SSP_TIMING(ssp)); in mxs_ssp_set_clk_rate()
50 ssp->clk_rate = ssp_sck; in mxs_ssp_set_clk_rate()
52 dev_dbg(ssp->dev, in mxs_ssp_set_clk_rate()
DMakefile6 obj-y += clk.o clk-pll.o clk-ref.o clk-div.o clk-frac.o clk-ssp.o
Dclk-imx23.c85 clk32k, dri, pwm, filt, uart, ssp, gpmi, spdif, emi, saif, enumerator
145 clks[ssp] = mxs_clk_gate("ssp", "ssp_div", SSP, 31); in mx23_clocks_init()
/drivers/scsi/isci/
Dremote_node_context.c129 rnc->ssp.remote_node_index = rni; in sci_remote_node_context_construct_buffer()
130 rnc->ssp.remote_node_port_width = idev->device_port_width; in sci_remote_node_context_construct_buffer()
131 rnc->ssp.logical_port_index = idev->owning_port->physical_port_index; in sci_remote_node_context_construct_buffer()
135 rnc->ssp.remote_sas_address_hi = upper_32_bits(sas_addr); in sci_remote_node_context_construct_buffer()
136 rnc->ssp.remote_sas_address_lo = lower_32_bits(sas_addr); in sci_remote_node_context_construct_buffer()
138 rnc->ssp.nexus_loss_timer_enable = true; in sci_remote_node_context_construct_buffer()
139 rnc->ssp.check_bit = false; in sci_remote_node_context_construct_buffer()
140 rnc->ssp.is_valid = false; in sci_remote_node_context_construct_buffer()
141 rnc->ssp.is_remote_node_context = true; in sci_remote_node_context_construct_buffer()
142 rnc->ssp.function_number = 0; in sci_remote_node_context_construct_buffer()
[all …]
Dport.c552 rnc->ssp.remote_sas_address_hi = 0; in sci_port_construct_dummy_rnc()
553 rnc->ssp.remote_sas_address_lo = 0; in sci_port_construct_dummy_rnc()
555 rnc->ssp.remote_node_index = rni; in sci_port_construct_dummy_rnc()
556 rnc->ssp.remote_node_port_width = 1; in sci_port_construct_dummy_rnc()
557 rnc->ssp.logical_port_index = iport->physical_port_index; in sci_port_construct_dummy_rnc()
559 rnc->ssp.nexus_loss_timer_enable = false; in sci_port_construct_dummy_rnc()
560 rnc->ssp.check_bit = false; in sci_port_construct_dummy_rnc()
561 rnc->ssp.is_valid = true; in sci_port_construct_dummy_rnc()
562 rnc->ssp.is_remote_node_context = true; in sci_port_construct_dummy_rnc()
563 rnc->ssp.function_number = 0; in sci_port_construct_dummy_rnc()
[all …]
Drequest.c176 cmd_iu = &ireq->ssp.cmd; in sci_io_request_build_ssp_command_iu()
197 task_iu = &ireq->ssp.tmf; in sci_task_request_build_ssp_task_iu()
260 dma_addr = sci_io_request_get_dma_addr(ireq, &ireq->ssp.cmd); in scu_ssp_request_construct_task_context()
269 dma_addr = sci_io_request_get_dma_addr(ireq, &ireq->ssp.rsp); in scu_ssp_request_construct_task_context()
427 task_context->type.ssp.frame_type = SSP_COMMAND; in scu_ssp_io_request_construct_task_context()
475 task_context->type.ssp.frame_type = SSP_TASK; in scu_ssp_task_request_construct_task_context()
796 (SCU_TASK_CONTEXT_SRAM + offsetof(struct scu_task_context, type.ssp.data_offset)) + in sci_req_tx_bytes()
823 tc->type.ssp.tag = ireq->io_tag; in sci_request_start()
824 tc->type.ssp.target_port_transfer_tag = 0xFFFF; in sci_request_start()
980 ssp_response = &ireq->ssp.rsp; in sci_io_request_copy_response()
[all …]
Dscu_remote_node_context.h220 struct ssp_remote_node_context ssp; member
Drequest.h141 } ssp; member
Dscu_task_context.h427 struct ssp_task_context ssp; member
Dtask.c713 ireq->ssp.rsp_buf, in isci_task_request_complete()
/drivers/usb/gadget/
Dconfig.c163 struct usb_descriptor_header **ssp) in usb_assign_descriptors() argument
172 if (!ssp) in usb_assign_descriptors()
173 ssp = ss; in usb_assign_descriptors()
190 if (ssp && gadget_is_superspeed_plus(g)) { in usb_assign_descriptors()
191 f->ssp_descriptors = usb_copy_descriptors(ssp); in usb_assign_descriptors()
Dcomposite.c635 int ssp = 0; in count_configs() local
643 ssp = 1; in count_configs()
649 if (ssp) { in count_configs()
/drivers/scsi/libsas/
Dsas_scsi_host.c698 struct ssp_device *ssp; in sas_eh_handle_resets() local
700 ssp = list_entry(ha->eh_dev_q.next, typeof(*ssp), eh_list_node); in sas_eh_handle_resets()
701 list_del_init(&ssp->eh_list_node); in sas_eh_handle_resets()
702 dev = container_of(ssp, typeof(*dev), ssp_dev); in sas_eh_handle_resets()
709 i->dft->lldd_lu_reset(dev, ssp->reset_lun.scsi_lun); in sas_eh_handle_resets()
/drivers/iio/common/ssp_sensors/
DKconfig23 If you say yes here you get ssp support for sensorhub.
/drivers/net/can/m_can/
Dm_can.c1205 u32 tdco, ssp; in m_can_set_bittiming() local
1210 ssp = dbt->sample_point; in m_can_set_bittiming()
1216 ssp / dbt->bitrate; in m_can_set_bittiming()
/drivers/scsi/hisi_sas/
Dhisi_sas.h611 struct hisi_sas_command_table_ssp ssp; member