Home
last modified time | relevance | path

Searched refs:n_words (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_bignum.c46 bn->n_words = BYTES2WORDS(max_size); in rk_bn_alloc()
57 memset(bn->data, 0x00, WORDS2BYTES(bn->n_words)); in rk_bn_free()
69 if (BYTES2WORDS(size) > bn->n_words) in rk_bn_set_data()
85 if (size < WORDS2BYTES(bn->n_words)) in rk_bn_get_data()
91 memcpy(data + size - WORDS2BYTES(bn->n_words), bn->data, bn->n_words); in rk_bn_get_data()
93 rk_reverse_memcpy(data + size - WORDS2BYTES(bn->n_words), in rk_bn_get_data()
94 bn->data, WORDS2BYTES(bn->n_words)); in rk_bn_get_data()
104 return WORDS2BYTES(bn->n_words); in rk_bn_get_size()
118 if (!bn || !bn->data || !bn->n_words) in rk_bn_highest_bit()
121 w = bn->data[bn->n_words - 1]; in rk_bn_highest_bit()
[all …]
H A Drk_crypto_v2_akcipher.c87 CRYPTO_DUMPHEX("n = ", ctx->n->data, BG_WORDS2BYTES(ctx->n->n_words)); in rk_rsa_setkey()
88 CRYPTO_DUMPHEX("e = ", ctx->e->data, BG_WORDS2BYTES(ctx->e->n_words)); in rk_rsa_setkey()
97 CRYPTO_DUMPHEX("d = ", ctx->d->data, BG_WORDS2BYTES(ctx->d->n_words)); in rk_rsa_setkey()
181 CRYPTO_DUMPHEX("in = ", in->data, BG_WORDS2BYTES(in->n_words)); in rk_rsa_calc()
195 CRYPTO_DUMPHEX("out = ", out->data, BG_WORDS2BYTES(out->n_words)); in rk_rsa_calc()
H A Drk_crypto_bignum.h16 u32 n_words; member
H A Drk_crypto_v2_pka.c521 u32 n_bits, n_words; in pka_div_bignum() local
524 n_words = ((u32)s + 31) / 32; in pka_div_bignum()
536 for (i = 0; i < n_words; i++) { in pka_div_bignum()
/OK3568_Linux_fs/kernel/drivers/irqchip/
H A Dirq-bcm7038-l1.c43 unsigned int n_words; member
86 return (0 * intc->n_words + word) * sizeof(u32); in reg_status()
92 return (1 * intc->n_words + word) * sizeof(u32); in reg_mask_status()
98 return (2 * intc->n_words + word) * sizeof(u32); in reg_mask_set()
104 return (3 * intc->n_words + word) * sizeof(u32); in reg_mask_clr()
138 for (idx = 0; idx < intc->n_words; idx++) { in bcm7038_l1_irq_handle()
260 unsigned int i, n_words, parent_irq; in bcm7038_l1_init_one() local
266 n_words = sz / REG_BYTES_PER_IRQ_WORD; in bcm7038_l1_init_one()
268 if (n_words > MAX_WORDS) in bcm7038_l1_init_one()
270 else if (!intc->n_words) in bcm7038_l1_init_one()
[all …]
H A Dirq-bcm6345-l1.c78 unsigned int n_words; member
94 return (1 * intc->n_words - word - 1) * sizeof(u32); in reg_enable()
96 return (0 * intc->n_words + word) * sizeof(u32); in reg_enable()
104 return (2 * intc->n_words - word - 1) * sizeof(u32); in reg_status()
106 return (1 * intc->n_words + word) * sizeof(u32); in reg_status()
131 for (idx = 0; idx < intc->n_words; idx++) { in bcm6345_l1_irq_handle()
243 unsigned int i, n_words; in bcm6345_l1_init_one() local
248 n_words = sz / REG_BYTES_PER_IRQ_WORD; in bcm6345_l1_init_one()
250 if (!intc->n_words) in bcm6345_l1_init_one()
251 intc->n_words = n_words; in bcm6345_l1_init_one()
[all …]
H A Dirq-bcm7120-l2.c42 unsigned int n_words; member
64 for (idx = 0; idx < b->n_words; idx++) { in bcm7120_l2_intc_irq_handle()
131 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_init_one()
135 irq * data->n_words + idx); in bcm7120_l2_intc_init_one()
166 data->n_words = 1; in bcm7120_l2_intc_iomap_7120()
169 data->irq_fwd_mask, data->n_words); in bcm7120_l2_intc_iomap_7120()
178 (ret != (sizeof(__be32) * data->num_parent_irqs * data->n_words))) { in bcm7120_l2_intc_iomap_7120()
213 data->n_words = gc_idx; in bcm7120_l2_intc_iomap_3380()
261 data->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * data->n_words, in bcm7120_l2_intc_probe()
282 for (idx = 0; idx < data->n_words; idx++) { in bcm7120_l2_intc_probe()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-qup.c142 int n_words; member
174 return controller->n_words * controller->w_size; in spi_qup_len()
466 qup->n_words = spi_qup_sgl_get_nents_len(rx_sgl, in spi_qup_do_dma()
469 qup->n_words = spi_qup_sgl_get_nents_len(tx_sgl, in spi_qup_do_dma()
471 if (!qup->n_words) in spi_qup_do_dma()
519 int ret, n_words, iterations, offset = 0; in spi_qup_do_pio() local
521 n_words = qup->n_words; in spi_qup_do_pio()
522 iterations = n_words / SPI_MAX_XFER; /* round down */ in spi_qup_do_pio()
528 qup->n_words = SPI_MAX_XFER; in spi_qup_do_pio()
530 qup->n_words = n_words % SPI_MAX_XFER; in spi_qup_do_pio()
[all …]
H A Dspi-xilinx.c270 int n_words, tx_words, rx_words; in xilinx_spi_txrx_bufs() local
274 n_words = min(remaining_words, xspi->buffer_size); in xilinx_spi_txrx_bufs()
276 tx_words = n_words; in xilinx_spi_txrx_bufs()
300 rx_words = n_words; in xilinx_spi_txrx_bufs()
303 if (rx_words == n_words && !(stalled--) && in xilinx_spi_txrx_bufs()
325 remaining_words -= n_words; in xilinx_spi_txrx_bufs()
362 int n_words = 0; in xilinx_spi_find_buffer_size() local
375 n_words++; in xilinx_spi_find_buffer_size()
378 return n_words; in xilinx_spi_find_buffer_size()
H A Dspi-sifive.c265 unsigned int n_words = min(remaining_words, spi->fifo_depth); in sifive_spi_transfer_one() local
269 for (i = 0; i < n_words; i++) in sifive_spi_transfer_one()
275 n_words - 1); in sifive_spi_transfer_one()
279 for (i = 0; i < n_words; i++) in sifive_spi_transfer_one()
286 remaining_words -= n_words; in sifive_spi_transfer_one()
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dti-adc084s021.c75 int n_words = (adc->spi_trans.len >> 1) - 1; /* Discard first word */ in adc084s021_adc_conversion() local
84 for (; i < n_words; i++) in adc084s021_adc_conversion()
/OK3568_Linux_fs/u-boot/drivers/crypto/rockchip/
H A Dcrypto_v2.c1373 u32 n_bits, n_words; in rockchip_crypto_rsa_verify() local
1387 n_words = BITS2WORD(n_bits); in rockchip_crypto_rsa_verify()
1389 ret = rk_mpa_alloc(&mpa_m, sign, n_words); in rockchip_crypto_rsa_verify()
1393 ret = rk_mpa_alloc(&mpa_e, ctx->e, n_words); in rockchip_crypto_rsa_verify()
1397 ret = rk_mpa_alloc(&mpa_n, ctx->n, n_words); in rockchip_crypto_rsa_verify()
1402 ret = rk_mpa_alloc(&mpa_c, ctx->c, n_words); in rockchip_crypto_rsa_verify()
1407 ret = rk_mpa_alloc(&mpa_result, NULL, n_words); in rockchip_crypto_rsa_verify()
H A Dcrypto_v2_pka.c636 u32 n_bits, n_words; in rk_pka_div_long_num() local
639 n_words = ((u32)s + 31) / 32; in rk_pka_div_long_num()
654 for (i = 0; i < n_words; i++) { in rk_pka_div_long_num()
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dfw.c200 int n_words = le32_to_cpu(mfu_dump_notif->data_size) / sizeof(__le32); in iwl_mvm_mfu_assert_dump_notif() local
207 for (i = 0; i < n_words; i++) in iwl_mvm_mfu_assert_dump_notif()
211 n_words + i, in iwl_mvm_mfu_assert_dump_notif()