/linux-5.19.10/drivers/isdn/capi/ |
D | kcapi.c | 66 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 …]
|
D | kcapi_proc.c | 66 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-5.19.10/drivers/media/platform/qcom/venus/ |
D | venc_ctrls.c | 72 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 …]
|
D | vdec_ctrls.c | 16 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 …]
|
D | venc.c | 601 struct venc_controls *ctr = &inst->controls.enc; in venc_set_properties() local 645 ctr->h264_entropy_mode); in venc_set_properties() 655 ctr->h264_loop_filter_mode); in venc_set_properties() 656 deblock.slice_alpha_offset = ctr->h264_loop_filter_alpha; in venc_set_properties() 657 deblock.slice_beta_offset = ctr->h264_loop_filter_beta; in venc_set_properties() 665 if (ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_HIGH || in venc_set_properties() 666 ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH) in venc_set_properties() 667 h264_transform.enable_type = ctr->h264_8x8_transform; in venc_set_properties() 697 ctr->mastering.display_primaries_x[c]; in venc_set_properties() 699 ctr->mastering.display_primaries_y[c]; in venc_set_properties() [all …]
|
/linux-5.19.10/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
D | nv40.c | 28 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 …]
|
D | gf100.c | 129 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 …]
|
D | base.c | 129 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 …]
|
/linux-5.19.10/drivers/parport/ |
D | parport_gsc.h | 53 unsigned char ctr; member 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() 143 return priv->ctr & rm; /* Use soft copy */ in parport_gsc_read_control()
|
/linux-5.19.10/net/rds/ |
D | stats.c | 87 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-5.19.10/include/linux/ |
D | parport_pc.h | 21 unsigned char ctr; member 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() 143 return ctr; in __parport_pc_frob_control() 181 return priv->ctr & rm; /* Use soft copy */ in parport_pc_read_control()
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | cell-pmu.h | 22 #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-5.19.10/arch/arm64/include/asm/ |
D | cache.h | 25 #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK) argument 121 u32 ctr = read_cpuid_cachetype(); in read_cpuid_effective_cachetype() local 123 if (!(ctr & BIT(CTR_IDC_SHIFT))) { in read_cpuid_effective_cachetype() 128 ctr |= BIT(CTR_IDC_SHIFT); in read_cpuid_effective_cachetype() 131 return ctr; in read_cpuid_effective_cachetype()
|
/linux-5.19.10/arch/powerpc/platforms/cell/ |
D | pmu.c | 114 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-5.19.10/crypto/ |
D | ccm.c | 20 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 …]
|
D | gcm.c | 23 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-5.19.10/lib/crypto/ |
D | curve25519-hacl64.c | 90 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-5.19.10/drivers/net/wireless/ath/ath6kl/ |
D | core.c | 270 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-5.19.10/tools/testing/selftests/kvm/ |
D | memslot_perf_test.c | 597 uint64_t gpa, ctr; in test_memslot_do_unmap() local 599 for (gpa = MEM_TEST_GPA + offsp * 4096, ctr = 0; ctr < count; ) { in test_memslot_do_unmap() 606 npages = min(npages, count - ctr); in test_memslot_do_unmap() 611 ctr += npages; in test_memslot_do_unmap() 614 TEST_ASSERT(ctr == count, in test_memslot_do_unmap() 679 uint64_t ctr; in test_memslot_unmap_loop_common() local 690 for (ctr = 0; ctr < MEM_TEST_UNMAP_SIZE_PAGES / 2; ctr += chunk) in test_memslot_unmap_loop_common() 691 test_memslot_do_unmap(data, ctr, chunk); in test_memslot_unmap_loop_common() 697 for (ctr = MEM_TEST_UNMAP_SIZE_PAGES / 2; in test_memslot_unmap_loop_common() 698 ctr < MEM_TEST_UNMAP_SIZE_PAGES; ctr += chunk) in test_memslot_unmap_loop_common() [all …]
|
/linux-5.19.10/tools/perf/util/ |
D | s390-sample-raw.c | 34 return sizeof(*set) + set->ctr * sizeof(u64); in ctrset_size() 59 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_testctr() 171 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_dump() 181 " Counters:%d\n", offset, ce.set, ce.ctr); in s390_cpumcfdg_dump() 182 for (i = 0, p = (u64 *)(cep + 1); i < ce.ctr; ++i, ++p) { in s390_cpumcfdg_dump()
|
/linux-5.19.10/arch/sparc/kernel/ |
D | windows.c | 22 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-5.19.10/arch/x86/boot/ |
D | a20.c | 57 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-5.19.10/drivers/watchdog/ |
D | wdt.c | 97 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()
|
D | wdt_pci.c | 98 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-5.19.10/sound/soc/fsl/ |
D | fsl_audmix.c | 87 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() 250 u32 mask = 0, ctr = 0; in fsl_audmix_dai_set_fmt() local 272 ctr |= FSL_AUDMIX_CTR_OUTCKPOL(0); in fsl_audmix_dai_set_fmt() 276 ctr |= FSL_AUDMIX_CTR_OUTCKPOL(1); in fsl_audmix_dai_set_fmt() 284 return snd_soc_component_update_bits(comp, FSL_AUDMIX_CTR, mask, ctr); in fsl_audmix_dai_set_fmt()
|