Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/spi/
Dspi-rpc-if.c27 rpc_op.cmd.buswidth = spi_op->cmd.buswidth; in rpcif_spi_mem_prepare()
30 rpc_op.addr.buswidth = spi_op->addr.buswidth; in rpcif_spi_mem_prepare()
36 rpc_op.dummy.buswidth = spi_op->dummy.buswidth; in rpcif_spi_mem_prepare()
38 spi_op->dummy.buswidth; in rpcif_spi_mem_prepare()
42 rpc_op.data.buswidth = spi_op->data.buswidth; in rpcif_spi_mem_prepare()
70 if (op->data.buswidth > 4 || op->addr.buswidth > 4 || in rpcif_spi_mem_supports_op()
71 op->dummy.buswidth > 4 || op->cmd.buswidth > 4 || in rpcif_spi_mem_supports_op()
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()
143 if (spi_check_buswidth_req(mem, op->cmd.buswidth, true)) in spi_mem_default_supports_op()
147 spi_check_buswidth_req(mem, op->addr.buswidth, true)) in spi_mem_default_supports_op()
151 spi_check_buswidth_req(mem, op->dummy.buswidth, true)) in spi_mem_default_supports_op()
155 spi_check_buswidth_req(mem, op->data.buswidth, in spi_mem_default_supports_op()
169 static bool spi_mem_buswidth_is_valid(u8 buswidth) in spi_mem_buswidth_is_valid() argument
171 if (hweight8(buswidth) > 1 || buswidth > SPI_MEM_MAX_BUSWIDTH) in spi_mem_buswidth_is_valid()
179 if (!op->cmd.buswidth || !op->cmd.nbytes) in spi_mem_check_op()
182 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)) / BITS_PER_BYTE) 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-mtk-nor.c162 if (op->dummy.buswidth) in mtk_nor_match_read()
163 dummy = op->dummy.nbytes * BITS_PER_BYTE / op->dummy.buswidth; in mtk_nor_match_read()
165 if ((op->data.buswidth == 2) || (op->data.buswidth == 4)) { in mtk_nor_match_read()
166 if (op->addr.buswidth == 1) in mtk_nor_match_read()
168 else if (op->addr.buswidth == 2) in mtk_nor_match_read()
170 else if (op->addr.buswidth == 4) in mtk_nor_match_read()
172 } else if ((op->addr.buswidth == 1) && (op->data.buswidth == 1)) { in mtk_nor_match_read()
186 if ((op->cmd.buswidth > 1) || (op->addr.buswidth > 1) || in mtk_nor_match_prg()
187 (op->dummy.buswidth > 1) || (op->data.buswidth > 1)) in mtk_nor_match_prg()
290 if (op->cmd.buswidth != 1) in mtk_nor_supports_op()
[all …]
Dspi-hisi-sfc-v3xx.c171 if (op->data.buswidth > 4 || op->dummy.buswidth > 4 || in hisi_sfc_v3xx_supports_op()
172 op->addr.buswidth > 4 || op->cmd.buswidth > 4) in hisi_sfc_v3xx_supports_op()
272 if (op->data.buswidth == 0 || op->data.buswidth == 1) { in hisi_sfc_v3xx_start_bus()
277 data_idx = (op->data.buswidth - 1) / 2; in hisi_sfc_v3xx_start_bus()
278 addr_idx = op->addr.buswidth / 2; in hisi_sfc_v3xx_start_bus()
279 cmd_idx = op->cmd.buswidth / 2; in hisi_sfc_v3xx_start_bus()
Dspi-stm32-qspi.c325 static int stm32_qspi_get_mode(struct stm32_qspi *qspi, u8 buswidth) in stm32_qspi_get_mode() argument
327 if (buswidth == 4) in stm32_qspi_get_mode()
330 return buswidth; in stm32_qspi_get_mode()
341 op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in stm32_qspi_send()
342 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_send()
353 op->addr.buswidth) in stm32_qspi_send()
376 stm32_qspi_get_mode(qspi, op->cmd.buswidth)); in stm32_qspi_send()
380 stm32_qspi_get_mode(qspi, op->addr.buswidth)); in stm32_qspi_send()
384 if (op->dummy.buswidth && op->dummy.nbytes) in stm32_qspi_send()
386 op->dummy.nbytes * 8 / op->dummy.buswidth); in stm32_qspi_send()
[all …]
Datmel-quadspi.c254 if (op->cmd.buswidth != mode->cmd_buswidth) in atmel_qspi_is_compatible()
257 if (op->addr.nbytes && op->addr.buswidth != mode->addr_buswidth) in atmel_qspi_is_compatible()
260 if (op->data.nbytes && op->data.buswidth != mode->data_buswidth) in atmel_qspi_is_compatible()
287 if (op->addr.nbytes == 2 && op->cmd.buswidth != op->addr.buswidth && in atmel_qspi_supports_op()
316 if (op->dummy.buswidth && op->dummy.nbytes) in atmel_qspi_set_cfg()
317 dummy_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in atmel_qspi_set_cfg()
331 if (op->addr.buswidth) { in atmel_qspi_set_cfg()
340 if (dummy_cycles < 8 / op->addr.buswidth) { in atmel_qspi_set_cfg()
348 dummy_cycles -= 8 / op->addr.buswidth; in atmel_qspi_set_cfg()
Dspi-mxic.c334 if (op->data.buswidth > 4 || op->addr.buswidth > 4 || in mxic_spi_mem_supports_op()
335 op->dummy.buswidth > 4 || op->cmd.buswidth > 4) in mxic_spi_mem_supports_op()
339 op->data.buswidth != op->dummy.buswidth) in mxic_spi_mem_supports_op()
373 ss_ctrl = OP_CMD_BYTES(1) | OP_CMD_BUSW(fls(op->cmd.buswidth) - 1); in mxic_spi_mem_exec_op()
377 OP_ADDR_BUSW(fls(op->addr.buswidth) - 1); in mxic_spi_mem_exec_op()
383 ss_ctrl |= OP_DATA_BUSW(fls(op->data.buswidth) - 1); in mxic_spi_mem_exec_op()
Dspi-fsl-qspi.c374 ret = fsl_qspi_check_buswidth(q, op->cmd.buswidth); in fsl_qspi_supports_op()
377 ret |= fsl_qspi_check_buswidth(q, op->addr.buswidth); in fsl_qspi_supports_op()
380 ret |= fsl_qspi_check_buswidth(q, op->dummy.buswidth); in fsl_qspi_supports_op()
383 ret |= fsl_qspi_check_buswidth(q, op->data.buswidth); in fsl_qspi_supports_op()
399 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in fsl_qspi_supports_op()
423 lutval[0] |= LUT_DEF(0, LUT_CMD, LUT_PAD(op->cmd.buswidth), in fsl_qspi_prepare_lut()
435 LUT_PAD(op->addr.buswidth), in fsl_qspi_prepare_lut()
442 LUT_PAD(op->dummy.buswidth), in fsl_qspi_prepare_lut()
444 op->dummy.buswidth); in fsl_qspi_prepare_lut()
452 LUT_PAD(op->data.buswidth), in fsl_qspi_prepare_lut()
Dspi-nxp-fspi.c419 ret = nxp_fspi_check_buswidth(f, op->cmd.buswidth); in nxp_fspi_supports_op()
422 ret |= nxp_fspi_check_buswidth(f, op->addr.buswidth); in nxp_fspi_supports_op()
425 ret |= nxp_fspi_check_buswidth(f, op->dummy.buswidth); in nxp_fspi_supports_op()
428 ret |= nxp_fspi_check_buswidth(f, op->data.buswidth); in nxp_fspi_supports_op()
448 if (op->dummy.buswidth && in nxp_fspi_supports_op()
449 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in nxp_fspi_supports_op()
511 lutval[0] |= LUT_DEF(0, LUT_CMD, LUT_PAD(op->cmd.buswidth), in nxp_fspi_prepare_lut()
517 LUT_PAD(op->addr.buswidth), in nxp_fspi_prepare_lut()
529 LUT_PAD(op->data.buswidth), in nxp_fspi_prepare_lut()
531 op->dummy.buswidth); in nxp_fspi_prepare_lut()
[all …]
Dspi-zynqmp-gqspi.c944 op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in zynqmp_qspi_exec_op()
945 op->dummy.buswidth, op->data.buswidth); in zynqmp_qspi_exec_op()
959 zynqmp_qspi_write_op(xqspi, op->cmd.buswidth, genfifoentry); in zynqmp_qspi_exec_op()
984 zynqmp_qspi_write_op(xqspi, op->addr.buswidth, genfifoentry); in zynqmp_qspi_exec_op()
1007 xqspi->bytes_to_transfer = op->dummy.nbytes * 8 / op->dummy.buswidth; in zynqmp_qspi_exec_op()
1013 zynqmp_qspi_write_op(xqspi, op->data.buswidth, in zynqmp_qspi_exec_op()
1027 zynqmp_qspi_write_op(xqspi, op->data.buswidth, in zynqmp_qspi_exec_op()
1042 err = zynqmp_qspi_read_op(xqspi, op->data.buswidth, in zynqmp_qspi_exec_op()
Dspi-qcom-qspi.c128 unsigned int buswidth; member
152 unsigned int buswidth) in qspi_buswidth_to_iomode() argument
154 switch (buswidth) { in qspi_buswidth_to_iomode()
163 "Unexpected bus width: %u\n", buswidth); in qspi_buswidth_to_iomode()
182 pio_xfer_cfg |= qspi_buswidth_to_iomode(ctrl, xfer->buswidth); in qcom_qspi_pio_xfer_cfg()
283 ctrl->xfer.buswidth = xfer->rx_nbits; in qcom_qspi_transfer_one()
287 ctrl->xfer.buswidth = xfer->tx_nbits; in qcom_qspi_transfer_one()
/kernel/linux/linux-5.10/include/linux/spi/
Dspi-mem.h18 .buswidth = __buswidth, \
27 .buswidth = __buswidth, \
35 .buswidth = __buswidth, \
45 .buswidth = __buswidth, \
53 .buswidth = __buswidth, \
101 u8 buswidth; member
108 u8 buswidth; member
115 u8 buswidth; member
120 u8 buswidth; member
/kernel/linux/linux-5.10/include/memory/
Drenesas-rpc-if.h23 u8 buswidth; member
30 u8 buswidth; member
37 u8 buswidth; member
42 u8 buswidth; member
48 u8 buswidth; member
/kernel/linux/linux-5.10/sound/core/
Dpcm_dmaengine.c56 enum dma_slave_buswidth buswidth; in snd_hwparams_to_dma_slave_config() local
63 buswidth = DMA_SLAVE_BUSWIDTH_1_BYTE; in snd_hwparams_to_dma_slave_config()
65 buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES; in snd_hwparams_to_dma_slave_config()
67 buswidth = DMA_SLAVE_BUSWIDTH_3_BYTES; in snd_hwparams_to_dma_slave_config()
69 buswidth = DMA_SLAVE_BUSWIDTH_4_BYTES; in snd_hwparams_to_dma_slave_config()
71 buswidth = DMA_SLAVE_BUSWIDTH_8_BYTES; in snd_hwparams_to_dma_slave_config()
75 slave_config->dst_addr_width = buswidth; in snd_hwparams_to_dma_slave_config()
78 slave_config->src_addr_width = buswidth; in snd_hwparams_to_dma_slave_config()
/kernel/linux/linux-5.10/drivers/memory/
Drenesas-rpc-if.c364 static u8 rpcif_bit_size(u8 buswidth) in rpcif_bit_size() argument
366 return buswidth > 4 ? 2 : ilog2(buswidth); in rpcif_bit_size()
381 if (op->cmd.buswidth) { in rpcif_prepare()
383 RPCIF_SMENR_CDB(rpcif_bit_size(op->cmd.buswidth)); in rpcif_prepare()
388 if (op->ocmd.buswidth) { in rpcif_prepare()
390 RPCIF_SMENR_OCDB(rpcif_bit_size(op->ocmd.buswidth)); in rpcif_prepare()
394 if (op->addr.buswidth) { in rpcif_prepare()
396 RPCIF_SMENR_ADB(rpcif_bit_size(op->addr.buswidth)); in rpcif_prepare()
411 if (op->dummy.buswidth) { in rpcif_prepare()
414 op->dummy.buswidth); in rpcif_prepare()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/hyperbus/
Drpc-if.c28 .buswidth = 8,
32 .buswidth = 8,
37 .buswidth = 8,
41 .buswidth = 8,
53 op.dummy.buswidth = 1; in rpcif_hb_prepare_read()
/kernel/linux/linux-5.10/drivers/dma/
Duniphier-xdmac.c138 enum dma_slave_buswidth buswidth; in uniphier_xdmac_chan_start() local
151 buswidth = xc->sconfig.src_addr_width; in uniphier_xdmac_chan_start()
154 buswidth = DMA_SLAVE_BUSWIDTH_8_BYTES; in uniphier_xdmac_chan_start()
156 src_width = FIELD_PREP(XDMAC_SADM_STW_MASK, __ffs(buswidth)); in uniphier_xdmac_chan_start()
160 buswidth = xc->sconfig.dst_addr_width; in uniphier_xdmac_chan_start()
163 buswidth = DMA_SLAVE_BUSWIDTH_8_BYTES; in uniphier_xdmac_chan_start()
165 dst_width = FIELD_PREP(XDMAC_DADM_DTW_MASK, __ffs(buswidth)); in uniphier_xdmac_chan_start()
328 enum dma_slave_buswidth buswidth; in uniphier_xdmac_prep_slave_sg() local
336 buswidth = xc->sconfig.src_addr_width; in uniphier_xdmac_prep_slave_sg()
339 buswidth = xc->sconfig.dst_addr_width; in uniphier_xdmac_prep_slave_sg()
[all …]
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 …]
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_asrc_dma.c131 enum dma_slave_buswidth buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES; in fsl_asrc_dma_hw_params() local
252 buswidth = DMA_SLAVE_BUSWIDTH_1_BYTE; in fsl_asrc_dma_hw_params()
254 buswidth = DMA_SLAVE_BUSWIDTH_2_BYTES; in fsl_asrc_dma_hw_params()
256 buswidth = DMA_SLAVE_BUSWIDTH_3_BYTES; in fsl_asrc_dma_hw_params()
258 buswidth = DMA_SLAVE_BUSWIDTH_4_BYTES; in fsl_asrc_dma_hw_params()
260 buswidth = DMA_SLAVE_BUSWIDTH_8_BYTES; in fsl_asrc_dma_hw_params()
263 config_be.src_addr_width = buswidth; in fsl_asrc_dma_hw_params()
265 config_be.dst_addr_width = buswidth; in fsl_asrc_dma_hw_params()
/kernel/linux/linux-5.10/drivers/staging/fbtft/
Dfbtft-core.c593 if (pdata->display.buswidth) in fbtft_framebuffer_alloc()
594 display->buswidth = pdata->display.buswidth; in fbtft_framebuffer_alloc()
1109 if (pdata->display.buswidth != 9 && par->startbyte == 0 && in fbtft_verify_gpios()
1123 for (i = 0; i < pdata->display.buswidth; i++) { in fbtft_verify_gpios()
1163 pdata->display.buswidth = fbtft_property_value(dev, "buswidth"); in fbtft_properties_read()
1230 if (display->buswidth == 0) { in fbtft_probe_common()
1236 if (display->regwidth == 8 && display->buswidth == 8) in fbtft_probe_common()
1238 else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) in fbtft_probe_common()
1240 else if (display->regwidth == 16 && display->buswidth == 8) in fbtft_probe_common()
1242 else if (display->regwidth == 16 && display->buswidth == 16) in fbtft_probe_common()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
Dcore.c108 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(nor->read_proto); in spi_nor_spimem_read_data()
109 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(nor->read_proto); in spi_nor_spimem_read_data()
110 op.dummy.buswidth = op.addr.buswidth; in spi_nor_spimem_read_data()
111 op.data.buswidth = spi_nor_get_protocol_data_nbits(nor->read_proto); in spi_nor_spimem_read_data()
114 op.dummy.nbytes = (nor->read_dummy * op.dummy.buswidth) / 8; in spi_nor_spimem_read_data()
172 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(nor->write_proto); in spi_nor_spimem_write_data()
173 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(nor->write_proto); in spi_nor_spimem_write_data()
174 op.data.buswidth = spi_nor_get_protocol_data_nbits(nor->write_proto); in spi_nor_spimem_write_data()
2338 op.cmd.buswidth = spi_nor_get_protocol_inst_nbits(read->proto); in spi_nor_spimem_check_readop()
2339 op.addr.buswidth = spi_nor_get_protocol_addr_nbits(read->proto); in spi_nor_spimem_check_readop()
[all …]
/kernel/linux/linux-5.10/drivers/interconnect/qcom/
Dicc-rpmh.h68 u16 buswidth; member
126 .buswidth = _buswidth, \
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/
Ddavinci-nand.txt50 - nand-bus-width: buswidth 8 or 16. If not present 8.
64 - ti,davinci-nand-buswidth: buswidth 8 or 16. If not present 8.

123