Home
last modified time | relevance | path

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

12345

/rk3399_rockchip-uboot/drivers/spi/
H A Dspi-mem.c37 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() argument
42 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
45 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_map_mem_op_data()
47 else if (op->data.dir == SPI_MEM_DATA_IN && ctlr->dma_rx) in spi_controller_dma_map_mem_op_data()
55 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
56 op->data.dir == SPI_MEM_DATA_IN ? in spi_controller_dma_map_mem_op_data()
83 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data() argument
88 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
91 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_unmap_mem_op_data()
93 else if (op->data.dir == SPI_MEM_DATA_IN && ctlr->dma_rx) in spi_controller_dma_unmap_mem_op_data()
[all …]
H A Dspi-mem-nodm.c10 const struct spi_mem_op *op) in spi_mem_exec_op() argument
21 if (op->data.nbytes) { in spi_mem_exec_op()
22 if (op->data.dir == SPI_MEM_DATA_IN) in spi_mem_exec_op()
23 rx_buf = op->data.buf.in; in spi_mem_exec_op()
25 tx_buf = op->data.buf.out; in spi_mem_exec_op()
28 op_len = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
35 op_buf[pos++] = op->cmd.opcode; in spi_mem_exec_op()
37 if (op->addr.nbytes) { in spi_mem_exec_op()
38 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
39 op_buf[pos + i] = op->addr.val >> in spi_mem_exec_op()
[all …]
H A Drockchip_sfc.c438 static void rockchip_sfc_adjust_op_work(struct spi_mem_op *op) in rockchip_sfc_adjust_op_work() argument
440 if (unlikely(op->dummy.nbytes && !op->addr.nbytes)) { in rockchip_sfc_adjust_op_work()
445 op->addr.nbytes = op->dummy.nbytes; in rockchip_sfc_adjust_op_work()
446 op->addr.buswidth = op->dummy.buswidth; in rockchip_sfc_adjust_op_work()
447 op->addr.val = 0xFFFFFFFFF; in rockchip_sfc_adjust_op_work()
449 op->dummy.nbytes = 0; in rockchip_sfc_adjust_op_work()
477 const struct spi_mem_op *op, in rockchip_sfc_xfer_setup() argument
484 cmd = op->cmd.opcode; in rockchip_sfc_xfer_setup()
485 ctrl |= ((op->cmd.buswidth >> 1) << SFC_CTRL_CMD_BITS_SHIFT); in rockchip_sfc_xfer_setup()
488 if (op->addr.nbytes) { in rockchip_sfc_xfer_setup()
[all …]
/rk3399_rockchip-uboot/lib/lzo/
H 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
147 unsigned char *op = out; in lzo1x_decompress_safe() local
156 if (HAVE_OP(t, op_end, op)) in lzo1x_decompress_safe()
161 *op++ = *ip++; in lzo1x_decompress_safe()
181 if (HAVE_OP(t + 3, op_end, op)) in lzo1x_decompress_safe()
186 COPY4(op, ip); in lzo1x_decompress_safe()
187 op += 4; in lzo1x_decompress_safe()
192 COPY4(op, ip); in lzo1x_decompress_safe()
193 op += 4; in lzo1x_decompress_safe()
[all …]
/rk3399_rockchip-uboot/lib/zlib/
H A Dinffast.c92 unsigned op; /* code bits, operation, extra bits, or */ in inflate_fast() local
138 op = (unsigned)(this.bits); in inflate_fast()
139 hold >>= op; in inflate_fast()
140 bits -= op; in inflate_fast()
141 op = (unsigned)(this.op); in inflate_fast()
142 if (op == 0) { /* literal */ in inflate_fast()
148 else if (op & 16) { /* length base */ in inflate_fast()
150 op &= 15; /* number of extra bits */ in inflate_fast()
151 if (op) { in inflate_fast()
152 if (bits < op) { in inflate_fast()
[all …]
/rk3399_rockchip-uboot/lib/
H A Dlz4.c87 BYTE* op = (BYTE*) dest; in LZ4_decompress_generic() local
88 BYTE* const oend = op + outputSize; in LZ4_decompress_generic()
90 BYTE* oexit = op + targetOutputSize; in LZ4_decompress_generic()
125 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)(op))) goto _output_error; /* overflow … in LZ4_decompress_generic()
130 cpy = op+length; in LZ4_decompress_generic()
144 memcpy(op, ip, length); in LZ4_decompress_generic()
146 op += length; in LZ4_decompress_generic()
149 LZ4_wildCopy(op, ip, cpy); in LZ4_decompress_generic()
150 ip += length; op = cpy; in LZ4_decompress_generic()
167 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)op)) goto _output_error; /* overflow de… in LZ4_decompress_generic()
[all …]
H A Dfdtdec_test.c56 #define CHECK(op) if (fdt_checkerr(#op, op)) return -1 argument
57 #define CHECKVAL(op, expected) \ argument
58 if (checkval(#op, expected, op)) \
60 #define CHECKOK(op) CHECKVAL(op, 0) argument
/rk3399_rockchip-uboot/fs/jffs2/
H A Dcompr_lzo.c98 #define TEST_OP (op <= op_end)
103 if ((lzo_uint)(op_end - op) < (lzo_uint)(x)) goto output_overrun
153 register lzo_byte *op; in lzo1x_decompress() local
164 op = out; in lzo1x_decompress()
175 *op++ = *ip++; in lzo1x_decompress()
198 if (PTR_ALIGNED2_4 (op, ip)) in lzo1x_decompress()
200 COPY4 (op, ip); in lzo1x_decompress()
202 op += 4; in lzo1x_decompress()
210 COPY4 (op, ip); in lzo1x_decompress()
211 op += 4; in lzo1x_decompress()
[all …]
/rk3399_rockchip-uboot/drivers/rkflash/
H A Dsfc_nor.c212 struct rk_sfc_op op; in snor_write_en() local
214 op.sfcmd.d32 = 0; in snor_write_en()
215 op.sfcmd.b.cmd = CMD_WRITE_EN; in snor_write_en()
217 op.sfctrl.d32 = 0; in snor_write_en()
219 ret = sfc_request(&op, 0, NULL, 0); in snor_write_en()
226 struct rk_sfc_op op; in snor_reset_device() local
228 op.sfcmd.d32 = 0; in snor_reset_device()
229 op.sfcmd.b.cmd = CMD_ENABLE_RESER; in snor_reset_device()
231 op.sfctrl.d32 = 0; in snor_reset_device()
232 sfc_request(&op, 0, NULL, 0); in snor_reset_device()
[all …]
H A Dsfc_nand.c352 struct rk_sfc_op op; in sfc_nand_write_en() local
354 op.sfcmd.d32 = 0; in sfc_nand_write_en()
355 op.sfcmd.b.cmd = CMD_WRITE_EN; in sfc_nand_write_en()
357 op.sfctrl.d32 = 0; in sfc_nand_write_en()
359 ret = sfc_request(&op, 0, NULL, 0); in sfc_nand_write_en()
366 struct rk_sfc_op op; in sfc_nand_rw_preset() local
368 op.sfcmd.d32 = 0; in sfc_nand_rw_preset()
369 op.sfcmd.b.cmd = 0xff; in sfc_nand_rw_preset()
370 op.sfcmd.b.cs = 2; in sfc_nand_rw_preset()
372 op.sfctrl.d32 = 0; in sfc_nand_rw_preset()
[all …]
/rk3399_rockchip-uboot/arch/x86/include/asm/
H A Dcpu.h71 static inline struct cpuid_result cpuid(int op) in cpuid() argument
83 : "0" (op) in cpuid()
91 static inline struct cpuid_result cpuid_ext(int op, unsigned ecx) in cpuid_ext() argument
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()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dfpga.c43 int op, dev = FPGA_INVALID_DEVICE; in do_fpga() local
123 op = (int)fpga_get_op(argv[1]); in do_fpga()
128 op = FPGA_NONE; /* force usage display */ in do_fpga()
134 op = FPGA_NONE; in do_fpga()
137 switch (op) { in do_fpga()
166 op = FPGA_NONE; in do_fpga()
169 switch (op) { in do_fpga()
310 int op = FPGA_NONE; in fpga_get_op() local
313 op = FPGA_INFO; in fpga_get_op()
315 op = FPGA_LOADB; in fpga_get_op()
[all …]
H A Ditest.c30 char *op; /* operator string */ member
110 static int stringcomp(char *s, char *t, int op) in stringcomp() argument
119 switch (op) { in stringcomp()
130 static int arithcomp (char *s, char *t, int op, int w) in arithcomp() argument
137 switch (op) { in arithcomp()
148 static int binary_test(char *op, char *arg1, char *arg2, int w) in binary_test() argument
153 len = strlen(op); in binary_test()
159 if ((strncmp (op, optp->op, len) == 0) && (len == strlen (optp->op))) { in binary_test()
168 printf("Unknown operator '%s'\n", op); in binary_test()
H A Dmdio.c187 char op[2]; in do_mdio() local
207 op[0] = argv[1][0]; in do_mdio()
219 op[0] = last_op[0]; in do_mdio()
222 op[1] = argv[1][1]; in do_mdio()
223 if (op[1] == 'x') { in do_mdio()
236 (!phydev->drv->writeext && (op[0] == 'w')) || in do_mdio()
237 (!phydev->drv->readext && (op[0] == 'r'))) { in do_mdio()
244 switch (op[0]) { in do_mdio()
263 if (op[0] == 'l') { in do_mdio()
272 switch (op[0]) { in do_mdio()
[all …]
H A Dmii.c273 char op[2]; in do_mii() local
291 op[0] = last_op[0]; in do_mii()
292 op[1] = last_op[1]; in do_mii()
301 op[0] = argv[1][0]; in do_mii()
303 op[1] = argv[1][1]; in do_mii()
305 op[1] = '\0'; in do_mii()
328 if (op[0] == 'i') { in do_mii()
358 } else if (op[0] == 'r') { in do_mii()
377 } else if (op[0] == 'w') { in do_mii()
387 } else if (op[0] == 'm') { in do_mii()
[all …]
/rk3399_rockchip-uboot/include/
H A Dspi-mem.h181 int (*adjust_op_size)(struct spi_slave *slave, struct spi_mem_op *op);
183 const struct spi_mem_op *op);
185 const struct spi_mem_op *op);
214 const struct spi_mem_op *op,
218 const struct spi_mem_op *op,
223 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() argument
231 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data() argument
238 int spi_mem_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op);
240 bool spi_mem_supports_op(struct spi_slave *slave, const struct spi_mem_op *op);
242 int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op);
/rk3399_rockchip-uboot/common/
H A Dbedbug.c198 if ((ctx.op = find_opcode (ctx.instr)) == 0) { in disppc()
208 (ctx.op->hfunc == 0) || in disppc()
209 ((*ctx.op->hfunc) (&ctx) == false)) { in disppc()
210 sprintf (&ctx.data[ctx.datalen], "%-7s ", ctx.op->name); in disppc()
246 for (field = 0; ctx->op->fields[field] != 0; ++field) { in print_operands()
247 if (ctx->op->fields[field] > n_operands) { in print_operands()
251 opr = &operands[ctx->op->fields[field] - 1]; in print_operands()
269 if (ctx->op->hint & H_RELATIVE) in print_operands()
296 (opr->field == O_rA) && (ctx->op->hint & H_RA0_IS_0)) { in print_operands()
374 int get_operand_value (struct opcode *op, unsigned long instr, in get_operand_value() argument
[all …]
/rk3399_rockchip-uboot/drivers/crypto/fsl/
H A Ddesc_constr.h188 #define APPEND_CMD_RET(cmd, op) \ argument
193 append_cmd(desc, CMD_##op | options); \
211 #define APPEND_CMD(cmd, op) \ argument
215 append_cmd(desc, CMD_##op | options); \
219 #define APPEND_CMD_LEN(cmd, op) \ in APPEND_CMD() argument
223 append_cmd(desc, CMD_##op | len | options); \ in APPEND_CMD()
229 #define APPEND_CMD_PTR(cmd, op) \ argument
234 append_cmd_ptr(desc, ptr, len, CMD_##op | options); \
258 #define APPEND_SEQ_PTR_INTLEN(cmd, op) \ argument
265 append_cmd(desc, CMD_SEQ_##op##_PTR | len | options); \
[all …]
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci_indirect.c17 #define cfg_read(val, addr, type, op) *val = op((type)(addr)) argument
18 #define cfg_write(val, addr, type, op) op((type *)(addr), (val)) argument
21 #define INDIRECT_PCI_OP(rw, size, type, op, mask) \ argument
32 cfg_##rw(val, hose->cfg_data + (offset & mask), type, op); \
36 #define INDIRECT_PCI_OP(rw, size, type, op, mask) \ argument
46 cfg_##rw(val, hose->cfg_data + (offset & mask), type, op); \
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/
H A Dcore.c50 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(reg, in spinand_read_reg_op() local
54 ret = spi_mem_exec_op(spinand->slave, &op); in spinand_read_reg_op()
64 struct spi_mem_op op = SPINAND_SET_FEATURE_OP(reg, in spinand_write_reg_op() local
68 return spi_mem_exec_op(spinand->slave, &op); in spinand_write_reg_op()
223 struct spi_mem_op op = SPINAND_WR_EN_DIS_OP(true); in spinand_write_enable_op() local
225 return spi_mem_exec_op(spinand->slave, &op); in spinand_write_enable_op()
233 struct spi_mem_op op = SPINAND_PAGE_READ_OP(row); in spinand_load_page_op() local
235 return spi_mem_exec_op(spinand->slave, &op); in spinand_load_page_op()
241 struct spi_mem_op op = *spinand->op_templates.read_cache; in spinand_read_from_cache_op() local
278 op.addr.val = column; in spinand_read_from_cache_op()
[all …]
/rk3399_rockchip-uboot/drivers/power/regulator/
H A Dmax77686.c320 static int max77686_ldo_val(struct udevice *dev, int op, int *uV) in max77686_ldo_val() argument
326 if (op == PMIC_OP_GET) in max77686_ldo_val()
341 if (op == PMIC_OP_GET) { in max77686_ldo_val()
361 static int max77686_buck_val(struct udevice *dev, int op, int *uV) in max77686_buck_val() argument
373 if (op == PMIC_OP_GET) in max77686_buck_val()
395 if (op == PMIC_OP_GET) { in max77686_buck_val()
415 static int max77686_ldo_mode(struct udevice *dev, int op, int *opmode) in max77686_ldo_mode() argument
421 if (op == PMIC_OP_GET) in max77686_ldo_mode()
436 if (op == PMIC_OP_GET) { in max77686_ldo_mode()
507 static int max77686_ldo_enable(struct udevice *dev, int op, bool *enable) in max77686_ldo_enable() argument
[all …]
H A Dlp873x_regulator.c26 static int lp873x_buck_enable(struct udevice *dev, int op, bool *enable) in lp873x_buck_enable() argument
39 if (op == PMIC_OP_GET) { in lp873x_buck_enable()
48 } else if (op == PMIC_OP_SET) { in lp873x_buck_enable()
89 static int lp873x_buck_val(struct udevice *dev, int op, int *uV) in lp873x_buck_val() argument
97 if (op == PMIC_OP_GET) in lp873x_buck_val()
106 if (op == PMIC_OP_GET) { in lp873x_buck_val()
128 static int lp873x_ldo_enable(struct udevice *dev, int op, bool *enable) in lp873x_ldo_enable() argument
141 if (op == PMIC_OP_GET) { in lp873x_ldo_enable()
150 } else if (op == PMIC_OP_SET) { in lp873x_ldo_enable()
183 static int lp873x_ldo_val(struct udevice *dev, int op, int *uV) in lp873x_ldo_val() argument
[all …]
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi-nor-tiny.c38 *op, void *buf) in spi_nor_read_write_reg()
40 if (op->data.dir == SPI_MEM_DATA_IN) in spi_nor_read_write_reg()
41 op->data.buf.in = buf; in spi_nor_read_write_reg()
43 op->data.buf.out = buf; in spi_nor_read_write_reg()
44 return spi_mem_exec_op(nor->spi, op); in spi_nor_read_write_reg()
49 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(code, 1), in spi_nor_read_reg() local
55 ret = spi_nor_read_write_reg(nor, &op, val); in spi_nor_read_reg()
65 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(opcode, 1), in spi_nor_write_reg() local
70 return spi_nor_read_write_reg(nor, &op, buf); in spi_nor_write_reg()
76 struct spi_mem_op op = in spi_nor_read_data() local
[all …]
/rk3399_rockchip-uboot/drivers/net/
H A De1000_spi.c174 u8 op[] = { SPI_EEPROM_ENABLE_WR }; in e1000_spi_eeprom_enable_wr() local
176 return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr); in e1000_spi_eeprom_enable_wr()
186 u8 op[] = { SPI_EEPROM_DISABLE_WR }; in e1000_spi_eeprom_disable_wr() local
188 return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr); in e1000_spi_eeprom_disable_wr()
194 u8 op[] = { SPI_EEPROM_WRITE_STATUS, status }; in e1000_spi_eeprom_write_status() local
196 return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr); in e1000_spi_eeprom_write_status()
201 u8 op[] = { SPI_EEPROM_READ_STATUS, 0 }; in e1000_spi_eeprom_read_status() local
203 if (e1000_spi_xfer(hw, 8*sizeof(op), op, op, intr)) in e1000_spi_eeprom_read_status()
205 return op[1]; in e1000_spi_eeprom_read_status()
211 u8 op[] = { in e1000_spi_eeprom_write_page() local
[all …]
/rk3399_rockchip-uboot/arch/arc/lib/
H A Dcache.c45 static unsigned int __before_slc_op(const int op) in __before_slc_op() argument
49 if (op == OP_INV) { in __before_slc_op()
61 static void __after_slc_op(const int op, unsigned int reg) in __after_slc_op() argument
63 if (op & OP_FLUSH) { /* flush / flush-n-inv both wait */ in __after_slc_op()
75 if (op == OP_INV) in __after_slc_op()
80 const int op) in __slc_line_loop() argument
87 aux_cmd = op & OP_INV ? ARC_AUX_SLC_IVDL : ARC_AUX_SLC_FLDL; in __slc_line_loop()
359 static unsigned int __before_dc_op(const int op) in __before_dc_op() argument
363 if (op == OP_INV) { in __before_dc_op()
375 static void __after_dc_op(const int op, unsigned int reg) in __after_dc_op() argument
[all …]

12345