Lines Matching refs:bit

335 	u8 bit;  member
380 int *reg, u8 *bit);
383 int *reg, u8 *bit);
386 int *reg, u8 *bit);
389 int *reg, u8 *bit);
425 .bit = 0,
431 .bit = 2,
437 .bit = 4,
443 .bit = 6,
449 .bit = 8,
455 .bit = 10,
461 .bit = 12,
467 .bit = 14,
473 .bit = 0,
479 .bit = 2,
489 .bit = 0,
496 .bit = 4,
503 .bit = 8,
510 .bit = 12,
520 .bit = 0,
526 .bit = 4,
532 .bit = 8,
538 .bit = 12,
544 .bit = 12,
554 .bit = 12,
560 .bit = 0,
566 .bit = 4,
572 .bit = 8,
578 .bit = 12,
584 .bit = 0,
590 .bit = 4,
596 .bit = 8,
602 .bit = 8,
608 .bit = 12,
618 .bit = 12,
624 .bit = 0,
630 .bit = 4,
636 .bit = 8,
642 .bit = 12,
648 .bit = 0,
654 .bit = 4,
660 .bit = 8,
666 .bit = 8,
672 .bit = 12,
678 .bit = 0,
684 .bit = 4,
690 .bit = 8,
696 .bit = 0,
702 .bit = 4,
713 .bit = 0,
720 .bit = 14,
727 .bit = 2,
734 .bit = 4,
741 .bit = 6,
748 .bit = 8,
755 .bit = 10,
762 .bit = 12,
769 .bit = 14,
873 int *reg, u8 *bit, int *mask) in rockchip_get_recalced_mux() argument
892 *bit = data->bit; in rockchip_get_recalced_mux()
1635 u8 bit; in rockchip_get_mux() local
1661 bit = (pin % 4) * 4; in rockchip_get_mux()
1666 bit = (pin % 8 % 5) * 3; in rockchip_get_mux()
1669 bit = (pin % 8) * 2; in rockchip_get_mux()
1674 rockchip_get_recalced_mux(bank, pin, &reg, &bit, &mask); in rockchip_get_mux()
1680 return ((val >> bit) & mask); in rockchip_get_mux()
1733 u8 bit; in rockchip_set_mux() local
1758 bit = (pin % 4) * 4; in rockchip_set_mux()
1763 bit = (pin % 8 % 5) * 3; in rockchip_set_mux()
1766 bit = (pin % 8) * 2; in rockchip_set_mux()
1771 rockchip_get_recalced_mux(bank, pin, &reg, &bit, &mask); in rockchip_set_mux()
1796 data &= ~(mask << bit); in rockchip_set_mux()
1798 data = (mask << (bit + 16)); in rockchip_set_mux()
1801 data |= (mux & mask) << bit; in rockchip_set_mux()
1815 int *reg, u8 *bit) in px30_calc_pull_reg_and_bit() argument
1833 *bit = (pin_num % PX30_PULL_PINS_PER_REG); in px30_calc_pull_reg_and_bit()
1834 *bit *= PX30_PULL_BITS_PER_PIN; in px30_calc_pull_reg_and_bit()
1845 int *reg, u8 *bit) in px30_calc_drv_reg_and_bit() argument
1863 *bit = (pin_num % PX30_DRV_PINS_PER_REG); in px30_calc_drv_reg_and_bit()
1864 *bit *= PX30_DRV_BITS_PER_PIN; in px30_calc_drv_reg_and_bit()
1876 int *reg, u8 *bit) in px30_calc_schmitt_reg_and_bit() argument
1892 *bit = pin_num % pins_per_reg; in px30_calc_schmitt_reg_and_bit()
1905 int *reg, u8 *bit) in rv1108_calc_pull_reg_and_bit() argument
1922 *bit = (pin_num % RV1108_PULL_PINS_PER_REG); in rv1108_calc_pull_reg_and_bit()
1923 *bit *= RV1108_PULL_BITS_PER_PIN; in rv1108_calc_pull_reg_and_bit()
1934 int *reg, u8 *bit) in rv1108_calc_drv_reg_and_bit() argument
1952 *bit = pin_num % RV1108_DRV_PINS_PER_REG; in rv1108_calc_drv_reg_and_bit()
1953 *bit *= RV1108_DRV_BITS_PER_PIN; in rv1108_calc_drv_reg_and_bit()
1965 int *reg, u8 *bit) in rv1108_calc_schmitt_reg_and_bit() argument
1981 *bit = pin_num % pins_per_reg; in rv1108_calc_schmitt_reg_and_bit()
1995 int *reg, u8 *bit) in rv1126_calc_pull_reg_and_bit() argument
2005 *bit = pin_num % RV1126_PULL_PINS_PER_REG; in rv1126_calc_pull_reg_and_bit()
2006 *bit *= RV1126_PULL_BITS_PER_PIN; in rv1126_calc_pull_reg_and_bit()
2018 *bit = (pin_num % RV1126_PULL_PINS_PER_REG); in rv1126_calc_pull_reg_and_bit()
2019 *bit *= RV1126_PULL_BITS_PER_PIN; in rv1126_calc_pull_reg_and_bit()
2030 int *reg, u8 *bit) in rv1126_calc_drv_reg_and_bit() argument
2041 *bit = pin_num % RV1126_DRV_PINS_PER_REG; in rv1126_calc_drv_reg_and_bit()
2042 *bit *= RV1126_DRV_BITS_PER_PIN; in rv1126_calc_drv_reg_and_bit()
2054 *bit = pin_num % RV1126_DRV_PINS_PER_REG; in rv1126_calc_drv_reg_and_bit()
2055 *bit *= RV1126_DRV_BITS_PER_PIN; in rv1126_calc_drv_reg_and_bit()
2067 int *reg, u8 *bit) in rv1126_calc_schmitt_reg_and_bit() argument
2077 *bit = pin_num % RV1126_SCHMITT_PINS_PER_GRF_REG; in rv1126_calc_schmitt_reg_and_bit()
2090 *bit = pin_num % pins_per_reg; in rv1126_calc_schmitt_reg_and_bit()
2104 int *reg, u8 *bit) in rk1808_calc_pull_reg_and_bit() argument
2117 *bit = (pin_num % RK1808_PULL_PINS_PER_REG); in rk1808_calc_pull_reg_and_bit()
2118 *bit *= RK1808_PULL_BITS_PER_PIN; in rk1808_calc_pull_reg_and_bit()
2130 int *reg, u8 *bit) in rk1808_calc_drv_reg_and_bit() argument
2143 *bit = pin_num % RK1808_DRV_PINS_PER_REG; in rk1808_calc_drv_reg_and_bit()
2144 *bit *= RK1808_DRV_BITS_PER_PIN; in rk1808_calc_drv_reg_and_bit()
2155 int *reg, u8 *bit) in rk1808_calc_schmitt_reg_and_bit() argument
2168 *bit = pin_num % RK1808_SCHMITT_PINS_PER_REG; in rk1808_calc_schmitt_reg_and_bit()
2179 int *reg, u8 *bit) in rk2928_calc_pull_reg_and_bit() argument
2188 *bit = pin_num % RK2928_PULL_PINS_PER_REG; in rk2928_calc_pull_reg_and_bit()
2195 int *reg, u8 *bit) in rk3128_calc_pull_reg_and_bit() argument
2204 *bit = pin_num % RK2928_PULL_PINS_PER_REG; in rk3128_calc_pull_reg_and_bit()
2215 int *reg, u8 *bit) in rk3188_calc_pull_reg_and_bit() argument
2225 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3188_calc_pull_reg_and_bit()
2226 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3188_calc_pull_reg_and_bit()
2241 *bit = 7 - (pin_num % RK3188_PULL_PINS_PER_REG); in rk3188_calc_pull_reg_and_bit()
2242 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3188_calc_pull_reg_and_bit()
2249 int *reg, u8 *bit) in rk3288_calc_pull_reg_and_bit() argument
2259 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3288_calc_pull_reg_and_bit()
2260 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3288_calc_pull_reg_and_bit()
2270 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3288_calc_pull_reg_and_bit()
2271 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3288_calc_pull_reg_and_bit()
2283 int *reg, u8 *bit) in rk3288_calc_drv_reg_and_bit() argument
2293 *bit = pin_num % RK3288_DRV_PINS_PER_REG; in rk3288_calc_drv_reg_and_bit()
2294 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3288_calc_drv_reg_and_bit()
2304 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3288_calc_drv_reg_and_bit()
2305 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3288_calc_drv_reg_and_bit()
2313 int *reg, u8 *bit) in rk3228_calc_pull_reg_and_bit() argument
2322 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3228_calc_pull_reg_and_bit()
2323 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3228_calc_pull_reg_and_bit()
2330 int *reg, u8 *bit) in rk3228_calc_drv_reg_and_bit() argument
2339 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3228_calc_drv_reg_and_bit()
2340 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3228_calc_drv_reg_and_bit()
2347 int *reg, u8 *bit) in rk3308_calc_pull_reg_and_bit() argument
2356 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3308_calc_pull_reg_and_bit()
2357 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3308_calc_pull_reg_and_bit()
2364 int *reg, u8 *bit) in rk3308_calc_drv_reg_and_bit() argument
2373 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3308_calc_drv_reg_and_bit()
2374 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3308_calc_drv_reg_and_bit()
2384 int *reg, u8 *bit) in rk3308_calc_schmitt_reg_and_bit() argument
2393 *bit = pin_num % RK3308_SCHMITT_PINS_PER_REG; in rk3308_calc_schmitt_reg_and_bit()
2403 int *reg, u8 *bit) in rk3368_calc_pull_reg_and_bit() argument
2413 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3368_calc_pull_reg_and_bit()
2414 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3368_calc_pull_reg_and_bit()
2424 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3368_calc_pull_reg_and_bit()
2425 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3368_calc_pull_reg_and_bit()
2434 int *reg, u8 *bit) in rk3368_calc_drv_reg_and_bit() argument
2444 *bit = pin_num % RK3288_DRV_PINS_PER_REG; in rk3368_calc_drv_reg_and_bit()
2445 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3368_calc_drv_reg_and_bit()
2455 *bit = (pin_num % RK3288_DRV_PINS_PER_REG); in rk3368_calc_drv_reg_and_bit()
2456 *bit *= RK3288_DRV_BITS_PER_PIN; in rk3368_calc_drv_reg_and_bit()
2466 int *reg, u8 *bit) in rk3399_calc_pull_reg_and_bit() argument
2478 *bit = pin_num % RK3188_PULL_PINS_PER_REG; in rk3399_calc_pull_reg_and_bit()
2479 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3399_calc_pull_reg_and_bit()
2489 *bit = (pin_num % RK3188_PULL_PINS_PER_REG); in rk3399_calc_pull_reg_and_bit()
2490 *bit *= RK3188_PULL_BITS_PER_PIN; in rk3399_calc_pull_reg_and_bit()
2496 int *reg, u8 *bit) in rk3399_calc_drv_reg_and_bit() argument
2510 *bit = (pin_num % 8) * 3; in rk3399_calc_drv_reg_and_bit()
2512 *bit = (pin_num % 8) * 2; in rk3399_calc_drv_reg_and_bit()
2522 int *reg, u8 *bit) in rk3308_calc_slew_rate_reg_and_bit() argument
2533 *bit = pin_num % pins_per_reg; in rk3308_calc_slew_rate_reg_and_bit()
2553 u8 bit; in rockchip_set_drive_perpin() local
2560 ctrl->drv_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_drive_perpin()
2590 data = 0x3 << (bit + 16); in rockchip_set_drive_perpin()
2591 data |= ((regval & 0x3) << bit); in rockchip_set_drive_perpin()
2597 rk3308_calc_slew_rate_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_drive_perpin()
2598 data = BIT(bit + 16) | (((regval > 3) ? 1 : 0) << bit); in rockchip_set_drive_perpin()
2608 switch (bit) { in rockchip_set_drive_perpin()
2634 bit -= 16; in rockchip_set_drive_perpin()
2638 bit, drv_type); in rockchip_set_drive_perpin()
2656 data &= ~(((1 << rmask_bits) - 1) << bit); in rockchip_set_drive_perpin()
2659 data = ((1 << rmask_bits) - 1) << (bit + 16); in rockchip_set_drive_perpin()
2662 data |= (ret << bit); in rockchip_set_drive_perpin()
2689 u8 bit; in rockchip_set_pull() local
2699 ctrl->pull_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_pull()
2704 data = BIT(bit + 16); in rockchip_set_pull()
2706 data |= BIT(bit); in rockchip_set_pull()
2739 data &= ~(((1 << RK3188_PULL_BITS_PER_PIN) - 1) << bit); in rockchip_set_pull()
2742 data = ((1 << RK3188_PULL_BITS_PER_PIN) - 1) << (bit + 16); in rockchip_set_pull()
2745 data |= (ret << bit); in rockchip_set_pull()
2764 int *reg, u8 *bit) in rk3328_calc_schmitt_reg_and_bit() argument
2773 *bit = pin_num % RK3328_SCHMITT_PINS_PER_REG; in rk3328_calc_schmitt_reg_and_bit()
2785 u8 bit; in rockchip_set_schmitt() local
2791 ret = ctrl->schmitt_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_schmitt()
2796 data = BIT(bit + 16) | (enable << bit); in rockchip_set_schmitt()
2810 int *reg, u8 *bit) in px30_calc_slew_rate_reg_and_bit() argument
2826 *bit = pin_num % pins_per_reg; in px30_calc_slew_rate_reg_and_bit()
2838 u8 bit; in rockchip_set_slew_rate() local
2844 ret = ctrl->slew_rate_calc_reg(bank, pin_num, &regmap, &reg, &bit); in rockchip_set_slew_rate()
2849 data = BIT(bit + 16) | (speed << bit); in rockchip_set_slew_rate()