Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 227) sorted by relevance

12345678910

/u-boot/drivers/spi/
A Dspi-mem-nodm.c23 if (op->data.nbytes) { in spi_mem_exec_op()
30 op_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
39 if (op->addr.nbytes) { in spi_mem_exec_op()
44 pos += op->addr.nbytes; in spi_mem_exec_op()
47 if (op->dummy.nbytes) in spi_mem_exec_op()
92 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
98 op->data.nbytes = min(op->data.nbytes, in spi_mem_adjust_op_size()
101 op->data.nbytes = min(op->data.nbytes, in spi_mem_adjust_op_size()
105 if (!op->data.nbytes) in spi_mem_adjust_op_size()
151 if (op->addr.nbytes && in spi_mem_supports_op()
[all …]
A Dspi-mem.c175 if (op->cmd.buswidth == 8 && op->cmd.nbytes % 2) in spi_mem_dtr_supports_op()
178 if (op->addr.nbytes && op->addr.buswidth == 8 && op->addr.nbytes % 2) in spi_mem_dtr_supports_op()
181 if (op->dummy.nbytes && op->dummy.buswidth == 8 && op->dummy.nbytes % 2) in spi_mem_dtr_supports_op()
189 op->data.buswidth == 8 && op->data.nbytes % 2) in spi_mem_dtr_supports_op()
199 if (op->cmd.dtr || op->addr.dtr || op->dummy.dtr || op->data.dtr) in spi_mem_default_supports_op()
311 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
348 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
390 op_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
479 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
485 op->data.nbytes = min(op->data.nbytes, in spi_mem_adjust_op_size()
[all …]
A Dmtk_snor.c168 if (!op->data.nbytes) in mtk_snor_adjust_op_size()
171 if (op->addr.nbytes == 3 || op->addr.nbytes == 4) { in mtk_snor_adjust_op_size()
178 op->data.nbytes = 1; in mtk_snor_adjust_op_size()
188 op->data.nbytes = 1; in mtk_snor_adjust_op_size()
201 (op->cmd.buswidth != 1 || op->data.buswidth != 1)) in mtk_snor_supports_op()
277 memcpy(op->data.buf.in, priv->buffer, op->data.nbytes); in mtk_snor_read_bounce()
288 if (need_bounce(op)) in mtk_snor_read_dma()
291 dma_addr = dma_map_single(op->data.buf.in, op->data.nbytes, in mtk_snor_read_dma()
297 ret = mtk_snor_dma_exec(priv, op->addr.val, op->data.nbytes, dma_addr); in mtk_snor_read_dma()
395 tx_len = 1 + op->addr.nbytes + op->dummy.nbytes; in mtk_snor_cmd_program()
[all …]
A Dmtk_spim.c355 if (op->cmd.buswidth == 0 || op->cmd.buswidth > 4 || in mtk_spim_supports_op()
356 op->addr.buswidth > 4 || op->dummy.buswidth > 4 || in mtk_spim_supports_op()
365 if (op->addr.nbytes && op->dummy.nbytes && in mtk_spim_supports_op()
366 op->addr.buswidth != op->dummy.buswidth) in mtk_spim_supports_op()
369 if (op->addr.nbytes + op->dummy.nbytes > 16) in mtk_spim_supports_op()
457 if (op->addr.nbytes || op->dummy.nbytes) in mtk_spim_exec_op()
458 reg_val |= (op->addr.nbytes + op->dummy.nbytes) << in mtk_spim_exec_op()
471 if (op->addr.nbytes || op->dummy.nbytes) { in mtk_spim_exec_op()
497 tx_size = 1 + op->addr.nbytes + op->dummy.nbytes; in mtk_spim_exec_op()
524 op->data.buf.out, op->data.nbytes); in mtk_spim_exec_op()
[all …]
A Dfsl_qspi.c368 if (op->addr.nbytes) in fsl_qspi_supports_op()
371 if (op->dummy.nbytes) in fsl_qspi_supports_op()
374 if (op->data.nbytes) in fsl_qspi_supports_op()
384 if (op->addr.nbytes + in fsl_qspi_supports_op()
391 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in fsl_qspi_supports_op()
432 u8 addrbyte = op->addr.val >> (8 * (op->addr.nbytes - i - 1)); in fsl_qspi_prepare_lut()
472 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN && in fsl_qspi_prepare_lut()
561 memcpy(&val, op->data.buf.out + i, op->data.nbytes - i); in fsl_qspi_fill_txfifo()
623 if (!err && op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) in fsl_qspi_do_op()
676 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) in fsl_qspi_exec_op()
[all …]
A Dmicrochip_coreqspi.c199 cmd_bytes = op->cmd.nbytes + op->addr.nbytes; in mchp_coreqspi_config_op()
237 if (op->dummy.buswidth) in mchp_coreqspi_config_op()
238 idle_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in mchp_coreqspi_config_op()
284 if (op->data.buswidth == 4 || op->data.buswidth == 2) { in mchp_coreqspi_set_operate_mode()
286 if (op->cmd.buswidth == 1 && (op->addr.buswidth == 1 || in mchp_coreqspi_set_operate_mode()
323 if (op->cmd.opcode) { in mchp_coreqspi_exec_op()
332 if (op->addr.nbytes) { in mchp_coreqspi_exec_op()
342 if (op->data.nbytes) { in mchp_coreqspi_exec_op()
367 if ((op->data.buswidth == 4 || op->data.buswidth == 2) && in mchp_coreqspi_supports_op()
368 (op->cmd.buswidth == 1 && (op->addr.buswidth == 1 || in mchp_coreqspi_supports_op()
[all …]
A Datmel-quadspi.c455 if (op->addr.nbytes == 2 && op->cmd.buswidth != op->addr.buswidth && in atmel_qspi_supports_op()
478 if (op->dummy.buswidth && op->dummy.nbytes) in atmel_qspi_set_cfg()
479 dummy_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in atmel_qspi_set_cfg()
550 if (!op->addr.nbytes && op->data.dir == SPI_MEM_DATA_IN) in atmel_qspi_set_cfg()
636 if (op->dummy.buswidth && op->dummy.nbytes) { in atmel_qspi_sama7g5_set_cfg()
637 if (op->addr.dtr && op->dummy.dtr && op->data.dtr) in atmel_qspi_sama7g5_set_cfg()
645 if (op->addr.buswidth && op->addr.nbytes) { in atmel_qspi_sama7g5_set_cfg()
651 if (op->addr.dtr && op->dummy.dtr && op->data.dtr) { in atmel_qspi_sama7g5_set_cfg()
658 if (op->cmd.buswidth == 8 || op->addr.buswidth == 8 || in atmel_qspi_sama7g5_set_cfg()
688 if (op->addr.nbytes && !op->data.nbytes) in atmel_qspi_sama7g5_set_cfg()
[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()
369 cmd = op->cmd.opcode; in rockchip_sfc_xfer_setup()
373 if (op->addr.nbytes) { in rockchip_sfc_xfer_setup()
387 if (op->dummy.nbytes) { in rockchip_sfc_xfer_setup()
415 op->addr.nbytes, op->addr.buswidth, in rockchip_sfc_xfer_setup()
416 op->dummy.nbytes, op->dummy.buswidth); in rockchip_sfc_xfer_setup()
422 if (op->addr.nbytes) in rockchip_sfc_xfer_setup()
[all …]
A Dstm32_qspi.c211 memcpy_fromio(op->data.buf.in, priv->mm_base + op->addr.val, in stm32_qspi_mm()
221 if (!op->data.nbytes) in _stm32_qspi_tx()
247 op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in stm32_qspi_exec_op()
248 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_exec_op()
249 op->addr.val, op->data.nbytes); in stm32_qspi_exec_op()
251 addr_max = op->addr.val + op->data.nbytes + 1; in stm32_qspi_exec_op()
253 if (op->data.dir == SPI_MEM_DATA_IN && op->data.nbytes) { in stm32_qspi_exec_op()
260 if (op->data.nbytes) 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()
[all …]
A Dcadence_qspi_apb.c76 if (!op->dummy.nbytes || !op->dummy.buswidth) in cadence_qspi_calc_dummy()
79 dummy_clk = op->dummy.nbytes * (8 / op->dummy.buswidth); in cadence_qspi_calc_dummy()
130 priv->dtr = op->cmd.dtr && in cadence_qspi_set_protocol()
131 (!op->addr.nbytes || op->addr.dtr) && in cadence_qspi_set_protocol()
132 (!op->data.nbytes || op->data.dtr); in cadence_qspi_set_protocol()
392 if (op->cmd.nbytes != 2) in cadence_qspi_setup_opcode_ext()
471 opcode = op->cmd.opcode; in cadence_qspi_apb_command_read()
491 if (op->addr.nbytes) { in cadence_qspi_apb_command_read()
564 if (op->addr.nbytes) { in cadence_qspi_apb_command_write()
761 u64 from = op->addr.val; in cadence_qspi_apb_read_execute()
[all …]
A Dnxp_fspi.c402 if (op->addr.nbytes) in nxp_fspi_supports_op()
405 if (op->dummy.nbytes) in nxp_fspi_supports_op()
408 if (op->data.nbytes) in nxp_fspi_supports_op()
430 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in nxp_fspi_supports_op()
493 op->cmd.opcode); in nxp_fspi_prepare_lut()
496 if (op->addr.nbytes) { in nxp_fspi_prepare_lut()
517 if (op->data.nbytes) { in nxp_fspi_prepare_lut()
632 memcpy_fromio(op->data.buf.in, (f->ahb_addr + op->addr.val), len); in nxp_fspi_read_ahb()
762 if (!err && op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) in nxp_fspi_do_op()
795 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) in nxp_fspi_exec_op()
[all …]
A Dmtk_snfi_spi.c57 struct spi_mem_op *op) in mtk_snfi_adjust_op_size() argument
67 nbytes = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in mtk_snfi_adjust_op_size()
81 const struct spi_mem_op *op) in mtk_snfi_supports_op() argument
83 if (op->cmd.buswidth > 1 || op->addr.buswidth > 1 || in mtk_snfi_supports_op()
84 op->dummy.buswidth > 1 || op->data.buswidth > 1) in mtk_snfi_supports_op()
196 const struct spi_mem_op *op) in mtk_snfi_exec_op() argument
226 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) { in mtk_snfi_exec_op()
227 memcpy(gpram_cache + len, op->data.buf.out, op->data.nbytes); in mtk_snfi_exec_op()
228 len += op->data.nbytes; in mtk_snfi_exec_op()
235 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) in mtk_snfi_exec_op()
[all …]
A Dcadence_qspi.c33 const struct spi_mem_op *op) in cadence_qspi_apb_dma_read() argument
297 const struct spi_mem_op *op) in cadence_spi_mem_exec_op() argument
309 if (op->data.dir == SPI_MEM_DATA_IN && op->data.buf.in) { in cadence_spi_mem_exec_op()
360 const struct spi_mem_op *op) in cadence_spi_mem_supports_op() argument
368 all_true = op->cmd.dtr && in cadence_spi_mem_supports_op()
369 (!op->addr.nbytes || op->addr.dtr) && in cadence_spi_mem_supports_op()
370 (!op->dummy.nbytes || op->dummy.dtr) && in cadence_spi_mem_supports_op()
371 (!op->data.nbytes || op->data.dtr); in cadence_spi_mem_supports_op()
373 all_false = !op->cmd.dtr && !op->addr.dtr && !op->dummy.dtr && in cadence_spi_mem_supports_op()
374 !op->data.dtr; in cadence_spi_mem_supports_op()
[all …]
A Dspi-sn-f-ospi.c122 return (op->dummy.nbytes * 8) / op->dummy.buswidth; in f_ospi_get_dummy_cycle()
276 mode = f_ospi_get_mode(ospi, op->addr.buswidth, op->addr.nbytes); in f_ospi_config_indir_protocol()
279 mode = f_ospi_get_mode(ospi, op->data.buswidth, op->data.nbytes); in f_ospi_config_indir_protocol()
311 switch (op->data.dir) { in f_ospi_config_indir_protocol()
356 switch (op->data.dir) { in f_ospi_indir_prepare_op()
404 u8 *buf = op->data.buf.in; in f_ospi_indir_read()
503 switch (op->data.dir) { in f_ospi_exec_op()
525 u8 width_op[] = { op->cmd.buswidth, op->addr.buswidth, in f_ospi_supports_op_width()
526 op->dummy.buswidth, op->data.buswidth }; in f_ospi_supports_op_width()
553 if (op->addr.nbytes > 4) in f_ospi_supports_op()
[all …]
A Dnpcm_fiu_spi.c239 op->cmd.opcode, op->data.dir, addr, nbytes); in npcm_fiu_uma_operation()
241 op->cmd.buswidth, op->addr.buswidth, op->dummy.buswidth, in npcm_fiu_uma_operation()
242 op->data.buswidth); in npcm_fiu_uma_operation()
244 1, op->addr.nbytes, op->dummy.nbytes, op->data.nbytes); in npcm_fiu_uma_operation()
254 if (op->addr.nbytes) { in npcm_fiu_uma_operation()
260 if (op->dummy.nbytes) in npcm_fiu_uma_operation()
313 const struct spi_mem_op *op) in npcm_fiu_exec_op() argument
325 bytes = op->data.nbytes; in npcm_fiu_exec_op()
326 addr = (u32)op->addr.val; in npcm_fiu_exec_op()
334 tx = op->data.buf.out; in npcm_fiu_exec_op()
[all …]
A Dca_sflash.c75 #define CA_SF_AR_OP(op) ((op) << 0 & CA_SF_AR_OP_MSK) argument
95 #define CA_SF_EAR_OP(op) (((op) << 0) & CA_SF_EAR_OP_MSK) argument
363 struct spi_mem_op *op) in _ca_sflash_access_data() argument
368 u64 addr_offset = op->addr.val; in _ca_sflash_access_data()
369 u8 addr_cnt = op->addr.nbytes; in _ca_sflash_access_data()
423 u8 addr_cnt = op->addr.nbytes; in _ca_sflash_issue_cmd()
426 u64 addr_offset = op->addr.val; in _ca_sflash_issue_cmd()
494 __func__, op->cmd.opcode, op->addr.val, in ca_sflash_exec_op()
495 op->addr.nbytes, op->data.nbytes, op->data.dir); in ca_sflash_exec_op()
497 if (op->data.nbytes == 0 && op->addr.nbytes == 0) { in ca_sflash_exec_op()
[all …]
A Dxilinx_spi.c303 if (op->cmd.opcode) { in xilinx_spi_mem_exec_op()
308 if (op->addr.nbytes) { in xilinx_spi_mem_exec_op()
313 addr_buf[i] = op->addr.val >> in xilinx_spi_mem_exec_op()
317 op->addr.nbytes); in xilinx_spi_mem_exec_op()
321 if (op->dummy.nbytes) { in xilinx_spi_mem_exec_op()
322 dummy_len = (op->dummy.nbytes * op->data.buswidth) / in xilinx_spi_mem_exec_op()
323 op->dummy.buswidth; in xilinx_spi_mem_exec_op()
329 if (op->data.nbytes) { in xilinx_spi_mem_exec_op()
332 op->data.buf.in, op->data.nbytes); in xilinx_spi_mem_exec_op()
372 if (op->addr.nbytes && in xilinx_qspi_mem_exec_op()
[all …]
/u-boot/lib/lzo/
A Dlzo1x_decompress.c21 #define HAVE_OP(x, op_end, op) ((size_t)(op_end - op) < (x)) argument
22 #define HAVE_LB(m_pos, out, op) (m_pos < out || m_pos >= op) argument
161 *op++ = *ip++; in lzo1x_decompress_safe()
186 COPY4(op, ip); in lzo1x_decompress_safe()
187 op += 4; in lzo1x_decompress_safe()
193 op += 4; in lzo1x_decompress_safe()
224 *op++ = *m_pos; in lzo1x_decompress_safe()
257 m_pos = op; in lzo1x_decompress_safe()
299 op += 4; in lzo1x_decompress_safe()
304 op += 4; in lzo1x_decompress_safe()
[all …]
/u-boot/lib/
A Dlz4.c284 cpy = op + length; in LZ4_decompress_generic()
335 op += length; in LZ4_decompress_generic()
344 op = cpy; in LZ4_decompress_generic()
387 (uptrval)(op) + length < (uptrval)op)) { in LZ4_decompress_generic()
411 op += length; in LZ4_decompress_generic()
421 op += copySize; in LZ4_decompress_generic()
431 op += restSize; in LZ4_decompress_generic()
458 op = copyEnd; in LZ4_decompress_generic()
459 if (op == oend) in LZ4_decompress_generic()
477 op += 8; in LZ4_decompress_generic()
[all …]
A Dasn1_decoder.c182 enum asn1_opcode op; in asn1_ber_decoder() local
212 op = machine[pc]; in asn1_ber_decoder()
226 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
318 switch (op) { in asn1_ber_decoder()
360 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
376 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
442 if (op & ASN1_OP_END__OF) in asn1_ber_decoder()
450 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
455 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
464 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
[all …]
/u-boot/lib/zlib/
A Dinffast.c139 hold >>= op; in inflate_fast()
140 bits -= op; in inflate_fast()
141 op = (unsigned)(this.op); in inflate_fast()
151 if (op) { in inflate_fast()
157 hold >>= op; in inflate_fast()
158 bits -= op; in inflate_fast()
170 hold >>= op; in inflate_fast()
171 bits -= op; in inflate_fast()
172 op = (unsigned)(this.op); in inflate_fast()
193 bits -= op; in inflate_fast()
[all …]
/u-boot/fs/jffs2/
A Dcompr_lzo.c164 op = out; in lzo1x_decompress()
175 *op++ = *ip++; in lzo1x_decompress()
202 op += 4; in lzo1x_decompress()
211 op += 4; in lzo1x_decompress()
229 *op++ = *ip++; in lzo1x_decompress()
230 *op++ = *ip++; in lzo1x_decompress()
231 *op++ = *ip++; in lzo1x_decompress()
249 *op++ = *m_pos; in lzo1x_decompress()
289 m_pos = op; in lzo1x_decompress()
332 op += 4; in lzo1x_decompress()
[all …]
/u-boot/arch/x86/include/asm/
A Dcpu.h71 static inline struct cpuid_result cpuid(int op) in cpuid() argument
83 : "0" (op) in cpuid()
103 : "0" (op), "2" (ecx) in cpuid_ext()
111 static inline unsigned int cpuid_eax(unsigned int op) in cpuid_eax() argument
119 : "0" (op) in cpuid_eax()
124 static inline unsigned int cpuid_ebx(unsigned int op) in cpuid_ebx() argument
133 : "0" (op) in cpuid_ebx()
138 static inline unsigned int cpuid_ecx(unsigned int op) in cpuid_ecx() argument
146 : "0" (op) in cpuid_ecx()
151 static inline unsigned int cpuid_edx(unsigned int op) in cpuid_edx() argument
[all …]
/u-boot/lib/zstd/decompress/
A Dzstd_decompress_block.c777 *op += 8; in ZSTD_overlapCopy8()
801 while (op < oend) *op++ = *ip++; in ZSTD_safecopy()
821 ZSTD_wildcopy(op, ip, oend_w - op, ovtype); in ZSTD_safecopy()
823 op += oend_w - op; in ZSTD_safecopy()
826 while (op < oend) *op++ = *ip++; in ZSTD_safecopy()
838 while (op < oend) *op++ = *ip++; in ZSTD_safecopyDstBeforeSrc()
845 op += oend - WILDCOPY_OVERLENGTH - op; in ZSTD_safecopyDstBeforeSrc()
849 while (op < oend) *op++ = *ip++; in ZSTD_safecopyDstBeforeSrc()
875 assert(op < op + sequenceLength); in ZSTD_execSequenceEnd()
880 op = oLitEnd; in ZSTD_execSequenceEnd()
[all …]
/u-boot/include/
A Dspi-mem.h256 int (*adjust_op_size)(struct spi_slave *slave, struct spi_mem_op *op);
258 const struct spi_mem_op *op);
260 const struct spi_mem_op *op);
295 const struct spi_mem_op *op,
299 const struct spi_mem_op *op,
304 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() argument
312 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data() argument
323 const struct spi_mem_op *op);
326 const struct spi_mem_op *op);
328 int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op);
[all …]

Completed in 945 milliseconds

12345678910