| /drivers/spi/ |
| A D | spi-mem-nodm.c | 31 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 D | mtk_spim.c | 375 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 D | spi-mem.c | 159 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 D | rockchip_sfc.c | 325 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 D | fsl_qspi.c | 370 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 D | atmel-quadspi.c | 479 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 D | npcm_fiu_spi.c | 241 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 D | xilinx_spi.c | 355 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 D | stm32_qspi.c | 248 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 D | mtk_snfi_spi.c | 66 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 D | spi-sifive.c | 283 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 D | nxp_fspi.c | 406 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 D | adi_spi3.c | 595 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 D | spi-nor-core.c | 266 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 D | sf_probe.c | 38 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 D | gazerbeam.c | 62 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 D | clk-adi-sc57x.c | 45 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 D | clk-adi-sc58x.c | 47 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 D | clk-adi-sc594.c | 50 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 D | clk-adi-sc598.c | 58 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 D | ihs_i2c.c | 192 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 D | intel_i2c.c | 208 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 D | lpc32xx_i2c.c | 301 struct i2c_msg *dmsg, *omsg, dummy; 304 memset(&dummy, 0, sizeof(struct i2c_msg)); 314 omsg = nmsgs == 1 ? &dummy : msg;
|
| A D | sh_i2c.c | 271 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 D | phy-uniphier-pcie.c | 19 int dummy; member
|