/linux/drivers/pinctrl/ |
H A D | pinctrl-rockchip.c | 1344 int pin_num, struct regmap **regmap, in px30_calc_pull_reg_and_bit() argument 1362 *reg += ((pin_num / PX30_PULL_PINS_PER_REG) * 4); in px30_calc_pull_reg_and_bit() 1363 *bit = (pin_num % PX30_PULL_PINS_PER_REG); in px30_calc_pull_reg_and_bit() 1376 int pin_num, struct regmap **regmap, in px30_calc_drv_reg_and_bit() argument 1394 *reg += ((pin_num / PX30_DRV_PINS_PER_REG) * 4); in px30_calc_drv_reg_and_bit() 1395 *bit = (pin_num % PX30_DRV_PINS_PER_REG); in px30_calc_drv_reg_and_bit() 1408 int pin_num, in px30_calc_schmitt_reg_and_bit() argument 1426 *reg += ((pin_num / pins_per_reg) * 4); in px30_calc_schmitt_reg_and_bit() 1427 *bit = pin_num % pins_per_reg; in px30_calc_schmitt_reg_and_bit() 1439 int pin_num, struct regmap **regmap, in rv1108_calc_pull_reg_and_bit() argument [all …]
|
H A D | pinctrl-rockchip.h | 403 int pin_num, struct regmap **regmap, 406 int pin_num, struct regmap **regmap, 409 int pin_num, struct regmap **regmap,
|
H A 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()
|
H A 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/drivers/media/common/siano/ |
H A D | smscoreapi.c | 1883 static int get_gpio_pin_params(u32 pin_num, u32 *p_translatedpin_num, in get_gpio_pin_params() argument 1888 if (pin_num <= 1) { in get_gpio_pin_params() 1892 } else if (pin_num >= 2 && pin_num <= 6) { in get_gpio_pin_params() 1896 } else if (pin_num >= 7 && pin_num <= 11) { in get_gpio_pin_params() 1899 } else if (pin_num >= 12 && pin_num <= 15) { in get_gpio_pin_params() 1903 } else if (pin_num == 16) { in get_gpio_pin_params() 1906 } else if (pin_num >= 17 && pin_num <= 24) { in get_gpio_pin_params() 1909 } else if (pin_num == 25) { in get_gpio_pin_params() 1912 } else if (pin_num >= 26 && pin_num <= 28) { in get_gpio_pin_params() 1915 } else if (pin_num == 29) { in get_gpio_pin_params() [all …]
|
H A D | smscoreapi.h | 1129 extern int smscore_gpio_configure(struct smscore_device_t *coredev, u8 pin_num, 1131 extern int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 pin_num, 1133 extern int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num,
|
/linux/include/linux/gpio/ |
H A D | gpio-nomadik.h | 87 #define PRCM_GPIOCR_ALTCX(pin_num,\ argument 93 .pin = pin_num,\
|
/linux/drivers/pinctrl/sunplus/ |
H A 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/drivers/gpio/ |
H A 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/drivers/pinctrl/mediatek/ |
H A D | pinctrl-paris.c | 369 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin() argument 371 const struct mtk_pin_desc *pin = hw->soc->pins + pin_num; in mtk_pctrl_find_function_by_pin() 383 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid() argument 391 if (pin->number == pin_num) { in mtk_pctrl_is_function_valid()
|
H A 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/drivers/net/ethernet/intel/ice/ |
H A D | ice_dpll.c | 2086 int i, pin_num, ret = -EINVAL; in ice_dpll_init_info_pins_generic() local 2091 pin_num = pf->dplls.num_inputs; in ice_dpll_init_info_pins_generic() 2097 pin_num = pf->dplls.num_outputs; in ice_dpll_init_info_pins_generic() 2102 if (pin_num > ARRAY_SIZE(labels)) in ice_dpll_init_info_pins_generic() 2105 for (i = 0; i < pin_num; i++) { in ice_dpll_init_info_pins_generic()
|
H A D | ice_ptp_hw.h | 416 int ice_get_cgu_rclk_pin_info(struct ice_hw *hw, u8 *base_idx, u8 *pin_num);
|
H A D | ice_ptp_hw.c | 6141 int ice_get_cgu_rclk_pin_info(struct ice_hw *hw, u8 *base_idx, u8 *pin_num) in ice_get_cgu_rclk_pin_info() argument 6154 *pin_num = ICE_E810_RCLK_PINS_NUM; in ice_get_cgu_rclk_pin_info() 6167 *pin_num = ICE_E82X_RCLK_PINS_NUM; in ice_get_cgu_rclk_pin_info()
|
/linux/sound/soc/intel/boards/ |
H A D | sof_sdw.c | 708 int pin_num = intel_ctx->sdw_pin_index[link_num]++; in create_sdw_dailink() local 714 link_num, pin_num); in create_sdw_dailink()
|
/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 529 u32 pin_num, u32 fnum) in stm32_pctrl_is_function_valid() argument 537 if (pin->pin.number != pin_num) in stm32_pctrl_is_function_valid() 549 dev_err(pctl->dev, "invalid function %d on pin %d .\n", fnum, pin_num); in stm32_pctrl_is_function_valid()
|
/linux/drivers/pinctrl/sunxi/ |
H A 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()
|
/linux/drivers/usb/misc/ |
H A D | usb-ljca.c | 95 u8 pin_num; member
|