| /OK3568_Linux_fs/kernel/drivers/input/joystick/ |
| H A D | gf2k.c | 81 int i; in gf2k_read_packet() local 88 i = 0; in gf2k_read_packet() 95 while (t > 0 && i < length) { in gf2k_read_packet() 99 data[i++] = v >> 5; in gf2k_read_packet() 106 return i; in gf2k_read_packet() 118 int i, t; in gf2k_trigger_seq() local 122 i = 0; in gf2k_trigger_seq() 127 udelay(seq[i]); in gf2k_trigger_seq() 128 } while (seq[++i]); in gf2k_trigger_seq() 147 int i; in gf2k_get_bits() local [all …]
|
| H A D | tmdc.c | 134 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local 140 i[k] = j[k] = 0; in tmdc_read_packet() 154 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet() 158 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet() 162 j[k] = 0; i[k]++; continue; in tmdc_read_packet() 164 data[k][i[k]] |= (~v & 1) << (j[k]++ - 1); /* Data bit */ in tmdc_read_packet() 172 return (i[0] == TMDC_MAX_LENGTH) | ((i[1] == TMDC_MAX_LENGTH) << 1); in tmdc_read_packet() 177 int i, k, l; in tmdc_parse_packet() local 182 for (i = 0; i < port->absc; i++) { in tmdc_parse_packet() 183 if (port->abs[i] < 0) in tmdc_parse_packet() [all …]
|
| H A D | analog.c | 189 int i, j; in analog_decode() local 192 for (i = 0; i < 4; i++) in analog_decode() 193 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode() 194 buttons |= 1 << (i + 14); in analog_decode() 198 for (i = j = 0; i < 6; i++) in analog_decode() 199 if (analog->mask & (0x10 << i)) in analog_decode() 200 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode() 203 for (i = 0; i < 4; i++) in analog_decode() 204 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode() 215 for (i = j = 0; i < 4; i++) in analog_decode() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/ |
| H A D | mthca_profile.c | 80 int i, j; in mthca_make_profile() local 114 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile() 115 profile[i].type = i; in mthca_make_profile() 116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 117 profile[i].size *= profile[i].num; in mthca_make_profile() 119 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile() 136 for (i = MTHCA_RES_NUM; i > 0; --i) in mthca_make_profile() 137 for (j = 1; j < i; ++j) { in mthca_make_profile() 142 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile() 143 if (profile[i].size) { in mthca_make_profile() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/neterion/vxge/ |
| H A D | vxge-ethtool.c | 604 int i, j; in vxge_ethtool_get_strings() local 610 for (i = 0; i < vdev->no_of_vpath; i++) { in vxge_ethtool_get_strings() 612 &stat_size, data, i); in vxge_ethtool_get_strings() 614 &stat_size, data, i); in vxge_ethtool_get_strings() 616 &stat_size, data, i); in vxge_ethtool_get_strings() 618 &stat_size, data, i); in vxge_ethtool_get_strings() 620 &stat_size, data, i); in vxge_ethtool_get_strings() 622 &stat_size, data, i); in vxge_ethtool_get_strings() 624 &stat_size, data, i); in vxge_ethtool_get_strings() 626 &stat_size, data, i); in vxge_ethtool_get_strings() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/common/ |
| H A D | xf86PM.c | 98 int i; in suspend() local 101 for (i = 0; i < xf86NumScreens; i++) { in suspend() 102 if (xf86Screens[i]->EnableDisableFBAccess) in suspend() 103 (*xf86Screens[i]->EnableDisableFBAccess) (xf86Screens[i], FALSE); in suspend() 111 for (i = 0; i < xf86NumScreens; i++) { in suspend() 112 if (xf86Screens[i]->PMEvent) in suspend() 113 xf86Screens[i]->PMEvent(xf86Screens[i], event, undo); in suspend() 115 xf86Screens[i]->LeaveVT(xf86Screens[i]); in suspend() 116 xf86Screens[i]->vtSema = FALSE; in suspend() 124 int i; in resume() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/amlogic/ |
| H A D | meson-gx-pwrc-vpu.c | 51 int i; in meson_gx_pwrc_vpu_power_off() local 58 for (i = 0; i < 32; i += 2) { in meson_gx_pwrc_vpu_power_off() 60 0x3 << i, 0x3 << i); in meson_gx_pwrc_vpu_power_off() 63 for (i = 0; i < 32; i += 2) { in meson_gx_pwrc_vpu_power_off() 65 0x3 << i, 0x3 << i); in meson_gx_pwrc_vpu_power_off() 68 for (i = 8; i < 16; i++) { in meson_gx_pwrc_vpu_power_off() 70 BIT(i), BIT(i)); in meson_gx_pwrc_vpu_power_off() 89 int i; in meson_g12a_pwrc_vpu_power_off() local 96 for (i = 0; i < 32; i += 2) { in meson_g12a_pwrc_vpu_power_off() 98 0x3 << i, 0x3 << i); in meson_g12a_pwrc_vpu_power_off() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/vp9/ |
| H A D | vp9d_parser.c | 305 RK_S32 i; in vp9_frame_free() local 306 for (i = 0; i < 3; i++) { in vp9_frame_free() 307 if (s->frames[i].ref) { in vp9_frame_free() 308 vp9_unref_frame(s, &s->frames[i]); in vp9_frame_free() 310 mpp_frame_deinit(&s->frames[i].f); in vp9_frame_free() 312 for (i = 0; i < 8; i++) { in vp9_frame_free() 313 if (s->refs[i].ref) { in vp9_frame_free() 314 vp9_unref_frame(s, &s->refs[i]); in vp9_frame_free() 316 mpp_frame_deinit(&s->refs[i].f); in vp9_frame_free() 323 RK_S32 i; in vp9_frame_init() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/rtl8822b/ |
| H A D | halhwimg8822b_bb.c | 10648 u32 i = 0; in odm_read_and_config_mp_8822b_agc_tab() local 10660 while ((i + 1) < array_len) { in odm_read_and_config_mp_8822b_agc_tab() 10661 v1 = array[i]; in odm_read_and_config_mp_8822b_agc_tab() 10662 v2 = array[i + 1]; in odm_read_and_config_mp_8822b_agc_tab() 10701 i = i + 2; in odm_read_and_config_mp_8822b_agc_tab() 12214 u32 i = 0; in odm_read_and_config_mp_8822b_phy_reg() local 12226 while ((i + 1) < array_len) { in odm_read_and_config_mp_8822b_phy_reg() 12227 v1 = array[i]; in odm_read_and_config_mp_8822b_phy_reg() 12228 v2 = array[i + 1]; in odm_read_and_config_mp_8822b_phy_reg() 12267 i = i + 2; in odm_read_and_config_mp_8822b_phy_reg() [all …]
|
| /OK3568_Linux_fs/external/rknpu2/doc/ |
| H A D | RKNN_Dynamic_Shape_Usage.md | 35 for (uint32_t i = 0; i < io_num.n_input; i++) 37 dyn_range[i].index = i; 38 … ret = rknn_query(ctx, RKNN_QUERY_INPUT_DYNAMIC_RANGE, &dyn_range[i], sizeof(rknn_input_range)); 44 dump_input_dynamic_range(&dyn_range[i]); 56 for (int i = 0; i < io_num.n_input; i++) 58 for (int j = 0; j < input_attrs[i].n_dims; ++j) 60 input_attrs[i].dims[j] = shape_range[i].dyn_range[s][j]; 63 ret = rknn_set_input_shape(ctx, &input_attrs[i]); 72 其中,shape_num是支持的形状个数,shape_range[i]是第i个输入的rknn_input_range结构体,input_attrs[i]是第i个输入的rknn_tensor_attr… 79 for (uint32_t i = 0; i < io_num.n_input; i++) [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/rseq/ |
| H A D | param_test.c | 364 long long i, reps; in test_percpu_spinlock_thread() local 370 for (i = 0; i < reps; i++) { in test_percpu_spinlock_thread() 375 if (i != 0 && !(i % (reps / 10))) in test_percpu_spinlock_thread() 377 (int) rseq_gettid(), i); in test_percpu_spinlock_thread() 397 int i, ret; in test_percpu_spinlock() local 404 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock() 405 thread_data[i].reps = opt_reps; in test_percpu_spinlock() 406 if (opt_disable_mod <= 0 || (i % opt_disable_mod)) in test_percpu_spinlock() 407 thread_data[i].reg = 1; in test_percpu_spinlock() 409 thread_data[i].reg = 0; in test_percpu_spinlock() [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_android_apk_demo/app/src/main/cpp/object_tracker/ |
| H A D | track_link.cc | 25 for (int i = 0; i < track_input_num; i++) { in track() local 26 object_input[i].r.x = (int)c_track_input_locations[i*4 +0]; in track() 27 object_input[i].r.y = (int)c_track_input_locations[i*4 +1]; in track() 28 object_input[i].r.width = (int)(c_track_input_locations[i*4 +2] -c_track_input_locations[i*4 +0]); in track() 29 …object_input[i].r.height = (int)(c_track_input_locations[i*4 +3] -c_track_input_locations[i*4 +1]); in track() 30 object_input[i].score = c_track_input_score[i]; in track() 31 object_input[i].obj_class = c_track_input_class[i]; in track() 37 for (int i = 0; i < *c_track_output_num; i++) { in track() local 38 c_track_output_locations[i*4 +0] = (float)object_output[i].r.x; in track() 39 c_track_output_locations[i*4 +1] = (float)object_output[i].r.y; in track() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/ |
| H A D | navi10_reg_init.c | 31 int i; in navi10_reg_base_init() local 33 for (i = 0 ; i < MAX_INSTANCE ; ++i) { in navi10_reg_base_init() 34 adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i])); in navi10_reg_base_init() 35 adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i])); in navi10_reg_base_init() 36 adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i])); in navi10_reg_base_init() 37 adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i])); in navi10_reg_base_init() 38 adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIO_BASE.instance[i])); in navi10_reg_base_init() 39 adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i])); in navi10_reg_base_init() 40 adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i])); in navi10_reg_base_init() 41 adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(VCN_BASE.instance[i])); in navi10_reg_base_init() [all …]
|
| H A D | navi12_reg_init.c | 32 uint32_t i; in navi12_reg_base_init() local 33 for (i = 0 ; i < MAX_INSTANCE ; ++i) { in navi12_reg_base_init() 34 adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i])); in navi12_reg_base_init() 35 adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i])); in navi12_reg_base_init() 36 adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i])); in navi12_reg_base_init() 37 adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i])); in navi12_reg_base_init() 38 adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIF0_BASE.instance[i])); in navi12_reg_base_init() 39 adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i])); in navi12_reg_base_init() 40 adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i])); in navi12_reg_base_init() 41 adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(UVD0_BASE.instance[i])); in navi12_reg_base_init() [all …]
|
| H A D | navi14_reg_init.c | 31 int i; in navi14_reg_base_init() local 33 for (i = 0 ; i < MAX_INSTANCE ; ++i) { in navi14_reg_base_init() 34 adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i])); in navi14_reg_base_init() 35 adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i])); in navi14_reg_base_init() 36 adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i])); in navi14_reg_base_init() 37 adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i])); in navi14_reg_base_init() 38 adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIF0_BASE.instance[i])); in navi14_reg_base_init() 39 adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i])); in navi14_reg_base_init() 40 adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i])); in navi14_reg_base_init() 41 adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(UVD0_BASE.instance[i])); in navi14_reg_base_init() [all …]
|
| /OK3568_Linux_fs/buildroot/package/rtl8821au/ |
| H A D | 0003-Fix-using-sprintf-for-extending-string-which-causes-.patch | 21 psd_data = rtw_GetPSDData(pAdapter, i); 25 i++; 34 for (i = 0; i < EFUSE_MAP_SIZE; i += 16) { 35 // DBG_871X("0x%02x\t", i); 36 - sprintf(extra, "%s0x%02x\t", extra, i); 37 + sprintf(extra + strlen(extra), "0x%02x\t", i); 39 // DBG_871X("%02X ", data[i+j]); 40 - sprintf(extra, "%s%02X ", extra, PROMContent[i+j]); 41 + sprintf(extra + strlen(extra), "%02X ", PROMContent[i+j]); 47 // DBG_871X("%02X ", data[i+j]); [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | values.c | 49 int i; in perf_read_values_destroy() local 54 for (i = 0; i < values->threads; i++) in perf_read_values_destroy() 55 zfree(&values->value[i]); in perf_read_values_destroy() 60 for (i = 0; i < values->counters; i++) in perf_read_values_destroy() 61 zfree(&values->countername[i]); in perf_read_values_destroy() 91 int i; in perf_read_values__findnew_thread() local 93 for (i = 0; i < values->threads; i++) in perf_read_values__findnew_thread() 94 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread() 95 return i; in perf_read_values__findnew_thread() 98 i = perf_read_values__enlarge_threads(values); in perf_read_values__findnew_thread() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/input/ |
| H A D | dmxinputinit.c | 235 int i, j; in dmxChangePointerControl() local 238 for (i = 0; i < dmxNumInputs; i++) { in dmxChangePointerControl() 239 DMXInputInfo *dmxInput = &dmxInputs[i]; in dmxChangePointerControl() 277 int i, j; in dmxKeyboardKbdCtrlProc() local 280 for (i = 0; i < dmxNumInputs; i++) { in dmxKeyboardKbdCtrlProc() 281 DMXInputInfo *dmxInput = &dmxInputs[i]; in dmxKeyboardKbdCtrlProc() 313 int i, j; in dmxKeyboardBellProc() local 316 for (i = 0; i < dmxNumInputs; i++) { in dmxKeyboardBellProc() 317 DMXInputInfo *dmxInput = &dmxInputs[i]; in dmxKeyboardBellProc() 409 int i; in dmxDeviceOnOff() local [all …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | lmb.c | 18 unsigned long i; in lmb_dump_all() local 24 for (i=0; i < lmb->memory.cnt ;i++) { in lmb_dump_all() 25 debug(" memory.reg[0x%lx].base = 0x%llx\n", i, in lmb_dump_all() 26 (long long unsigned)lmb->memory.region[i].base); in lmb_dump_all() 28 (long long unsigned)lmb->memory.region[i].size); in lmb_dump_all() 35 for (i=0; i < lmb->reserved.cnt ;i++) { in lmb_dump_all() 36 debug(" reserved.reg[0x%lx].base = 0x%llx\n", i, in lmb_dump_all() 37 (long long unsigned)lmb->reserved.region[i].base); in lmb_dump_all() 39 (long long unsigned)lmb->reserved.region[i].size); in lmb_dump_all() 74 unsigned long i; in lmb_remove_region() local [all …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | twofish_common.c | 468 #define CALC_S(a, b, c, d, i, w, x, y, z) \ argument 469 if (key[i]) { \ 470 tmp = poly_to_exp[key[i] - 1]; \ 483 #define CALC_SB_2(i, a, b) \ argument 484 ctx->s[0][i] = mds[0][q0[(a) ^ sa] ^ se]; \ 485 ctx->s[1][i] = mds[1][q0[(b) ^ sb] ^ sf]; \ 486 ctx->s[2][i] = mds[2][q1[(a) ^ sc] ^ sg]; \ 487 ctx->s[3][i] = mds[3][q1[(b) ^ sd] ^ sh] 491 #define CALC_SB192_2(i, a, b) \ argument 492 ctx->s[0][i] = mds[0][q0[q0[(b) ^ sa] ^ se] ^ si]; \ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_dcb_82598.c | 26 u8 i = 0; in ixgbe_dcb_config_rx_arbiter_82598() local 42 for (i = 0; i < MAX_TRAFFIC_CLASS; i++) { in ixgbe_dcb_config_rx_arbiter_82598() 43 credit_refill = refill[i]; in ixgbe_dcb_config_rx_arbiter_82598() 44 credit_max = max[i]; in ixgbe_dcb_config_rx_arbiter_82598() 48 if (prio_type[i] == prio_link) in ixgbe_dcb_config_rx_arbiter_82598() 51 IXGBE_WRITE_REG(hw, IXGBE_RT2CR(i), reg); in ixgbe_dcb_config_rx_arbiter_82598() 85 u8 i; in ixgbe_dcb_config_tx_desc_arbiter_82598() local 99 for (i = 0; i < MAX_TRAFFIC_CLASS; i++) { in ixgbe_dcb_config_tx_desc_arbiter_82598() 100 max_credits = max[i]; in ixgbe_dcb_config_tx_desc_arbiter_82598() 102 reg |= refill[i]; in ixgbe_dcb_config_tx_desc_arbiter_82598() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/glm/glm/ |
| H A D | 0001-Silence-clang-warnings.patch | 66 for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f) 67 - result = glm::fastCos(i); 68 + glm::fastCos(i); 71 for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f) 72 - result = glm::cos(i); 73 + glm::cos(i); 84 for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f) 85 - result = glm::fastSin(i); 86 + glm::fastSin(i); 89 for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/android/ion/heaps/ |
| H A D | ion_system_heap.c | 30 int i; in order_to_index() local 32 for (i = 0; i < NUM_ORDERS; i++) in order_to_index() 33 if (order == orders[i]) in order_to_index() 34 return i; in order_to_index() 81 int i; in alloc_largest_available() local 83 for (i = 0; i < NUM_ORDERS; i++) { in alloc_largest_available() 84 if (size < order_to_size(orders[i])) in alloc_largest_available() 86 if (max_order < orders[i]) in alloc_largest_available() 89 page = alloc_buffer_page(heap, buffer, orders[i]); in alloc_largest_available() 111 int i = 0; in ion_system_heap_allocate() local [all …]
|
| /OK3568_Linux_fs/kernel/kernel/rcu/ |
| H A D | refscale.c | 131 int i; in ref_rcu_read_section() local 133 for (i = nloops; i >= 0; i--) { in ref_rcu_read_section() 141 int i; in ref_rcu_delay_section() local 143 for (i = nloops; i >= 0; i--) { in ref_rcu_delay_section() 167 int i; in srcu_ref_scale_read_section() local 170 for (i = nloops; i >= 0; i--) { in srcu_ref_scale_read_section() 178 int i; in srcu_ref_scale_delay_section() local 181 for (i = nloops; i >= 0; i--) { in srcu_ref_scale_delay_section() 199 int i; in rcu_tasks_ref_scale_read_section() local 201 for (i = nloops; i >= 0; i--) in rcu_tasks_ref_scale_read_section() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_paprd.c | 152 int i, val; in ar9003_paprd_setup_single_table() local 183 for (i = 0; i < ah->caps.max_txchains; i++) { in ar9003_paprd_setup_single_table() 184 REG_RMW_FIELD(ah, ctrl0[i], in ar9003_paprd_setup_single_table() 186 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table() 188 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table() 190 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table() 192 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table() 194 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table() 196 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table() 198 REG_RMW_FIELD(ah, ctrl0[i], in ar9003_paprd_setup_single_table() [all …]
|