/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
H A D | cryp_symc.c | 1320 symc_capacity capacity; in cryp_tdes_setkey() local 1353 /* get symc capacity */ in cryp_tdes_setkey() 1354 drv_symc_get_capacity(&capacity); in cryp_tdes_setkey() 1362 if (capacity.dma == CRYPTO_CAPACITY_SUPPORT) { in cryp_tdes_setkey() 1523 static hi_void cryp_register_symc_aes(hi_u32 capacity, symc_mode mode) in cryp_register_symc_aes() argument 1530 if (capacity == CRYPTO_CAPACITY_SUPPORT) { in cryp_register_symc_aes() 1594 static hi_void cryp_register_aead_ccm(hi_u32 capacity, symc_mode mode) in cryp_register_aead_ccm() argument 1602 if (capacity == CRYPTO_CAPACITY_SUPPORT) { in cryp_register_aead_ccm() 1644 static hi_void cryp_register_aead_gcm(hi_u32 capacity, symc_mode mode) in cryp_register_aead_gcm() argument 1648 if (capacity in cryp_register_aead_gcm() 1696 cryp_register_symc_tdes(hi_u32 capacity, symc_mode mode) cryp_register_symc_tdes() argument 1732 cryp_register_symc_des(hi_u32 capacity, symc_mode mode) cryp_register_symc_des() argument 1768 cryp_register_symc_sm1(hi_u32 capacity, symc_mode mode) cryp_register_symc_sm1() argument 1788 cryp_register_symc_sm4(hi_u32 capacity, symc_mode mode) cryp_register_symc_sm4() argument 1833 symc_capacity capacity; cryp_register_all_symc() local [all...] |
H A D | cryp_trng.c | 67 trng_capacity capacity; in cryp_trng_get_random() local 71 drv_trng_get_capacity(&capacity); in cryp_trng_get_random() 72 if (!capacity.trng) { in cryp_trng_get_random()
|
H A D | cryp_hash.c | 658 static hi_void cryp_register_hash_default(hi_u32 capacity, hash_mode mode, hi_u32 blocksize, hi_u32 hashlen) in cryp_register_hash_default() argument 665 if (capacity) { in cryp_register_hash_default() 705 hash_capacity capacity; in cryp_register_all_hash() local 707 (hi_void)memset_s(&capacity, sizeof(capacity), 0, sizeof(capacity)); in cryp_register_all_hash() 710 /* get hash capacity */ in cryp_register_all_hash() 711 drv_hash_get_capacity(&capacity); in cryp_register_all_hash() 714 cryp_register_hash_default(capacity.sha1, HASH_MODE_SHA1, SHA1_BLOCK_SIZE, SHA1_RESULT_SIZE); in cryp_register_all_hash() 715 cryp_register_hash_default(capacity in cryp_register_all_hash() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/ |
H A D | drv_trng_v200.c | 84 void drv_trng_get_capacity(trng_capacity *capacity) in drv_trng_get_capacity() argument 86 (hi_void)memset_s(capacity, sizeof(trng_capacity), 0, sizeof(trng_capacity)); in drv_trng_get_capacity() 88 capacity->trng = CRYPTO_CAPACITY_SUPPORT; in drv_trng_get_capacity()
|
H A D | drv_trng_v100.c | 100 void drv_trng_get_capacity(trng_capacity *capacity) in drv_trng_get_capacity() argument 102 (hi_void)memset_s(capacity, sizeof(trng_capacity), 0, sizeof(trng_capacity)); in drv_trng_get_capacity() 104 capacity->trng = CRYPTO_CAPACITY_SUPPORT; in drv_trng_get_capacity()
|
H A D | drv_hash_v100.c | 326 void drv_hash_get_capacity(hash_capacity *capacity) in drv_hash_get_capacity() argument 328 (hi_void)memset_s(capacity, sizeof(hash_capacity), 0, sizeof(hash_capacity)); in drv_hash_get_capacity() 330 capacity->sha1 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 331 capacity->sha256 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 334 capacity->sha224 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity()
|
H A D | drv_symc_v200.c | 1917 hi_void drv_symc_get_capacity(symc_capacity *capacity) in drv_symc_get_capacity() argument 1927 (hi_void)memset_s(capacity, sizeof(symc_capacity), 0, sizeof(symc_capacity)); in drv_symc_get_capacity() 1930 capacity->aes_ecb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1931 capacity->aes_cbc = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1932 capacity->aes_ofb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1933 capacity->aes_cfb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1934 capacity->aes_ctr = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1936 capacity->aes_ccm = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1937 capacity->aes_gcm = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1941 capacity in drv_symc_get_capacity() [all...] |
H A D | drv_hash_v200.c | 782 hi_void drv_hash_get_capacity(hash_capacity *capacity) in drv_hash_get_capacity() argument 784 (hi_void)memset_s(capacity, sizeof(hash_capacity), 0, sizeof(hash_capacity)); in drv_hash_get_capacity() 786 capacity->sha1 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 787 capacity->sha224 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 788 capacity->sha256 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 789 capacity->sha384 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 790 capacity->sha512 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity() 791 capacity->sm3 = CRYPTO_CAPACITY_SUPPORT; in drv_hash_get_capacity()
|
H A D | drv_symc_v100.c | 1691 hi_void drv_symc_get_capacity(symc_capacity *capacity) in drv_symc_get_capacity() argument 1695 (hi_void)memset_s(capacity, sizeof(symc_capacity), 0, sizeof(symc_capacity)); in drv_symc_get_capacity() 1698 capacity->aes_ecb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1699 capacity->aes_cbc = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1700 capacity->aes_ofb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1701 capacity->aes_cfb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1702 capacity->aes_ctr = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1703 capacity->aes_cts = CRYPTO_CAPACITY_NONSUPPORT; in drv_symc_get_capacity() 1706 capacity->tdes_ecb = CRYPTO_CAPACITY_SUPPORT; in drv_symc_get_capacity() 1707 capacity in drv_symc_get_capacity() [all...] |
H A D | drv_ifep_rsa_v100.c | 664 hi_void drv_ifep_rsa_get_capacity(rsa_capacity *capacity) in drv_ifep_rsa_get_capacity() argument 666 (hi_void)memset_s(capacity, sizeof(rsa_capacity), 0, sizeof(rsa_capacity)); in drv_ifep_rsa_get_capacity() 668 capacity->rsa = CRYPTO_CAPACITY_SUPPORT; in drv_ifep_rsa_get_capacity()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/ |
H A D | drv_srsa.h | 35 /* rsa capacity, 0-nonsupport, 1-support */ 73 * brief get the hash capacity. 74 * param[out] capacity The hash capacity. 77 void drv_ifep_rsa_get_capacity(rsa_capacity *capacity); 80 * brief get the hash capacity. 81 * param[out] capacity The hash capacity. 84 void drv_sic_rsa_get_capacity(rsa_capacity *capacity);
|
H A D | drv_trng.h | 22 /* rsa capacity, 0-nonsupport, 1-support. */ 36 * \brief get the trng capacity. 37 * \param[out] capacity The hash capacity. 40 void drv_trng_get_capacity(trng_capacity *capacity);
|
H A D | drv_hash.h | 29 /* hash capacity, 0-nonsupport, 1-support */ 110 * \brief get the hash capacity. 111 * \param[out] capacity The hash capacity. 114 void drv_hash_get_capacity(hash_capacity *capacity);
|
H A D | drv_symc.h | 179 /* symc capacity, 0-nonsupport, 1-support */ 475 * brief get the symc capacity. 476 * param[out] capacity The symc capacity. 479 hi_void drv_symc_get_capacity(symc_capacity *capacity);
|
/device/qemu/drivers/virtio/ |
H A D | virtblock.c | 44 uint64_t capacity; member 76 uint64_t capacity; /* in 512-byte-sectors */ member 106 blk->capacity = conf->capacity; in Feature0() 363 if (blk->capacity > CAPACITY_2G) { in VirtMmcFillRespCsd() 371 uint32_t size = blk->capacity*MMC_SEC_SIZE / (1<<READ_BL_LEN) / (1<<(C_SIZE_MULT+2)) - 1; in VirtMmcFillRespCsd() 394 *(uint32_t*)&b[EMMC_EXT_CSD_SEC_CNT] = blk->capacity; in VirtMmcFillDataExtCsd() 450 if (blk->capacity > CAPACITY_2G) { in VirtMmcDoRequest()
|
/device/soc/rockchip/common/sdk_linux/kernel/sched/ |
H A D | pelt.c | 427 * time weighted "delta" capacity unlike util_avg which is binary. 428 * "delta capacity" = actual capacity - 429 * capped capacity a cpu due to a thermal event. 432 int update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity) in update_thermal_load_avg() argument 434 if (___update_load_sum(now, &rq->avg_thermal, capacity, capacity, capacity)) { in update_thermal_load_avg()
|
H A D | sched.h | 121 int capacity; member 390 * CPU original capacity and the runtime/deadline ratio of the task. 392 * The function will return true if the CPU original capacity of the 1555 * CPU capacity of this group, SCHED_CAPACITY_SCALE being max capacity 1558 unsigned long capacity; member 1559 unsigned long min_capacity; /* Min per-CPU capacity in group */ 1560 unsigned long max_capacity; /* Max per-CPU capacity in group */ 1562 int imbalance; /* XXX unrelated to capacity but shared group state */ 2858 return cpu_rq(cpu)->cluster->capacity; in cpu_capacity() 2969 int capacity = 0x400; compute_capacity() local 2989 unsigned long capacity = capacity_orig_of(cpu); cpu_util_freq_walt() local [all...] |
H A D | topology.c | 102 if (group->sgc->capacity != SCHED_CAPACITY_SCALE) { in sched_domain_debug_one() 103 printk(KERN_CONT " cap=%lu", group->sgc->capacity); in sched_domain_debug_one() 372 /* EAS is enabled for asymmetric CPU capacity topologies. */ in build_perf_domains() 632 * dropping group/capacity references, freeing where none remain. in destroy_sched_domain() 974 * Initialize sgc->capacity such that even if we mess up the in init_overlap_sched_group() 979 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sg_span); in init_overlap_sched_group() 1207 sg->sgc->capacity = SCHED_CAPACITY_SCALE * cpumask_weight(sched_group_span(sg)); in get_group() 1263 * cpu_capacity indicates the capacity of sched group, which is used while 2075 * sched_domain_topology_level where a highest capacity CPU is visible in asym_cpu_capacity_level() 2089 unsigned long capacity; in asym_cpu_capacity_level() local [all...] |
H A D | fair.c | 149 * The margin used when comparing utilization with CPU capacity. 827 * where n denotes the nth task and cpu_scale the CPU capacity. 829 * For example, for a CPU with 1024 of capacity, a simplest series from 1552 /* The node has spare capacity that can be used to run more tasks. */ 1571 /* Total compute capacity of CPUs on a node */ 1765 * The load is corrected for the CPU capacity available on each node. in load_too_imbalanced() 1962 * If a move to idle is allowed because there is capacity or load in task_numa_compare() 1989 * If dst node has spare capacity, then check if there is an in task_numa_find_cpu() 4215 static inline int task_fits_capacity(struct task_struct *p, long capacity) in task_fits_capacity() argument 4217 return fits_capacity(uclamp_task_util(p), capacity); in task_fits_capacity() 4223 unsigned long capacity = capacity_orig_of(cpu); task_fits_max() local 8673 unsigned long capacity = scale_rt_capacity(cpu); update_cpu_capacity() local 8694 unsigned long capacity, min_capacity, max_capacity; update_group_capacity() local 9923 unsigned long capacity, load, util; find_busiest_queue() local [all...] |
/device/soc/rockchip/common/vendor/drivers/power/ |
H A D | rk817_battery.c | 77 #define CAPACITY_TO_ADC(capacity, samp_res) ((capacity) * (samp_res)*3600 / 172 * 1000)
1191 u32 val = 0, capacity = 0;
in rk817_bat_get_capacity_uah() local 1199 capacity = ADC_TO_CAPACITY_UAH(val, battery->res_div);
in rk817_bat_get_capacity_uah() 1202 DBG("xxxxxxxxxxxxx capacity = %d\n", capacity);
in rk817_bat_get_capacity_uah() 1203 return capacity;
in rk817_bat_get_capacity_uah() 1208 u32 val, capacity = 0;
in rk817_bat_get_capacity_mah() local 1216 capacity = ADC_TO_CAPACITY(val, battery->res_div);
in rk817_bat_get_capacity_mah() 1223 DBG("xxxxxxxxxxxxx capacity in rk817_bat_get_capacity_mah() 1235 rk817_bat_init_coulomb_cap(struct rk817_battery_device *battery, u32 capacity) rk817_bat_init_coulomb_cap() argument 1258 rk817_bat_save_cap(struct rk817_battery_device *battery, int capacity) rk817_bat_save_cap() argument 1282 rk817_bat_update_qmax(struct rk817_battery_device *battery, u32 capacity) rk817_bat_update_qmax() argument 1301 u32 capacity; rk817_bat_get_qmax() local 1380 int ocv_size, capacity; rk817_bat_vol_to_cap() local [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/power/supply/ |
H A D | rk817_battery.c | 81 #define CAPACITY_TO_ADC(capacity, samp_res) \ 82 (capacity * samp_res * 3600 / 172 * 1000) 1119 u32 val = 0, capacity = 0; in rk817_bat_get_capacity_uah() local 1127 capacity = ADC_TO_CAPACITY_UAH(val, battery->res_div); in rk817_bat_get_capacity_uah() 1130 DBG("xxxxxxxxxxxxx capacity = %d\n", capacity); in rk817_bat_get_capacity_uah() 1131 return capacity; in rk817_bat_get_capacity_uah() 1136 u32 val, capacity = 0; in rk817_bat_get_capacity_mah() local 1144 capacity = ADC_TO_CAPACITY(val, battery->res_div); in rk817_bat_get_capacity_mah() 1151 DBG("xxxxxxxxxxxxx capacity in rk817_bat_get_capacity_mah() 1163 rk817_bat_init_coulomb_cap(struct rk817_battery_device *battery, u32 capacity) rk817_bat_init_coulomb_cap() argument 1187 rk817_bat_save_cap(struct rk817_battery_device *battery, int capacity) rk817_bat_save_cap() argument 1209 rk817_bat_update_qmax(struct rk817_battery_device *battery, u32 capacity) rk817_bat_update_qmax() argument 1229 u32 capacity; rk817_bat_get_qmax() local 1311 int ocv_size, capacity; rk817_bat_vol_to_cap() local [all...] |
/device/soc/rockchip/rk3588/kernel/include/linux/power/ |
H A D | cw2015_battery.h | 107 int capacity; member
|
/device/soc/rockchip/common/sdk_linux/drivers/power/supply/ |
H A D | power_supply_core.c | 733 len = of_property_count_u32_elems(battery_np, "ocv-capacity-celsius");
in power_supply_get_battery_info() 742 of_property_read_u32_array(battery_np, "ocv-capacity-celsius", info->ocv_temp, len);
in power_supply_get_battery_info() 750 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index);
in power_supply_get_battery_info() 774 table[i].capacity = be32_to_cpu(*list);
in power_supply_get_battery_info() 861 * power_supply_ocv2cap_simple() - find the battery capacity
866 * This helper function is used to look up battery capacity according to
870 * Return: the battery capacity.
883 tmp = (table[i - 1].capacity - table[i].capacity) * (ocv - table[i].ocv);
in power_supply_ocv2cap_simple() 885 cap = tmp + table[i].capacity;
in power_supply_ocv2cap_simple() [all...] |
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/cmsis/ |
H A D | cmsis_liteos2.c | 1293 uint32_t capacity;
in osMessageQueueGetCapacity() local 1297 capacity = 0U;
in osMessageQueueGetCapacity() 1299 capacity = pstQueue->queueLen;
in osMessageQueueGetCapacity() 1302 return (capacity);
in osMessageQueueGetCapacity()
|
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
H A D | sched.h | 191 TP_PROTO(int cpu, unsigned long *capacity), 192 TP_ARGS(cpu, capacity), 1);
|