Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 51) sorted by relevance

123

/rk3399_rockchip-uboot/post/lib_powerpc/
H A Dcpu_asm.h113 #define ASM_0(opcode) (opcode) argument
114 #define ASM_1(opcode, rd) ((opcode) + \ argument
116 #define ASM_1C(opcode, cr) ((opcode) + \ argument
118 #define ASM_11(opcode, rd, rs) ((opcode) + \ argument
121 #define ASM_11C(opcode, cd, cs) ((opcode) + \ argument
124 #define ASM_11X(opcode, rd, rs) ((opcode) + \ argument
127 #define ASM_11I(opcode, rd, rs, simm) ((opcode) + \ argument
131 #define ASM_11IF(opcode, rd, rs, simm) ((opcode) + \ argument
135 #define ASM_11S(opcode, rd, rs, sh) ((opcode) + \ argument
139 #define ASM_11IX(opcode, rd, rs, imm) ((opcode) + \ argument
[all …]
/rk3399_rockchip-uboot/board/topic/zynq/
H A Dps7_init_common.c69 unsigned long opcode; in ps7_config() local
78 opcode = ptr[0]; in ps7_config()
79 if (opcode == OPCODE_EXIT) in ps7_config()
81 addr = (opcode & OPCODE_ADDRESS_MASK); in ps7_config()
83 switch (opcode & ~OPCODE_ADDRESS_MASK) { in ps7_config()
/rk3399_rockchip-uboot/common/
H A Dbedbug.c27 int get_operand_value __P ((struct opcode *, unsigned long,
29 struct opcode *find_opcode __P ((unsigned long));
30 struct opcode *find_opcode_by_name __P ((char *));
35 int parse_operand __P ((unsigned long, struct opcode *,
374 int get_operand_value (struct opcode *op, unsigned long instr, in get_operand_value()
418 struct opcode *find_opcode (unsigned long instr) in find_opcode()
420 struct opcode *ptr; in find_opcode()
431 if ((instr & ptr->mask) < ptr->opcode) { in find_opcode()
433 } else if ((instr & ptr->mask) > ptr->opcode) { in find_opcode()
440 return (struct opcode *) 0; in find_opcode()
[all …]
/rk3399_rockchip-uboot/drivers/spi/
H A Dbcm63xx_hsspi.c223 uint16_t opcode = 0; in bcm63xx_hsspi_xfer() local
233 opcode = HSSPI_FIFO_OP_READ_WRITE; in bcm63xx_hsspi_xfer()
235 opcode = HSSPI_FIFO_OP_CODE_R; in bcm63xx_hsspi_xfer()
237 opcode = HSSPI_FIFO_OP_CODE_W; in bcm63xx_hsspi_xfer()
239 if (opcode != HSSPI_FIFO_OP_CODE_R) in bcm63xx_hsspi_xfer()
243 if ((opcode == HSSPI_FIFO_OP_CODE_R && plat->mode == SPI_RX_DUAL) || in bcm63xx_hsspi_xfer()
244 (opcode == HSSPI_FIFO_OP_CODE_W && plat->mode == SPI_TX_DUAL)) in bcm63xx_hsspi_xfer()
245 opcode |= HSSPI_FIFO_OP_MBIT_MASK; in bcm63xx_hsspi_xfer()
268 writew_be(opcode | (curr_step & HSSPI_FIFO_OP_BYTES_MASK), in bcm63xx_hsspi_xfer()
H A Dspi-mem-nodm.c28 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()
90 len = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
H A Dspi-mem.c265 tmpbufsize = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_exec_op()
279 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op()
281 xfers[xferpos].len = sizeof(op->cmd.opcode); in spi_mem_exec_op()
345 op_len = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
358 op_buf[pos++] = op->cmd.opcode; in spi_mem_exec_op()
438 len = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_adjust_op_size()
H A Dich.c256 trans->opcode = trans->out[0]; in spi_setup_opcode()
260 ich_writeb(ctlr, trans->opcode, ctlr->opmenu); in spi_setup_opcode()
271 if (trans->opcode == SPI_OPCODE_WREN) in spi_setup_opcode()
277 if (opmenu[opcode_index] == trans->opcode) in spi_setup_opcode()
283 trans->opcode); in spi_setup_opcode()
454 if (trans->opcode == SPI_OPCODE_WREN) { in ich_spi_xfer()
461 ich_writew(ctlr, trans->opcode, ctlr->preop); in ich_spi_xfer()
/rk3399_rockchip-uboot/drivers/nvme/
H A Dnvme.h228 __u8 opcode; member
240 __u8 opcode; member
284 __u8 opcode; member
309 __u8 opcode; member
379 __u8 opcode; member
391 __u8 opcode; member
404 __u8 opcode; member
418 __u8 opcode; member
432 __u8 opcode; member
442 __u8 opcode; member
[all …]
H A Dnvme.c279 static int nvme_delete_queue(struct nvme_dev *dev, u8 opcode, u16 id) in nvme_delete_queue() argument
284 c.delete_queue.opcode = opcode; in nvme_delete_queue()
425 c.create_cq.opcode = nvme_admin_create_cq; in nvme_alloc_cq()
442 c.create_sq.opcode = nvme_admin_create_sq; in nvme_alloc_sq()
462 c.identify.opcode = nvme_admin_identify; in nvme_identify()
494 c.features.opcode = nvme_admin_get_features; in nvme_get_features()
521 c.features.opcode = nvme_admin_set_features; in nvme_set_features()
772 c.rw.opcode = read ? nvme_cmd_read : nvme_cmd_write; in nvme_blk_rw()
841 cmnd.dsm.opcode = nvme_cmd_dsm; in nvme_blk_erase()
867 cmnd.write_zeroes.opcode = nvme_cmd_write_zeroes; in nvme_blk_write_zeroes()
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi-nor-tiny.c63 static int spi_nor_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in spi_nor_write_reg() argument
65 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(opcode, 1), in spi_nor_write_reg()
164 static u8 spi_nor_convert_opcode(u8 opcode, const u8 table[][2], size_t size) in spi_nor_convert_opcode() argument
169 if (table[i][0] == opcode) in spi_nor_convert_opcode()
173 return opcode; in spi_nor_convert_opcode()
176 static inline u8 spi_nor_convert_3to4_read(u8 opcode) in spi_nor_convert_3to4_read() argument
187 return spi_nor_convert_opcode(opcode, spi_nor_3to4_read, in spi_nor_convert_3to4_read()
548 u8 opcode; member
571 u8 opcode, in spi_nor_set_read_settings() argument
576 read->opcode = opcode; in spi_nor_set_read_settings()
[all …]
H A Dspi-nor-core.c63 static int spi_nor_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len) in spi_nor_write_reg() argument
65 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(opcode, 1), in spi_nor_write_reg()
245 static u8 spi_nor_convert_opcode(u8 opcode, const u8 table[][2], size_t size) in spi_nor_convert_opcode() argument
250 if (table[i][0] == opcode) in spi_nor_convert_opcode()
254 return opcode; in spi_nor_convert_opcode()
257 static u8 spi_nor_convert_3to4_read(u8 opcode) in spi_nor_convert_3to4_read() argument
274 return spi_nor_convert_opcode(opcode, spi_nor_3to4_read, in spi_nor_convert_3to4_read()
278 static u8 spi_nor_convert_3to4_program(u8 opcode) in spi_nor_convert_3to4_program() argument
288 return spi_nor_convert_opcode(opcode, spi_nor_3to4_program, in spi_nor_convert_3to4_program()
292 static u8 spi_nor_convert_3to4_erase(u8 opcode) in spi_nor_convert_3to4_erase() argument
[all …]
H A Dsf_dataflash.c80 u8 opcode = OP_READ_STATUS; in dataflash_status() local
87 ret = spi_write_then_read(spi, &opcode, 1, NULL, &status, 1); in dataflash_status()
515 u8 opcode = CMD_READ_ID; in jedec_probe() local
527 tmp = spi_write_then_read(spi, &opcode, 1, NULL, id, sizeof(id)); in jedec_probe()
/rk3399_rockchip-uboot/include/bedbug/
H A Dppc.h305 struct opcode { struct
306 unsigned long opcode; /* The complete opcode as produced by argument
336 struct opcode * op;
389 extern struct opcode opcodes[];
/rk3399_rockchip-uboot/board/gdsys/a38x/
H A Dhre.c371 uint8_t opcode; in hre_execute_op() local
386 opcode = **ip; in hre_execute_op()
393 opcode, src_spec, dst_spec, data_size); in hre_execute_op()
395 if ((opcode & 0x80) && (data_size + 4) > *code_size) in hre_execute_op()
401 dst_reg = access_hreg(dst_spec, (opcode & 0x40) ? HREG_RDWR : HREG_WR); in hre_execute_op()
405 switch (opcode) { in hre_execute_op()
475 if (opcode & 0x80) { in hre_execute_op()
/rk3399_rockchip-uboot/drivers/ufs/
H A Dufs-rockchip-usbplug.c371 enum query_opcode opcode, in ufshcd_init_query() argument
378 (*request)->upiu_req.opcode = opcode; in ufshcd_init_query()
387 static int ufshcd_query_attribute(struct ufs_hba *hba,enum query_opcode opcode, in ufshcd_query_attribute() argument
397 request->upiu_req.opcode = opcode; in ufshcd_query_attribute()
402 switch (opcode) { in ufshcd_query_attribute()
413 __func__, opcode); in ufshcd_query_attribute()
434 static int ufshcd_query_attribute_retry(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_attribute_retry() argument
441 ret = ufshcd_query_attribute(hba, opcode, idn, index, selector, value); in ufshcd_query_attribute_retry()
453 __func__, opcode, idn, ret, retries); in ufshcd_query_attribute_retry()
H A Dufs.c832 if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) in ufshcd_prepare_utp_query_req_upiu()
842 if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) { in ufshcd_prepare_utp_query_req_upiu()
977 hba->ucd_rsp_ptr->qr.opcode == UPIU_QUERY_OPCODE_READ_DESC) { in ufshcd_copy_query_response()
1056 enum query_opcode opcode, in ufshcd_init_query() argument
1063 (*request)->upiu_req.opcode = opcode; in ufshcd_init_query()
1072 int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, in ufshcd_query_flag() argument
1080 ufshcd_init_query(hba, &request, &response, opcode, idn, index, in ufshcd_query_flag()
1083 switch (opcode) { in ufshcd_query_flag()
1102 __func__, opcode); in ufshcd_query_flag()
1125 enum query_opcode opcode, in ufshcd_query_flag_retry() argument
[all …]
H A Dufs-rockchip-rpmb.c129 static int rpmb_send_scsi_cmd(struct ufs_hba *hba, uint32_t opcode, int dma_dir, int lun, in rpmb_send_scsi_cmd() argument
139 if (opcode == UFS_OP_SECURITY_PROTOCOL_OUT) { in rpmb_send_scsi_cmd()
142 } else if (opcode == UFS_OP_SECURITY_PROTOCOL_IN) { in rpmb_send_scsi_cmd()
145 } else if (opcode == UFS_OP_TST_U_RDY) { in rpmb_send_scsi_cmd()
/rk3399_rockchip-uboot/cmd/
H A Ditest.c31 int opcode; /* internal representation of opcode */ member
161 return (stringcomp(arg1, arg2, optp->opcode)); in binary_test()
163 return (arithcomp (arg1, arg2, optp->opcode, w)); in binary_test()
/rk3399_rockchip-uboot/drivers/mmc/
H A Dsdhci.c583 static int sdhci_send_tuning(struct sdhci_host *host, u32 opcode) argument
587 cmd.cmdidx = opcode;
595 if (opcode == MMC_SEND_TUNING_BLOCK_HS200 &&
617 static int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) argument
629 ret = sdhci_send_tuning(host, opcode);
647 static int sdhci_execute_tuning(struct udevice *dev, u32 opcode) argument
651 static int sdhci_execute_tuning(struct mmc *mmc, u32 opcode)
682 return __sdhci_execute_tuning(host, opcode);
H A Drockchip_dw_mmc.c254 static int rockchip_dwmmc_execute_tuning(struct dwmci_host *host, u32 opcode) in rockchip_dwmmc_execute_tuning() argument
287 v = !mmc_send_tuning(mmc, opcode); in rockchip_dwmmc_execute_tuning()
369 static int rockchip_dwmmc_execute_tuning(struct dwmci_host *host, u32 opcode) { return 0; } in rockchip_dwmmc_execute_tuning() argument
/rk3399_rockchip-uboot/include/
H A Dspi-mem.h22 .opcode = __opcode, \
93 u8 opcode; member
/rk3399_rockchip-uboot/board/gdsys/p1022/
H A Dcontrolcenterd-id.c601 uint8_t opcode; in hre_execute_op() local
616 opcode = **ip; in hre_execute_op()
623 opcode, src_spec, dst_spec, data_size); in hre_execute_op()
625 if ((opcode & 0x80) && (data_size + 4) > *code_size) in hre_execute_op()
631 dst_reg = access_hreg(dst_spec, (opcode & 0x40) ? HREG_RDWR : HREG_WR); in hre_execute_op()
635 switch (opcode) { in hre_execute_op()
705 if (opcode & 0x80) { in hre_execute_op()
/rk3399_rockchip-uboot/examples/standalone/
H A DREADME_rkspi.md111 const u8 *opcode, size_t n_opcode,
117 - opcode: command code
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dspi-nor.h331 int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
332 int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len);
/rk3399_rockchip-uboot/drivers/crypto/rockchip/
H A Dcrypto_v2_pka.c166 u32 rk_pka_make_full_opcode(u32 opcode, u32 len_id, in rk_pka_make_full_opcode() argument
175 (((u32)(opcode) & 31) << RK_PKA_OPCODE_OPERATION_ID_POS | in rk_pka_make_full_opcode()
269 u32 rk_pka_exec_operation(u32 opcode, u8 len_id, in rk_pka_exec_operation() argument
283 full_opcode = rk_pka_make_full_opcode(opcode, len_id, in rk_pka_exec_operation()
294 switch (opcode) { in rk_pka_exec_operation()

123