/linux-6.6.21/drivers/pinctrl/ |
D | pinctrl-rockchip.c | 1281 int pin_num, struct regmap **regmap, in px30_calc_pull_reg_and_bit() argument 1299 *reg += ((pin_num / PX30_PULL_PINS_PER_REG) * 4); in px30_calc_pull_reg_and_bit() 1300 *bit = (pin_num % PX30_PULL_PINS_PER_REG); in px30_calc_pull_reg_and_bit() 1313 int pin_num, struct regmap **regmap, in px30_calc_drv_reg_and_bit() argument 1331 *reg += ((pin_num / PX30_DRV_PINS_PER_REG) * 4); in px30_calc_drv_reg_and_bit() 1332 *bit = (pin_num % PX30_DRV_PINS_PER_REG); in px30_calc_drv_reg_and_bit() 1345 int pin_num, in px30_calc_schmitt_reg_and_bit() argument 1363 *reg += ((pin_num / pins_per_reg) * 4); in px30_calc_schmitt_reg_and_bit() 1364 *bit = pin_num % pins_per_reg; in px30_calc_schmitt_reg_and_bit() 1376 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 | 115 static void dc_client_sel(int pin_num, int *reg, int *bit) in dc_client_sel() argument 117 *bit = (pin_num % PINS_PER_COLLECTION) * 2; in dc_client_sel() 118 *reg = GP_CLIENTSEL(pin_num/PINS_PER_COLLECTION); in dc_client_sel()
|
D | pinctrl-amd.c | 193 unsigned int bank, i, pin_num; in amd_gpio_dbg_show() local 221 pin_num = AMD_GPIO_PINS_BANK0; in amd_gpio_dbg_show() 225 pin_num = AMD_GPIO_PINS_BANK1 + i; in amd_gpio_dbg_show() 229 pin_num = AMD_GPIO_PINS_BANK2 + i; in amd_gpio_dbg_show() 233 pin_num = AMD_GPIO_PINS_BANK3 + i; in amd_gpio_dbg_show() 241 for (; i < pin_num; i++) { in amd_gpio_dbg_show()
|
/linux-6.6.21/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.6.21/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik.h | 26 #define PRCM_GPIOCR_ALTCX(pin_num,\ argument 32 .pin = pin_num,\
|
/linux-6.6.21/drivers/pinctrl/sunplus/ |
D | sppctl.c | 825 u8 pin_num, pin_type, pin_func; in sppctl_dt_node_to_map() local 854 pin_num = FIELD_GET(GENMASK(31, 24), dt_pin); in sppctl_dt_node_to_map() 856 if (pin_num >= sppctl_pins_all_sz) { in sppctl_dt_node_to_map() 873 pin_num = FIELD_GET(GENMASK(31, 24), dt_pin); in sppctl_dt_node_to_map() 882 (*map)[i].data.configs.group_or_pin = pin_get_name(pctldev, pin_num); in sppctl_dt_node_to_map() 897 (*map)[i].data.configs.group_or_pin = pin_get_name(pctldev, pin_num); in sppctl_dt_node_to_map() 910 (*map)[i].data.mux.group = pin_get_name(pctldev, pin_num); in sppctl_dt_node_to_map()
|
/linux-6.6.21/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.6.21/drivers/pinctrl/mediatek/ |
D | pinctrl-paris.c | 383 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin() argument 385 const struct mtk_pin_desc *pin = hw->soc->pins + pin_num; in mtk_pctrl_find_function_by_pin() 397 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid() argument 405 if (pin->number == pin_num) { in mtk_pctrl_is_function_valid()
|
D | pinctrl-mtk-common.c | 457 struct mtk_pinctrl *pctl, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin() argument 459 const struct mtk_desc_pin *pin = pctl->devdata->pins + pin_num; in mtk_pctrl_find_function_by_pin() 472 u32 pin_num, u32 fnum) in mtk_pctrl_is_function_valid() argument 479 if (pin->pin.number == pin_num) { in mtk_pctrl_is_function_valid()
|
/linux-6.6.21/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.c | 540 u32 pin_num, u32 fnum) in stm32_pctrl_is_function_valid() argument 548 if (pin->pin.number != pin_num) in stm32_pctrl_is_function_valid() 560 dev_err(pctl->dev, "invalid function %d on pin %d .\n", fnum, pin_num); in stm32_pctrl_is_function_valid()
|
/linux-6.6.21/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.c | 171 const u16 pin_num, in sunxi_pinctrl_desc_find_function_by_pin() argument 179 if (pin->pin.number == pin_num) { in sunxi_pinctrl_desc_find_function_by_pin()
|