Home
last modified time | relevance | path

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

12345678

/u-boot/drivers/spi/
A Dspi-mem-nodm.c23 if (op->data.nbytes) { in spi_mem_exec_op()
25 rx_buf = op->data.buf.in; in spi_mem_exec_op()
27 tx_buf = op->data.buf.out; in spi_mem_exec_op()
30 op_len = sizeof(op->cmd.opcode) + 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 = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
97 op->data.nbytes = min(op->data.nbytes, in spi_mem_adjust_op_size()
100 op->data.nbytes = min(op->data.nbytes, in spi_mem_adjust_op_size()
[all …]
A Dspi-mem.c50 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
63 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
96 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
154 if (op->addr.nbytes && in spi_mem_default_supports_op()
273 tmpbufsize = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_exec_op()
311 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
353 op_len = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
442 len = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_adjust_op_size()
443 op->dummy.nbytes; in spi_mem_adjust_op_size()
449 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 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 Dstm32_qspi.c153 if (!op->data.nbytes) in _stm32_qspi_wait_cmd()
218 memcpy_fromio(op->data.buf.in, priv->mm_base + op->addr.val, in stm32_qspi_mm()
254 op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth, in stm32_qspi_exec_op()
255 op->dummy.buswidth, op->data.buswidth, in stm32_qspi_exec_op()
256 op->addr.val, op->data.nbytes); in stm32_qspi_exec_op()
262 addr_max = op->addr.val + op->data.nbytes + 1; in stm32_qspi_exec_op()
264 if (op->data.dir == SPI_MEM_DATA_IN && op->data.nbytes) { in stm32_qspi_exec_op()
271 if (op->data.nbytes) in stm32_qspi_exec_op()
285 if (op->dummy.buswidth && op->dummy.nbytes) in stm32_qspi_exec_op()
286 ccr |= (op->dummy.nbytes * 8 / op->dummy.buswidth in stm32_qspi_exec_op()
[all …]
A Datmel-quadspi.c255 if (op->addr.nbytes && op->addr.buswidth != mode->addr_buswidth) in atmel_qspi_is_compatible()
258 if (op->data.nbytes && op->data.buswidth != mode->data_buswidth) in atmel_qspi_is_compatible()
282 if (op->addr.nbytes == 2 && op->cmd.buswidth != op->addr.buswidth && in atmel_qspi_supports_op()
305 if (op->dummy.buswidth && op->dummy.nbytes) in atmel_qspi_set_cfg()
306 dummy_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; in atmel_qspi_set_cfg()
320 if (op->addr.buswidth) { in atmel_qspi_set_cfg()
361 if (op->data.nbytes) in atmel_qspi_set_cfg()
377 if (!op->addr.nbytes && op->data.dir == SPI_MEM_DATA_IN) in atmel_qspi_set_cfg()
412 if (op->addr.val + op->data.nbytes > aq->mmap_size) in atmel_qspi_exec_op()
420 if (op->data.nbytes) { in atmel_qspi_exec_op()
[all …]
A Dnxp_fspi.c389 if (op->addr.nbytes) in nxp_fspi_supports_op()
392 if (op->dummy.nbytes) in nxp_fspi_supports_op()
395 if (op->data.nbytes) in nxp_fspi_supports_op()
417 (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) in nxp_fspi_supports_op()
480 op->cmd.opcode); in nxp_fspi_prepare_lut()
483 if (op->addr.nbytes) { in nxp_fspi_prepare_lut()
504 if (op->data.nbytes) { in nxp_fspi_prepare_lut()
619 memcpy_fromio(op->data.buf.in, (f->ahb_addr + op->addr.val), len); in nxp_fspi_read_ahb()
749 if (!err && op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) in nxp_fspi_do_op()
780 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 = sizeof(op->cmd.opcode) + op->addr.nbytes + in mtk_snfi_adjust_op_size()
68 op->dummy.nbytes; in mtk_snfi_adjust_op_size()
82 const struct spi_mem_op *op) in mtk_snfi_supports_op() argument
84 if (op->cmd.buswidth > 1 || op->addr.buswidth > 1 || in mtk_snfi_supports_op()
85 op->dummy.buswidth > 1 || op->data.buswidth > 1) in mtk_snfi_supports_op()
227 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) { in mtk_snfi_exec_op()
228 memcpy(gpram_cache + len, op->data.buf.out, op->data.nbytes); in mtk_snfi_exec_op()
229 len += op->data.nbytes; in mtk_snfi_exec_op()
236 if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) in mtk_snfi_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 Dspi-sifive.c277 u8 opcode = op->cmd.opcode; in sifive_spi_exec_op()
284 if (!op->addr.nbytes && !op->dummy.nbytes && !op->data.nbytes) in sifive_spi_exec_op()
287 spi->fmt_proto = op->cmd.buswidth; in sifive_spi_exec_op()
296 op_len = op->addr.nbytes + op->dummy.nbytes; in sifive_spi_exec_op()
300 if (op->addr.nbytes) { in sifive_spi_exec_op()
306 pos += op->addr.nbytes; in sifive_spi_exec_op()
309 if (op->dummy.nbytes) in sifive_spi_exec_op()
313 if (!op->data.nbytes) in sifive_spi_exec_op()
326 if (op->data.nbytes) { in sifive_spi_exec_op()
328 rx_buf = op->data.buf.in; in sifive_spi_exec_op()
[all …]
A Dcadence_qspi.h61 const struct spi_mem_op *op);
63 const struct spi_mem_op *op);
66 const struct spi_mem_op *op);
68 const struct spi_mem_op *op);
70 const struct spi_mem_op *op);
72 const struct spi_mem_op *op);
/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/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/lib/
A Dlz4.c86 BYTE* op = (BYTE*) dest; in LZ4_decompress_generic() local
129 cpy = op+length; in LZ4_decompress_generic()
145 op += length; in LZ4_decompress_generic()
179 memmove(op, match, length); op += length; in LZ4_decompress_generic()
192 while (op < endOfMatch) *op++ = *copyFrom++; in LZ4_decompress_generic()
204 cpy = op + length; in LZ4_decompress_generic()
208 op[0] = match[0]; in LZ4_decompress_generic()
215 } else { LZ4_copy8(op, match); op+=8; match+=8; } in LZ4_decompress_generic()
220 if (op < oend-8) in LZ4_decompress_generic()
224 op = oend-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/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/include/
A Dspi-mem.h180 int (*adjust_op_size)(struct spi_slave *slave, struct spi_mem_op *op);
182 const struct spi_mem_op *op);
184 const struct spi_mem_op *op);
213 const struct spi_mem_op *op,
217 const struct spi_mem_op *op,
222 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() argument
230 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data() argument
237 int spi_mem_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op);
239 bool spi_mem_supports_op(struct spi_slave *slave, const struct spi_mem_op *op);
241 int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op);
[all …]
/u-boot/arch/arm/mach-stm32mp/include/mach/
A Dstm32mp1_smc.h38 #define stm32_smc_exec(svc, op, data1, data2) \ argument
39 stm32_smc(svc, op, data1, data2, NULL)
42 static inline u32 stm32_smc(u32 svc, u8 op, u32 data1, u32 data2, u32 *result) in stm32_smc() argument
46 arm_smccc_smc(svc, op, data1, data2, 0, 0, 0, 0, &res); in stm32_smc()
50 __func__, svc, op, res.a0); in stm32_smc()
59 static inline u32 stm32_smc(u32 svc, u8 op, u32 data1, u32 data2, u32 *result) in stm32_smc() argument
/u-boot/cmd/
A Ditest.c30 char *op; /* operator string */ member
115 static int stringcomp(char *s, char *t, int op) in stringcomp() argument
124 switch (op) { in stringcomp()
135 static int arithcomp (char *s, char *t, int op, int w) in arithcomp() argument
142 switch (op) { in arithcomp()
153 static int binary_test(char *op, char *arg1, char *arg2, int w) in binary_test() argument
158 len = strlen(op); in binary_test()
164 if ((strncmp (op, optp->op, len) == 0) && (len == strlen (optp->op))) { in binary_test()
173 printf("Unknown operator '%s'\n", op); in binary_test()
/u-boot/common/
A Dbedbug.c209 (ctx.op->hfunc == 0) || in disppc()
210 ((*ctx.op->hfunc) (&ctx) == false)) { in disppc()
248 if (ctx->op->fields[field] > n_operands) { in print_operands()
270 if (ctx->op->hint & H_RELATIVE) in print_operands()
388 for (i = 0; op->fields[i] != 0; ++i) { in get_operand_value()
389 if (op->fields[i] != field) { in get_operand_value()
393 opr = &operands[op->fields[i] - 1]; in get_operand_value()
681 ctx->op = &blt; in handle_bc()
687 ctx->op = &bne; in handle_bc()
693 ctx->op = &bdnz; in handle_bc()
[all …]
/u-boot/drivers/pci/
A Dpci_indirect.c16 #define cfg_read(val, addr, type, op) *val = op((type)(addr)) argument
17 #define cfg_write(val, addr, type, op) op((type *)(addr), (val)) argument
20 #define INDIRECT_PCI_OP(rw, size, type, op, mask) \ argument
31 cfg_##rw(val, hose->cfg_data + (offset & mask), type, op); \
35 #define INDIRECT_PCI_OP(rw, size, type, op, mask) \ argument
45 cfg_##rw(val, hose->cfg_data + (offset & mask), type, op); \
/u-boot/drivers/crypto/fsl/
A Ddesc_constr.h186 #define APPEND_CMD_RET(cmd, op) \ argument
191 append_cmd(desc, CMD_##op | options); \
209 #define APPEND_CMD(cmd, op) \ argument
213 append_cmd(desc, CMD_##op | options); \
217 #define APPEND_CMD_LEN(cmd, op) \ in APPEND_CMD() argument
227 #define APPEND_CMD_PTR(cmd, op) \ argument
256 #define APPEND_SEQ_PTR_INTLEN(cmd, op) \ argument
270 #define APPEND_CMD_PTR_TO_IMM(cmd, op) \ argument
280 #define APPEND_CMD_PTR_EXTLEN(cmd, op) \ argument
294 #define APPEND_CMD_PTR_LEN(cmd, op, type) \ argument
[all …]
/u-boot/drivers/mtd/nand/spi/
A Dcore.c275 op.addr.val = column; in spinand_read_from_cache_op()
283 op.data.buf.in = buf; in spinand_read_from_cache_op()
293 buf += op.data.nbytes; in spinand_read_from_cache_op()
295 op.addr.val += op.data.nbytes; in spinand_read_from_cache_op()
364 op.addr.val = column; in spinand_write_to_cache_op()
372 op.data.buf.out = buf; in spinand_write_to_cache_op()
383 buf += op.data.nbytes; in spinand_write_to_cache_op()
385 op.addr.val += op.data.nbytes; in spinand_write_to_cache_op()
393 column = op.addr.val; in spinand_write_to_cache_op()
943 if (!op) in spinand_match_and_init()
[all …]
/u-boot/include/linux/
A Diopoll.h29 #define read_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument
33 (val) = op(addr); \
37 (val) = op(addr); \
46 #define readx_poll_sleep_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument
47 read_poll_timeout(op, addr, val, cond, sleep_us, timeout_us)
52 #define readx_poll_timeout(op, addr, val, cond, timeout_us) \ argument
53 read_poll_timeout(op, addr, val, cond, false, timeout_us)

Completed in 59 milliseconds

12345678