/openbmc/u-boot/common/ |
H A D | memsize.c | 31 long cnt; in get_ram_size() local 36 for (cnt = (maxsize / sizeof(long)) >> 1; cnt > 0; cnt >>= 1) { in get_ram_size() 41 *addr = ~cnt; in get_ram_size() 55 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size() 56 addr = base + cnt; in get_ram_size() 63 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size() 67 if (val != ~cnt) { in get_ram_size() 68 size = cnt * sizeof(long); in get_ram_size() 73 for (cnt <<= 1; in get_ram_size() 75 cnt <<= 1) { in get_ram_size() [all …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | arch_timer.h | 67 u64 cnt; in arch_timer_read_cntpct_el0() local 74 return cnt; in arch_timer_read_cntpct_el0() 79 u64 cnt; in arch_timer_read_cntvct_el0() local 86 return cnt; in arch_timer_read_cntvct_el0() 172 u64 cnt; in __arch_counter_get_cntpct_stable() local 176 return cnt; in __arch_counter_get_cntpct_stable() 181 u64 cnt; in __arch_counter_get_cntpct() local 188 return cnt; in __arch_counter_get_cntpct() 193 u64 cnt; in __arch_counter_get_cntvct_stable() local 197 return cnt; in __arch_counter_get_cntvct_stable() [all …]
|
/openbmc/linux/samples/trace_events/ |
H A D | trace-events-sample.c | 27 int len = cnt % 5; in do_simple_thread_func() 45 trace_foo_with_template_simple("HELLO", cnt); in do_simple_thread_func() 47 trace_foo_bar_with_cond("Some times print", cnt); in do_simple_thread_func() 56 static void simple_thread_func(int cnt) in simple_thread_func() argument 58 do_simple_thread_func(cnt, "iter=%d", cnt); in simple_thread_func() 63 int cnt = 0; in simple_thread() local 66 simple_thread_func(cnt++); in simple_thread() 74 static void simple_thread_func_fn(int cnt) in simple_thread_func_fn() argument 80 trace_foo_bar_with_fn("Look at me", cnt); in simple_thread_func_fn() 86 int cnt = 0; in simple_thread_fn() local [all …]
|
/openbmc/linux/arch/ia64/lib/ |
H A D | memset.S | 93 (p_y) add cnt = -8, cnt // 100 (p_yy) add cnt = -4, cnt // 108 (p_y) add cnt = -2, cnt // 120 (p_yy) add cnt = -1, cnt // 285 add cnt = -8, cnt // subtract 290 (p_y) add cnt = -8, cnt // subtract 294 (p_yy) add cnt = -8, cnt // subtract 332 (p_y) add cnt = -1, cnt 341 (p_yy) add cnt = -4, cnt 350 (p_y) add cnt = -4, cnt [all …]
|
/openbmc/u-boot/drivers/bios_emulator/x86emu/ |
H A D | prim_ops.c | 976 if (cnt != 1) in rcr_long() 1190 cnt = s % 8; in shl_byte() 1232 cnt = s % 16; in shl_word() 1305 cnt = s % 8; in shr_byte() 1411 if (cnt > 0 && cnt < 8) { in sar_byte() 1449 if (cnt > 0 && cnt < 16) { in sar_word() 1487 if (cnt > 0 && cnt < 32) { in sar_long() 1525 res = (d << cnt) | (fill >> (16-cnt)); in shld_word() 1560 res = (d << cnt) | (fill >> (32-cnt)); in shld_long() 1596 res = (d >> cnt) | (fill << (16 - cnt)); in shrd_word() [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | func_traceonoff_triggers.tc | 33 cnt=`cnt_trace` 34 if [ $cnt -ne 0 ]; then 46 cnt=`cnt_trace` 47 if [ $cnt -eq 0 ]; then 76 if [ $cnt -ne 1 ]; then 80 cnt=`cnt_trace` 103 cnt=`cnt_trace` 104 if [ $cnt -ne 0 ]; then 111 if [ $cnt -ne 0 ]; then 123 if [ $cnt -ne 1 ]; then [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | xlnx-versal-trng-test.c | 290 for (i = 0; i < cnt; i++) { in trng_collect() 304 uint32_t rng[cnt], prng[cnt]; in trng_test_autogen() 314 if (n != cnt) { in trng_test_autogen() 323 n = trng_collect(rng, cnt); in trng_test_autogen() 324 if (n != cnt) { in trng_test_autogen() 334 if (n != cnt) { in trng_test_autogen() 347 uint32_t rng[cnt]; in trng_test_oneshot() 357 if (n == cnt) { in trng_test_oneshot() 366 if (n == cnt) { in trng_test_oneshot() 374 uint32_t rng[cnt], prng[cnt]; in trng_test_per_str() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | cevt-r4k.c | 22 unsigned int cnt; in mips_next_event() local 25 cnt = read_c0_count(); in mips_next_event() 26 cnt += delta; in mips_next_event() 27 write_c0_compare(cnt); in mips_next_event() 65 cnt = read_c0_count(); in calculate_min_delta() 66 write_c0_compare(cnt); in calculate_min_delta() 67 cnt = read_c0_count() - cnt; in calculate_min_delta() 71 if (cnt < buf1[k]) { in calculate_min_delta() 80 buf1[k] = cnt; in calculate_min_delta() 196 unsigned int cnt; in c0_compare_int_usable() local [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc_counters.c | 44 kfree(cnt); in efx_tc_counter_free() 138 cnt = kzalloc(sizeof(*cnt), GFP_USER); in efx_tc_flower_allocate_counter() 139 if (!cnt) in efx_tc_flower_allocate_counter() 145 cnt->type = type; in efx_tc_flower_allocate_counter() 155 return cnt; in efx_tc_flower_allocate_counter() 168 kfree(cnt); in efx_tc_flower_allocate_counter() 194 kfree(cnt); in efx_tc_flower_release_counter() 247 if (IS_ERR(cnt)) { in efx_tc_flower_get_counter_index() 254 ctr->cnt = cnt; in efx_tc_flower_get_counter_index() 332 if (!cnt) { in efx_tc_counter_update() [all …]
|
/openbmc/linux/lib/ |
H A D | find_bit_benchmark.c | 38 unsigned long i, cnt; in test_find_first_bit() local 42 for (cnt = i = 0; i < len; cnt++) { in test_find_first_bit() 55 unsigned long i, cnt; in test_find_first_and_bit() local 61 for (cnt = i = 0; i < len; cnt++) { in test_find_first_and_bit() 73 unsigned long i, cnt; in test_find_next_bit() local 77 for (cnt = i = 0; i < BITMAP_LEN; cnt++) in test_find_next_bit() 87 unsigned long i, cnt; in test_find_next_zero_bit() local 91 for (cnt = i = 0; i < BITMAP_LEN; cnt++) in test_find_next_zero_bit() 106 cnt++; in test_find_last_bit() 137 unsigned long i, cnt; in test_find_next_and_bit() local [all …]
|
/openbmc/linux/fs/quota/ |
H A D | dquot.c | 408 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in mark_all_dquot_dirty() 423 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqput_all() 693 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_writeback_dquots() 728 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dquot_writeback_dquots() 767 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_quota_sync() 1025 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqinit_needed() 1710 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in __dquot_alloc_space() 1727 for (cnt--; cnt >= 0; cnt--) { in __dquot_alloc_space() 1771 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dquot_alloc_inode() 1783 for (cnt--; cnt >= 0; cnt--) { in dquot_alloc_inode() [all …]
|
/openbmc/linux/fs/ntfs/ |
H A D | bitmap.c | 36 s64 cnt = count; in __ntfs_bitmap_set_bits_in_run() local 50 BUG_ON(cnt < 0); in __ntfs_bitmap_set_bits_in_run() 80 cnt--; in __ntfs_bitmap_set_bits_in_run() 87 if (!cnt) in __ntfs_bitmap_set_bits_in_run() 99 cnt -= len << 3; in __ntfs_bitmap_set_bits_in_run() 102 if (cnt < 8) in __ntfs_bitmap_set_bits_in_run() 123 cnt -= len << 3; in __ntfs_bitmap_set_bits_in_run() 130 if (cnt) { in __ntfs_bitmap_set_bits_in_run() 133 BUG_ON(cnt > 7); in __ntfs_bitmap_set_bits_in_run() 135 bit = cnt; in __ntfs_bitmap_set_bits_in_run() [all …]
|
/openbmc/linux/arch/sh/mm/ |
H A D | flush-sh4.c | 24 while (cnt >= 8) { in sh4__flush_wback_region() 33 cnt -= 8; in sh4__flush_wback_region() 36 while (cnt) { in sh4__flush_wback_region() 38 cnt--; in sh4__flush_wback_region() 58 while (cnt >= 8) { in sh4__flush_purge_region() 67 cnt -= 8; in sh4__flush_purge_region() 69 while (cnt) { in sh4__flush_purge_region() 71 cnt--; in sh4__flush_purge_region() 97 cnt -= 8; in sh4__flush_invalidate_region() 100 while (cnt) { in sh4__flush_invalidate_region() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | tifm_7xx1.c | 52 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr() 81 int cnt; in tifm_7xx1_toggle_sock_power() local 85 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power() 90 msleep(cnt); in tifm_7xx1_toggle_sock_power() 109 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power() 114 msleep(cnt); in tifm_7xx1_toggle_sock_power() 157 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_switch_media() 214 int cnt; in tifm_7xx1_suspend() local 218 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_suspend() 382 int cnt; in tifm_7xx1_remove() local [all …]
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ctrl.c | 314 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 326 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 332 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 338 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string() 409 (ptr[cnt] >= 127))) cnt++; in parse_tlist() 422 cnt++; in parse_tlist() 465 cnt = 0; in pvr2_ctrl_sym_to_value() 466 while ((cnt < len) && ((ptr[cnt] <= 32) || (ptr[cnt] >= 127))) cnt++; in pvr2_ctrl_sym_to_value() 467 len -= cnt; ptr += cnt; in pvr2_ctrl_sym_to_value() 468 cnt = 0; in pvr2_ctrl_sym_to_value() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | monitor_stats.c | 68 static int fill_monitor_counter_ppcnt_set1(int cnt, u32 *in) in fill_monitor_counter_ppcnt_set1() argument 74 ppcnt_cnt++, cnt++) { in fill_monitor_counter_ppcnt_set1() 76 monitor_counter[cnt].type, in fill_monitor_counter_ppcnt_set1() 79 monitor_counter[cnt].counter, in fill_monitor_counter_ppcnt_set1() 88 monitor_counter[cnt].type, in fill_monitor_counter_q_counter_set1() 91 monitor_counter[cnt].counter, in fill_monitor_counter_q_counter_set1() 94 monitor_counter[cnt].counter_group_id, in fill_monitor_counter_q_counter_set1() 109 int cnt = 0; in mlx5e_set_monitor_counter() local 113 cnt += fill_monitor_counter_ppcnt_set1(cnt, in); in mlx5e_set_monitor_counter() 116 max_num_of_counters >= (NUM_REQ_Q_COUNTERS_S1 + cnt) && in mlx5e_set_monitor_counter() [all …]
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | ieee80211.c | 369 uint cnt; in r8712_get_sec_ie() local 377 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in r8712_get_sec_ie() 379 cnt += in_ie[cnt + 1] + 2; /*get next */ in r8712_get_sec_ie() 385 cnt += in_ie[cnt + 1] + 2; /*get next*/ in r8712_get_sec_ie() 387 cnt += in_ie[cnt + 1] + 2; /*get next*/ in r8712_get_sec_ie() 397 uint cnt; in r8712_get_wps_ie() local 400 cnt = 12; in r8712_get_wps_ie() 403 eid = in_ie[cnt]; in r8712_get_wps_ie() 406 memcpy(wps_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in r8712_get_wps_ie() 408 cnt += in_ie[cnt + 1] + 2; in r8712_get_wps_ie() [all …]
|
/openbmc/linux/drivers/usb/mon/ |
H A D | mon_text.c | 523 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_t() 541 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_u() 552 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset() 560 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset() 563 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset() 571 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_intstat() 579 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_isostat() 582 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_isostat() 595 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_isodesc() 604 p->cnt += scnprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_isodesc() [all …]
|
/openbmc/qemu/contrib/plugins/ |
H A D | hotblocks.c | 85 ExecCount *cnt; in vcpu_tb_exec() local 91 g_assert(cnt); in vcpu_tb_exec() 92 cnt->exec_count++; in vcpu_tb_exec() 103 ExecCount *cnt; in vcpu_tb_trans() local 110 if (cnt) { in vcpu_tb_trans() 111 cnt->trans_count++; in vcpu_tb_trans() 113 cnt = g_new0(ExecCount, 1); in vcpu_tb_trans() 114 cnt->start_addr = pc; in vcpu_tb_trans() 115 cnt->trans_count = 1; in vcpu_tb_trans() 116 cnt->insns = insns; in vcpu_tb_trans() [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | mkimage_fit_atf.sh | 89 cnt=1 93 fdt@$cnt { 100 cnt=$((cnt+1)) 110 cnt=1 115 config@$cnt { 119 fdt = "fdt@$cnt"; 124 config@$cnt { 128 fdt = "fdt@$cnt"; 132 cnt=$((cnt+1))
|
/openbmc/u-boot/board/sunxi/ |
H A D | mksunxi_fit_atf.sh | 49 cnt=1 53 fdt_$cnt { 60 cnt=$((cnt+1)) 70 cnt=1 74 config_$cnt { 78 fdt = "fdt_$cnt"; 81 cnt=$((cnt+1))
|
/openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ampere-utils/ |
H A D | ampere_power_util.sh | 38 cnt=30 39 while [ $cnt -gt 0 ]; 46 cnt=$((cnt - 1)) 62 cnt=30 63 while [ $cnt -gt 0 ]; 68 echo "Waiting for shutdown-ack count down $cnt" 70 cnt=$((cnt - 1)) 73 if [ $cnt == 0 ]; then
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | dp.c | 61 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dpout_entry() argument 64 if (data && idx < *cnt) { in nvbios_dpout_entry() 72 *cnt = nvbios_rd08(bios, outp + 0x04); in nvbios_dpout_entry() 78 *cnt = 0; in nvbios_dpout_entry() 92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_parse() argument 139 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_match() argument 154 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dpcfg_entry() argument 158 *hdr = *hdr + (*len * * cnt); in nvbios_dpcfg_entry() 164 if (idx < *cnt) in nvbios_dpcfg_entry() 172 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpcfg_parse() argument [all …]
|
/openbmc/u-boot/board/BuR/brxre1/ |
H A D | board.c | 182 unsigned int cnt = 3; in board_late_init() local 197 switch (cnt) { in board_late_init() 212 cnt--; in board_late_init() 219 cnt = 4; in board_late_init() 227 cnt = 4; in board_late_init() 237 cnt = 4; in board_late_init() 242 } while (cnt); in board_late_init() 248 cnt = 4; in board_late_init() 254 cnt = 4; in board_late_init() 260 cnt = 4; in board_late_init() [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/event/ |
H A D | event-no-pid.tc | 79 cnt=`count_pid $mypid` 80 if [ $cnt -ne 0 ]; then 84 cnt=`count_no_pid $mypid` 85 if [ $cnt -eq 0 ]; then 106 cnt=`count_pid $mypid` 107 if [ $cnt -ne 0 ]; then 111 cnt=`count_pid $child` 112 if [ $cnt -ne 0 ]; then 116 cnt=`count_no_pid $mypid` 117 if [ $cnt -eq 0 ]; then
|