Home
last modified time | relevance | path

Searched refs:pin_id (Results 1 – 19 of 19) sorted by relevance

/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c75 static void __iomem *imx1_mem(struct imx1_pinctrl *ipctl, unsigned int pin_id) in imx1_mem() argument
77 unsigned int port = pin_id / 32; in imx1_mem()
85 static void imx1_write_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_2bit() argument
88 void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset; in imx1_write_2bit()
89 int offset = (pin_id % 16) * 2; /* offset, regardless of register used */ in imx1_write_2bit()
95 if (pin_id % 32 >= 16) in imx1_write_2bit()
112 static void imx1_write_bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_bit() argument
115 void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset; in imx1_write_bit()
116 int offset = pin_id % 32; in imx1_write_bit()
132 static int imx1_read_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_read_2bit() argument
[all …]
Dpinctrl-scu.c45 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_get_scu() argument
58 msg.pad = pin_id; in imx_pinconf_get_scu()
70 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_set_scu() argument
94 msg.pad = pin_id; in imx_pinconf_set_scu()
100 pin_id, conf, val); in imx_pinconf_set_scu()
106 unsigned int *pin_id, struct imx_pin *pin, in imx_pinctrl_parse_pin_scu() argument
114 *pin_id = pin->pin; in imx_pinctrl_parse_pin_scu()
Dpinctrl-imx.c168 unsigned int pin_id; in imx_pmx_set_one_pin_mmio() local
170 pin_id = pin->pin; in imx_pmx_set_one_pin_mmio()
171 pin_reg = &ipctl->pin_regs[pin_id]; in imx_pmx_set_one_pin_mmio()
175 info->pins[pin_id].name); in imx_pmx_set_one_pin_mmio()
348 static int imx_pinconf_get_mmio(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_get_mmio() argument
353 const struct imx_pin_reg *pin_reg = &ipctl->pin_regs[pin_id]; in imx_pinconf_get_mmio()
357 info->pins[pin_id].name); in imx_pinconf_get_mmio()
370 unsigned pin_id, unsigned long *config) in imx_pinconf_get() argument
376 return imx_pinconf_get_scu(pctldev, pin_id, config); in imx_pinconf_get()
378 return imx_pinconf_get_mmio(pctldev, pin_id, config); in imx_pinconf_get()
[all …]
Dpinctrl-imx.h146 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id,
148 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id,
151 unsigned int *pin_id, struct imx_pin *pin,
155 unsigned pin_id, unsigned long *config) in imx_pinconf_get_scu() argument
160 unsigned pin_id, unsigned long *configs, in imx_pinconf_set_scu() argument
166 unsigned int *pin_id, in imx_pinctrl_parse_pin_scu() argument
Dpinctrl-imx1.h23 unsigned int pin_id; member
/drivers/pinctrl/
Dpinctrl-at91-pio4.c63 #define ATMEL_PIO_BANK(pin_id) (pin_id / ATMEL_PIO_NPINS_PER_BANK) argument
64 #define ATMEL_PIO_LINE(pin_id) (pin_id % ATMEL_PIO_NPINS_PER_BANK) argument
84 unsigned pin_id; member
372 unsigned pin_id) in atmel_pin_config_read() argument
375 unsigned bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_read()
376 unsigned line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_read()
388 unsigned pin_id, u32 conf) in atmel_pin_config_write() argument
391 unsigned bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_write()
392 unsigned line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_write()
451 unsigned pin_id, func_id; in atmel_pctl_xlate_pinfunc() local
[all …]
Dpinctrl-digicolor.c300 int pin_id = i*PINS_PER_COLLECTION + j; in dc_pinctrl_probe() local
301 char *name = &pin_names[pin_id * name_len]; in dc_pinctrl_probe()
305 pins[pin_id].number = pin_id; in dc_pinctrl_probe()
306 pins[pin_id].name = name; in dc_pinctrl_probe()
307 pmap->pin_names[pin_id] = name; in dc_pinctrl_probe()
Dpinctrl-st.c418 int pin_id, int function) in st_pctl_set_function() argument
422 int pin = st_gpio_pin(pin_id); in st_pctl_set_function()
961 static int st_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin_id, in st_pinconf_set() argument
964 int pin = st_gpio_pin(pin_id); in st_pinconf_set()
966 struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); in st_pinconf_set()
978 unsigned pin_id, unsigned long *config) in st_pinconf_get() argument
980 int pin = st_gpio_pin(pin_id); in st_pinconf_get()
982 struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); in st_pinconf_get()
992 struct seq_file *s, unsigned pin_id) in st_pinconf_dbg_show() argument
997 int offset = st_gpio_pin(pin_id); in st_pinconf_dbg_show()
[all …]
Dpinctrl-at91.c960 unsigned pin_id, unsigned long *config) in at91_pinconf_get() argument
969 dev_dbg(info->dev, "%s:%d, pin_id=%d", __func__, __LINE__, pin_id); in at91_pinconf_get()
970 pio = pin_to_controller(info, pin_to_bank(pin_id)); in at91_pinconf_get()
975 pin = pin_id % MAX_NB_GPIO_PER_BANK; in at91_pinconf_get()
1003 unsigned pin_id, unsigned long *configs, in at91_pinconf_set() argument
1018 __func__, __LINE__, pin_id, config); in at91_pinconf_set()
1019 pio = pin_to_controller(info, pin_to_bank(pin_id)); in at91_pinconf_set()
1024 pin = pin_id % MAX_NB_GPIO_PER_BANK; in at91_pinconf_set()
1075 struct seq_file *s, unsigned pin_id) in at91_pinconf_dbg_show() argument
1080 at91_pinconf_get(pctldev, pin_id, &config); in at91_pinconf_dbg_show()
Dpinctrl-rzn1.c728 u32 pin_id = be32_to_cpu(*list++); in rzn1_pinctrl_parse_groups() local
730 grp->pins[i] = pin_id & 0xff; in rzn1_pinctrl_parse_groups()
731 grp->pin_ids[i] = (pin_id >> 8) & 0x7f; in rzn1_pinctrl_parse_groups()
Dpinctrl-as3722.c156 #define AS3722_PINGROUP(pg_name, pin_id) \ argument
159 .pins = {AS3722_PIN_##pin_id}, \
Dpinctrl-max77620.c156 #define MAX77620_PINGROUP(pg_name, pin_id, option) \ argument
159 .pins = {MAX77620_##pin_id}, \
Dpinctrl-palmas.c506 #define PALMAS_PINGROUP(pg_name, pin_id, base, reg, _mask, _bshift, o0, o1, o2, o3) \ argument
509 .pins = {PALMAS_PIN_##pin_id}, \
/drivers/pinctrl/sprd/
Dpinctrl-sprd.c311 unsigned int pin_id; in sprd_dt_node_to_map() local
314 pin_id = grp->pins[0]; in sprd_dt_node_to_map()
315 group_or_pin = pin_get_name(pctldev, pin_id); in sprd_dt_node_to_map()
414 unsigned int pin_id = grp->pins[i]; in sprd_pmx_set_mux() local
415 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pmx_set_mux()
436 static int sprd_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_get() argument
440 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pinconf_get()
575 static int sprd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_set() argument
579 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pinconf_set()
710 unsigned int pin_id; in sprd_pinconf_group_get() local
[all …]
/drivers/gpu/drm/amd/powerplay/hwmgr/
Dppatomfwctrl.c180 const uint32_t pin_id, in pp_atomfwctrl_lookup_gpio_pin() argument
193 if (pin_id == pin_assignment->gpio_id) { in pp_atomfwctrl_lookup_gpio_pin()
209 const uint32_t pin_id, in pp_atomfwctrl_get_pp_assign_pin() argument
222 pin_id, gpio_pin_assignment); in pp_atomfwctrl_get_pp_assign_pin()
Dppatomfwctrl.h222 bool pp_atomfwctrl_get_pp_assign_pin(struct pp_hwmgr *hwmgr, const uint32_t pin_id,
/drivers/pinctrl/tegra/
Dpinctrl-tegra194.c26 enum pin_id { enum
/drivers/gpu/drm/amd/display/dc/bios/
Dbios_parser2.c434 info->hpd_int_gpio_uid = record->pin_id; in bios_parser_get_hpd_info()
/drivers/gpu/drm/amd/include/
Datomfirmware.h710 …uint8_t pin_id; //Corresponding block in GPIO_PIN_INFO table gives the pin info … member