/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/ |
H A D | posix_help.c | 61 int total = 0;
in FdReadMsg() local 63 while (total < msgSize) {
in FdReadMsg() 64 ret = read(fd, (char*)msgBuf + total, msgSize - total);
in FdReadMsg() 66 total += ret;
in FdReadMsg() 71 if (total == 0) { // When no data has been read before, return
in FdReadMsg() 94 int total = 0;
in FdWriteMsg() local 97 while (total < msgLen) {
in FdWriteMsg() 98 ret = write(fd, (const char*)msgData + total, msgLen - total);
in FdWriteMsg() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk_bitops.h | 136 u32 total; 138 for (total = 0; total < maxbit; total += 32, ++addr) { 144 total += (u32)result; 150 if (total >= maxbit) { 151 total = maxbit; 154 return total; /* either the found bit nr, or maxbit if not found */
|
H A D | mali_pm_metrics.c | 221 u64 total = 0; in mali_pm_get_dvfs_utilisation() local 228 total = busy + mdev->mali_metrics.time_idle; in mali_pm_get_dvfs_utilisation() 232 if (total >= MALI_UTILIZATION_MAX_PERIOD) { in mali_pm_get_dvfs_utilisation() 234 } else if (total < (MALI_UTILIZATION_MAX_PERIOD / 2)) { in mali_pm_get_dvfs_utilisation() 235 total += mdev->mali_metrics.prev_idle + in mali_pm_get_dvfs_utilisation() 240 *total_out = (unsigned long)total; in mali_pm_get_dvfs_utilisation()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk_bitops.h | 138 u32 total; 140 for (total = 0; total < maxbit; total += UINT32_BITS_MAX, ++addr) { 145 total += (u32)result; 151 if (total >= maxbit) { 152 total = maxbit; 155 return total; /* either the found bit nr, or maxbit if not found */
|
H A D | mali_pm_metrics.c | 221 u64 total = 0; in mali_pm_get_dvfs_utilisation() local 228 total = busy + mdev->mali_metrics.time_idle; in mali_pm_get_dvfs_utilisation() 232 if (total >= MALI_UTILIZATION_MAX_PERIOD) { in mali_pm_get_dvfs_utilisation() 234 } else if (total < MALI_UTILIZATION_HALF_PERIOD) { in mali_pm_get_dvfs_utilisation() 235 total += mdev->mali_metrics.prev_idle + mdev->mali_metrics.prev_busy; in mali_pm_get_dvfs_utilisation() 239 *total_out = (unsigned long)total; in mali_pm_get_dvfs_utilisation()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/devfreq/ |
H A D | governor_utgard_ondemand.c | 55 unsigned long busy, total; in devfreq_hisilicon_func() local 83 total = status->total_time >> TIME_SHIFT; in devfreq_hisilicon_func() 88 /* check total, avoid being divided by zero */ in devfreq_hisilicon_func() 89 if (total == 0) { in devfreq_hisilicon_func() 113 if ((HUNDRED * busy / total < max_utilization) && (HUNDRED * busy / total > min_utilization)) { in devfreq_hisilicon_func() 120 next_rate = (next_rate / HUNDRED) * (busy * HUNDRED / total) ; /* avoid over precision */ in devfreq_hisilicon_func() 142 status->current_frequency, next_rate, busy*HUNDRED/total); in devfreq_hisilicon_func()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/ |
H A D | drv_hdmi_event.c | 66 if (evt_info->total == 0) {
in event_mach_id() 96 evt_info->total = 0;
in drv_hdmi_event_init() 123 evt_info->total = 0;
in drv_hdmi_event_deinit() 179 evt_info->total++;
in drv_hdmi_event_pool_malloc() 200 evt_info->total--;
in drv_hdmi_event_pool_free() 236 if (evt_info->total == 0) {
in drv_hdmi_event_pool_write() 352 if ((pool_num > evt_info->total) || (pool_num == 0)) {
in drv_hdmi_event_pool_status_get() 353 hdmi_warn("the input pool num(%u) is wrong,event pool range is [1~%u]\n", pool_num, evt_info->total);
in drv_hdmi_event_pool_status_get() 358 if (evt_info->total == 0) {
in drv_hdmi_event_pool_status_get() 382 hi_s32 drv_hdmi_event_pool_total_get(hdmi_device_id hdmi_id, hi_u32 *total)
in drv_hdmi_event_pool_total_get() argument [all...] |
H A D | drv_hdmi_event.h | 63 hi_u32 total; /* total pools in the list */
member 88 hi_s32 drv_hdmi_event_pool_total_get(hdmi_device_id hdmi_id, hi_u32 *total);
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_debugfs_helper.c | 113 ssize_t total = 0; in kbase_debugfs_helper_get_attr_to_string() local 123 total += scnprintf(buf + total, size - total, "%zu%s", get_attr_fn(array, index), postfix); in kbase_debugfs_helper_get_attr_to_string() 126 return total; in kbase_debugfs_helper_get_attr_to_string()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_debugfs_helper.c | 173 ssize_t total = 0; in kbase_debugfs_helper_get_attr_to_string() local 182 total += scnprintf(buf + total, size - total, "%zu%s", in kbase_debugfs_helper_get_attr_to_string() 186 return total; in kbase_debugfs_helper_get_attr_to_string()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/hal/ctrl/hisiv100/ |
H A D | hdmi_hal_machine.c | 29 hi_u32 total;
member 43 mach_info->total = 0;
in hal_hdmi_mach_init() 58 mach_info->total = 0;
in hal_hdmi_mach_deinit() 74 if (mach_info->total == 0) {
in hal_hdmi_mach_invoke() 110 if (mach_info->total >= MACHINE_MAX_ID_NUM) {
in hal_hdmi_mach_register() 129 mach_info->total++;
in hal_hdmi_mach_register() 161 mach_info->total--;
in hal_hdmi_mach_unregister() 248 status->total = mach_info->total;
in hal_hdmi_mach_status_get()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/ |
H A D | SocketBuffer.h | 47 size_t buflen, /**< total length of the buffer */ 55 size_t total; member 80 void SocketBuffer_pendingWrite(int socket, SSL* ssl, int count, iobuf* iovecs, int* frees, size_t total, size_t bytes); 82 void SocketBuffer_pendingWrite(int socket, int count, iobuf* iovecs, int* frees, size_t total, size_t bytes);
|
H A D | SHA1.h | 46 unsigned int total; member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
H A D | cryp_hash.c | 122 hi_u32 total; /* total length of the message */ member 424 static hi_u32 cryp_hash_pading(hi_u32 block_size, hi_u8 *msg, hi_u32 tail_size, hi_u32 total) in cryp_hash_pading() argument 437 pad_len = block_size - (total % block_size); in cryp_hash_pading() 453 msg[tail_size++] = (hi_u8)((total >> SHIFT_29BITS) & MAX_LOW_3BITS); in cryp_hash_pading() 454 msg[tail_size++] = (hi_u8)((total >> SHIFT_21BITS) & MAX_LOW_8BITS); in cryp_hash_pading() 455 msg[tail_size++] = (hi_u8)((total >> SHIFT_13BITS) & MAX_LOW_8BITS); in cryp_hash_pading() 456 msg[tail_size++] = (hi_u8)((total >> SHIFT_5BITS) & MAX_LOW_8BITS); in cryp_hash_pading() 457 msg[tail_size++] = (hi_u8)((total << SHIFT_3BITS) & MAX_LOW_8BITS); in cryp_hash_pading() 531 hi_log_debug("last: total in cryp_hash_update() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/ |
H A D | ext_sm3.c | 71 hi_u32 total; member 196 ctx->total += data_len; in sm3_update() 277 ctx->tail[SM3_BLOCK_SIZE - WORD_IDX_5] = (hi_u8)((ctx->total >> SHIFT_29BITS) & MAX_LOW_3BITS); in sm3_final() 278 ctx->tail[SM3_BLOCK_SIZE - WORD_IDX_4] = (hi_u8)((ctx->total >> SHIFT_21BITS) & MAX_LOW_8BITS); in sm3_final() 279 ctx->tail[SM3_BLOCK_SIZE - WORD_IDX_3] = (hi_u8)((ctx->total >> SHIFT_13BITS) & MAX_LOW_8BITS); in sm3_final() 280 ctx->tail[SM3_BLOCK_SIZE - WORD_IDX_2] = (hi_u8)((ctx->total >> SHIFT_5BITS) & MAX_LOW_8BITS); in sm3_final() 281 ctx->tail[SM3_BLOCK_SIZE - WORD_IDX_1] = (hi_u8)((ctx->total << SHIFT_3BITS) & MAX_LOW_8BITS); in sm3_final()
|
/device/soc/rockchip/common/sdk_linux/scripts/ |
H A D | resource_tool.c | 18 unsigned long total[2]; /*!< number of bytes processed */ member 50 ctx->total[0] = 0; in sha1_starts() 51 ctx->total[1] = 0; in sha1_starts() 231 left = ctx->total[0] & 0x3F; in sha1_update() 234 ctx->total[0] += ilen; in sha1_update() 235 ctx->total[0] &= 0xFFFFFFFF; in sha1_update() 237 if (ctx->total[0] < (unsigned long)ilen) { in sha1_update() 238 ctx->total[1]++; in sha1_update() 273 high = (ctx->total[0] >> 0x1d) | (ctx->total[ in sha1_finish() 305 uint32_t total[2]; global() member [all...] |
/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | resource_tool.c | 20 unsigned long total[2]; /*!< number of bytes processed */ member 52 ctx->total[0] = 0; in sha1_starts() 53 ctx->total[1] = 0; in sha1_starts() 233 left = ctx->total[0] & 0x3F; in sha1_update() 236 ctx->total[0] += ilen; in sha1_update() 237 ctx->total[0] &= 0xFFFFFFFF; in sha1_update() 239 if (ctx->total[0] < (unsigned long) ilen) in sha1_update() 240 ctx->total[1]++; in sha1_update() 278 high = (ctx->total[0] >> 29) in sha1_finish() 279 | (ctx->total[ in sha1_finish() 313 uint32_t total[2]; global() member [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_pm_metrics.c | 185 unsigned long flags, busy, total; in kbase_pm_get_dvfs_utilisation() local 191 total = busy + kbdev->pm.backend.metrics.time_idle; in kbase_pm_get_dvfs_utilisation() 195 if (total >= MALI_UTILIZATION_MAX_PERIOD) { in kbase_pm_get_dvfs_utilisation() 197 } else if (total < (MALI_UTILIZATION_MAX_PERIOD / 0x02)) { in kbase_pm_get_dvfs_utilisation() 198 total += kbdev->pm.backend.metrics.prev_idle + kbdev->pm.backend.metrics.prev_busy; in kbase_pm_get_dvfs_utilisation() 202 *total_out = total; in kbase_pm_get_dvfs_utilisation()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_pm_metrics.c | 193 unsigned long flags, busy, total; in kbase_pm_get_dvfs_utilisation() local 199 total = busy + kbdev->pm.backend.metrics.time_idle; in kbase_pm_get_dvfs_utilisation() 203 if (total >= MALI_UTILIZATION_MAX_PERIOD) { in kbase_pm_get_dvfs_utilisation() 205 } else if (total < (MALI_UTILIZATION_MAX_PERIOD / 2)) { in kbase_pm_get_dvfs_utilisation() 206 total += kbdev->pm.backend.metrics.prev_idle + in kbase_pm_get_dvfs_utilisation() 211 *total_out = total; in kbase_pm_get_dvfs_utilisation()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
H A D | md5_alt.h | 43 uint32_t total[2]; /*!< number of bytes processed */ member
|
H A D | sha512_alt.h | 39 uint64_t total[2]; /*!< The number of Bytes processed. */ member
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | bcmutils.c | 77 /* return total length of buffer chain */ 81 uint total; in pkttotlen() local 84 total = 0; in pkttotlen() 87 total += (uint)len; in pkttotlen() 91 total += PKTFRAGTOTLEN(osh, p); in pkttotlen() 97 return (total); in pkttotlen() 194 uint total = pkttotlen(osh, p); in pktdataoffset() local 198 if (offset > total) in pktdataoffset() 215 uint total = pkttotlen(osh, p); in pktoffset() local 218 if (offset > total) in pktoffset() 663 uint16 total; /* Total indices managed by multiword bitmap */ global() member 1062 uint16 total; /* total number of ids managed by allocator */ global() member 1077 uint16 total; global() member [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
H A D | hi_mem.h | 32 hi_u32 total; /**< Total space of the memory pool (unit: byte). member
|
/device/soc/rockchip/common/sdk_linux/drivers/spi/ |
H A D | spidev.c | 201 unsigned n, total, tx_total, rx_total;
in spidev_message() local 217 total = 0;
in spidev_message() 228 total += k_tmp->len;
in spidev_message() 229 /* Since the function returns the total length of transfers
in spidev_message() 230 * on success, restrict the total to positive int values to
in spidev_message() 234 if (total > INT_MAX || k_tmp->len > INT_MAX) {
in spidev_message() 298 status = total;
in spidev_message()
|
/device/soc/rockchip/common/sdk_linux/ipc/ |
H A D | util.c | 762 int total, id;
in sysvipc_find_ipc() local 764 total = 0;
in sysvipc_find_ipc() 765 for (id = 0; id < pos && total < ids->in_use; id++) {
in sysvipc_find_ipc() 768 total++;
in sysvipc_find_ipc() 773 if (total >= ids->in_use) {
in sysvipc_find_ipc()
|