Home
last modified time | relevance | path

Searched refs:dummy (Results 1 – 25 of 64) sorted by relevance

123

/drivers/spi/
A Dspi-mem-nodm.c31 op_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
48 if (op->dummy.nbytes) in spi_mem_exec_op()
49 memset(op_buf + pos, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
93 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
156 if (op->dummy.nbytes && in spi_mem_supports_op()
157 spi_check_buswidth_req(slave, op->dummy.buswidth, true)) in spi_mem_supports_op()
165 if (op->cmd.dtr || op->addr.dtr || op->dummy.dtr || op->data.dtr) in spi_mem_supports_op()
A Dmtk_spim.c375 if (op->addr.nbytes && op->dummy.nbytes && in mtk_spim_supports_op()
376 op->addr.buswidth != op->dummy.buswidth) in mtk_spim_supports_op()
379 if (op->addr.nbytes + op->dummy.nbytes > 16) in mtk_spim_supports_op()
467 if (op->addr.nbytes || op->dummy.nbytes) in mtk_spim_exec_op()
468 reg_val |= (op->addr.nbytes + op->dummy.nbytes) << in mtk_spim_exec_op()
481 if (op->addr.nbytes || op->dummy.nbytes) { in mtk_spim_exec_op()
489 op->dummy.buswidth == 2 || in mtk_spim_exec_op()
493 op->dummy.buswidth == 4 || in mtk_spim_exec_op()
507 tx_size = 1 + op->addr.nbytes + op->dummy.nbytes; in mtk_spim_exec_op()
528 if (op->dummy.nbytes) in mtk_spim_exec_op()
[all …]
A Dspi-mem.c159 if (op->dummy.nbytes && in spi_mem_check_buswidth()
160 spi_check_buswidth_req(slave, op->dummy.buswidth, true)) in spi_mem_check_buswidth()
180 if (op->dummy.nbytes && op->dummy.buswidth == 8 && op->dummy.nbytes % 2) in spi_mem_dtr_supports_op()
346 if (op->dummy.nbytes) { in spi_mem_exec_op()
349 xfers[xferpos].len = op->dummy.nbytes; in spi_mem_exec_op()
350 xfers[xferpos].tx_nbits = op->dummy.buswidth; in spi_mem_exec_op()
353 totalxferlen += op->dummy.nbytes; in spi_mem_exec_op()
389 op_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
412 if (op->dummy.nbytes) in spi_mem_exec_op()
413 memset(op_buf + pos, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
[all …]
A Drockchip_sfc.c325 if (unlikely(op->dummy.nbytes && !op->addr.nbytes)) { in rockchip_sfc_adjust_op_work()
330 op->addr.nbytes = op->dummy.nbytes; in rockchip_sfc_adjust_op_work()
331 op->addr.buswidth = op->dummy.buswidth; in rockchip_sfc_adjust_op_work()
334 op->dummy.nbytes = 0; in rockchip_sfc_adjust_op_work()
387 if (op->dummy.nbytes) { in rockchip_sfc_xfer_setup()
388 if (op->dummy.buswidth == 4) in rockchip_sfc_xfer_setup()
389 cmd |= op->dummy.nbytes * 2 << SFC_CMD_DUMMY_SHIFT; in rockchip_sfc_xfer_setup()
390 else if (op->dummy.buswidth == 2) in rockchip_sfc_xfer_setup()
391 cmd |= op->dummy.nbytes * 4 << SFC_CMD_DUMMY_SHIFT; in rockchip_sfc_xfer_setup()
393 cmd |= op->dummy.nbytes * 8 << SFC_CMD_DUMMY_SHIFT; in rockchip_sfc_xfer_setup()
[all …]
A Dfsl_qspi.c370 if (op->dummy.nbytes) in fsl_qspi_supports_op()
371 ret |= fsl_qspi_check_buswidth(q, op->dummy.buswidth); in fsl_qspi_supports_op()
384 (op->dummy.nbytes ? 1 : 0) + in fsl_qspi_supports_op()
389 if (op->dummy.nbytes && in fsl_qspi_supports_op()
390 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in fsl_qspi_supports_op()
440 if (op->dummy.nbytes) { in fsl_qspi_prepare_lut()
442 LUT_PAD(op->dummy.buswidth), in fsl_qspi_prepare_lut()
443 op->dummy.nbytes * 8 / in fsl_qspi_prepare_lut()
444 op->dummy.buswidth); in fsl_qspi_prepare_lut()
A Datmel-quadspi.c479 op->dummy.nbytes == 0) in atmel_qspi_supports_op()
524 if (op->dummy.nbytes) in atmel_qspi_set_cfg()
525 dummy_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in atmel_qspi_set_cfg()
658 if (op->dummy.buswidth && op->dummy.nbytes) { in atmel_qspi_sama7g5_set_cfg()
659 if (op->addr.dtr && op->dummy.dtr && op->data.dtr) in atmel_qspi_sama7g5_set_cfg()
660 ifr |= QSPI_IFR_NBDUM(op->dummy.nbytes * 8 / in atmel_qspi_sama7g5_set_cfg()
661 (2 * op->dummy.buswidth)); in atmel_qspi_sama7g5_set_cfg()
663 ifr |= QSPI_IFR_NBDUM(op->dummy.nbytes * 8 / in atmel_qspi_sama7g5_set_cfg()
664 op->dummy.buswidth); in atmel_qspi_sama7g5_set_cfg()
673 if (op->addr.dtr && op->dummy.dtr && op->data.dtr) { in atmel_qspi_sama7g5_set_cfg()
A Dnpcm_fiu_spi.c241 op->cmd.buswidth, op->addr.buswidth, op->dummy.buswidth, in npcm_fiu_uma_operation()
244 1, op->addr.nbytes, op->dummy.nbytes, op->data.nbytes); in npcm_fiu_uma_operation()
260 if (op->dummy.nbytes) in npcm_fiu_uma_operation()
261 uma_cfg |= FIELD_PREP(UMA_CFG_DBPCK_MASK, ilog2(op->dummy.buswidth)) | in npcm_fiu_uma_operation()
262 FIELD_PREP(UMA_CFG_DBSIZ_MASK, op->dummy.nbytes); in npcm_fiu_uma_operation()
A Dxilinx_spi.c355 if (op->dummy.nbytes) { in xilinx_spi_mem_exec_op()
356 dummy_len = (op->dummy.nbytes * op->data.buswidth) / in xilinx_spi_mem_exec_op()
357 op->dummy.buswidth; in xilinx_spi_mem_exec_op()
410 if (op->dummy.nbytes && in xilinx_qspi_mem_exec_op()
411 xilinx_qspi_check_buswidth(slave, op->dummy.buswidth)) in xilinx_qspi_mem_exec_op()
A Dstm32_qspi.c248 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_exec_op()
274 if (op->dummy.buswidth && op->dummy.nbytes) in stm32_qspi_exec_op()
275 ccr |= (op->dummy.nbytes * 8 / op->dummy.buswidth in stm32_qspi_exec_op()
A Dmtk_snfi_spi.c66 nbytes = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in mtk_snfi_adjust_op_size()
83 op->dummy.buswidth > 1 || op->data.buswidth > 1) in mtk_snfi_supports_op()
221 for (i = 0; i < op->dummy.nbytes; i++) in mtk_snfi_exec_op()
A Dspi-sifive.c283 if (!op->addr.nbytes && !op->dummy.nbytes && !op->data.nbytes) in sifive_spi_exec_op()
295 op_len = op->addr.nbytes + op->dummy.nbytes; in sifive_spi_exec_op()
308 if (op->dummy.nbytes) in sifive_spi_exec_op()
309 memset(op_buf + pos, 0xff, op->dummy.nbytes); in sifive_spi_exec_op()
A Dnxp_fspi.c406 if (op->dummy.nbytes) in nxp_fspi_supports_op()
407 ret |= nxp_fspi_check_buswidth(f, op->dummy.buswidth); in nxp_fspi_supports_op()
430 if (op->dummy.buswidth && in nxp_fspi_supports_op()
431 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in nxp_fspi_supports_op()
507 if (op->dummy.nbytes) { in nxp_fspi_prepare_lut()
514 op->dummy.nbytes * 8 / in nxp_fspi_prepare_lut()
515 op->dummy.buswidth); in nxp_fspi_prepare_lut()
A Dadi_spi3.c595 if ((op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes) > in adi_spi_mem_exec_op()
606 op->dummy.nbytes); in adi_spi_mem_exec_op()
626 if (op->dummy.nbytes) { in adi_spi_mem_exec_op()
627 rv = adi_spi_fifo_xfer(priv, op->dummy.buswidth, in adi_spi_mem_exec_op()
630 NULL, op->dummy.nbytes); in adi_spi_mem_exec_op()
/drivers/mtd/spi/
A Dspi-nor-core.c266 if (op->dummy.nbytes) in spi_nor_setup_op()
396 op.dummy.nbytes = (nor->read_dummy * op.dummy.buswidth) / 8; in spi_nor_read_data()
486 dummy = 0; in read_sr()
540 dummy = 0; in read_fsr()
2166 u8 dummy) in spansion_quad_enable_volatile() argument
2808 u8 dummy; in spi_nor_parse_profile1() local
2837 if (!dummy) in spi_nor_parse_profile1()
2839 if (!dummy) in spi_nor_parse_profile1()
2841 if (!dummy) in spi_nor_parse_profile1()
2843 if (!dummy) in spi_nor_parse_profile1()
[all …]
A Dsf_probe.c38 op->dummy.nbytes = (nor->read_dummy * op->dummy.buswidth) / 8; in spi_nor_create_read_dirmap()
40 op->dummy.nbytes *= 2; in spi_nor_create_read_dirmap()
/drivers/sysinfo/
A Dgazerbeam.c62 struct udevice *dummy; in _read_sysinfo_variant_data() local
81 mc2_sc = !dm_i2c_probe(i2c_bus, MC2_EXPANDER_ADDR, 0, &dummy); in _read_sysinfo_variant_data()
82 mc4 = !dm_i2c_probe(i2c_bus, MC4_EXPANDER_ADDR, 0, &dummy); in _read_sysinfo_variant_data()
/drivers/clk/adi/
A Dclk-adi-sc57x.c45 struct clk dummy, clkin0, clkin1; in sc57x_clock_probe() local
63 clk_get_by_name(dev, "dummy", &dummy); in sc57x_clock_probe()
67 clks[ADSP_SC57X_CLK_DUMMY] = &dummy; in sc57x_clock_probe()
A Dclk-adi-sc58x.c47 struct clk dummy, clkin0, clkin1; in sc58x_clock_probe() local
65 clk_get_by_name(dev, "dummy", &dummy); in sc58x_clock_probe()
69 clks[ADSP_SC58X_CLK_DUMMY] = &dummy; in sc58x_clock_probe()
A Dclk-adi-sc594.c50 struct clk dummy, clkin0, clkin1; in sc594_clock_probe() local
68 clk_get_by_name(dev, "dummy", &dummy); in sc594_clock_probe()
72 clks[ADSP_SC594_CLK_DUMMY] = &dummy; in sc594_clock_probe()
A Dclk-adi-sc598.c58 struct clk dummy, clkin0, clkin1; in sc598_clock_probe() local
84 clk_get_by_name(dev, "dummy", &dummy); in sc598_clock_probe()
88 clks[ADSP_SC598_CLK_DUMMY] = &dummy; in sc598_clock_probe()
/drivers/i2c/
A Dihs_i2c.c192 struct i2c_msg *dmsg, *omsg, dummy; in ihs_i2c_xfer() local
194 memset(&dummy, 0, sizeof(struct i2c_msg)); in ihs_i2c_xfer()
204 omsg = nmsgs == 1 ? &dummy : msg; in ihs_i2c_xfer()
A Dintel_i2c.c208 struct i2c_msg *dmsg, *omsg, dummy; in intel_i2c_xfer() local
212 memset(&dummy, 0, sizeof(struct i2c_msg)); in intel_i2c_xfer()
223 omsg = nmsgs == 1 ? &dummy : msg; in intel_i2c_xfer()
A Dlpc32xx_i2c.c301 struct i2c_msg *dmsg, *omsg, dummy;
304 memset(&dummy, 0, sizeof(struct i2c_msg));
314 omsg = nmsgs == 1 ? &dummy : msg;
A Dsh_i2c.c271 u8 dummy[1]; in sh_i2c_probe() local
273 return sh_i2c_read(adap, dev, 0, 0, dummy, sizeof dummy); in sh_i2c_probe()
/drivers/phy/socionext/
A Dphy-uniphier-pcie.c19 int dummy; member

Completed in 79 milliseconds

123