Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 25 of 144) sorted by relevance

123456

/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/parport/
H A Dparport_gsc.h53 unsigned char ctr; member
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()
141 return priv->ctr & rm; /* Use soft copy */ in parport_gsc_read_control()
/linux/include/linux/
H A Dparport_pc.h21 unsigned char ctr; member
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()
146 return ctr; in __parport_pc_frob_control()
184 return priv->ctr & rm; /* Use soft copy */ in parport_pc_read_control()
/linux/net/rds/
H A Dstats.c87 struct rds_info_counter ctr; in rds_stats_info_copy() local
91 BUG_ON(strlen(names[i]) >= sizeof(ctr.name)); in rds_stats_info_copy()
92 strncpy(ctr.name, names[i], sizeof(ctr.name) - 1); in rds_stats_info_copy()
93 ctr.name[sizeof(ctr.name) - 1] = '\0'; 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()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.c109 const struct adf_tl_dbg_counter *ctr, in tl_calc_count() argument
123 sample_cnt = tl_collect_values_u32(telemetry, ctr->offset1, hist_vals); in tl_calc_count()
139 const struct adf_tl_dbg_counter *ctr, in tl_cycles_to_ns() argument
146 ret = tl_calc_count(telemetry, ctr, vals); in tl_cycles_to_ns()
163 const struct adf_tl_dbg_counter *ctr, in tl_lat_acc_avg() argument
185 sample_cnt = tl_collect_values_u64(telemetry, ctr->offset1, hist_vals); in tl_lat_acc_avg()
189 tl_collect_values_u32(telemetry, ctr->offset2, hist_cnt); in tl_lat_acc_avg()
214 const struct adf_tl_dbg_counter *ctr, in tl_bw_hw_units_to_mbps() argument
229 sample_cnt = tl_collect_values_u32(telemetry, ctr->offset1, hist_vals); in tl_bw_hw_units_to_mbps()
259 const struct adf_tl_dbg_counter *ctr, in tl_calc_and_print_counter() argument
[all …]
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()
H A Dqat_compression.c58 unsigned long ctr; in qat_compression_get_instance_node() local
66 ctr = atomic_read(&tmp_dev->ref_count); in qat_compression_get_instance_node()
67 if (best > ctr) { in qat_compression_get_instance_node()
69 best = ctr; in qat_compression_get_instance_node()
95 unsigned long ctr; in qat_compression_get_instance_node() local
98 ctr = atomic_read(&tmp_inst->refctr); in qat_compression_get_instance_node()
99 if (best > ctr) { in qat_compression_get_instance_node()
101 best = ctr; in qat_compression_get_instance_node()
/linux/arch/powerpc/include/asm/
H A Dcell-pmu.h22 #define CBE_PM_16BIT_CTR(ctr) (1 << (24 - ((ctr) & (NR_PHYS_CTRS - 1)))) argument
52 #define CBE_PM_CTR_OVERFLOW_INTR(ctr) (1 << (31 - ((ctr) & 7))) argument
68 extern u32 cbe_read_ctr(u32 cpu, u32 ctr);
69 extern void cbe_write_ctr(u32 cpu, u32 ctr, u32 val);
71 extern u32 cbe_read_pm07_control(u32 cpu, u32 ctr);
72 extern void cbe_write_pm07_control(u32 cpu, u32 ctr, u32 val);
/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(sizeof(*ctr), GFP_USER); in efx_tc_flower_get_counter_index()
[all …]
/linux/lib/crypto/
H A Daesgcm.c90 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) in aesgcm_mac() argument
100 ctr[3] = cpu_to_be32(1); in aesgcm_mac()
101 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac()
109 int len, __be32 *ctr) in aesgcm_crypt() argument
122 ctr[3] = cpu_to_be32(n++); in aesgcm_crypt()
123 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
152 __be32 ctr[4]; in aesgcm_encrypt() local
154 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt()
156 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_encrypt()
157 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt()
[all …]
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 …]
/linux/arch/arm64/include/asm/
H A Dcache.h58 #define CTR_L1IP(ctr) SYS_FIELD_GET(CTR_EL0, L1Ip, ctr) argument
108 u32 ctr = read_cpuid_cachetype(); in read_cpuid_effective_cachetype() local
110 if (!(ctr & BIT(CTR_EL0_IDC_SHIFT))) { in read_cpuid_effective_cachetype()
115 ctr |= BIT(CTR_EL0_IDC_SHIFT); in read_cpuid_effective_cachetype()
118 return ctr; in read_cpuid_effective_cachetype()
/linux/crypto/
H A Dccm.c20 struct crypto_skcipher_spawn ctr; member
26 struct crypto_skcipher *ctr; member
92 struct crypto_skcipher *ctr = ctx->ctr; in crypto_ccm_setkey() local
96 crypto_skcipher_clear_flags(ctr, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey()
97 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
99 err = crypto_skcipher_setkey(ctr, key, keylen); in crypto_ccm_setkey()
310 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt()
374 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt()
399 struct crypto_skcipher *ctr; in crypto_ccm_init_tfm() local
407 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_ccm_init_tfm()
[all …]
H A Dgcm.c23 struct crypto_skcipher_spawn ctr; member
28 struct crypto_skcipher *ctr; member
97 struct crypto_skcipher *ctr = ctx->ctr; in crypto_gcm_setkey() local
109 crypto_skcipher_clear_flags(ctr, CRYPTO_TFM_REQ_MASK); in crypto_gcm_setkey()
110 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
112 err = crypto_skcipher_setkey(ctr, key, keylen); in crypto_gcm_setkey()
116 data = kzalloc(sizeof(*data) + crypto_skcipher_reqsize(ctr), in crypto_gcm_setkey()
123 skcipher_request_set_tfm(&data->req, ctr); in crypto_gcm_setkey()
188 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt()
524 struct crypto_skcipher *ctr; in crypto_gcm_init_tfm() local
[all …]
/linux/arch/powerpc/platforms/cell/
H A Dpmu.c114 u32 cbe_read_ctr(u32 cpu, u32 ctr) in cbe_read_ctr() argument
117 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in cbe_read_ctr()
122 val = (ctr < NR_PHYS_CTRS) ? (val >> 16) : (val & 0xffff); in cbe_read_ctr()
128 void cbe_write_ctr(u32 cpu, u32 ctr, u32 val) in cbe_write_ctr() argument
133 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in cbe_write_ctr()
138 if (ctr < NR_PHYS_CTRS) in cbe_write_ctr()
153 u32 cbe_read_pm07_control(u32 cpu, u32 ctr) in cbe_read_pm07_control() argument
157 if (ctr < NR_CTRS) in cbe_read_pm07_control()
158 READ_SHADOW_REG(pm07_control, pm07_control[ctr]); in cbe_read_pm07_control()
164 void cbe_write_pm07_control(u32 cpu, u32 ctr, u32 val) in cbe_write_pm07_control() argument
[all …]
/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/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c640 uint64_t gpa, ctr; in test_memslot_do_unmap() local
643 for (gpa = MEM_TEST_GPA + offsp * guest_page_size, ctr = 0; ctr < count; ) { in test_memslot_do_unmap()
650 npages = min(npages, count - ctr); in test_memslot_do_unmap()
655 ctr += npages; in test_memslot_do_unmap()
658 TEST_ASSERT(ctr == count, in test_memslot_do_unmap()
724 uint64_t ctr; in test_memslot_unmap_loop_common() local
735 for (ctr = 0; ctr < guest_pages / 2; ctr += chunk) in test_memslot_unmap_loop_common()
736 test_memslot_do_unmap(data, ctr, chunk); in test_memslot_unmap_loop_common()
741 for (ctr = guest_pages / 2; ctr < guest_pages; ctr += chunk) in test_memslot_unmap_loop_common()
742 test_memslot_do_unmap(data, ctr, chunk); in test_memslot_unmap_loop_common()
[all …]
/linux/arch/sparc/kernel/
H A Dwindows.c22 register int ctr asm("g5"); in flush_user_windows()
24 ctr = 0; in flush_user_windows()
36 : "=&r" (ctr) in flush_user_windows()
37 : "0" (ctr), in flush_user_windows()
/linux/arch/x86/boot/
H A Da20.c57 int saved, ctr; in a20_test() local
62 saved = ctr = rdfs32(A20_TEST_ADDR); in a20_test()
65 wrfs32(++ctr, A20_TEST_ADDR); in a20_test()
67 ok = rdgs32(A20_TEST_ADDR+0x10) ^ ctr; in a20_test()
/linux/drivers/watchdog/
H A Dwdt.c97 static void wdt_ctr_mode(int ctr, int mode) in wdt_ctr_mode() argument
99 ctr <<= 6; in wdt_ctr_mode()
100 ctr |= 0x30; in wdt_ctr_mode()
101 ctr |= (mode << 1); in wdt_ctr_mode()
102 outb_p(ctr, WDT_CR); in wdt_ctr_mode()
105 static void wdt_ctr_load(int ctr, int val) in wdt_ctr_load() argument
107 outb_p(val&0xFF, WDT_COUNT0+ctr); in wdt_ctr_load()
108 outb_p(val>>8, WDT_COUNT0+ctr); in wdt_ctr_load()
H A Dwdt_pci.c98 static void wdtpci_ctr_mode(int ctr, int mode) in wdtpci_ctr_mode() argument
100 ctr <<= 6; in wdtpci_ctr_mode()
101 ctr |= 0x30; in wdtpci_ctr_mode()
102 ctr |= (mode << 1); in wdtpci_ctr_mode()
103 outb(ctr, WDT_CR); in wdtpci_ctr_mode()
107 static void wdtpci_ctr_load(int ctr, int val) in wdtpci_ctr_load() argument
109 outb(val & 0xFF, WDT_COUNT0 + ctr); in wdtpci_ctr_load()
111 outb(val >> 8, WDT_COUNT0 + ctr); in wdtpci_ctr_load()
/linux/sound/soc/fsl/
H A Dfsl_audmix.c87 unsigned int *mask, unsigned int *ctr, in fsl_audmix_state_trans() argument
102 (*ctr) |= FSL_AUDMIX_CTR_MIXCLK(prm.clk - 1); in fsl_audmix_state_trans()
157 unsigned int reg_val, val, mask = 0, ctr = 0; in fsl_audmix_put_out_src() local
189 ret = fsl_audmix_state_trans(comp, &mask, &ctr, prms[out_src][val]); in fsl_audmix_put_out_src()
195 ctr |= FSL_AUDMIX_CTR_OUTSRC(val); in fsl_audmix_put_out_src()
197 return snd_soc_component_update_bits(comp, FSL_AUDMIX_CTR, mask, ctr); in fsl_audmix_put_out_src()
242 u32 mask = 0, ctr = 0; in fsl_audmix_dai_set_fmt() local
264 ctr |= FSL_AUDMIX_CTR_OUTCKPOL(0); in fsl_audmix_dai_set_fmt()
268 ctr |= FSL_AUDMIX_CTR_OUTCKPOL(1); in fsl_audmix_dai_set_fmt()
276 return snd_soc_component_update_bits(comp, FSL_AUDMIX_CTR, mask, ctr); in fsl_audmix_dai_set_fmt()
/linux/tools/perf/util/
H A Ds390-sample-raw.c11 * to file. File name is aux.ctr.## where ## stands for the CPU number the
35 return sizeof(*set) + set->ctr * sizeof(u64); in ctrset_size()
58 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_testctr()
193 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_dump()
203 " Counters:%d\n", offset, ce.set, ce.ctr); in s390_cpumcfdg_dump()
204 for (i = 0, p = (u64 *)(cep + 1); i < ce.ctr; ++i, ++p) { in s390_cpumcfdg_dump()
/linux/arch/loongarch/kernel/
H A Dperf_event.c816 int ctr = loongarch_pmu.num_counters; in pause_local_counters() local
821 ctr--; in pause_local_counters()
822 cpuc->saved_ctrl[ctr] = loongarch_pmu_read_control(ctr); in pause_local_counters()
823 loongarch_pmu_write_control(ctr, cpuc->saved_ctrl[ctr] & in pause_local_counters()
825 } while (ctr > 0); in pause_local_counters()
831 int ctr = loongarch_pmu.num_counters; in resume_local_counters() local
835 ctr--; in resume_local_counters()
836 loongarch_pmu_write_control(ctr, cpuc->saved_ctrl[ctr]); in resume_local_counters()
837 } while (ctr > 0); in resume_local_counters()

123456