| /OK3568_Linux_fs/u-boot/board/freescale/t4qds/ |
| H A D | eth.c | 345 int i; in fdt_fixup_board_enet() local 350 for (i = FM1_DTSEC1; i < NUM_FM_PORTS; i++) { in fdt_fixup_board_enet() 351 switch (fm_info_get_enet_if(i)) { in fdt_fixup_board_enet() 354 switch (mdio_mux[i]) { in fdt_fixup_board_enet() 374 if (i == FM1_10GEC1 && hwconfig_sub( in fdt_fixup_board_enet() 378 if (i == FM1_10GEC2 && hwconfig_sub( in fdt_fixup_board_enet() 382 if (i == FM2_10GEC1 && hwconfig_sub( in fdt_fixup_board_enet() 386 if (i == FM2_10GEC2 && hwconfig_sub( in fdt_fixup_board_enet() 392 switch (i) { in fdt_fixup_board_enet() 417 int i; in initialize_qsgmiiphy_fix() local [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/sparc64/drivers/ |
| H A D | adi-test.c | 141 int i; in build_memory_map() local 172 for (i = 0; i < range_count; i++) in build_memory_map() 174 i, start_addr[i], end_addr[i]); in build_memory_map() 211 int ret, i, bytes_read = 0; in pread_adi() local 234 for (i = 0; i < bytes_read; i++) in pread_adi() 235 DEBUG_PRINT_L4("\t\t0x%lx\t%d\n", offset + i, buf[i]); in pread_adi() 359 int ret, i; in test1_prpw_aligned_4096bytes() local 361 for (i = 0; i < TEST1_VERSION_SZ; i++) { in test1_prpw_aligned_4096bytes() 362 version[i] = random_version(); in test1_prpw_aligned_4096bytes() 363 expected_version[i] = version[i]; in test1_prpw_aligned_4096bytes() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | omap_gpmc.c | 269 int8_t i = 0, j; in omap_calculate_ecc() local 284 ecc_code[i++] = (val >> 0) & 0xFF; in omap_calculate_ecc() 288 ecc_code[i++] = (val >> 24) & 0xFF; in omap_calculate_ecc() 289 ecc_code[i++] = (val >> 16) & 0xFF; in omap_calculate_ecc() 290 ecc_code[i++] = (val >> 8) & 0xFF; in omap_calculate_ecc() 291 ecc_code[i++] = (val >> 0) & 0xFF; in omap_calculate_ecc() 297 ecc_code[i++] = (val >> 8) & 0xFF; in omap_calculate_ecc() 298 ecc_code[i++] = (val >> 0) & 0xFF; in omap_calculate_ecc() 300 ecc_code[i++] = (val >> 24) & 0xFF; in omap_calculate_ecc() 301 ecc_code[i++] = (val >> 16) & 0xFF; in omap_calculate_ecc() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | devtree.c | 21 int naddr, nsize, i; in dt_fixup_memory() local 39 i = 0; in dt_fixup_memory() 41 memreg[i++] = cpu_to_be32(start >> 32); in dt_fixup_memory() 42 memreg[i++] = cpu_to_be32(start & 0xffffffff); in dt_fixup_memory() 44 memreg[i++] = cpu_to_be32(size >> 32); in dt_fixup_memory() 45 memreg[i++] = cpu_to_be32(size & 0xffffffff); in dt_fixup_memory() 54 for (i = 1; i < (naddr + nsize); i++) in dt_fixup_memory() 55 printf(" 0x%x", be32_to_cpu(memreg[i])); in dt_fixup_memory() 159 int i, borrow = 0; in sub_reg() local 161 for (i = MAX_ADDR_CELLS - 1; i >= 0; i--) { in sub_reg() [all …]
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | bpf_load.c | 268 int i, numa_node; in load_maps() local 270 for (i = 0; i < nr_maps; i++) { in load_maps() 272 fixup_map(&maps[i], i); in load_maps() 274 if (maps[i].fd != -1) { in load_maps() 275 map_fd[i] = maps[i].fd; in load_maps() 280 numa_node = maps[i].def.map_flags & BPF_F_NUMA_NODE ? in load_maps() 281 maps[i].def.numa_node : -1; in load_maps() 283 if (maps[i].def.type == BPF_MAP_TYPE_ARRAY_OF_MAPS || in load_maps() 284 maps[i].def.type == BPF_MAP_TYPE_HASH_OF_MAPS) { in load_maps() 285 int inner_map_fd = map_fd[maps[i].def.inner_map_idx]; in load_maps() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/ |
| H A D | adf_hw_arbiter.c | 40 u32 arb, i; in adf_init_arb() local 49 for (i = 0; i < hw_data->num_engines; i++) in adf_init_arb() 50 WRITE_CSR_ARB_WQCFG(csr, i, i); in adf_init_arb() 58 for (i = 0; i < hw_data->num_engines; i++) in adf_init_arb() 59 WRITE_CSR_ARB_WRK_2_SER_MAP(csr, i, *(thd_2_arb_cfg + i)); in adf_init_arb() 76 unsigned int i; in adf_exit_arb() local 84 for (i = 0; i < ADF_ARB_NUM; i++) in adf_exit_arb() 85 WRITE_CSR_ARB_SARCONFIG(csr, i, 0); in adf_exit_arb() 88 for (i = 0; i < hw_data->num_engines; i++) in adf_exit_arb() 89 WRITE_CSR_ARB_WQCFG(csr, i, 0); in adf_exit_arb() [all …]
|
| /OK3568_Linux_fs/kernel/arch/microblaze/kernel/ |
| H A D | kgdb.c | 39 unsigned int i; in pt_regs_to_gdb_regs() local 44 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in pt_regs_to_gdb_regs() 45 gdb_regs[i] = pt_regb[i]; in pt_regs_to_gdb_regs() 52 for (i = 0; i < sizeof(struct pvr_s)/4; i++) in pt_regs_to_gdb_regs() 53 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs() 72 unsigned int i; in gdb_regs_to_pt_regs() local 78 for (i = 1; i < (sizeof(struct pt_regs) / 4) - 1; i++) in gdb_regs_to_pt_regs() 79 pt_regb[i] = gdb_regs[i]; in gdb_regs_to_pt_regs() 96 unsigned int i; in sleeping_thread_to_gdb_regs() local 100 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in sleeping_thread_to_gdb_regs() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/rcutorture/bin/ |
| H A D | kvm-recheck.sh | 25 for i in $dirs 30 resdir=`echo $i | sed -e 's,/$,,' -e 's,/[^/]*$,,'` 33 TORTURE_SUITE="`cat $i/../TORTURE_SUITE`" 34 configfile=`echo $i | sed -e 's,^.*/,,'` 35 rm -f $i/console.log.*.diags 36 kvm-recheck-${TORTURE_SUITE}.sh $i 37 …if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -ne 0 && test "`cat $i/qemu-retval`" -n… 40 cat $i/qemu-output 41 elif test -f "$i/console.log" 43 if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -eq 137 [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/txx9/generic/ |
| H A D | setup_tx3927.c | 33 int i; in tx3927_setup() local 40 for (i = 0; i < 8; i++) { in tx3927_setup() 41 if (!(tx3927_romcptr->cr[i] & 0x8)) in tx3927_setup() 43 txx9_ce_res[i].start = (unsigned long)TX3927_ROMC_BA(i); in tx3927_setup() 44 txx9_ce_res[i].end = in tx3927_setup() 45 txx9_ce_res[i].start + TX3927_ROMC_SIZE(i) - 1; in tx3927_setup() 46 request_resource(&iomem_resource, &txx9_ce_res[i]); in tx3927_setup() 75 for (i = 0; i < TX3927_NR_TMR; i++) in tx3927_setup() 76 txx9_tmr_init(TX3927_TMR_REG(i)); in tx3927_setup() 80 for (i = 0; i < ARRAY_SIZE(tx3927_dmaptr->ch); i++) { in tx3927_setup() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/mm/ |
| H A D | pf_in.c | 75 int i; in skip_prefix() local 83 for (i = 0; i < ARRAY_SIZE(prefix_codes); i++) { in skip_prefix() 84 if (*p == prefix_codes[i]) { in skip_prefix() 120 for (i = 0; i < ARRAY_SIZE(array); i++) { \ 121 if (array[i] == opcode) { \ 132 int i; in get_ins_type() local 153 int i; in get_ins_reg_width() local 159 for (i = 0; i < ARRAY_SIZE(rw8); i++) in get_ins_reg_width() 160 if (rw8[i] == opcode) in get_ins_reg_width() 163 for (i = 0; i < ARRAY_SIZE(rw32); i++) in get_ins_reg_width() [all …]
|
| /OK3568_Linux_fs/external/rk_pcba_test/ |
| H A D | echo_ringmic_test.c | 64 int value = 0, offset = 0, i = 0; in bytesToInt() local 79 ret[i++] = value; in bytesToInt() 89 int i = 0, j = 0; in linear_amplification() local 91 for (i = 0; i < bytes / 4 ; ) { in linear_amplification() 94 int tmp_data = (*((int *)data + i + j)); in linear_amplification() 104 *((int *)out + i + j) = tmp; in linear_amplification() 106 i += mChannels; in linear_amplification() 115 int i = 0, j = 0; in linear_amplification() local 117 for (i = 0; i < bytes / 2; ) { in linear_amplification() 119 short raw = (*((short *)data + i + j)); in linear_amplification() [all …]
|
| H A D | echo_ringmic_pdm_test.c | 61 int value = 0, offset = 0, i = 0; in bytesToInt() local 76 ret[i++] = value; in bytesToInt() 84 int i = 0, j = 0; in linear_amplification() local 86 for (i = 0; i < bytes / 2; ) { in linear_amplification() 88 short raw = (*((short *)data + i + j)); in linear_amplification() 98 *((short *)out + i + j) = (short)tmp_data; in linear_amplification() 100 i += mChannels; in linear_amplification() 107 int i = 0, j = 0; in linear_amplification4() local 109 for (i = 0; i < bytes / 2; ) { in linear_amplification4() 111 short raw = (*((short *)data + i + j)); in linear_amplification4() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/ |
| H A D | mlan_cfp.c | 838 t_u32 i; in wlan_get_region_cfp_table() local 863 for (i = 0; i < MLAN_CFP_TABLE_SIZE_BG; i++) { in wlan_get_region_cfp_table() 864 PRINTM(MINFO, "cfp_table_BG[%d].code=%d\n", i, in wlan_get_region_cfp_table() 865 cfp_table_BG[i].code); in wlan_get_region_cfp_table() 867 if (cfp_table_BG[i].code == cfp_bg) { in wlan_get_region_cfp_table() 869 *cfp_no = cfp_table_BG[i].cfp_no; in wlan_get_region_cfp_table() 871 return cfp_table_BG[i].cfp; in wlan_get_region_cfp_table() 886 for (i = 0; i < MLAN_CFP_TABLE_SIZE_A; i++) { in wlan_get_region_cfp_table() 887 PRINTM(MINFO, "cfp_table_A[%d].code=%d\n", i, in wlan_get_region_cfp_table() 888 cfp_table_A[i].code); in wlan_get_region_cfp_table() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sh/kernel/cpu/sh4a/ |
| H A D | ubc.c | 46 int i; in sh4a_ubc_enable_all() local 48 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_enable_all() 49 if (mask & (1 << i)) in sh4a_ubc_enable_all() 50 __raw_writel(__raw_readl(UBC_CBR(i)) | UBC_CBR_CE, in sh4a_ubc_enable_all() 51 UBC_CBR(i)); in sh4a_ubc_enable_all() 56 int i; in sh4a_ubc_disable_all() local 58 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_disable_all() 59 __raw_writel(__raw_readl(UBC_CBR(i)) & ~UBC_CBR_CE, in sh4a_ubc_disable_all() 60 UBC_CBR(i)); in sh4a_ubc_disable_all() 66 int i; in sh4a_ubc_active_mask() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8723bs/core/ |
| H A D | rtw_debug.c | 64 int i; in sd_f0_reg_dump() local 66 for (i = 0x0; i <= 0xff; i++) { in sd_f0_reg_dump() 67 if (i%16 == 0) in sd_f0_reg_dump() 68 DBG_871X_SEL_NL(sel, "0x%02x ", i); in sd_f0_reg_dump() 70 DBG_871X_SEL(sel, "%02x ", rtw_sd_f0_read8(adapter, i)); in sd_f0_reg_dump() 72 if (i%16 == 15) in sd_f0_reg_dump() 74 else if (i%8 == 7) in sd_f0_reg_dump() 81 int i, j = 1; in mac_reg_dump() local 85 for (i = 0x0; i < 0x800; i += 4) { in mac_reg_dump() 87 DBG_871X_SEL_NL(sel, "0x%03x", i); in mac_reg_dump() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/examples/ |
| H A D | xled.c | 48 unsigned i; in main() local 84 for (i = 0; i < XkbNumIndicators; i++) { in main() 85 if (xkb->indicators->phys_indicators & (1 << i)) { in main() 86 printf("led %d = %d\n", i, xkb->indicators->maps[i].flags); in main() 87 old[i] = xkb->indicators->maps[i].flags; in main() 88 xkb->indicators->maps[i].flags = XkbIM_NoAutomatic; in main() 102 for (i = 0; i < XkbNumIndicators; i++) { in main() 103 if (xkb->indicators->phys_indicators & (1 << i)) in main() 104 printf("led %d = %d\n", i, xkb->indicators->maps[i].flags); in main() 109 for (i = 0; i < 5; i++) { in main() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/sample/ |
| H A D | sample_acp_module.cpp | 266 for (int i = 0; i < 255; i++) { in sample_acp_module() local 267 sample_acp_set_brightness(ctx, i, RK_AIQ_UAPI_MODE_ASYNC); in sample_acp_module() 276 for (int i = 0; i < 255; i++) { in sample_acp_module() local 277 sample_acp_set_brightness(ctx, i, RK_AIQ_UAPI_MODE_SYNC); in sample_acp_module() 286 for (int i = 0; i < 255; i++) { in sample_acp_module() local 287 sample_acp_set_contrast(ctx, i, RK_AIQ_UAPI_MODE_ASYNC); in sample_acp_module() 296 for (int i = 0; i < 255; i++) { in sample_acp_module() local 297 sample_acp_set_contrast(ctx, i, RK_AIQ_UAPI_MODE_SYNC); in sample_acp_module() 306 for (int i = 0; i < 255; i++) { in sample_acp_module() local 307 sample_acp_set_saturation(ctx, i, RK_AIQ_UAPI_MODE_ASYNC); in sample_acp_module() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/keyboard/ |
| H A D | iqs62x-keys.c | 50 int ret, i; in iqs62x_keys_parse_prop() local 70 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_parse_prop() 72 iqs62x_switch_names[i]); in iqs62x_keys_parse_prop() 82 iqs62x_keys->switches[i].code = val; in iqs62x_keys_parse_prop() 83 iqs62x_keys->switches[i].enabled = true; in iqs62x_keys_parse_prop() 86 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop() 90 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop() 104 int ret, i; in iqs62x_keys_init() local 116 for (i = 0; i < iqs62x_keys->keycodemax; i++) { in iqs62x_keys_init() 117 if (iqs62x_keys->keycode[i] == KEY_RESERVED) in iqs62x_keys_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_dsaf_main.c | 43 int ret, i; in hns_dsaf_get_cfg() local 76 for (i = 0; i < DSAF_MODE_MAX; i++) { in hns_dsaf_get_cfg() 77 if (g_dsaf_mode_match[i] && in hns_dsaf_get_cfg() 78 !strcmp(mode_str, g_dsaf_mode_match[i])) in hns_dsaf_get_cfg() 81 if (i >= DSAF_MODE_MAX || in hns_dsaf_get_cfg() 82 i == DSAF_MODE_INVALID || i == DSAF_MODE_ENABLE) { in hns_dsaf_get_cfg() 87 dsaf_dev->dsaf_mode = (enum dsaf_mode)i; in hns_dsaf_get_cfg() 94 if ((i == DSAF_MODE_ENABLE_16VM) || in hns_dsaf_get_cfg() 95 (i == DSAF_MODE_DISABLE_2PORT_8VM) || in hns_dsaf_get_cfg() 96 (i == DSAF_MODE_DISABLE_6PORT_2VM)) in hns_dsaf_get_cfg() [all …]
|
| /OK3568_Linux_fs/kernel/arch/csky/mm/ |
| H A D | cachev2.c | 26 unsigned long i = start & ~(L1_CACHE_BYTES - 1); in icache_inv_range() local 28 for (; i < end; i += L1_CACHE_BYTES) in icache_inv_range() 29 asm volatile("icache.iva %0\n"::"r"(i):"memory"); in icache_inv_range() 40 static inline void cache_op_line(unsigned long i, unsigned int val) in cache_op_line() argument 42 mtcr("cr22", i); in cache_op_line() 49 unsigned long i = param->start & ~(L1_CACHE_BYTES - 1); in local_icache_inv_range() local 54 for (; i < param->end; i += L1_CACHE_BYTES) in local_icache_inv_range() 55 cache_op_line(i, INS_CACHE | CACHE_INV | CACHE_OMS); in local_icache_inv_range() 81 unsigned long i = start & ~(L1_CACHE_BYTES - 1); in dcache_wb_range() local 83 for (; i < end; i += L1_CACHE_BYTES) in dcache_wb_range() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/interconnect/ |
| H A D | bulk.c | 18 int ret, i; in of_icc_bulk_get() local 20 for (i = 0; i < num_paths; i++) { in of_icc_bulk_get() 21 paths[i].path = of_icc_get(dev, paths[i].name); in of_icc_bulk_get() 22 if (IS_ERR(paths[i].path)) { in of_icc_bulk_get() 23 ret = PTR_ERR(paths[i].path); in of_icc_bulk_get() 26 paths[i].name, ret); in of_icc_bulk_get() 27 paths[i].path = NULL; in of_icc_bulk_get() 35 icc_bulk_put(i, paths); in of_icc_bulk_get() 65 int i; in icc_bulk_set_bw() local 67 for (i = 0; i < num_paths; i++) { in icc_bulk_set_bw() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/focaltech_test/ |
| H A D | focaltech_test.c | 82 int i = 0; in print_buffer() local 89 for (i = 0; i < length; i++) { in print_buffer() 90 printk("%5d ", buffer[i]); in print_buffer() 91 if ((0 == (i + 1) % line_num)) in print_buffer() 158 int i = 0; in fts_test_read() local 182 for (i = 1; i < packet_num; i++) { in fts_test_read() 184 if ((i == (packet_num - 1)) && packet_remainder) { in fts_test_read() 201 int i = 0; in fts_test_write() local 222 for (i = 0; i < packet_num; i++) { in fts_test_write() 223 if (i != 0) { in fts_test_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-tw28.c | 200 int i; in tw_write_and_verify() local 202 for (i = 0; i < 5; i++) { in tw_write_and_verify() 219 int i; in tw2865_setup() local 246 for (i = 0; i < 0xff; i++) { in tw2865_setup() 248 switch (i) { in tw2865_setup() 254 switch (i & ~0x30) { in tw2865_setup() 260 tw_write_and_verify(solo_dev, dev_addr, i, in tw2865_setup() 261 tbl_tw2865_common[i]); in tw2865_setup() 270 int i; in tw2864_setup() local 304 for (i = 0; i <= 4; i++) in tw2864_setup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/hal/ |
| H A D | phy.c | 23 u32 i; in cal_bit_shift() local 25 for (i = 0; i <= 31; i++) { in cal_bit_shift() 26 if (((bitmask >> i) & 0x1) == 1) in cal_bit_shift() 29 return i; in cal_bit_shift() 363 u32 i = 0, j = 0; in rtl88eu_dm_txpower_tracking_callback_thermalmeter() local 392 for (i = 0; i < OFDM_TABLE_SIZE_92D; i++) { in rtl88eu_dm_txpower_tracking_callback_thermalmeter() 393 if (ele_d == (OFDMSwingTable[i] & bMaskOFDM_D)) { in rtl88eu_dm_txpower_tracking_callback_thermalmeter() 394 ofdm_index_old[0] = (u8)i; in rtl88eu_dm_txpower_tracking_callback_thermalmeter() 395 dm_odm->BbSwingIdxOfdmBase = (u8)i; in rtl88eu_dm_txpower_tracking_callback_thermalmeter() 403 for (i = 0; i < CCK_TABLE_SIZE; i++) { in rtl88eu_dm_txpower_tracking_callback_thermalmeter() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | wl_roam.c | 149 int i; in set_roamscan_channel_list() local 158 for (i = 0; i < n; i++) { in set_roamscan_channel_list() 161 if (channels[i] <= CH_MAX_2G_CHANNEL) { in set_roamscan_channel_list() 162 chanspec = band2G | band_bw | channels[i]; in set_roamscan_channel_list() 164 chanspec = band5G | band_bw | channels[i]; in set_roamscan_channel_list() 166 roam_cache[i].chanspec = chanspec; in set_roamscan_channel_list() 167 channel_list.channels[i] = chanspec; in set_roamscan_channel_list() 169 WL_DBG(("channel[%d] - [%02d] \n", i, channels[i])); in set_roamscan_channel_list() 222 int i; in add_roam_cache() local 238 for (i = 0; i < n_roam_cache; i++) { in add_roam_cache() [all …]
|