• Home
  • Raw
  • Download

Lines Matching refs:bit

363 		.bit = 0,
369 .bit = 2,
375 .bit = 4,
381 .bit = 6,
387 .bit = 8,
393 .bit = 10,
399 .bit = 12,
405 .bit = 14,
411 .bit = 0,
417 .bit = 2,
427 .bit = 0,
433 .bit = 4,
439 .bit = 8,
445 .bit = 12,
451 .bit = 12,
462 .bit = 12,
469 .bit = 0,
476 .bit = 4,
483 .bit = 8,
490 .bit = 12,
497 .bit = 0,
504 .bit = 4,
511 .bit = 8,
518 .bit = 8,
525 .bit = 12,
532 .bit = 4,
539 .bit = 6,
546 .bit = 0,
553 .bit = 4,
560 .bit = 6,
570 .bit = 8,
576 .bit = 0,
582 .bit = 14,
588 int *reg, u8 *bit, int *mask) in rockchip_get_recalced_mux() argument
607 *bit = data->bit; in rockchip_get_recalced_mux()
882 u8 bit; in rockchip_get_mux() local
904 bit = (pin % 4) * 4; in rockchip_get_mux()
909 bit = (pin % 8 % 5) * 3; in rockchip_get_mux()
912 bit = (pin % 8) * 2; in rockchip_get_mux()
917 rockchip_get_recalced_mux(bank, pin, &reg, &bit, &mask); in rockchip_get_mux()
923 return ((val >> bit) & mask); in rockchip_get_mux()
971 u8 bit; in rockchip_set_mux() local
992 bit = (pin % 4) * 4; in rockchip_set_mux()
997 bit = (pin % 8 % 5) * 3; in rockchip_set_mux()
1000 bit = (pin % 8) * 2; in rockchip_set_mux()
1005 rockchip_get_recalced_mux(bank, pin, &reg, &bit, &mask); in rockchip_set_mux()
1028 data = (mask << (bit + 16)); in rockchip_set_mux()
1030 data |= (mux & mask) << bit; in rockchip_set_mux()
1044 int *reg, u8 *bit) in px30_calc_pull_reg_and_bit() argument
1062 *bit = (pin_num % PX30_PULL_PINS_PER_REG); in px30_calc_pull_reg_and_bit()
1063 *bit *= PX30_PULL_BITS_PER_PIN; in px30_calc_pull_reg_and_bit()
1076 int *reg, u8 *bit) in px30_calc_drv_reg_and_bit() argument
1094 *bit = (pin_num % PX30_DRV_PINS_PER_REG); in px30_calc_drv_reg_and_bit()
1095 *bit *= PX30_DRV_BITS_PER_PIN; in px30_calc_drv_reg_and_bit()
1109 int *reg, u8 *bit) in px30_calc_schmitt_reg_and_bit() argument
1126 *bit = pin_num % pins_per_reg; in px30_calc_schmitt_reg_and_bit()
1139 int *reg, u8 *bit) in rv1108_calc_pull_reg_and_bit() argument
1156 *bit = (pin_num % RV1108_PULL_PINS_PER_REG); in rv1108_calc_pull_reg_and_bit()
1157 *bit *= RV1108_PULL_BITS_PER_PIN; in rv1108_calc_pull_reg_and_bit()
1170 int *reg, u8 *bit) in rv1108_calc_drv_reg_and_bit() argument
1188 *bit = pin_num % RV1108_DRV_PINS_PER_REG; in rv1108_calc_drv_reg_and_bit()
1189 *bit *= RV1108_DRV_BITS_PER_PIN; in rv1108_calc_drv_reg_and_bit()
1203 int *reg, u8 *bit) in rv1108_calc_schmitt_reg_and_bit() argument
1219 *bit = pin_num % pins_per_reg; in rv1108_calc_schmitt_reg_and_bit()
1230 int *reg, u8 *bit) in rk3308_calc_schmitt_reg_and_bit() argument
1239 *bit = pin_num % RK3308_SCHMITT_PINS_PER_REG; in rk3308_calc_schmitt_reg_and_bit()
1250 int *reg, u8 *bit) in rk2928_calc_pull_reg_and_bit() argument
1259 *bit = pin_num % RK2928_PULL_PINS_PER_REG; in rk2928_calc_pull_reg_and_bit()
1268 int *reg, u8 *bit) in rk3128_calc_pull_reg_and_bit() argument
1277 *bit = pin_num % RK2928_PULL_PINS_PER_REG; in rk3128_calc_pull_reg_and_bit()
1290 int *reg, u8 *bit) in rk3188_calc_pull_reg_and_bit() argument
1300 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3188_calc_pull_reg_and_bit()
1301 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3188_calc_pull_reg_and_bit()
1317 *bit = 7 - (pin_num % RK3188_PULL_PINS_PER_REG); in rk3188_calc_pull_reg_and_bit()
1318 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3188_calc_pull_reg_and_bit()
1327 int *reg, u8 *bit) in rk3288_calc_pull_reg_and_bit() argument
1337 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3288_calc_pull_reg_and_bit()
1338 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3288_calc_pull_reg_and_bit()
1348 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3288_calc_pull_reg_and_bit()
1349 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3288_calc_pull_reg_and_bit()
1363 int *reg, u8 *bit) in rk3288_calc_drv_reg_and_bit() argument
1373 *bit = pin_num % RK3288_DRV_PINS_PER_REG; in rk3288_calc_drv_reg_and_bit()
1374 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3288_calc_drv_reg_and_bit()
1384 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3288_calc_drv_reg_and_bit()
1385 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3288_calc_drv_reg_and_bit()
1395 int *reg, u8 *bit) in rk3228_calc_pull_reg_and_bit() argument
1404 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3228_calc_pull_reg_and_bit()
1405 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3228_calc_pull_reg_and_bit()
1414 int *reg, u8 *bit) in rk3228_calc_drv_reg_and_bit() argument
1423 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3228_calc_drv_reg_and_bit()
1424 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3228_calc_drv_reg_and_bit()
1433 int *reg, u8 *bit) in rk3308_calc_pull_reg_and_bit() argument
1442 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3308_calc_pull_reg_and_bit()
1443 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3308_calc_pull_reg_and_bit()
1452 int *reg, u8 *bit) in rk3308_calc_drv_reg_and_bit() argument
1461 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3308_calc_drv_reg_and_bit()
1462 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3308_calc_drv_reg_and_bit()
1472 int *reg, u8 *bit) in rk3368_calc_pull_reg_and_bit() argument
1482 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3368_calc_pull_reg_and_bit()
1483 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3368_calc_pull_reg_and_bit()
1493 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3368_calc_pull_reg_and_bit()
1494 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3368_calc_pull_reg_and_bit()
1505 int *reg, u8 *bit) in rk3368_calc_drv_reg_and_bit() argument
1515 *bit = pin_num % RK3288_DRV_PINS_PER_REG; in rk3368_calc_drv_reg_and_bit()
1516 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3368_calc_drv_reg_and_bit()
1526 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3368_calc_drv_reg_and_bit()
1527 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3368_calc_drv_reg_and_bit()
1539 int *reg, u8 *bit) in rk3399_calc_pull_reg_and_bit() argument
1551 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3399_calc_pull_reg_and_bit()
1552 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3399_calc_pull_reg_and_bit()
1562 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3399_calc_pull_reg_and_bit()
1563 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3399_calc_pull_reg_and_bit()
1571 int *reg, u8 *bit) in rk3399_calc_drv_reg_and_bit() argument
1585 *bit = (pin_num % 8) * 3; in rk3399_calc_drv_reg_and_bit()
1587 *bit = (pin_num % 8) * 2; in rk3399_calc_drv_reg_and_bit()
1600 int *reg, u8 *bit) in rk3568_calc_pull_reg_and_bit() argument
1610 *bit = pin_num % RK3568_PULL_PINS_PER_REG; in rk3568_calc_pull_reg_and_bit()
1611 *bit *= RK3568_PULL_BITS_PER_PIN; in rk3568_calc_pull_reg_and_bit()
1618 *bit = (pin_num % RK3568_PULL_PINS_PER_REG); in rk3568_calc_pull_reg_and_bit()
1619 *bit *= RK3568_PULL_BITS_PER_PIN; in rk3568_calc_pull_reg_and_bit()
1633 int *reg, u8 *bit) in rk3568_calc_drv_reg_and_bit() argument
1643 *bit = pin_num % RK3568_DRV_PINS_PER_REG; in rk3568_calc_drv_reg_and_bit()
1644 *bit *= RK3568_DRV_BITS_PER_PIN; in rk3568_calc_drv_reg_and_bit()
1651 *bit = (pin_num % RK3568_DRV_PINS_PER_REG); in rk3568_calc_drv_reg_and_bit()
1652 *bit *= RK3568_DRV_BITS_PER_PIN; in rk3568_calc_drv_reg_and_bit()
1675 u8 bit; in rockchip_get_drive_perpin() local
1678 ret = ctrl->drv_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_get_drive_perpin()
1686 switch (bit) { in rockchip_get_drive_perpin()
1716 bit -= 16; in rockchip_get_drive_perpin()
1720 bit, drv_type); in rockchip_get_drive_perpin()
1739 data >>= bit; in rockchip_get_drive_perpin()
1754 u8 bit; in rockchip_set_drive_perpin() local
1760 ret = ctrl->drv_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_drive_perpin()
1789 switch (bit) { in rockchip_set_drive_perpin()
1817 bit -= 16; in rockchip_set_drive_perpin()
1821 bit, drv_type); in rockchip_set_drive_perpin()
1837 data = ((1 << rmask_bits) - 1) << (bit + 16); in rockchip_set_drive_perpin()
1839 data |= (ret << bit); in rockchip_set_drive_perpin()
1868 u8 bit; in rockchip_get_pull() local
1875 ret = ctrl->pull_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_get_pull()
1886 return !(data & BIT(bit)) in rockchip_get_pull()
1898 data >>= bit; in rockchip_get_pull()
1924 u8 bit; in rockchip_set_pull() local
1933 ret = ctrl->pull_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_pull()
1940 data = BIT(bit + 16); in rockchip_set_pull()
1942 data |= BIT(bit); in rockchip_set_pull()
1977 data = ((1 << RK3188_PULL_BITS_PER_PIN) - 1) << (bit + 16); in rockchip_set_pull()
1979 data |= (ret << bit); in rockchip_set_pull()
1999 int *reg, u8 *bit) in rk3328_calc_schmitt_reg_and_bit() argument
2008 *bit = pin_num % RK3328_SCHMITT_PINS_PER_REG; in rk3328_calc_schmitt_reg_and_bit()
2022 int *reg, u8 *bit) in rk3568_calc_schmitt_reg_and_bit() argument
2036 *bit = pin_num % RK3568_SCHMITT_PINS_PER_REG; in rk3568_calc_schmitt_reg_and_bit()
2037 *bit *= RK3568_SCHMITT_BITS_PER_PIN; in rk3568_calc_schmitt_reg_and_bit()
2048 u8 bit; in rockchip_get_schmitt() local
2051 ret = ctrl->schmitt_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_get_schmitt()
2059 data >>= bit; in rockchip_get_schmitt()
2078 u8 bit; in rockchip_set_schmitt() local
2084 ret = ctrl->schmitt_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_schmitt()
2091 data = ((1 << RK3568_SCHMITT_BITS_PER_PIN) - 1) << (bit + 16); in rockchip_set_schmitt()
2093 data |= ((enable ? 0x2 : 0x1) << bit); in rockchip_set_schmitt()
2096 data = BIT(bit + 16) | (enable << bit); in rockchip_set_schmitt()
2097 rmask = BIT(bit + 16) | BIT(bit); in rockchip_set_schmitt()