/linux-6.1.9/drivers/pinctrl/ |
D | pinctrl-rockchip.c | 1282 int pin_num, struct regmap **regmap, in px30_calc_pull_reg_and_bit() argument 1300 *reg += ((pin_num / PX30_PULL_PINS_PER_REG) * 4); in px30_calc_pull_reg_and_bit() 1301 *bit = (pin_num % PX30_PULL_PINS_PER_REG); in px30_calc_pull_reg_and_bit() 1314 int pin_num, struct regmap **regmap, in px30_calc_drv_reg_and_bit() argument 1332 *reg += ((pin_num / PX30_DRV_PINS_PER_REG) * 4); in px30_calc_drv_reg_and_bit() 1333 *bit = (pin_num % PX30_DRV_PINS_PER_REG); in px30_calc_drv_reg_and_bit() 1346 int pin_num, in px30_calc_schmitt_reg_and_bit() argument 1364 *reg += ((pin_num / pins_per_reg) * 4); in px30_calc_schmitt_reg_and_bit() 1365 *bit = pin_num % pins_per_reg; in px30_calc_schmitt_reg_and_bit() 1377 int pin_num, struct regmap **regmap, in rv1108_calc_pull_reg_and_bit() argument [all …]
|
D | pinctrl-rockchip.h | 401 int pin_num, struct regmap **regmap, 404 int pin_num, struct regmap **regmap, 407 int pin_num, struct regmap **regmap,
|
D | pinctrl-digicolor.c | 114 static void dc_client_sel(int pin_num, int *reg, int *bit) in dc_client_sel() argument 116 *bit = (pin_num % PINS_PER_COLLECTION) * 2; in dc_client_sel() 117 *reg = GP_CLIENTSEL(pin_num/PINS_PER_COLLECTION); in dc_client_sel()
|
D | pinctrl-amd.c | 201 unsigned int bank, i, pin_num; in amd_gpio_dbg_show() local 229 pin_num = AMD_GPIO_PINS_BANK0; in amd_gpio_dbg_show() 233 pin_num = AMD_GPIO_PINS_BANK1 + i; in amd_gpio_dbg_show() 237 pin_num = AMD_GPIO_PINS_BANK2 + i; in amd_gpio_dbg_show() 241 pin_num = AMD_GPIO_PINS_BANK3 + i; in amd_gpio_dbg_show() 248 for (; i < pin_num; i++) { in amd_gpio_dbg_show()
|
D | pinctrl-thunderbay.c | 52 #define THB_GPIO_REG_OFFSET(pin_num) ((pin_num) * (0x4)) argument
|
/linux-6.1.9/drivers/media/common/siano/ |
D | smscoreapi.c | 1888 static int get_gpio_pin_params(u32 pin_num, u32 *p_translatedpin_num, in get_gpio_pin_params() argument 1893 if (pin_num <= 1) { in get_gpio_pin_params() 1897 } else if (pin_num >= 2 && pin_num <= 6) { in get_gpio_pin_params() 1901 } else if (pin_num >= 7 && pin_num <= 11) { in get_gpio_pin_params() 1904 } else if (pin_num >= 12 && pin_num <= 15) { in get_gpio_pin_params() 1908 } else if (pin_num == 16) { in get_gpio_pin_params() 1911 } else if (pin_num >= 17 && pin_num <= 24) { in get_gpio_pin_params() 1914 } else if (pin_num == 25) { in get_gpio_pin_params() 1917 } else if (pin_num >= 26 && pin_num <= 28) { in get_gpio_pin_params() 1920 } else if (pin_num == 29) { in get_gpio_pin_params() [all …]
|
D | smscoreapi.h | 1153 extern int smscore_gpio_configure(struct smscore_device_t *coredev, u8 pin_num, 1155 extern int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 pin_num, 1157 extern int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num,
|
/linux-6.1.9/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik.h | 21 #define PRCM_GPIOCR_ALTCX(pin_num,\ argument 27 .pin = pin_num,\
|
/linux-6.1.9/drivers/pinctrl/sunplus/ |
D | sppctl.c | 830 u8 pin_num, pin_type, pin_func; in sppctl_dt_node_to_map() local 864 pin_num = FIELD_GET(GENMASK(31, 24), dt_pin); in sppctl_dt_node_to_map() 866 if (pin_num >= sppctl_pins_all_sz) { in sppctl_dt_node_to_map() 879 pin_num = FIELD_GET(GENMASK(31, 24), dt_pin); in sppctl_dt_node_to_map() 888 (*map)[i].data.configs.group_or_pin = pin_get_name(pctldev, pin_num); in sppctl_dt_node_to_map() 901 (*map)[i].data.configs.group_or_pin = pin_get_name(pctldev, pin_num); in sppctl_dt_node_to_map() 912 (*map)[i].data.mux.group = pin_get_name(pctldev, pin_num); in sppctl_dt_node_to_map()
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-zynq.c | 191 static inline void zynq_gpio_get_bank_pin(unsigned int pin_num, in zynq_gpio_get_bank_pin() argument 199 if ((pin_num >= gpio->p_data->bank_min[bank]) && in zynq_gpio_get_bank_pin() 200 (pin_num <= gpio->p_data->bank_max[bank])) { in zynq_gpio_get_bank_pin() 202 *bank_pin_num = pin_num - in zynq_gpio_get_bank_pin() 211 WARN(true, "invalid GPIO pin number: %u", pin_num); in zynq_gpio_get_bank_pin()
|
/linux-6.1.9/drivers/pinctrl/mediatek/ |
D | pinctrl-paris.c | 378 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin() argument 380 const struct mtk_pin_desc *pin = hw->soc->pins + pin_num; in mtk_pctrl_find_function_by_pin() 392 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid() argument 400 if (pin->number == pin_num) { in mtk_pctrl_is_function_valid()
|
D | pinctrl-mtk-common.c | 444 struct mtk_pinctrl *pctl, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin() argument 446 const struct mtk_desc_pin *pin = pctl->devdata->pins + pin_num; in mtk_pctrl_find_function_by_pin() 459 u32 pin_num, u32 fnum) in mtk_pctrl_is_function_valid() argument 466 if (pin->pin.number == pin_num) { in mtk_pctrl_is_function_valid()
|
/linux-6.1.9/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.c | 539 u32 pin_num, u32 fnum) in stm32_pctrl_is_function_valid() argument 547 if (pin->pin.number != pin_num) in stm32_pctrl_is_function_valid() 559 dev_err(pctl->dev, "invalid function %d on pin %d .\n", fnum, pin_num); in stm32_pctrl_is_function_valid()
|
/linux-6.1.9/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.c | 172 const u16 pin_num, in sunxi_pinctrl_desc_find_function_by_pin() argument 180 if (pin->pin.number == pin_num) { in sunxi_pinctrl_desc_find_function_by_pin()
|