Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v5.15/drivers/isdn/capi/
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 …]
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-v5.15/drivers/media/platform/qcom/venus/
Dvenc_ctrls.c72 struct venc_controls *ctr = &inst->controls.enc; in venc_op_s_ctrl() local
83 ctr->bitrate_mode = ctrl->val; in venc_op_s_ctrl()
86 ctr->bitrate = ctrl->val; in venc_op_s_ctrl()
90 brate.bitrate = ctr->bitrate; in venc_op_s_ctrl()
102 ctr->bitrate_peak = ctrl->val; in venc_op_s_ctrl()
105 ctr->h264_entropy_mode = ctrl->val; in venc_op_s_ctrl()
108 ctr->profile.mpeg4 = ctrl->val; in venc_op_s_ctrl()
111 ctr->profile.h264 = ctrl->val; in venc_op_s_ctrl()
114 ctr->profile.hevc = ctrl->val; in venc_op_s_ctrl()
117 ctr->profile.vp8 = ctrl->val; in venc_op_s_ctrl()
[all …]
Dvdec_ctrls.c16 struct vdec_controls *ctr = &inst->controls.dec; in vdec_op_s_ctrl() local
20 ctr->post_loop_deb_mode = ctrl->val; in vdec_op_s_ctrl()
26 ctr->profile = ctrl->val; in vdec_op_s_ctrl()
31 ctr->level = ctrl->val; in vdec_op_s_ctrl()
34 ctr->display_delay = ctrl->val; in vdec_op_s_ctrl()
37 ctr->display_delay_enable = ctrl->val; in vdec_op_s_ctrl()
40 ctr->conceal_color = *ctrl->p_new.p_s64; in vdec_op_s_ctrl()
52 struct vdec_controls *ctr = &inst->controls.dec; in vdec_op_g_volatile_ctrl() local
65 ctr->profile = profile; in vdec_op_g_volatile_ctrl()
66 ctrl->val = ctr->profile; in vdec_op_g_volatile_ctrl()
[all …]
Dvenc.c543 struct venc_controls *ctr = &inst->controls.enc; in venc_set_properties() local
587 ctr->h264_entropy_mode); in venc_set_properties()
597 ctr->h264_loop_filter_mode); in venc_set_properties()
598 deblock.slice_alpha_offset = ctr->h264_loop_filter_alpha; in venc_set_properties()
599 deblock.slice_beta_offset = ctr->h264_loop_filter_beta; in venc_set_properties()
607 if (ctr->profile.h264 == HFI_H264_PROFILE_HIGH || in venc_set_properties()
608 ctr->profile.h264 == HFI_H264_PROFILE_CONSTRAINED_HIGH) in venc_set_properties()
609 h264_transform.enable_type = ctr->h264_8x8_transform; in venc_set_properties()
639 ctr->mastering.display_primaries_x[c]; in venc_set_properties()
641 ctr->mastering.display_primaries_y[c]; in venc_set_properties()
[all …]
/Linux-v5.15/drivers/comedi/drivers/
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 …]
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 …]
Dni_660x.c1095 * 8 8 CTR 7 OUT in ni_660x_auto_attach()
1096 * 9 9 CTR 7 AUX in ni_660x_auto_attach()
1097 * 10 10 CTR 7 GATE in ni_660x_auto_attach()
1098 * 11 11 CTR 7 SOURCE in ni_660x_auto_attach()
1099 * 12 12 CTR 6 OUT in ni_660x_auto_attach()
1100 * 13 13 CTR 6 AUX in ni_660x_auto_attach()
1101 * 14 14 CTR 6 GATE in ni_660x_auto_attach()
1102 * 15 15 CTR 6 SOURCE in ni_660x_auto_attach()
1103 * 16 16 CTR 5 OUT in ni_660x_auto_attach()
1104 * 17 17 CTR 5 AUX in ni_660x_auto_attach()
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dnv40.c28 struct nvkm_perfctr *ctr) in nv40_perfctr_init() argument
31 u32 log = ctr->logic_op; in nv40_perfctr_init()
36 src |= ctr->signal[i] << (i * 8); in nv40_perfctr_init()
39 nvkm_wr32(device, 0x00a400 + dom->addr + (ctr->slot * 0x40), src); in nv40_perfctr_init()
40 nvkm_wr32(device, 0x00a420 + dom->addr + (ctr->slot * 0x40), log); in nv40_perfctr_init()
45 struct nvkm_perfctr *ctr) in nv40_perfctr_read() argument
49 switch (ctr->slot) { in nv40_perfctr_read()
50 case 0: ctr->ctr = nvkm_rd32(device, 0x00a700 + dom->addr); break; in nv40_perfctr_read()
51 case 1: ctr->ctr = nvkm_rd32(device, 0x00a6c0 + dom->addr); break; in nv40_perfctr_read()
52 case 2: ctr->ctr = nvkm_rd32(device, 0x00a680 + dom->addr); break; in nv40_perfctr_read()
[all …]
Dbase.c129 nvkm_perfsrc_enable(struct nvkm_pm *pm, struct nvkm_perfctr *ctr) in nvkm_perfsrc_enable() argument
140 for (j = 0; j < 8 && ctr->source[i][j]; j++) { in nvkm_perfsrc_enable()
141 sig = nvkm_perfsig_find(pm, ctr->domain, in nvkm_perfsrc_enable()
142 ctr->signal[i], &dom); in nvkm_perfsrc_enable()
146 src = nvkm_perfsrc_find(pm, sig, ctr->source[i][j]); in nvkm_perfsrc_enable()
155 value |= ((ctr->source[i][j] >> 32) << src->shift); in nvkm_perfsrc_enable()
168 nvkm_perfsrc_disable(struct nvkm_pm *pm, struct nvkm_perfctr *ctr) in nvkm_perfsrc_disable() argument
179 for (j = 0; j < 8 && ctr->source[i][j]; j++) { in nvkm_perfsrc_disable()
180 sig = nvkm_perfsig_find(pm, ctr->domain, in nvkm_perfsrc_disable()
181 ctr->signal[i], &dom); in nvkm_perfsrc_disable()
[all …]
Dgf100.c129 struct nvkm_perfctr *ctr) in gf100_perfctr_init() argument
132 u32 log = ctr->logic_op; in gf100_perfctr_init()
137 src |= ctr->signal[i] << (i * 8); in gf100_perfctr_init()
141 nvkm_wr32(device, dom->addr + 0x040 + (ctr->slot * 0x08), src); in gf100_perfctr_init()
142 nvkm_wr32(device, dom->addr + 0x044 + (ctr->slot * 0x08), log); in gf100_perfctr_init()
147 struct nvkm_perfctr *ctr) in gf100_perfctr_read() argument
151 switch (ctr->slot) { in gf100_perfctr_read()
152 case 0: ctr->ctr = nvkm_rd32(device, dom->addr + 0x08c); break; in gf100_perfctr_read()
153 case 1: ctr->ctr = nvkm_rd32(device, dom->addr + 0x088); break; in gf100_perfctr_read()
154 case 2: ctr->ctr = nvkm_rd32(device, dom->addr + 0x080); break; in gf100_perfctr_read()
[all …]
/Linux-v5.15/drivers/parport/
Dparport_gsc.h52 /* Contents of CTR. */
53 unsigned char ctr; member
55 /* Bitmask of writable CTR bits. */
95 unsigned char ctr = priv->ctr; in __parport_gsc_frob_control() local
99 ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_gsc_frob_control()
101 ctr = (ctr & ~mask) ^ val; in __parport_gsc_frob_control()
102 ctr &= priv->ctr_writable; /* only write writable bits. */ in __parport_gsc_frob_control()
103 parport_writeb (ctr, CONTROL (p)); in __parport_gsc_frob_control()
104 priv->ctr = ctr; /* Update soft copy */ in __parport_gsc_frob_control()
105 return ctr; in __parport_gsc_frob_control()
[all …]
/Linux-v5.15/include/linux/
Dparport_pc.h20 /* Contents of CTR. */
21 unsigned char ctr; member
23 /* Bitmask of writable CTR bits. */
100 dcr = i ? priv->ctr : inb (CONTROL (p)); in dump_parport_state()
133 unsigned char ctr = priv->ctr; in __parport_pc_frob_control() local
137 mask, val, ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_pc_frob_control()
139 ctr = (ctr & ~mask) ^ val; in __parport_pc_frob_control()
140 ctr &= priv->ctr_writable; /* only write writable bits. */ in __parport_pc_frob_control()
141 outb (ctr, CONTROL (p)); in __parport_pc_frob_control()
142 priv->ctr = ctr; /* Update soft copy */ in __parport_pc_frob_control()
[all …]
/Linux-v5.15/arch/arc/include/asm/
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-v5.15/lib/crypto/
Dcurve25519-hacl64.c90 u32 ctr = 0; in fproduct_carry_wide_() local
91 u128 tctr = tmp[ctr]; in fproduct_carry_wide_()
92 u128 tctrp1 = tmp[ctr + 1]; in fproduct_carry_wide_()
95 tmp[ctr] = ((u128)(r0)); in fproduct_carry_wide_()
96 tmp[ctr + 1] = ((tctrp1) + (c)); in fproduct_carry_wide_()
99 u32 ctr = 1; in fproduct_carry_wide_() local
100 u128 tctr = tmp[ctr]; in fproduct_carry_wide_()
101 u128 tctrp1 = tmp[ctr + 1]; in fproduct_carry_wide_()
104 tmp[ctr] = ((u128)(r0)); in fproduct_carry_wide_()
105 tmp[ctr + 1] = ((tctrp1) + (c)); in fproduct_carry_wide_()
[all …]
/Linux-v5.15/crypto/
Dccm.c20 struct crypto_skcipher_spawn ctr; member
26 struct crypto_skcipher *ctr; member
91 struct crypto_skcipher *ctr = ctx->ctr; in crypto_ccm_setkey() local
95 crypto_skcipher_clear_flags(ctr, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey()
96 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
98 err = crypto_skcipher_setkey(ctr, key, keylen); in crypto_ccm_setkey()
309 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 …]
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()
526 struct crypto_skcipher *ctr; in crypto_gcm_init_tfm() local
[all …]
/Linux-v5.15/net/rds/
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-v5.15/arch/powerpc/include/asm/
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-v5.15/arch/powerpc/platforms/cell/
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-v5.15/drivers/net/wireless/ath/ath6kl/
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-v5.15/arch/arm64/include/asm/
Dcache.h24 #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) argument
114 u32 ctr = read_cpuid_cachetype(); in read_cpuid_effective_cachetype() local
116 if (!(ctr & BIT(CTR_IDC_SHIFT))) { in read_cpuid_effective_cachetype()
121 ctr |= BIT(CTR_IDC_SHIFT); in read_cpuid_effective_cachetype()
124 return ctr; in read_cpuid_effective_cachetype()
/Linux-v5.15/arch/arm64/crypto/
Daes-ce-ccm-core.S87 * void ce_aes_ccm_final(u8 mac[], u8 const ctr[], u8 const rk[],
127 ldr x8, [x6, #8] /* load lower ctr */
129 CPU_LE( rev x8, x8 ) /* keep swabbed ctr in reg */
131 ld1 {v1.8b}, [x6] /* load upper ctr */
137 ins v1.d[1], x9 /* no carry in lower ctr */
171 eor v1.16b, v1.16b, v2.16b /* xor with crypted ctr */
173 eor v2.16b, v2.16b, v1.16b /* xor with crypted ctr */
181 str x8, [x6, #8] /* store lsb end of ctr (BE) */
189 umov w6, v1.b[0] /* get top crypted ctr byte */
203 ext v1.16b, v1.16b, v1.16b, #1 /* shift out ctr byte */
[all …]
/Linux-v5.15/net/mac80211/
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-v5.15/drivers/crypto/nx/
Dnx-aes-ctr.c3 * AES CTR routines supporting the Power 7+ Nest Accelerators driver
11 #include <crypto/ctr.h>
63 memcpy(nx_ctx->priv.ctr.nonce, in ctr3686_aes_nx_set_key()
121 memcpy(iv, nx_ctx->priv.ctr.nonce, CTR_RFC3686_NONCE_SIZE); in ctr3686_aes_nx_crypt()
130 .base.cra_name = "rfc3686(ctr(aes))",
131 .base.cra_driver_name = "rfc3686-ctr-aes-nx",

12345678910>>...15