| /linux/drivers/isdn/capi/ |
| H A 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/drivers/parport/ |
| H A D | parport_gsc.h | 53 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()
|
| H A D | parport_gsc.c | 78 s->u.pc.ctr = 0xc | (dev->irq_func ? 0x10 : 0x0); in parport_gsc_init_state() 83 s->u.pc.ctr = parport_readb (CONTROL (p)); in parport_gsc_save_state() 88 parport_writeb (s->u.pc.ctr, CONTROL (p)); in parport_gsc_restore_state() 250 priv->ctr = 0xc; in parport_gsc_probe_port()
|
| /linux/include/linux/ |
| H A D | parport_pc.h | 21 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/drivers/net/ethernet/sfc/ |
| H A D | tc_counters.c | 49 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 D | curve25519-hacl64.c | 88 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 D | aesgcm.c | 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_ctx, buf, ctr); in aesgcm_mac() 108 int len, __be32 *ctr) in aesgcm_crypt() argument 121 ctr[3] = cpu_to_be32(n++); in aesgcm_crypt() 122 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt() 151 __be32 ctr[4]; in aesgcm_encrypt() local 153 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt() 155 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_encrypt() 156 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt() [all …]
|
| /linux/net/rds/ |
| H A 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 strscpy_pad(ctr.name, names[i]); in rds_stats_info_copy() 93 ctr.value = values[i]; in rds_stats_info_copy() 95 rds_info_copy(iter, &ctr, sizeof(ctr)); in rds_stats_info_copy()
|
| /linux/tools/tracing/rtla/tests/ |
| H A D | engine.sh | 6 ctr=0 49 ctr=$(($ctr + 1)) 77 echo "ok $ctr - $1" 80 echo "not ok $ctr - $1" 135 [ -z "$TEST_COUNT" ] && TEST_COUNT=$ctr exec bash $0 || true
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A 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/fs/xfs/ |
| H A D | xfs_fsops.c | 375 enum xfs_free_counter ctr, in xfs_reserve_blocks() argument 383 ASSERT(ctr < XC_FREE_NR); in xfs_reserve_blocks() 403 if (mp->m_free[ctr].res_total > request) { in xfs_reserve_blocks() 404 lcounter = mp->m_free[ctr].res_avail - request; in xfs_reserve_blocks() 407 mp->m_free[ctr].res_avail -= lcounter; in xfs_reserve_blocks() 409 mp->m_free[ctr].res_total = request; in xfs_reserve_blocks() 412 xfs_add_freecounter(mp, ctr, fdblks_delta); in xfs_reserve_blocks() 431 free = xfs_sum_freecounter_raw(mp, ctr) - in xfs_reserve_blocks() 432 xfs_freecounter_unavailable(mp, ctr); in xfs_reserve_blocks() 433 delta = request - mp->m_free[ctr].res_total; in xfs_reserve_blocks() [all …]
|
| H A D | xfs_mount.h | 694 enum xfs_free_counter ctr); 708 enum xfs_free_counter ctr); 714 enum xfs_free_counter ctr) in xfs_sum_freecounter() argument 716 return percpu_counter_sum_positive(&mp->m_free[ctr].count); in xfs_sum_freecounter() 724 enum xfs_free_counter ctr) in xfs_sum_freecounter_raw() argument 726 return percpu_counter_sum(&mp->m_free[ctr].count); in xfs_sum_freecounter_raw() 734 enum xfs_free_counter ctr) in xfs_estimate_freecounter() argument 736 return percpu_counter_read_positive(&mp->m_free[ctr].count); in xfs_estimate_freecounter() 740 enum xfs_free_counter ctr, s64 rhs, s32 batch) in xfs_compare_freecounter() argument 742 return __percpu_counter_compare(&mp->m_free[ctr].count, rhs, batch); in xfs_compare_freecounter() [all …]
|
| H A D | xfs_mount.c | 475 enum xfs_free_counter ctr) in xfs_default_resblks() argument 477 switch (ctr) { in xfs_default_resblks() 492 return xfs_zoned_default_resblks(mp, ctr); in xfs_default_resblks() 1396 enum xfs_free_counter ctr) in xfs_freecounter_unavailable() argument 1398 if (ctr != XC_FREE_BLOCKS) in xfs_freecounter_unavailable() 1406 enum xfs_free_counter ctr, in xfs_add_freecounter() argument 1409 struct xfs_freecounter *counter = &mp->m_free[ctr]; in xfs_add_freecounter() 1438 enum xfs_free_counter ctr, in xfs_dec_freecounter() argument 1442 struct xfs_freecounter *counter = &mp->m_free[ctr]; in xfs_dec_freecounter() 1445 ASSERT(ctr < XC_FREE_NR); in xfs_dec_freecounter() [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-macsmc.c | 33 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/tools/testing/selftests/kvm/ |
| H A D | memslot_perf_test.c | 641 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/crypto/intel/qat/qat_common/ |
| H A D | qat_crypto.c | 58 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/arch/sparc/kernel/ |
| H A 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/drivers/watchdog/ |
| H A 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()
|
| H A 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/arch/loongarch/kernel/ |
| H A D | perf_event.c | 815 int ctr = loongarch_pmu.num_counters; in pause_local_counters() local 820 ctr--; in pause_local_counters() 821 cpuc->saved_ctrl[ctr] = loongarch_pmu_read_control(ctr); in pause_local_counters() 822 loongarch_pmu_write_control(ctr, cpuc->saved_ctrl[ctr] & in pause_local_counters() 824 } while (ctr > 0); in pause_local_counters() 830 int ctr = loongarch_pmu.num_counters; in resume_local_counters() local 834 ctr--; in resume_local_counters() 835 loongarch_pmu_write_control(ctr, cpuc->saved_ctrl[ctr]); in resume_local_counters() 836 } while (ctr > 0); in resume_local_counters()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_minidump.c | 406 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 …]
|
| /linux/tools/perf/util/ |
| H A D | s390-sample-raw.c | 37 return sizeof(*set) + set->ctr * sizeof(u64); in ctrset_size() 60 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_testctr() 238 ce.ctr = be16_to_cpu(cep->ctr); in s390_cpumcfdg_dump() 248 " Counters:%d\n", offset, ce.set, ce.ctr); in s390_cpumcfdg_dump() 249 for (i = 0, p = (u64 *)(cep + 1); i < ce.ctr; ++i, ++p) { in s390_cpumcfdg_dump()
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | arm64.c | 96 u32 ctr = read_cpuid_effective_cachetype(); in efi_cache_sync_image() local 97 u64 lsize = 4 << cpuid_feature_extract_unsigned_field(ctr, in efi_cache_sync_image() 101 if (!(ctr & BIT(CTR_EL0_IDC_SHIFT))) { in efi_cache_sync_image()
|
| /linux/drivers/tty/serial/ |
| H A D | suncore.c | 207 static int ctr = 0; in suncore_mouse_baud_detection() local 213 if (mouse_got_break && ctr < 8) in suncore_mouse_baud_detection() 217 ctr = 0; in suncore_mouse_baud_detection() 222 ctr++; in suncore_mouse_baud_detection()
|
| /linux/arch/arc/include/asm/ |
| H A D | atomic-llsc.h | 19 : [ctr] "r" (&v->counter), /* Not "m": llock only supports reg direct addr mode */ \ 35 : [ctr] "r" (&v->counter), \ 57 : [ctr] "r" (&v->counter), \
|