| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/ |
| H A D | rk_cryptodev.c | 111 static int fill_kcop_fd_from_cop(struct kernel_crypt_fd_op *kcop, struct fcrypt *fcr) in fill_kcop_fd_from_cop() argument 118 ses_ptr = crypto_get_session_by_sid(fcr, cop->ses); in fill_kcop_fd_from_cop() 145 static int fill_cop_fd_from_kcop(struct kernel_crypt_fd_op *kcop, struct fcrypt *fcr) in fill_cop_fd_from_kcop() argument 165 struct fcrypt *fcr, void __user *arg) in kcop_fd_from_user() argument 170 return fill_kcop_fd_from_cop(kcop, fcr); in kcop_fd_from_user() 174 struct fcrypt *fcr, void __user *arg) in kcop_fd_to_user() argument 178 ret = fill_cop_fd_from_kcop(kcop, fcr); in kcop_fd_to_user() 321 static struct dma_fd_map_node *dma_fd_find_node(struct fcrypt *fcr, int dma_fd) in dma_fd_find_node() argument 325 mutex_lock(&fcr->sem); in dma_fd_find_node() 327 list_for_each_entry(map_node, &fcr->dma_map_list, list) { in dma_fd_find_node() [all …]
|
| H A D | ioctl.c | 109 crypto_create_session(struct fcrypt *fcr, struct session_op *sop) in crypto_create_session() argument 339 mutex_lock(&fcr->sem); in crypto_create_session() 341 list_for_each_entry(ses_ptr, &fcr->list, entry) { in crypto_create_session() 351 list_add(&ses_new->entry, &fcr->list); in crypto_create_session() 352 mutex_unlock(&fcr->sem); in crypto_create_session() 398 crypto_finish_session(struct fcrypt *fcr, uint32_t sid) in crypto_finish_session() argument 404 mutex_lock(&fcr->sem); in crypto_finish_session() 405 head = &fcr->list; in crypto_finish_session() 418 mutex_unlock(&fcr->sem); in crypto_finish_session() 425 crypto_finish_all_sessions(struct fcrypt *fcr) in crypto_finish_all_sessions() argument [all …]
|
| H A D | cryptodev.h | 146 struct fcrypt *fcr, void __user *arg); 148 struct fcrypt *fcr, void __user *arg); 151 struct fcrypt *fcr, void __user *arg); 153 struct fcrypt *fcr, void __user *arg); 154 int crypto_auth_run(struct fcrypt *fcr, struct kernel_crypt_auth_op *kcaop); 155 int crypto_run(struct fcrypt *fcr, struct kernel_crypt_op *kcop); 176 struct csession *crypto_get_session_by_sid(struct fcrypt *fcr, uint32_t sid); 178 crypto_get_sessions_by_sid(struct fcrypt *fcr,
|
| H A D | authenc.c | 213 static int fill_kcaop_from_caop(struct kernel_crypt_auth_op *kcaop, struct fcrypt *fcr) in fill_kcaop_from_caop() argument 220 ses_ptr = crypto_get_session_by_sid(fcr, caop->ses); in fill_kcaop_from_caop() 260 static int fill_caop_from_kcaop(struct kernel_crypt_auth_op *kcaop, struct fcrypt *fcr) in fill_caop_from_kcaop() argument 279 struct fcrypt *fcr, void __user *arg) in cryptodev_kcaop_from_user() argument 286 return fill_kcaop_from_caop(kcaop, fcr); in cryptodev_kcaop_from_user() 290 struct fcrypt *fcr, void __user *arg) in cryptodev_kcaop_to_user() argument 294 ret = fill_caop_from_kcaop(kcaop, fcr); in cryptodev_kcaop_to_user() 347 struct fcrypt *fcr, void __user *arg) in compat_kcaop_from_user() argument 360 return fill_kcaop_from_caop(kcaop, fcr); in compat_kcaop_from_user() 364 struct fcrypt *fcr, void __user *arg) in compat_kcaop_to_user() argument [all …]
|
| H A D | rk_cryptodev.h | 98 rk_cryptodev_ioctl(struct fcrypt *fcr, unsigned int cmd, unsigned long arg_); 101 rk_compat_cryptodev_ioctl(struct fcrypt *fcr, unsigned int cmd, unsigned long arg_);
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | tmio_nand.c | 113 void __iomem *fcr; member 155 tmio_iowrite8(mode, tmio->fcr + FCR_MODE); in tmio_nand_hwcontrol() 167 return !(tmio_ioread8(tmio->fcr + FCR_STATUS) & FCR_STATUS_BUSY); in tmio_nand_dev_ready() 175 tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); in tmio_irq() 195 tmio_iowrite8(0x0f, tmio->fcr + FCR_ISR); in tmio_nand_wait() 197 tmio_iowrite8(0x81, tmio->fcr + FCR_IMR); in tmio_nand_wait() 204 tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); in tmio_nand_wait() 208 tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); in tmio_nand_wait() 232 data = tmio_ioread16(tmio->fcr + FCR_DATA); in tmio_nand_read_byte() 248 tmio_iowrite16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); in tmio_nand_write_buf() [all …]
|
| H A D | fsl_elbc_nand.c | 218 in_be32(&lbc->fmr), in_be32(&lbc->fir), in_be32(&lbc->fcr)); in fsl_elbc_run_command() 242 in_be32(&lbc->fir), in_be32(&lbc->fcr), in fsl_elbc_run_command() 290 out_be32(&lbc->fcr, (NAND_CMD_READ0 << FCR_CMD0_SHIFT) | in fsl_elbc_do_read() 300 out_be32(&lbc->fcr, NAND_CMD_READOOB << FCR_CMD0_SHIFT); in fsl_elbc_do_read() 302 out_be32(&lbc->fcr, NAND_CMD_READ0 << FCR_CMD0_SHIFT); in fsl_elbc_do_read() 375 out_be32(&lbc->fcr, command << FCR_CMD0_SHIFT); in fsl_elbc_cmdfunc() 407 out_be32(&lbc->fcr, in fsl_elbc_cmdfunc() 421 __be32 fcr; in fsl_elbc_cmdfunc() local 439 fcr = (NAND_CMD_STATUS << FCR_CMD1_SHIFT) | in fsl_elbc_cmdfunc() 465 fcr |= NAND_CMD_READOOB << FCR_CMD0_SHIFT; in fsl_elbc_cmdfunc() [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/asm/ |
| H A D | sun3xflop.h | 39 unsigned char fcr; member 86 unsigned char fcr = sun3x_fdc.fcr; in sun3x_82072_fd_outb() local 89 fcr |= (FCR_DSEL0 | FCR_MTRON); in sun3x_82072_fd_outb() 91 fcr &= ~(FCR_DSEL0 | FCR_MTRON); in sun3x_82072_fd_outb() 94 if(fcr != sun3x_fdc.fcr) { in sun3x_82072_fd_outb() 95 *(sun3x_fdc.fcr_r) = fcr; in sun3x_82072_fd_outb() 96 sun3x_fdc.fcr = fcr; in sun3x_82072_fd_outb() 227 sun3x_fdc.fcr = 0; in sun3xflop_init() 251 sun3x_fdc.fcr |= (FCR_DSEL0 | FCR_EJECT); in sun3x_eject() 252 *(sun3x_fdc.fcr_r) = sun3x_fdc.fcr; in sun3x_eject() [all …]
|
| /OK3568_Linux_fs/kernel/lib/reed_solomon/ |
| H A D | reed_solomon.c | 71 int fcr, int prim, int nroots, gfp_t gfp) in codec_init() argument 84 rs->fcr = fcr; in codec_init() 135 for (i = 0, root = fcr * prim; i < nroots; i++, root += prim) { in codec_init() 214 int (*gffunc)(int), int fcr, in init_rs_internal() argument 224 if (fcr < 0 || fcr >= (1<<symsize)) in init_rs_internal() 253 if (fcr != cd->fcr) in init_rs_internal() 266 rs->codec = codec_init(symsize, gfpoly, gffunc, fcr, prim, nroots, gfp); in init_rs_internal() 288 struct rs_control *init_rs_gfp(int symsize, int gfpoly, int fcr, int prim, in init_rs_gfp() argument 291 return init_rs_internal(symsize, gfpoly, NULL, fcr, prim, nroots, gfp); in init_rs_gfp() 308 int fcr, int prim, int nroots) in init_rs_non_canonical() argument [all …]
|
| H A D | decode_rs.c | 18 int fcr = rs->fcr; variable 73 (fcr + i) * prim)]; 85 (fcr+i)*prim)]; 267 num2 = alpha_to[rs_modnn(rs, root[j] * (fcr - 1) + nn)]; 295 k = (fcr + i) * prim * (nn-loc[j]-1);
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/ |
| H A D | feature.c | 163 unsigned long fcr; in ohare_htw_scc_enable() local 189 fcr = MACIO_IN32(OHARE_FCR); in ohare_htw_scc_enable() 191 if (!(fcr & OH_SCC_ENABLE)) { in ohare_htw_scc_enable() 192 fcr |= OH_SCC_ENABLE; in ohare_htw_scc_enable() 200 fcr &= ~HRW_SCC_TRANS_EN_N; in ohare_htw_scc_enable() 201 MACIO_OUT32(OHARE_FCR, fcr); in ohare_htw_scc_enable() 202 fcr |= (rmask = HRW_RESET_SCC); in ohare_htw_scc_enable() 203 MACIO_OUT32(OHARE_FCR, fcr); in ohare_htw_scc_enable() 205 fcr |= (rmask = OH_SCC_RESET); in ohare_htw_scc_enable() 206 MACIO_OUT32(OHARE_FCR, fcr); in ohare_htw_scc_enable() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | rslib.h | 41 int fcr; member 82 struct rs_control *init_rs_gfp(int symsize, int gfpoly, int fcr, int prim, 98 static inline struct rs_control *init_rs(int symsize, int gfpoly, int fcr, in init_rs() argument 101 return init_rs_gfp(symsize, gfpoly, fcr, prim, nroots, GFP_KERNEL); in init_rs() 105 int fcr, int prim, int nroots);
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | fsl_elbc_nand.c | 211 in_be32(&lbc->fmr), in_be32(&lbc->fir), in_be32(&lbc->fcr)); in fsl_elbc_run_command() 261 out_be32(&lbc->fcr, (NAND_CMD_READ0 << FCR_CMD0_SHIFT) | in fsl_elbc_do_read() 271 out_be32(&lbc->fcr, in fsl_elbc_do_read() 274 out_be32(&lbc->fcr, NAND_CMD_READ0 << FCR_CMD0_SHIFT); in fsl_elbc_do_read() 337 out_be32(&lbc->fcr, command << FCR_CMD0_SHIFT); in fsl_elbc_cmdfunc() 366 out_be32(&lbc->fcr, in fsl_elbc_cmdfunc() 378 u32 fcr; in fsl_elbc_cmdfunc() local 387 fcr = (NAND_CMD_SEQIN << FCR_CMD0_SHIFT) | in fsl_elbc_cmdfunc() 397 fcr = (NAND_CMD_PAGEPROG << FCR_CMD1_SHIFT) | in fsl_elbc_cmdfunc() 411 fcr |= NAND_CMD_READOOB << FCR_CMD0_SHIFT; in fsl_elbc_cmdfunc() [all …]
|
| H A D | fsl_elbc_spl.c | 61 out_be32(®s->fcr, (NAND_CMD_READ0 << FCR_CMD0_SHIFT) | in nand_spl_load_image() 70 out_be32(®s->fcr, NAND_CMD_READ0 << FCR_CMD0_SHIFT); in nand_spl_load_image()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/am33xx/ |
| H A D | board.c | 67 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 70 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 73 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 75 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 77 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 79 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, },
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-at91/arm926ejs/ |
| H A D | eflash.c | 80 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GETD, &eefc->fcr); in flash_init() 115 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GLB, &eefc->fcr); in flash_init() 171 (pagenum << AT91_EEFC_FCR_FARG_SHIFT), &eefc->fcr); in flash_real_protect() 174 (pagenum << AT91_EEFC_FCR_FARG_SHIFT), &eefc->fcr); in flash_real_protect() 179 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GLB, &eefc->fcr); in flash_real_protect() 198 (pagenum << AT91_EEFC_FCR_FARG_SHIFT), &eefc->fcr); in erase_write_page()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 597 u32 fcr = 0x0, fpr = FPR_FILER_MASK; in ethflow_to_filer_rules() local 600 fcr = RQFCR_PID_DAH | RQFCR_CMP_NOMATCH | in ethflow_to_filer_rules() 603 priv->ftp_rqfcr[priv->cur_filer_idx] = fcr; in ethflow_to_filer_rules() 604 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules() 607 fcr = RQFCR_PID_DAL | RQFCR_CMP_NOMATCH | in ethflow_to_filer_rules() 610 priv->ftp_rqfcr[priv->cur_filer_idx] = fcr; in ethflow_to_filer_rules() 611 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules() 616 fcr = RQFCR_PID_VID | RQFCR_CMP_NOMATCH | RQFCR_HASH | in ethflow_to_filer_rules() 618 gfar_write_filer(priv, priv->cur_filer_idx, fcr, fpr); in ethflow_to_filer_rules() 620 priv->ftp_rqfcr[priv->cur_filer_idx] = fcr; in ethflow_to_filer_rules() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/lpc32xx/ |
| H A D | devices.c | 49 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 51 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 53 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, }, 55 .clock = CONFIG_SYS_NS16550_CLK, .fcr = UART_FCR_DEFVAL, },
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/8250/ |
| H A D | 8250_port.c | 85 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, 105 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01 | 114 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10 | 128 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01, 137 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01 | 146 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, 153 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_11, 160 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, 167 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, 174 .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, [all …]
|
| H A D | 8250_dma.c | 168 unsigned int rfl, i = 0, fcr = 0, cur_index = 0; in serial8250_rx_dma() local 175 fcr = UART_FCR_ENABLE_FIFO | UART_FCR_T_TRIG_10 | UART_FCR_R_TRIG_11; in serial8250_rx_dma() 176 serial_port_out(port, UART_FCR, fcr); in serial8250_rx_dma() 193 if (fcr) in serial8250_rx_dma() 194 serial_port_out(port, UART_FCR, p->fcr); in serial8250_rx_dma()
|
| /OK3568_Linux_fs/u-boot/drivers/serial/ |
| H A D | ns16550.c | 124 return plat->fcr; in ns16550_getfcr() 181 serial_out(ns16550_getfcr(com_port), &com_port->fcr); in NS16550_init() 199 serial_out(ns16550_getfcr(com_port), &com_port->fcr); in NS16550_reinit() 265 serial_dout(&com_port->fcr, UART_FCR_DEFVAL); in _debug_uart_init() 338 serial_dout(&com_port->fcr, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); in _debug_uart_clrc() 413 serial_dout(&com_port->fcr, UART_FCR_DEFVAL); in _debug_uart_init() 500 serial_out(UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT, &com_port->fcr); in ns16550_serial_clear() 592 plat->fcr = UART_FCR_DEFVAL; in ns16550_serial_ofdata_to_platdata() 594 plat->fcr |= UART_FCR_UME; in ns16550_serial_ofdata_to_platdata()
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | ns16550.h | 60 u32 fcr; member 68 UART_REG(fcr); /* 2 */ 99 #define iir fcr
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | ast_i2c.c | 75 writel(0, &priv->regs->fcr); in ast_i2c_init_bus() 80 &priv->regs->fcr); in ast_i2c_init_bus() 322 setbits_le32(®s->fcr, I2CD_M_HIGH_SPEED_EN in ast_i2c_set_speed()
|
| /OK3568_Linux_fs/kernel/arch/csky/abiv2/ |
| H A D | fpu.c | 160 user_fp->fcr = tmp1; in save_to_user_fp() 219 tmp1 = user_fp->fcr; in restore_from_user_fp()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | serial-tegra.c | 303 unsigned long fcr = tup->fcr_shadow; in tegra_uart_fifo_reset() local 310 fcr |= fcr_bits & (UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); in tegra_uart_fifo_reset() 311 tegra_uart_write(tup, fcr, UART_FCR); in tegra_uart_fifo_reset() 313 fcr &= ~UART_FCR_ENABLE_FIFO; in tegra_uart_fifo_reset() 314 tegra_uart_write(tup, fcr, UART_FCR); in tegra_uart_fifo_reset() 316 fcr |= fcr_bits & (UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); in tegra_uart_fifo_reset() 317 tegra_uart_write(tup, fcr, UART_FCR); in tegra_uart_fifo_reset() 318 fcr |= UART_FCR_ENABLE_FIFO; in tegra_uart_fifo_reset() 319 tegra_uart_write(tup, fcr, UART_FCR); in tegra_uart_fifo_reset()
|