des3 30 drivers/crypto/ccp/ccp-crypto-des3.c if (ctx->u.des3.mode != CCP_DES3_MODE_ECB) des3 51 drivers/crypto/ccp/ccp-crypto-des3.c ctx->u.des3.type = CCP_DES3_TYPE_168; des3 52 drivers/crypto/ccp/ccp-crypto-des3.c ctx->u.des3.mode = alg->mode; des3 53 drivers/crypto/ccp/ccp-crypto-des3.c ctx->u.des3.key_len = key_len; des3 55 drivers/crypto/ccp/ccp-crypto-des3.c memcpy(ctx->u.des3.key, key, key_len); des3 56 drivers/crypto/ccp/ccp-crypto-des3.c sg_init_one(&ctx->u.des3.key_sg, ctx->u.des3.key, key_len); des3 69 drivers/crypto/ccp/ccp-crypto-des3.c if (!ctx->u.des3.key_len) des3 72 drivers/crypto/ccp/ccp-crypto-des3.c if (((ctx->u.des3.mode == CCP_DES3_MODE_ECB) || des3 73 drivers/crypto/ccp/ccp-crypto-des3.c (ctx->u.des3.mode == CCP_DES3_MODE_CBC)) && des3 77 drivers/crypto/ccp/ccp-crypto-des3.c if (ctx->u.des3.mode != CCP_DES3_MODE_ECB) { des3 90 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.type = ctx->u.des3.type; des3 91 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.mode = ctx->u.des3.mode; des3 92 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.action = (encrypt) des3 95 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.key = &ctx->u.des3.key_sg; des3 96 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.key_len = ctx->u.des3.key_len; des3 97 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.iv = iv_sg; des3 98 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.iv_len = iv_len; des3 99 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.src = req->src; des3 100 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.src_len = req->nbytes; des3 101 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.dst = req->dst; des3 123 drivers/crypto/ccp/ccp-crypto-des3.c ctx->u.des3.key_len = 0; des3 265 drivers/crypto/ccp/ccp-crypto.h struct ccp_des3_ctx des3; des3 571 drivers/crypto/ccp/ccp-dev-v3.c .des3 = NULL, des3 110 drivers/crypto/ccp/ccp-dev-v5.c } des3; des3 144 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_DES3_SIZE(p) ((p)->des3.size) des3 145 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_DES3_ENCRYPT(p) ((p)->des3.encrypt) des3 146 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_DES3_MODE(p) ((p)->des3.mode) des3 147 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_DES3_TYPE(p) ((p)->des3.type) des3 426 drivers/crypto/ccp/ccp-dev-v5.c CCP_DES3_ENCRYPT(&function) = op->u.des3.action; des3 427 drivers/crypto/ccp/ccp-dev-v5.c CCP_DES3_MODE(&function) = op->u.des3.mode; des3 428 drivers/crypto/ccp/ccp-dev-v5.c CCP_DES3_TYPE(&function) = op->u.des3.type; des3 1091 drivers/crypto/ccp/ccp-dev-v5.c .des3 = ccp5_perform_des3, des3 548 drivers/crypto/ccp/ccp-dev.h struct ccp_des3_op des3; des3 654 drivers/crypto/ccp/ccp-dev.h int (*des3)(struct ccp_op *); des3 1275 drivers/crypto/ccp/ccp-ops.c struct ccp_des3_engine *des3 = &cmd->u.des3; des3 1289 drivers/crypto/ccp/ccp-ops.c if (!cmd_q->ccp->vdata->perform->des3) des3 1292 drivers/crypto/ccp/ccp-ops.c if (des3->key_len != DES3_EDE_KEY_SIZE) des3 1295 drivers/crypto/ccp/ccp-ops.c if (((des3->mode == CCP_DES3_MODE_ECB) || des3 1296 drivers/crypto/ccp/ccp-ops.c (des3->mode == CCP_DES3_MODE_CBC)) && des3 1297 drivers/crypto/ccp/ccp-ops.c (des3->src_len & (DES3_EDE_BLOCK_SIZE - 1))) des3 1300 drivers/crypto/ccp/ccp-ops.c if (!des3->key || !des3->src || !des3->dst) des3 1303 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) { des3 1304 drivers/crypto/ccp/ccp-ops.c if (des3->iv_len != DES3_EDE_BLOCK_SIZE) des3 1307 drivers/crypto/ccp/ccp-ops.c if (!des3->iv) des3 1320 drivers/crypto/ccp/ccp-ops.c op.init = (des3->mode == CCP_DES3_MODE_ECB) ? 0 : 1; des3 1321 drivers/crypto/ccp/ccp-ops.c op.u.des3.type = des3->type; des3 1322 drivers/crypto/ccp/ccp-ops.c op.u.des3.mode = des3->mode; des3 1323 drivers/crypto/ccp/ccp-ops.c op.u.des3.action = des3->action; des3 1341 drivers/crypto/ccp/ccp-ops.c dm_offset = CCP_SB_BYTES - des3->key_len; /* Basic offset */ des3 1343 drivers/crypto/ccp/ccp-ops.c len_singlekey = des3->key_len / 3; des3 1345 drivers/crypto/ccp/ccp-ops.c des3->key, 0, len_singlekey); des3 1349 drivers/crypto/ccp/ccp-ops.c des3->key, len_singlekey, len_singlekey); des3 1353 drivers/crypto/ccp/ccp-ops.c des3->key, 2 * len_singlekey, len_singlekey); des3 1370 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) { des3 1380 drivers/crypto/ccp/ccp-ops.c dm_offset = CCP_SB_BYTES - des3->iv_len; des3 1381 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&ctx, dm_offset, des3->iv, 0, des3 1382 drivers/crypto/ccp/ccp-ops.c des3->iv_len); des3 1399 drivers/crypto/ccp/ccp-ops.c if (sg_virt(des3->src) == sg_virt(des3->dst)) des3 1402 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_data(&src, cmd_q, des3->src, des3->src_len, des3 1411 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_data(&dst, cmd_q, des3->dst, des3->src_len, des3 1430 drivers/crypto/ccp/ccp-ops.c ret = cmd_q->ccp->vdata->perform->des3(&op); des3 1439 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) { des3 1449 drivers/crypto/ccp/ccp-ops.c ccp_get_dm_area(&ctx, dm_offset, des3->iv, 0, des3 1460 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) des3 666 drivers/crypto/n2_core.c u8 des3[3 * DES_KEY_SIZE]; des3 791 drivers/crypto/n2_core.c memcpy(ctx->key.des3, key, keylen); des3 75 drivers/mmc/host/dw_mmc.c u32 des3; /* Reserved */ des3 100 drivers/mmc/host/dw_mmc.c __le32 des3; /* buffer 2 physical address */ des3 520 drivers/mmc/host/dw_mmc.c p->des3 = 0; des3 538 drivers/mmc/host/dw_mmc.c p->des3 = cpu_to_le32(host->sg_dma + des3 545 drivers/mmc/host/dw_mmc.c p->des3 = cpu_to_le32(host->sg_dma); des3 112 drivers/net/ethernet/stmicro/stmmac/chain_mode.c p->basic.des3 = cpu_to_le32((unsigned int)dma_phy); des3 115 drivers/net/ethernet/stmicro/stmmac/chain_mode.c p->basic.des3 = cpu_to_le32((unsigned int)phy_addr); des3 121 drivers/net/ethernet/stmicro/stmmac/chain_mode.c p->des3 = cpu_to_le32((unsigned int)dma_phy); des3 124 drivers/net/ethernet/stmicro/stmmac/chain_mode.c p->des3 = cpu_to_le32((unsigned int)phy_addr); des3 138 drivers/net/ethernet/stmicro/stmmac/chain_mode.c p->des3 = cpu_to_le32((unsigned int)(rx_q->dma_rx_phy + des3 156 drivers/net/ethernet/stmicro/stmmac/chain_mode.c p->des3 = cpu_to_le32((unsigned int)((tx_q->dma_tx_phy + des3 162 drivers/net/ethernet/stmicro/stmmac/descs.h __le32 des3; des3 23 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c tdes3 = le32_to_cpu(p->des3); des3 79 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c unsigned int rdes3 = le32_to_cpu(p->des3); des3 181 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c return (le32_to_cpu(p->des3) & TDES3_OWN) >> TDES3_OWN_SHIFT; des3 186 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 |= cpu_to_le32(TDES3_OWN); des3 191 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = cpu_to_le32(RDES3_OWN | RDES3_BUFFER1_VALID_ADDR); des3 194 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 |= cpu_to_le32(RDES3_INT_ON_COMPLETION_EN); des3 199 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c return (le32_to_cpu(p->des3) & TDES3_LAST_DESCRIPTOR) des3 205 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c return (le32_to_cpu(p->des3) & RDES3_PACKET_SIZE_MASK); des3 216 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c if (le32_to_cpu(p->des3) & TDES3_CONTEXT_TYPE) des3 220 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c if (le32_to_cpu(p->des3) & TDES3_TIMESTAMP_STATUS) des3 243 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c unsigned int rdes3 = le32_to_cpu(p->des3); des3 271 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c if (likely(le32_to_cpu(p->des3) & RDES3_RDES1_VALID)) { des3 306 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = 0; des3 313 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c unsigned int tdes3 = le32_to_cpu(p->des3); des3 344 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = cpu_to_le32(tdes3); des3 352 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c unsigned int tdes3 = le32_to_cpu(p->des3); des3 387 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = cpu_to_le32(tdes3); des3 395 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = 0; des3 414 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c le32_to_cpu(p->des2), le32_to_cpu(p->des3)); des3 424 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = cpu_to_le32(TDES3_CONTEXT_TYPE | TDES3_CTXT_TCMSSV); des3 443 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = 0; des3 450 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 |= cpu_to_le32(sarc_type & TDES3_SA_INSERT_CTRL_MASK); des3 468 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = 0; des3 479 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 = cpu_to_le32(des | TDES3_IVLTV); des3 483 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 |= cpu_to_le32(tag & TDES3_VLAN_TAG); des3 484 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 |= cpu_to_le32(TDES3_VLTV); des3 486 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c p->des3 |= cpu_to_le32(TDES3_CONTEXT_TYPE); des3 14 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int tdes3 = le32_to_cpu(p->des3); des3 28 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int rdes3 = le32_to_cpu(p->des3); des3 49 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c return (le32_to_cpu(p->des3) & XGMAC_TDES3_OWN) > 0; des3 54 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(XGMAC_TDES3_OWN); des3 59 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(XGMAC_RDES3_OWN); des3 62 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(XGMAC_RDES3_IOC); des3 67 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c return (le32_to_cpu(p->des3) & XGMAC_RDES3_LD) > 0; des3 72 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c return (le32_to_cpu(p->des3) & XGMAC_RDES3_PL); des3 99 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int rdes3 = le32_to_cpu(p->des3); des3 120 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int rdes3 = le32_to_cpu(p->des3); des3 140 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = 0; des3 147 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int tdes3 = le32_to_cpu(p->des3); des3 178 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = cpu_to_le32(tdes3); des3 186 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int tdes3 = le32_to_cpu(p->des3); des3 218 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = cpu_to_le32(tdes3); des3 226 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = 0; des3 239 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = cpu_to_le32(XGMAC_TDES3_CTXT | XGMAC_TDES3_TCMSSV); des3 258 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = 0; des3 264 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c unsigned int rdes3 = le32_to_cpu(p->des3); des3 291 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c if (le32_to_cpu(p->des3) & XGMAC_RDES3_L34T) des3 299 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = cpu_to_le32(upper_32_bits(addr)); des3 306 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(sarc_type & XGMAC_TDES3_SAIC); des3 315 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = 0; des3 326 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 = cpu_to_le32(des | XGMAC_TDES3_IVLTV); des3 330 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(tag & XGMAC_TDES3_VT); des3 331 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(XGMAC_TDES3_VLTV); des3 333 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c p->des3 |= cpu_to_le32(XGMAC_TDES3_CTXT); des3 397 drivers/net/ethernet/stmicro/stmmac/enh_desc.c ns += le32_to_cpu(p->des3) * 1000000000ULL; des3 412 drivers/net/ethernet/stmicro/stmmac/enh_desc.c (le32_to_cpu(p->des3) == 0xffffffff)) des3 434 drivers/net/ethernet/stmicro/stmmac/enh_desc.c ep->basic.des2, ep->basic.des3); des3 255 drivers/net/ethernet/stmicro/stmmac/norm_desc.c ns += le32_to_cpu(p->des3) * 1000000000ULL; des3 265 drivers/net/ethernet/stmicro/stmmac/norm_desc.c (le32_to_cpu(p->des3) == 0xffffffff)) des3 286 drivers/net/ethernet/stmicro/stmmac/norm_desc.c p->des2, p->des3); des3 50 drivers/net/ethernet/stmicro/stmmac/ring_mode.c desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); des3 70 drivers/net/ethernet/stmicro/stmmac/ring_mode.c desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); des3 83 drivers/net/ethernet/stmicro/stmmac/ring_mode.c desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); des3 111 drivers/net/ethernet/stmicro/stmmac/ring_mode.c p->des3 = cpu_to_le32(le32_to_cpu(p->des2) + BUF_SIZE_8KiB); des3 117 drivers/net/ethernet/stmicro/stmmac/ring_mode.c p->des3 = cpu_to_le32(le32_to_cpu(p->des2) + BUF_SIZE_8KiB); des3 130 drivers/net/ethernet/stmicro/stmmac/ring_mode.c p->des3 = 0; des3 4050 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c le32_to_cpu(ep->basic.des3)); des3 4056 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c le32_to_cpu(p->des2), le32_to_cpu(p->des3)); des3 653 include/linux/ccp.h struct ccp_des3_engine des3;