Home
last modified time | relevance | path

Searched refs:buswidth (Results 1 – 25 of 38) sorted by relevance

12

/drivers/spi/
Dspi-mem.c102 static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx) in spi_check_buswidth_req() argument
106 switch (buswidth) { in spi_check_buswidth_req()
141 if (spi_check_buswidth_req(mem, op->cmd.buswidth, true)) in spi_mem_default_supports_op()
145 spi_check_buswidth_req(mem, op->addr.buswidth, true)) in spi_mem_default_supports_op()
149 spi_check_buswidth_req(mem, op->dummy.buswidth, true)) in spi_mem_default_supports_op()
153 spi_check_buswidth_req(mem, op->data.buswidth, in spi_mem_default_supports_op()
161 static bool spi_mem_buswidth_is_valid(u8 buswidth) in spi_mem_buswidth_is_valid() argument
163 if (hweight8(buswidth) > 1 || buswidth > SPI_MEM_MAX_BUSWIDTH) in spi_mem_buswidth_is_valid()
171 if (!op->cmd.buswidth) in spi_mem_check_op()
174 if ((op->addr.nbytes && !op->addr.buswidth) || in spi_mem_check_op()
[all …]
Dspi-npcm-fiu.c250 ilog2(op->addr.buswidth) << in npcm_fiu_set_drd()
252 fiu->drd_op.addr.buswidth = op->addr.buswidth; in npcm_fiu_set_drd()
255 ((op->dummy.nbytes * ilog2(op->addr.buswidth)) in npcm_fiu_set_drd()
282 if (desc->info.op_tmpl.addr.buswidth != fiu->drd_op.addr.buswidth || in npcm_fiu_direct_read()
334 uma_cfg |= ilog2(op->cmd.buswidth); in npcm_fiu_uma_read()
335 uma_cfg |= ilog2(op->addr.buswidth) in npcm_fiu_uma_read()
337 uma_cfg |= ilog2(op->dummy.buswidth) in npcm_fiu_uma_read()
339 uma_cfg |= ilog2(op->data.buswidth) in npcm_fiu_uma_read()
396 uma_cfg |= ilog2(op->cmd.buswidth); in npcm_fiu_uma_write()
397 uma_cfg |= ilog2(op->addr.buswidth) << in npcm_fiu_uma_write()
[all …]
Dspi-stm32-qspi.c319 static int stm32_qspi_get_mode(struct stm32_qspi *qspi, u8 buswidth) in stm32_qspi_get_mode() argument
321 if (buswidth == 4) in stm32_qspi_get_mode()
324 return buswidth; in stm32_qspi_get_mode()
335 op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in stm32_qspi_send()
336 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_send()
347 op->addr.buswidth) in stm32_qspi_send()
370 stm32_qspi_get_mode(qspi, op->cmd.buswidth)); in stm32_qspi_send()
374 stm32_qspi_get_mode(qspi, op->addr.buswidth)); in stm32_qspi_send()
378 if (op->dummy.buswidth && op->dummy.nbytes) in stm32_qspi_send()
380 op->dummy.nbytes * 8 / op->dummy.buswidth); in stm32_qspi_send()
[all …]
Datmel-quadspi.c178 if (op->cmd.buswidth != mode->cmd_buswidth) in atmel_qspi_is_compatible()
181 if (op->addr.nbytes && op->addr.buswidth != mode->addr_buswidth) in atmel_qspi_is_compatible()
184 if (op->data.nbytes && op->data.buswidth != mode->data_buswidth) in atmel_qspi_is_compatible()
208 if (op->addr.nbytes == 2 && op->cmd.buswidth != op->addr.buswidth && in atmel_qspi_supports_op()
231 if (op->dummy.buswidth && op->dummy.nbytes) in atmel_qspi_set_cfg()
232 dummy_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in atmel_qspi_set_cfg()
246 if (op->addr.buswidth) { in atmel_qspi_set_cfg()
255 if (dummy_cycles < 8 / op->addr.buswidth) { in atmel_qspi_set_cfg()
263 dummy_cycles -= 8 / op->addr.buswidth; in atmel_qspi_set_cfg()
Dspi-mxic.c338 if (op->data.buswidth > 4 || op->addr.buswidth > 4 || in mxic_spi_mem_supports_op()
339 op->dummy.buswidth > 4 || op->cmd.buswidth > 4) in mxic_spi_mem_supports_op()
343 op->data.buswidth != op->dummy.buswidth) in mxic_spi_mem_supports_op()
376 ss_ctrl = OP_CMD_BYTES(1) | OP_CMD_BUSW(fls(op->cmd.buswidth) - 1); in mxic_spi_mem_exec_op()
380 OP_ADDR_BUSW(fls(op->addr.buswidth) - 1); in mxic_spi_mem_exec_op()
386 ss_ctrl |= OP_DATA_BUSW(fls(op->data.buswidth) - 1); in mxic_spi_mem_exec_op()
Dspi-qcom-qspi.c126 unsigned int buswidth; member
147 unsigned int buswidth) in qspi_buswidth_to_iomode() argument
149 switch (buswidth) { in qspi_buswidth_to_iomode()
158 "Unexpected bus width: %u\n", buswidth); in qspi_buswidth_to_iomode()
177 pio_xfer_cfg |= qspi_buswidth_to_iomode(ctrl, xfer->buswidth); in qcom_qspi_pio_xfer_cfg()
249 ctrl->xfer.buswidth = xfer->rx_nbits; in qcom_qspi_transfer_one()
253 ctrl->xfer.buswidth = xfer->tx_nbits; in qcom_qspi_transfer_one()
Dspi-nxp-fspi.c398 ret = nxp_fspi_check_buswidth(f, op->cmd.buswidth); in nxp_fspi_supports_op()
401 ret |= nxp_fspi_check_buswidth(f, op->addr.buswidth); in nxp_fspi_supports_op()
404 ret |= nxp_fspi_check_buswidth(f, op->dummy.buswidth); in nxp_fspi_supports_op()
407 ret |= nxp_fspi_check_buswidth(f, op->data.buswidth); in nxp_fspi_supports_op()
427 if (op->dummy.buswidth && in nxp_fspi_supports_op()
428 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in nxp_fspi_supports_op()
490 lutval[0] |= LUT_DEF(0, LUT_CMD, LUT_PAD(op->cmd.buswidth), in nxp_fspi_prepare_lut()
496 LUT_PAD(op->addr.buswidth), in nxp_fspi_prepare_lut()
508 LUT_PAD(op->data.buswidth), in nxp_fspi_prepare_lut()
510 op->dummy.buswidth); in nxp_fspi_prepare_lut()
[all …]
Dspi-fsl-qspi.c362 ret = fsl_qspi_check_buswidth(q, op->cmd.buswidth); in fsl_qspi_supports_op()
365 ret |= fsl_qspi_check_buswidth(q, op->addr.buswidth); in fsl_qspi_supports_op()
368 ret |= fsl_qspi_check_buswidth(q, op->dummy.buswidth); in fsl_qspi_supports_op()
371 ret |= fsl_qspi_check_buswidth(q, op->data.buswidth); in fsl_qspi_supports_op()
387 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in fsl_qspi_supports_op()
411 lutval[0] |= LUT_DEF(0, LUT_CMD, LUT_PAD(op->cmd.buswidth), in fsl_qspi_prepare_lut()
423 LUT_PAD(op->addr.buswidth), in fsl_qspi_prepare_lut()
430 LUT_PAD(op->dummy.buswidth), in fsl_qspi_prepare_lut()
432 op->dummy.buswidth); in fsl_qspi_prepare_lut()
440 LUT_PAD(op->data.buswidth), in fsl_qspi_prepare_lut()
Dspi-ep93xx.c274 enum dma_slave_buswidth buswidth; in ep93xx_spi_dma_prepare() local
284 buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES; in ep93xx_spi_dma_prepare()
286 buswidth = DMA_SLAVE_BUSWIDTH_1_BYTE; in ep93xx_spi_dma_prepare()
297 conf.src_addr_width = buswidth; in ep93xx_spi_dma_prepare()
304 conf.dst_addr_width = buswidth; in ep93xx_spi_dma_prepare()
Dspi-fsl-lpspi.c357 enum dma_slave_buswidth buswidth; in fsl_lpspi_dma_configure() local
364 buswidth = DMA_SLAVE_BUSWIDTH_4_BYTES; in fsl_lpspi_dma_configure()
367 buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES; in fsl_lpspi_dma_configure()
370 buswidth = DMA_SLAVE_BUSWIDTH_1_BYTE; in fsl_lpspi_dma_configure()
378 tx.dst_addr_width = buswidth; in fsl_lpspi_dma_configure()
389 rx.src_addr_width = buswidth; in fsl_lpspi_dma_configure()
Dspi-bcm-qspi.c346 int width = op->data.buswidth ? op->data.buswidth : SPI_NBITS_SINGLE; in bcm_qspi_bspi_set_flex_mode()
356 bpp |= (op->dummy.nbytes * 8) / op->dummy.buswidth; in bcm_qspi_bspi_set_flex_mode()
390 int width = op->data.buswidth ? op->data.buswidth : SPI_NBITS_SINGLE; in bcm_qspi_bspi_set_override()
436 int width = op->data.buswidth ? op->data.buswidth : SPI_NBITS_SINGLE; in bcm_qspi_bspi_set_mode()
926 t[0].tx_nbits = op->cmd.buswidth; in bcm_qspi_mspi_exec_mem_op()
937 t[1].rx_nbits = op->data.buswidth; in bcm_qspi_mspi_exec_mem_op()
Dspi-zynq-qspi.c521 op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in zynq_qspi_exec_mem_op()
522 op->dummy.buswidth, op->data.buswidth); in zynq_qspi_exec_mem_op()
Dspi-pic32.c392 u32 buswidth, v; in pic32_spi_set_word_size() local
398 buswidth = PIC32_BPW_8; in pic32_spi_set_word_size()
404 buswidth = PIC32_BPW_16; in pic32_spi_set_word_size()
410 buswidth = PIC32_BPW_32; in pic32_spi_set_word_size()
424 v |= buswidth << CTRL_BPW_SHIFT; in pic32_spi_set_word_size()
Dspi-stm32.c1111 enum dma_slave_buswidth buswidth; in stm32_spi_dma_config() local
1115 buswidth = DMA_SLAVE_BUSWIDTH_1_BYTE; in stm32_spi_dma_config()
1117 buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES; in stm32_spi_dma_config()
1119 buswidth = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_spi_dma_config()
1135 dma_conf->src_addr_width = buswidth; in stm32_spi_dma_config()
1139 buswidth, maxburst); in stm32_spi_dma_config()
1142 dma_conf->dst_addr_width = buswidth; in stm32_spi_dma_config()
1146 buswidth, maxburst); in stm32_spi_dma_config()
/drivers/staging/fbtft/
Dfbtft-core.c602 if (pdata->display.buswidth) in fbtft_framebuffer_alloc()
603 display->buswidth = pdata->display.buswidth; in fbtft_framebuffer_alloc()
1115 if (pdata->display.buswidth != 9 && par->startbyte == 0 && in fbtft_verify_gpios()
1129 for (i = 0; i < pdata->display.buswidth; i++) { in fbtft_verify_gpios()
1171 pdata->display.buswidth = fbtft_of_value(node, "buswidth"); in fbtft_probe_dt()
1243 if (display->buswidth == 0) { in fbtft_probe_common()
1249 if (display->regwidth == 8 && display->buswidth == 8) in fbtft_probe_common()
1251 else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) in fbtft_probe_common()
1253 else if (display->regwidth == 16 && display->buswidth == 8) in fbtft_probe_common()
1255 else if (display->regwidth == 16 && display->buswidth == 16) in fbtft_probe_common()
[all …]
Dfb_uc1611.c224 switch (par->pdata->display.buswidth) { in write_vmem()
296 par->pdata->display.buswidth); in write_vmem()
/drivers/dma/
Damba-pl08x.c132 u8 buswidth; member
135 #define IS_BUS_ALIGNED(bus) IS_ALIGNED((bus)->addr, (bus)->buswidth)
1155 if (bd->dstbus.buswidth >= bd->srcbus.buswidth) { in pl08x_choose_master_bus()
1291 bd.srcbus.buswidth = bd.srcbus.maxwidth; in pl08x_fill_llis_for_desc()
1292 bd.dstbus.buswidth = bd.dstbus.maxwidth; in pl08x_fill_llis_for_desc()
1300 bd.srcbus.buswidth, in pl08x_fill_llis_for_desc()
1303 bd.dstbus.buswidth, in pl08x_fill_llis_for_desc()
1356 bd.srcbus.buswidth, bd.dstbus.buswidth, in pl08x_fill_llis_for_desc()
1368 if (bd.remainder < mbus->buswidth) in pl08x_fill_llis_for_desc()
1371 early_bytes = mbus->buswidth - in pl08x_fill_llis_for_desc()
[all …]
Dstm32-dma.c694 enum dma_slave_buswidth *buswidth, in stm32_dma_set_xfer_param() argument
755 *buswidth = dst_addr_width; in stm32_dma_set_xfer_param()
804 *buswidth = chan->dma_sconfig.src_addr_width; in stm32_dma_set_xfer_param()
836 enum dma_slave_buswidth buswidth; in stm32_dma_prep_slave_sg() local
861 ret = stm32_dma_set_xfer_param(chan, direction, &buswidth, in stm32_dma_prep_slave_sg()
868 nb_data_items = desc->sg_req[i].len / buswidth; in stm32_dma_prep_slave_sg()
900 enum dma_slave_buswidth buswidth; in stm32_dma_prep_dma_cyclic() local
930 ret = stm32_dma_set_xfer_param(chan, direction, &buswidth, period_len); in stm32_dma_prep_dma_cyclic()
934 nb_data_items = period_len / buswidth; in stm32_dma_prep_dma_cyclic()
Dmmp_tdma.c113 enum dma_slave_buswidth buswidth; member
242 switch (tdmac->buswidth) { in mmp_tdma_config_chan()
515 tdmac->buswidth = dmaengine_cfg->src_addr_width; in mmp_tdma_config_write()
519 tdmac->buswidth = dmaengine_cfg->dst_addr_width; in mmp_tdma_config_write()
Dsprd-dma.c689 static int sprd_dma_get_datawidth(enum dma_slave_buswidth buswidth) in sprd_dma_get_datawidth() argument
691 switch (buswidth) { in sprd_dma_get_datawidth()
696 return ffs(buswidth) - 1; in sprd_dma_get_datawidth()
703 static int sprd_dma_get_step(enum dma_slave_buswidth buswidth) in sprd_dma_get_step() argument
705 switch (buswidth) { in sprd_dma_get_step()
710 return buswidth; in sprd_dma_get_step()
Dmpc512x_dma.c674 inline u8 buswidth_to_dmatsize(u8 buswidth) in buswidth_to_dmatsize() argument
678 for (res = 0; buswidth > 1; buswidth /= 2) in buswidth_to_dmatsize()
810 inline bool is_buswidth_valid(u8 buswidth, bool is_mpc8308) in is_buswidth_valid() argument
812 switch (buswidth) { in is_buswidth_valid()
/drivers/ssb/
Ddriver_mipscore.c223 pflash->buswidth = 2; in ssb_mips_flash_detect()
243 pflash->buswidth = 1; in ssb_mips_flash_detect()
245 pflash->buswidth = 2; in ssb_mips_flash_detect()
259 ssb_pflash_data.width = pflash->buswidth; in ssb_mips_flash_detect()
/drivers/mtd/chips/
DKconfig83 bool "Support 8-bit buswidth" if MTD_CFI_GEOMETRY
90 bool "Support 16-bit buswidth" if MTD_CFI_GEOMETRY
97 bool "Support 32-bit buswidth" if MTD_CFI_GEOMETRY
104 bool "Support 64-bit buswidth" if MTD_CFI_GEOMETRY
111 bool "Support 128-bit buswidth" if MTD_CFI_GEOMETRY
118 bool "Support 256-bit buswidth" if MTD_CFI_GEOMETRY
/drivers/mtd/spi-nor/
Dspi-nor.c315 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(nor->read_proto); in spi_nor_spimem_read_data()
316 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(nor->read_proto); in spi_nor_spimem_read_data()
317 op.dummy.buswidth = op.addr.buswidth; in spi_nor_spimem_read_data()
318 op.data.buswidth = spi_nor_get_protocol_data_nbits(nor->read_proto); in spi_nor_spimem_read_data()
321 op.dummy.nbytes = (nor->read_dummy * op.dummy.buswidth) / 8; in spi_nor_spimem_read_data()
363 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(nor->write_proto); in spi_nor_spimem_write_data()
364 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(nor->write_proto); in spi_nor_spimem_write_data()
365 op.data.buswidth = spi_nor_get_protocol_data_nbits(nor->write_proto); in spi_nor_spimem_write_data()
2967 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(read->proto); in spi_nor_spimem_check_readop()
2968 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(read->proto); in spi_nor_spimem_check_readop()
[all …]
/drivers/interconnect/qcom/
Dqcs404.c136 u16 buswidth; member
152 .buswidth = _buswidth, \
390 do_div(rate, qn->buswidth); in qcom_icc_set()

12