/Linux-v6.1/drivers/pinctrl/freescale/ |
D | pinctrl-imx1-core.c | 69 * register. pin_id is stored in bit (pin_id%16)*2 and the bit above. 73 * Calculates the register offset from a pin_id 75 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() 107 new_val |= old_val;/* Set new state for pin_id */ in imx1_write_2bit() 112 static void imx1_write_bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_bit() argument [all …]
|
D | pinctrl-scu.c | 47 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_get_scu() argument 60 msg.pad = pin_id; in imx_pinconf_get_scu() 73 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_set_scu() argument 97 msg.pad = pin_id; in imx_pinconf_set_scu() 102 dev_dbg(ipctl->dev, "write: pin_id %u config 0x%x val 0x%x\n", in imx_pinconf_set_scu() 103 pin_id, conf, val); in imx_pinconf_set_scu() 110 unsigned int *pin_id, struct imx_pin *pin, in imx_pinctrl_parse_pin_scu() argument 118 *pin_id = pin->pin; in imx_pinctrl_parse_pin_scu()
|
D | pinctrl-imx.c | 169 unsigned int pin_id; in imx_pmx_set_one_pin_mmio() local 171 pin_id = pin->pin; in imx_pmx_set_one_pin_mmio() 172 pin_reg = &ipctl->pin_regs[pin_id]; in imx_pmx_set_one_pin_mmio() 176 info->pins[pin_id].name); in imx_pmx_set_one_pin_mmio() 349 static int imx_pinconf_get_mmio(struct pinctrl_dev *pctldev, unsigned pin_id, in imx_pinconf_get_mmio() argument 354 const struct imx_pin_reg *pin_reg = &ipctl->pin_regs[pin_id]; in imx_pinconf_get_mmio() 358 info->pins[pin_id].name); in imx_pinconf_get_mmio() 371 unsigned pin_id, unsigned long *config) in imx_pinconf_get() argument 377 return info->imx_pinconf_get(pctldev, pin_id, config); in imx_pinconf_get() 379 return imx_pinconf_get_mmio(pctldev, pin_id, config); in imx_pinconf_get() [all …]
|
D | pinctrl-imx.h | 49 * @pin: the pin_id of this pin 116 int (*imx_pinconf_get)(struct pinctrl_dev *pctldev, unsigned int pin_id, 118 int (*imx_pinconf_set)(struct pinctrl_dev *pctldev, unsigned int pin_id, 121 unsigned int *pin_id, struct imx_pin *pin, 152 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, 154 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, 157 unsigned int *pin_id, struct imx_pin *pin,
|
D | pinctrl-imx1.h | 18 * @pin_id: ID of the described pin. 23 unsigned int pin_id; member
|
/Linux-v6.1/drivers/pinctrl/ |
D | pinctrl-at91-pio4.c | 64 #define ATMEL_PIO_BANK(pin_id) (pin_id / ATMEL_PIO_NPINS_PER_BANK) argument 65 #define ATMEL_PIO_LINE(pin_id) (pin_id % ATMEL_PIO_NPINS_PER_BANK) argument 94 unsigned int pin_id; member 111 * @pins: pins table used for both pinctrl and gpio. pin_id, bank and line 445 unsigned int pin_id) in atmel_pin_config_read() argument 448 unsigned int bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_read() 449 unsigned int line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_read() 461 unsigned int pin_id, u32 conf) in atmel_pin_config_write() argument 464 unsigned int bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_write() 465 unsigned int line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_write() [all …]
|
D | pinctrl-digicolor.c | 297 int pin_id = i*PINS_PER_COLLECTION + j; in dc_pinctrl_probe() local 298 char *name = &pin_names[pin_id * name_len]; in dc_pinctrl_probe() 302 pins[pin_id].number = pin_id; in dc_pinctrl_probe() 303 pins[pin_id].name = name; in dc_pinctrl_probe() 304 pmap->pin_names[pin_id] = name; in dc_pinctrl_probe()
|
D | pinctrl-st.c | 417 int pin_id, int function) in st_pctl_set_function() argument 421 int pin = st_gpio_pin(pin_id); in st_pctl_set_function() 964 static int st_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin_id, in st_pinconf_set() argument 967 int pin = st_gpio_pin(pin_id); in st_pinconf_set() 969 struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); in st_pinconf_set() 981 unsigned pin_id, unsigned long *config) in st_pinconf_get() argument 983 int pin = st_gpio_pin(pin_id); in st_pinconf_get() 985 struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); in st_pinconf_get() 995 struct seq_file *s, unsigned pin_id) in st_pinconf_dbg_show() argument 1000 int offset = st_gpio_pin(pin_id); in st_pinconf_dbg_show() [all …]
|
D | pinctrl-at91.c | 982 unsigned pin_id, unsigned long *config) in at91_pinconf_get() argument 991 dev_dbg(info->dev, "%s:%d, pin_id=%d", __func__, __LINE__, pin_id); in at91_pinconf_get() 992 pio = pin_to_controller(info, pin_to_bank(pin_id)); in at91_pinconf_get() 997 pin = pin_id % MAX_NB_GPIO_PER_BANK; in at91_pinconf_get() 1025 unsigned pin_id, unsigned long *configs, in at91_pinconf_set() argument 1039 "%s:%d, pin_id=%d, config=0x%lx", in at91_pinconf_set() 1040 __func__, __LINE__, pin_id, config); in at91_pinconf_set() 1041 pio = pin_to_controller(info, pin_to_bank(pin_id)); in at91_pinconf_set() 1046 pin = pin_id % MAX_NB_GPIO_PER_BANK; in at91_pinconf_set() 1097 struct seq_file *s, unsigned pin_id) in at91_pinconf_dbg_show() argument [all …]
|
D | pinctrl-equilibrium.c | 701 unsigned int *pinmux, pin_id, pinmux_id; in eqbr_build_groups() local 734 if (of_property_read_u32_index(np, "pins", j, &pin_id)) { in eqbr_build_groups() 740 if (pin_id >= drvdata->pctl_desc.npins) { in eqbr_build_groups() 742 group.name, j, pin_id); in eqbr_build_groups() 746 group.pins[j] = pin_id; in eqbr_build_groups()
|
D | pinctrl-as3722.c | 144 #define AS3722_PINGROUP(pg_name, pin_id) \ argument 147 .pins = {AS3722_PIN_##pin_id}, \
|
D | pinctrl-max77620.c | 158 #define MAX77620_PINGROUP(pg_name, pin_id, option) \ argument 161 .pins = {MAX77620_##pin_id}, \
|
D | pinctrl-palmas.c | 493 #define PALMAS_PINGROUP(pg_name, pin_id, base, reg, _mask, _bshift, o0, o1, o2, o3) \ argument 496 .pins = {PALMAS_PIN_##pin_id}, \
|
/Linux-v6.1/drivers/pinctrl/sprd/ |
D | pinctrl-sprd.c | 313 unsigned int pin_id; in sprd_dt_node_to_map() local 316 pin_id = grp->pins[0]; in sprd_dt_node_to_map() 317 group_or_pin = pin_get_name(pctldev, pin_id); in sprd_dt_node_to_map() 416 unsigned int pin_id = grp->pins[i]; in sprd_pmx_set_mux() local 417 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pmx_set_mux() 438 static int sprd_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_get() argument 442 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pinconf_get() 590 static int sprd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_set() argument 594 struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); in sprd_pinconf_set() 747 unsigned int pin_id; in sprd_pinconf_group_get() local [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/ |
D | fsl,scu-pinctrl.yaml | 38 and pad setting for the pin. The first 2 integers - pin_id and mux_val - are 47 "pin_id" indicates the pin ID
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 428 int pin_id; in bnxt_ptp_enable() local 434 pin_id = ptp_find_pin(ptp->ptp_clock, PTP_PF_EXTTS, in bnxt_ptp_enable() 436 if (!TSIO_PIN_VALID(pin_id)) in bnxt_ptp_enable() 440 rc = bnxt_ptp_cfg_pin(bp, pin_id, BNXT_PPS_PIN_PPS_IN); in bnxt_ptp_enable() 445 ptp->pps_info.pins[pin_id].event = BNXT_PPS_EVENT_EXTERNAL; in bnxt_ptp_enable() 449 pin_id = ptp_find_pin(ptp->ptp_clock, PTP_PF_PEROUT, in bnxt_ptp_enable() 451 if (!TSIO_PIN_VALID(pin_id)) in bnxt_ptp_enable() 456 rc = bnxt_ptp_cfg_pin(bp, pin_id, BNXT_PPS_PIN_PPS_OUT); in bnxt_ptp_enable() 475 return bnxt_ptp_cfg_pin(bp, pin_id, BNXT_PPS_PIN_NONE); in bnxt_ptp_enable()
|
/Linux-v6.1/sound/soc/intel/skylake/ |
D | skl-pcm.c | 1299 struct skl_module_inst_id *pin_id; in skl_get_module_info() local 1334 pin_id = &mconfig->m_in_pin[i].id; in skl_get_module_info() 1335 if (guid_equal(&pin_id->mod_uuid, &module->uuid)) in skl_get_module_info() 1336 pin_id->module_id = module->id; in skl_get_module_info() 1340 pin_id = &mconfig->m_out_pin[i].id; in skl_get_module_info() 1341 if (guid_equal(&pin_id->mod_uuid, &module->uuid)) in skl_get_module_info() 1342 pin_id->module_id = module->id; in skl_get_module_info()
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | ppatomfwctrl.c | 180 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()
|
D | ppatomfwctrl.h | 222 bool pp_atomfwctrl_get_pp_assign_pin(struct pp_hwmgr *hwmgr, const uint32_t pin_id,
|
/Linux-v6.1/sound/soc/intel/catpt/ |
D | pcm.c | 899 enum catpt_pin_id pin_id) in catpt_stream_volume_get() argument 910 stream = catpt_stream_find(cdev, pin_id); in catpt_stream_volume_get() 934 enum catpt_pin_id pin_id) in catpt_stream_volume_put() argument 943 stream = catpt_stream_find(cdev, pin_id); in catpt_stream_volume_put()
|
/Linux-v6.1/drivers/pinctrl/renesas/ |
D | pinctrl-rzn1.c | 728 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()
|
D | sh_pfc.h | 731 /* NOGP_ALL - Expand to a list of PIN_id */
|
/Linux-v6.1/include/dt-bindings/pinctrl/ |
D | pads-imx8dxl.h | 147 /* format: <pin_id mux_mode> */
|
D | pads-imx8qxp.h | 187 * format: <pin_id mux_mode>
|
D | pads-imx8qm.h | 282 * format: <pin_id mux_mode>
|