Home
last modified time | relevance | path

Searched full:ctr (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/linux/drivers/isdn/capi/
H A Dkcapi.c66 capi_ctr_get(struct capi_ctr *ctr) in capi_ctr_get() argument
68 if (!try_module_get(ctr->owner)) in capi_ctr_get()
70 return ctr; in capi_ctr_get()
74 capi_ctr_put(struct capi_ctr *ctr) in capi_ctr_put() argument
76 module_put(ctr->owner); in capi_ctr_put()
147 register_appl(struct capi_ctr *ctr, u16 applid, capi_register_params *rparam) in register_appl() argument
149 ctr = capi_ctr_get(ctr); in register_appl()
151 if (ctr) in register_appl()
152 ctr->register_appl(ctr, applid, rparam); in register_appl()
159 static void release_appl(struct capi_ctr *ctr, u16 applid) in release_appl() argument
[all …]
H A Dkcapi_proc.c66 struct capi_ctr *ctr = *(struct capi_ctr **) v; in controller_show() local
68 if (!ctr) in controller_show()
72 ctr->cnr, ctr->driver_name, in controller_show()
73 state2str(ctr->state), in controller_show()
74 ctr->name, in controller_show()
75 ctr->procinfo ? ctr->procinfo(ctr) : ""); in controller_show()
82 struct capi_ctr *ctr = *(struct capi_ctr **) v; in contrstats_show() local
84 if (!ctr) in contrstats_show()
88 ctr->cnr, in contrstats_show()
89 ctr->nrecvctlpkt, in contrstats_show()
[all …]
/linux/drivers/comedi/drivers/
H A Damplc_dio200.c35 * 1 CTR-Y1 PPI-Y PPI-Y
36 * 2 CTR-Y2 CTR-Z1* CTR-Z1
37 * 3 CTR-Z1 INTERRUPT* CTR-Z2
38 * 4 CTR-Z2 INTERRUPT
44 * 0 CTR-X1 PPI-X
45 * 1 CTR-X2 PPI-Y
46 * 2 CTR-Y1 PPI-Z
47 * 3 CTR-Y2 INTERRUPT
48 * 4 CTR-Z1
49 * 5 CTR-Z2
[all …]
H A Damplc_dio200_pci.c34 * 2 CTR-Z1 PPI-Y UNUSED
35 * 3 CTR-Z2 UNUSED UNUSED
36 * 4 INTERRUPT CTR-Z1 CTR-Z1
37 * 5 CTR-Z2 CTR-Z2
49 * 4 CTR-Z1
50 * 5 CTR-Z2
64 * Each CTR is a 8254 chip providing 3 16-bit counter channels. Each
178 * 4 CTR-Z1-OUT1 CTR-Z1-OUT1 CTR-Z1-OUT1
179 * 5 CTR-Z2-OUT1 CTR-Z2-OUT1 CTR-Z2-OUT1
188 * 4 PPI-Z-C0 CTR-Z1-OUT1
[all …]
H A Dni_660x.c1094 * 8 8 CTR 7 OUT in ni_660x_auto_attach()
1095 * 9 9 CTR 7 AUX in ni_660x_auto_attach()
1096 * 10 10 CTR 7 GATE in ni_660x_auto_attach()
1097 * 11 11 CTR 7 SOURCE in ni_660x_auto_attach()
1098 * 12 12 CTR 6 OUT in ni_660x_auto_attach()
1099 * 13 13 CTR 6 AUX in ni_660x_auto_attach()
1100 * 14 14 CTR 6 GATE in ni_660x_auto_attach()
1101 * 15 15 CTR 6 SOURCE in ni_660x_auto_attach()
1102 * 16 16 CTR 5 OUT in ni_660x_auto_attach()
1103 * 17 17 CTR 5 AUX in ni_660x_auto_attach()
[all …]
/linux/drivers/media/platform/qcom/venus/
H A Dvenc.c664 struct venc_controls *ctr = &inst->controls.enc; in venc_set_properties() local
709 ctr->h264_entropy_mode); in venc_set_properties()
719 ctr->h264_loop_filter_mode); in venc_set_properties()
720 deblock.slice_alpha_offset = ctr->h264_loop_filter_alpha; in venc_set_properties()
721 deblock.slice_beta_offset = ctr->h264_loop_filter_beta; in venc_set_properties()
729 if (ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_HIGH || in venc_set_properties()
730 ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH) in venc_set_properties()
731 h264_transform.enable_type = ctr->h264_8x8_transform; in venc_set_properties()
737 if (ctr->layer_bitrate) { in venc_set_properties()
741 ret = hfi_session_set_property(inst, ptype, &ctr->h264_hier_layers); in venc_set_properties()
[all …]
/linux/drivers/parport/
H A Dparport_gsc.h52 /* Contents of CTR. */
53 unsigned char ctr; member
55 /* Bitmask of writable CTR bits. */
93 unsigned char ctr = priv->ctr; in __parport_gsc_frob_control() local
97 ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_gsc_frob_control()
99 ctr = (ctr & ~mask) ^ val; in __parport_gsc_frob_control()
100 ctr &= priv->ctr_writable; /* only write writable bits. */ in __parport_gsc_frob_control()
101 parport_writeb (ctr, CONTROL (p)); in __parport_gsc_frob_control()
102 priv->ctr = ctr; /* Update soft copy */ in __parport_gsc_frob_control()
103 return ctr; in __parport_gsc_frob_control()
[all …]
/linux/include/linux/
H A Dparport_pc.h20 /* Contents of CTR. */
21 unsigned char ctr; member
23 /* Bitmask of writable CTR bits. */
103 dcr = i ? priv->ctr : inb (CONTROL (p)); in dump_parport_state()
136 unsigned char ctr = priv->ctr; in __parport_pc_frob_control() local
140 mask, val, ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_pc_frob_control()
142 ctr = (ctr & ~mask) ^ val; in __parport_pc_frob_control()
143 ctr &= priv->ctr_writable; /* only write writable bits. */ in __parport_pc_frob_control()
144 outb (ctr, CONTROL (p)); in __parport_pc_frob_control()
145 priv->ctr = ctr; /* Update soft copy */ in __parport_pc_frob_control()
[all …]
/linux/lib/crypto/
H A Dcurve25519-hacl64.c88 u32 ctr = 0; in fproduct_carry_wide_() local
89 u128 tctr = tmp[ctr]; in fproduct_carry_wide_()
90 u128 tctrp1 = tmp[ctr + 1]; in fproduct_carry_wide_()
93 tmp[ctr] = ((u128)(r0)); in fproduct_carry_wide_()
94 tmp[ctr + 1] = ((tctrp1) + (c)); in fproduct_carry_wide_()
97 u32 ctr = 1; in fproduct_carry_wide_() local
98 u128 tctr = tmp[ctr]; in fproduct_carry_wide_()
99 u128 tctrp1 = tmp[ctr + 1]; in fproduct_carry_wide_()
102 tmp[ctr] = ((u128)(r0)); in fproduct_carry_wide_()
103 tmp[ctr + 1] = ((tctrp1) + (c)); in fproduct_carry_wide_()
[all …]
H A Daesgcm.c21 * In AES-GCM, both the GHASH key derivation and the CTR mode in aesgcm_encrypt_block()
82 * @ctr: Points to the counter value.
89 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) in aesgcm_mac() argument
99 ctr[3] = cpu_to_be32(1); in aesgcm_mac()
100 aesgcm_encrypt_block(&ctx->aes_key, buf, ctr); in aesgcm_mac()
108 int len, __be32 *ctr) in aesgcm_crypt() argument
118 * stream ciphers such as AES-CTR. Given the range of 'int in aesgcm_crypt()
121 ctr[3] = cpu_to_be32(n++); in aesgcm_crypt()
122 aesgcm_encrypt_block(&ctx->aes_key, buf, ctr); in aesgcm_crypt()
151 __be32 ctr[ in aesgcm_encrypt() local
183 __be32 ctr[4]; aesgcm_decrypt() local
[all...]
/linux/arch/arc/include/asm/
H A Datomic-llsc.h14 "1: llock %[val], [%[ctr]] \n" \
16 " scond %[val], [%[ctr]] \n" \
19 : [ctr] "r" (&v->counter), /* Not "m": llock only supports reg direct addr mode */ \
30 "1: llock %[val], [%[ctr]] \n" \
32 " scond %[val], [%[ctr]] \n" \
35 : [ctr] "r" (&v->counter), \
51 "1: llock %[orig], [%[ctr]] \n" \
53 " scond %[val], [%[ctr]] \n" \
57 : [ctr] "r" (&v->counter), \
/linux/crypto/
H A Dgcm.c22 struct crypto_skcipher_spawn ctr; member
27 struct crypto_skcipher *ctr; member
93 struct crypto_skcipher *ctr = ctx->ctr; in crypto_gcm_setkey() local
105 crypto_skcipher_clear_flags(ctr, CRYPTO_TFM_REQ_MASK); in crypto_gcm_setkey()
106 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
108 err = crypto_skcipher_setkey(ctr, key, keylen); in crypto_gcm_setkey()
112 data = kzalloc(sizeof(*data) + crypto_skcipher_reqsize(ctr), in crypto_gcm_setkey()
119 skcipher_request_set_tfm(&data->req, ctr); in crypto_gcm_setkey()
184 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt()
520 struct crypto_skcipher *ctr; in crypto_gcm_init_tfm() local
[all …]
H A Dtcrypt.c1481 ret = min(ret, tcrypt_test("ctr(des)")); in do_test()
1487 ret = min(ret, tcrypt_test("ctr(des3_ede)")); in do_test()
1501 ret = min(ret, tcrypt_test("ctr(blowfish)")); in do_test()
1507 ret = min(ret, tcrypt_test("ctr(twofish)")); in do_test()
1515 ret = min(ret, tcrypt_test("ctr(serpent)")); in do_test()
1525 ret = min(ret, tcrypt_test("ctr(aes)")); in do_test()
1526 ret = min(ret, tcrypt_test("rfc3686(ctr(aes))")); in do_test()
1545 ret = min(ret, tcrypt_test("ctr(cast5)")); in do_test()
1551 ret = min(ret, tcrypt_test("ctr(cast6)")); in do_test()
1608 ret = min(ret, tcrypt_test("ctr(camellia)")); in do_test()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc_counters.c49 struct efx_tc_counter_index *ctr = ptr; in efx_tc_counter_id_free() local
51 WARN_ON(refcount_read(&ctr->ref)); in efx_tc_counter_id_free()
52 kfree(ctr); in efx_tc_counter_id_free()
212 struct efx_tc_counter_index *ctr) in efx_tc_flower_put_counter_index() argument
214 if (!refcount_dec_and_test(&ctr->ref)) in efx_tc_flower_put_counter_index()
216 rhashtable_remove_fast(&efx->tc->counter_id_ht, &ctr->linkage, in efx_tc_flower_put_counter_index()
218 efx_tc_flower_release_counter(efx, ctr->cnt); in efx_tc_flower_put_counter_index()
219 kfree(ctr); in efx_tc_flower_put_counter_index()
226 struct efx_tc_counter_index *ctr, *old; in efx_tc_flower_get_counter_index() local
229 ctr = kzalloc_obj(*ctr, GFP_USER); in efx_tc_flower_get_counter_index()
[all …]
/linux/arch/arm64/crypto/
H A Daes-ce-ccm-core.S52 ldr x8, [x6, #8] /* load lower ctr */
53 CPU_LE( rev x8, x8 ) /* keep swabbed ctr in reg */
55 ld1 {v1.8b}, [x6] /* load upper ctr */
59 ins v1.d[1], x9 /* no carry in lower ctr */
68 eor v6.16b, v1.16b, v2.16b /* xor with crypted ctr */
70 eor v2.16b, v2.16b, v1.16b /* xor with crypted ctr */
77 str x8, [x6, #8] /* store lsb end of ctr (BE) */
121 * u8 ctr[], u8 const final_iv[]);
124 * u8 ctr[], u8 const final_iv[]);
H A Dsm4-ce-ccm-core.S113 * x3: ctr (big endian, 128 bit)
188 umov w9, v8.b[0] /* get top crypted CTR byte */
191 eor w9, w9, w0 /* w9 = CTR ^ input */
210 /* store new CTR */
225 * x3: ctr (big endian, 128 bit)
300 umov w9, v8.b[0] /* get top crypted CTR byte */
303 eor w9, w9, w0 /* w9 = CTR ^ input */
322 /* store new CTR */
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcore.c270 u8 ctr; in ath6kl_core_create() local
307 for (ctr = 0; ctr < AP_MAX_NUM_STA; ctr++) { in ath6kl_core_create()
308 spin_lock_init(&ar->sta_list[ctr].psq_lock); in ath6kl_core_create()
309 skb_queue_head_init(&ar->sta_list[ctr].psq); in ath6kl_core_create()
310 skb_queue_head_init(&ar->sta_list[ctr].apsdq); in ath6kl_core_create()
311 ar->sta_list[ctr].mgmt_psq_len = 0; in ath6kl_core_create()
312 INIT_LIST_HEAD(&ar->sta_list[ctr].mgmt_psq); in ath6kl_core_create()
313 ar->sta_list[ctr].aggr_conn = in ath6kl_core_create()
315 if (!ar->sta_list[ctr].aggr_conn) { in ath6kl_core_create()
/linux/net/mac80211/
H A Dfils_aead.c79 key_len /= 2; /* S2V key || CTR key */ in aes_siv_encrypt()
99 * overwriting this during AES-CTR. in aes_siv_encrypt()
105 /* IV for CTR before encrypted data */ in aes_siv_encrypt()
108 /* Synthetic IV to be used as the initial counter in CTR: in aes_siv_encrypt()
114 /* CTR */ in aes_siv_encrypt()
116 tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC); in aes_siv_encrypt()
121 /* K2 for CTR */ in aes_siv_encrypt()
159 key_len /= 2; /* S2V key || CTR key */ in aes_siv_decrypt()
167 /* Synthetic IV to be used as the initial counter in CTR: in aes_siv_decrypt()
173 /* CTR */ in aes_siv_decrypt()
[all …]
/linux/tools/tracing/rtla/tests/
H A Dengine.sh6 ctr=0
49 ctr=$(($ctr + 1))
77 echo "ok $ctr - $1"
80 echo "not ok $ctr - $1"
134 [ -z "$TEST_COUNT" ] && TEST_COUNT=$ctr exec bash $0 || true
/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_crypto.c58 unsigned long ctr; in qat_crypto_get_instance_node() local
64 ctr = atomic_read(&tmp_dev->ref_count); in qat_crypto_get_instance_node()
65 if (best > ctr) { in qat_crypto_get_instance_node()
67 best = ctr; in qat_crypto_get_instance_node()
89 unsigned long ctr; in qat_crypto_get_instance_node() local
91 ctr = atomic_read(&tmp_inst->refctr); in qat_crypto_get_instance_node()
92 if (best > ctr) { in qat_crypto_get_instance_node()
94 best = ctr; in qat_crypto_get_instance_node()
/linux/net/rds/
H A Dstats.c88 struct rds_info_counter ctr; in rds_stats_info_copy()
92 BUG_ON(strlen(names[i]) >= sizeof(ctr.name)); in rds_stats_info_copy()
93 strscpy_pad(ctr.name, names[i]); in rds_stats_info_copy()
94 ctr.value = values[i]; in rds_stats_info_copy()
96 rds_info_copy(iter, &ctr, sizeof(ctr)); in rds_stats_info_copy()
87 struct rds_info_counter ctr; rds_stats_info_copy() local
/linux/drivers/rtc/
H A Drtc-macsmc.c33 u64 ctr = 0, off = 0; in macsmc_rtc_get_time() local
39 ret = apple_smc_read(rtc->smc, SMC_KEY(CLKM), &ctr, RTC_BYTES); in macsmc_rtc_get_time()
57 now = sign_extend64(ctr + off, RTC_BITS - 1) >> RTC_SEC_SHIFT; in macsmc_rtc_get_time()
66 u64 ctr = 0, off = 0; in macsmc_rtc_set_time() local
69 ret = apple_smc_read(rtc->smc, SMC_KEY(CLKM), &ctr, RTC_BYTES); in macsmc_rtc_set_time()
76 off = (rtc_tm_to_time64(tm) << RTC_SEC_SHIFT) - ctr; in macsmc_rtc_set_time()
/linux/fs/xfs/
H A Dxfs_fsops.c365 enum xfs_free_counter ctr, in xfs_reserve_blocks() argument
373 ASSERT(ctr < XC_FREE_NR); in xfs_reserve_blocks()
393 if (mp->m_free[ctr].res_total > request) { in xfs_reserve_blocks()
394 lcounter = mp->m_free[ctr].res_avail - request; in xfs_reserve_blocks()
397 mp->m_free[ctr].res_avail -= lcounter; in xfs_reserve_blocks()
399 mp->m_free[ctr].res_total = request; in xfs_reserve_blocks()
402 xfs_add_freecounter(mp, ctr, fdblks_delta); in xfs_reserve_blocks()
421 free = xfs_sum_freecounter_raw(mp, ctr) - in xfs_reserve_blocks()
422 xfs_freecounter_unavailable(mp, ctr); in xfs_reserve_blocks()
423 delta = request - mp->m_free[ctr].res_total; in xfs_reserve_blocks()
[all …]
/linux/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c641 uint64_t gpa, ctr; in test_memslot_do_unmap()
644 for (gpa = MEM_TEST_GPA + offsp * guest_page_size, ctr = 0; ctr < count; ) { in test_memslot_do_unmap()
651 npages = min(npages, count - ctr); in test_memslot_do_unmap()
656 ctr += npages; in test_memslot_do_unmap()
659 TEST_ASSERT(ctr == count, in test_memslot_do_unmap()
725 uint64_t ctr; in test_memslot_unmap_loop_common()
736 for (ctr = 0; ctr < guest_pages / 2; ctr in test_memslot_unmap_loop_common()
640 uint64_t gpa, ctr; test_memslot_do_unmap() local
724 uint64_t ctr; test_memslot_unmap_loop_common() local
900 int ctr; help() local
[all...]
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_minidump.c406 struct __ctrl *ctr = &entry->region.ctrl; in qlcnic_dump_ctrl() local
411 addr = ctr->addr; in qlcnic_dump_ctrl()
412 no_ops = ctr->no_ops; in qlcnic_dump_ctrl()
417 if (!(ctr->opcode & (1 << k))) in qlcnic_dump_ctrl()
421 qlcnic_ind_wr(adapter, addr, ctr->val1); in qlcnic_dump_ctrl()
430 (data & ctr->val2)); in qlcnic_dump_ctrl()
435 (data | ctr->val3)); in qlcnic_dump_ctrl()
438 while (timeout <= ctr->timeout) { in qlcnic_dump_ctrl()
440 if ((data & ctr->val2) == ctr->val1) in qlcnic_dump_ctrl()
445 if (timeout > ctr->timeout) { in qlcnic_dump_ctrl()
[all …]

12345678910>>...12