| /OK3568_Linux_fs/kernel/drivers/isdn/hardware/mISDN/ |
| H A D | isdnhdlc.c | 137 if (h->cbin == fast_flag[h->bit_shift]) { \ in isdnhdlc_decode() 138 h->ffvalue = fast_flag_value[h->bit_shift]; \ in isdnhdlc_decode() 140 h->ffbit_shift = h->bit_shift; \ in isdnhdlc_decode() 141 h->bit_shift = 1; \ in isdnhdlc_decode() 162 if (hdlc->bit_shift == 0) { in isdnhdlc_decode() 169 hdlc->bit_shift = 8; in isdnhdlc_decode() 171 hdlc->bit_shift--; in isdnhdlc_decode() 179 hdlc->bit_shift = 0; in isdnhdlc_decode() 184 hdlc->bit_shift = 8; in isdnhdlc_decode() 193 (hdlc->bit_shift == 1)) in isdnhdlc_decode() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A D | cmpxchg_64.h | 73 int bit_shift = (((unsigned long)m & 2) ^ 2) << 3; in xchg16() local 74 unsigned int mask = 0xffff << bit_shift; in xchg16() 83 new32 = (load32 & (~mask)) | val << bit_shift; in xchg16() 87 return (load32 & mask) >> bit_shift; in xchg16() 134 int bit_shift = (((unsigned long)m & 3) ^ 3) << 3; in __cmpxchg_u8() local 135 unsigned int mask = 0xff << bit_shift; in __cmpxchg_u8() 141 new32 = (load32 & ~mask) | (new << bit_shift); in __cmpxchg_u8() 142 old32 = (load32 & ~mask) | (old << bit_shift); in __cmpxchg_u8() 146 load = (load32 & mask) >> bit_shift; in __cmpxchg_u8()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/ |
| H A D | halrf_interface.c | 45 u32 ori_val, bit_shift; in halrf_wreg() local 98 bit_shift = halrf_cal_bit_shift(mask); in halrf_wreg() 99 val = ((ori_val) & (~mask)) |( ((val << bit_shift)) & mask); in halrf_wreg() 112 u32 reg_val = 0, ori_val, bit_shift; in halrf_rreg() local 115 bit_shift = halrf_cal_bit_shift(mask); in halrf_rreg() 116 reg_val = (ori_val & mask) >> bit_shift; in halrf_rreg()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/ |
| H A D | halrf_interface.c | 45 u32 ori_val, bit_shift; in halrf_wreg() local 98 bit_shift = halrf_cal_bit_shift(mask); in halrf_wreg() 99 val = ((ori_val) & (~mask)) |( ((val << bit_shift)) & mask); in halrf_wreg() 112 u32 reg_val = 0, ori_val, bit_shift; in halrf_rreg() local 115 bit_shift = halrf_cal_bit_shift(mask); in halrf_rreg() 116 reg_val = (ori_val & mask) >> bit_shift; in halrf_rreg()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aynr3/ |
| H A D | rk_aiq_uapi_aynr_int_v3.cpp | 16 int bit_shift; in sigma_curve_calc() local 23 bit_shift = bit_calib - bit_proc; in sigma_curve_calc() 48 if (bit_shift > 0) { in sigma_curve_calc() 49 pLumaPoint[i] >>= bit_shift; in sigma_curve_calc() 51 pLumaPoint[i] <<= ABS(bit_shift); in sigma_curve_calc()
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8712/ |
| H A D | rtl871x_mp.c | 206 u32 org_value, bit_shift; in get_bb_reg() local 209 bit_shift = bitshift(bitmask); in get_bb_reg() 210 return (org_value & bitmask) >> bit_shift; in get_bb_reg() 218 u32 org_value, bit_shift, new_value; in set_bb_reg() local 222 bit_shift = bitshift(bitmask); in set_bb_reg() 223 new_value = (org_value & (~bitmask)) | (value << bit_shift); in set_bb_reg() 233 u32 org_value, bit_shift; in get_rf_reg() local 236 bit_shift = bitshift(bitmask); in get_rf_reg() 237 return (org_value & bitmask) >> bit_shift; in get_rf_reg() 243 u32 org_value, bit_shift, new_value; in set_rf_reg() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/ |
| H A D | igc_mac.c | 791 u8 bit_shift = 0; in igc_hash_mc_addr() local 799 while (hash_mask >> bit_shift != 0xFF) in igc_hash_mc_addr() 800 bit_shift++; in igc_hash_mc_addr() 832 bit_shift += 1; in igc_hash_mc_addr() 835 bit_shift += 2; in igc_hash_mc_addr() 838 bit_shift += 4; in igc_hash_mc_addr() 842 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igc_hash_mc_addr() 843 (((u16)mc_addr[5]) << bit_shift))); in igc_hash_mc_addr()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/hal/ |
| H A D | hal_intf.c | 1377 u8 bit_shift; in _rtw_hal_macid_sleep() local 1388 bit_shift = macid; in _rtw_hal_macid_sleep() 1391 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1395 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1399 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1423 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1425 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1427 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1429 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1442 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/hal/ |
| H A D | hal_intf.c | 1377 u8 bit_shift; in _rtw_hal_macid_sleep() local 1388 bit_shift = macid; in _rtw_hal_macid_sleep() 1391 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1395 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1399 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1423 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1425 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1427 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1429 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1442 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/hal/ |
| H A D | hal_intf.c | 1377 u8 bit_shift; in _rtw_hal_macid_sleep() local 1388 bit_shift = macid; in _rtw_hal_macid_sleep() 1391 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1395 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1399 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1423 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1425 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1427 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1429 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1442 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/renesas/ |
| H A D | rmobile-sysc.c | 39 unsigned int bit_shift; member 51 unsigned int mask = BIT(rmobile_pd->bit_shift); in rmobile_pd_power_down() 79 unsigned int mask = BIT(rmobile_pd->bit_shift); in __rmobile_pd_power_up() 269 if (pd->bit_shift == ~0) { in rmobile_setup_pm_domain() 302 pd->bit_shift = idx; in rmobile_add_pm_domains()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/hal/ |
| H A D | hal_intf.c | 1433 u8 bit_shift; in _rtw_hal_macid_sleep() local 1444 bit_shift = macid; in _rtw_hal_macid_sleep() 1447 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1451 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1455 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1479 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1481 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1483 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1485 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1498 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/ |
| H A D | hal_intf.c | 1431 u8 bit_shift; in _rtw_hal_macid_sleep() local 1442 bit_shift = macid; in _rtw_hal_macid_sleep() 1445 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1449 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1453 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1477 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1479 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1481 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1483 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1496 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/ |
| H A D | hal_intf.c | 1429 u8 bit_shift; in _rtw_hal_macid_sleep() local 1440 bit_shift = macid; in _rtw_hal_macid_sleep() 1443 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1447 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1451 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1475 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1477 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1479 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1481 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1494 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/ |
| H A D | hal_intf.c | 1435 u8 bit_shift; in _rtw_hal_macid_sleep() local 1446 bit_shift = macid; in _rtw_hal_macid_sleep() 1449 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1453 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1457 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1481 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1483 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1485 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1487 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1500 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/hal/ |
| H A D | hal_intf.c | 1434 u8 bit_shift; in _rtw_hal_macid_sleep() local 1445 bit_shift = macid; in _rtw_hal_macid_sleep() 1448 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1452 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1456 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1480 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1482 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1484 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1486 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1499 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igbvf/ |
| H A D | vf.c | 171 u8 bit_shift = 0; in e1000_hash_mc_addr_vf() local 179 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr_vf() 180 bit_shift++; in e1000_hash_mc_addr_vf() 182 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf() 183 (((u16)mc_addr[5]) << bit_shift))); in e1000_hash_mc_addr_vf()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/hal/ |
| H A D | hal_intf.c | 1127 u8 bit_shift; in _rtw_hal_macid_sleep() local 1139 bit_shift = macid; in _rtw_hal_macid_sleep() 1143 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1148 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1153 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1173 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1175 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1177 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1179 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1286 u8 bit_shift; in _rtw_hal_macid_drop() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/hal/ |
| H A D | hal_intf.c | 1121 u8 bit_shift; in _rtw_hal_macid_sleep() local 1133 bit_shift = macid; in _rtw_hal_macid_sleep() 1137 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1142 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1147 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1167 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1169 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1171 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1173 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1280 u8 bit_shift; in _rtw_hal_macid_drop() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/hal/ |
| H A D | hal_intf.c | 1138 u8 bit_shift; in _rtw_hal_macid_sleep() local 1150 bit_shift = macid; in _rtw_hal_macid_sleep() 1154 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1159 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1164 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1184 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1186 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1188 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1190 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1297 u8 bit_shift; in _rtw_hal_macid_drop() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/ |
| H A D | hal_intf.c | 1355 u8 bit_shift; in _rtw_hal_macid_sleep() local 1366 bit_shift = macid; in _rtw_hal_macid_sleep() 1369 bit_shift = macid - 32; in _rtw_hal_macid_sleep() 1373 bit_shift = macid - 64; in _rtw_hal_macid_sleep() 1377 bit_shift = macid - 96; in _rtw_hal_macid_sleep() 1401 if (val32 & BIT(bit_shift)) in _rtw_hal_macid_sleep() 1403 val32 |= BIT(bit_shift); in _rtw_hal_macid_sleep() 1405 if (!(val32 & BIT(bit_shift))) in _rtw_hal_macid_sleep() 1407 val32 &= ~BIT(bit_shift); in _rtw_hal_macid_sleep() 1420 u8 bit_shift; in _rtw_hal_macid_sleep() local [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aynr2/ |
| H A D | rk_aiq_aynr_algo_ynr_v2.cpp | 147 int bit_shift; in ynr_init_params_V2() local 160 bit_shift = bit_calib - bit_proc; in ynr_init_params_V2() 191 if (bit_shift > 0) { in ynr_init_params_V2() 192 pYnrParams->arYnrParamsISO[j].lumaPoints_V2[i] >>= bit_shift; in ynr_init_params_V2() 194 pYnrParams->arYnrParamsISO[j].lumaPoints_V2[i] <<= ABS(bit_shift); in ynr_init_params_V2() 725 int bit_shift; in ynr_init_params_json_V2() local 738 bit_shift = bit_calib - bit_proc; in ynr_init_params_json_V2() 769 if (bit_shift > 0) { in ynr_init_params_json_V2() 770 pYnrParams->arYnrParamsISO[j].lumaPoints_V2[i] >>= bit_shift; in ynr_init_params_json_V2() 772 pYnrParams->arYnrParamsISO[j].lumaPoints_V2[i] <<= ABS(bit_shift); in ynr_init_params_json_V2()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/anr/ |
| H A D | rk_aiq_anr_algo_ynr.cpp | 142 int bit_shift; in init_ynr_params() local 148 bit_shift = bit_calib - bit_proc; in init_ynr_params() 189 if(bit_shift > 0) { in init_ynr_params() 190 pParams[j].lumaPoints[i] >>= bit_shift; in init_ynr_params() 193 pParams[j].lumaPoints[i] <<= ABS(bit_shift); in init_ynr_params() 233 if(bit_shift > 0) in init_ynr_params() 234 tmp /= (1 << bit_shift); in init_ynr_params() 236 tmp *= (1 << ABS(bit_shift)); in init_ynr_params() 337 int bit_shift; in init_ynr_params_json() local 343 bit_shift = bit_calib - bit_proc; in init_ynr_params_json() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aynr/ |
| H A D | rk_aiq_aynr_algo_ynr_v1.cpp | 113 int bit_shift; in init_ynr_params_v1() local 119 bit_shift = bit_calib - bit_proc; in init_ynr_params_v1() 160 if(bit_shift > 0) { in init_ynr_params_v1() 161 pParams[j].lumaPoints[i] >>= bit_shift; in init_ynr_params_v1() 164 pParams[j].lumaPoints[i] <<= ABS(bit_shift); in init_ynr_params_v1() 204 if(bit_shift > 0) in init_ynr_params_v1() 205 tmp /= (1 << bit_shift); in init_ynr_params_v1() 207 tmp *= (1 << ABS(bit_shift)); in init_ynr_params_v1() 294 int bit_shift; in init_ynr_params_json_v1() local 301 bit_shift = bit_calib - bit_proc; in init_ynr_params_json_v1() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/hal/ |
| H A D | phy.c | 34 u32 original_value, bit_shift; in phy_query_bb_reg() local 37 bit_shift = cal_bit_shift(bitmask); in phy_query_bb_reg() 38 return (original_value & bitmask) >> bit_shift; in phy_query_bb_reg() 43 u32 original_value, bit_shift; in phy_set_bb_reg() local 47 bit_shift = cal_bit_shift(bitmask); in phy_set_bb_reg() 48 data = (original_value & (~bitmask)) | (data << bit_shift); in phy_set_bb_reg() 111 u32 original_value, bit_shift; in rtw_hal_read_rfreg() local 114 bit_shift = cal_bit_shift(bit_mask); in rtw_hal_read_rfreg() 115 return (original_value & bit_mask) >> bit_shift; in rtw_hal_read_rfreg() 121 u32 original_value, bit_shift; in phy_set_rf_reg() local [all …]
|