Searched refs:pin (Results 176 - 200 of 829) sorted by path

1234567891011>>

/linux-master/drivers/gpio/
H A Dgpio-vf610.c159 int pin; local
166 for_each_set_bit(pin, &irq_isfr, VF610_GPIO_PER_PORT) {
167 vf610_gpio_writel(BIT(pin), port->base + PORT_ISFR);
169 generic_handle_domain_irq(port->gc.irq.domain, pin);
H A Dgpio-wcd934x.c21 static int wcd_gpio_get_direction(struct gpio_chip *chip, unsigned int pin) argument
31 if (value & WCD_PIN_MASK(pin))
37 static int wcd_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) argument
42 WCD_PIN_MASK(pin), 0);
45 static int wcd_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, argument
51 WCD_PIN_MASK(pin), WCD_PIN_MASK(pin));
54 WCD_PIN_MASK(pin),
55 val ? WCD_PIN_MASK(pin) : 0);
58 static int wcd_gpio_get(struct gpio_chip *chip, unsigned int pin) argument
68 wcd_gpio_set(struct gpio_chip *chip, unsigned int pin, int val) argument
[all...]
H A Dgpio-xgs-iproc.c48 int pin = d->hwirq; local
56 event_status |= BIT(pin);
67 int pin = d->hwirq; local
72 gpiochip_enable_irq(gc, pin);
79 event_mask |= 1 << pin;
83 int_mask |= 1 << pin;
94 int pin = d->hwirq; local
105 event_mask &= ~BIT(pin);
109 int_mask &= ~BIT(pin);
114 gpiochip_disable_irq(gc, pin);
121 int pin = d->hwirq; local
[all...]
H A Dgpio-zevio.c62 static inline u32 zevio_gpio_port_get(struct zevio_gpio *c, unsigned pin, argument
65 unsigned section_offset = ((pin >> 3) & 3)*ZEVIO_GPIO_SECTION_SIZE;
69 static inline void zevio_gpio_port_set(struct zevio_gpio *c, unsigned pin, argument
72 unsigned section_offset = ((pin >> 3) & 3)*ZEVIO_GPIO_SECTION_SIZE;
77 static int zevio_gpio_get(struct gpio_chip *chip, unsigned pin) argument
83 dir = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_DIRECTION);
84 if (dir & BIT(ZEVIO_GPIO_BIT(pin)))
85 val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_INPUT);
87 val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_OUTPUT);
90 return (val >> ZEVIO_GPIO_BIT(pin))
93 zevio_gpio_set(struct gpio_chip *chip, unsigned pin, int value) argument
109 zevio_gpio_direction_input(struct gpio_chip *chip, unsigned pin) argument
125 zevio_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value) argument
148 zevio_gpio_to_irq(struct gpio_chip *chip, unsigned pin) argument
[all...]
H A Dgpio-zynq.c93 /* Mid pin number of a bank */
142 * @bank_min: this array represents bank's min pin
143 * @bank_max: this array represents bank's max pin
180 * zynq_gpio_get_bank_pin - Get the bank number and pin number within that bank
181 * for a given pin in the GPIO device
182 * @pin_num: gpio pin number within the device
184 * pin
185 * @bank_pin_num: an output parameter used to return pin number within a bank
186 * for the given gpio pin
189 * Returns the bank number and pin offse
225 zynq_gpio_get_value(struct gpio_chip *chip, unsigned int pin) argument
268 zynq_gpio_set_value(struct gpio_chip *chip, unsigned int pin, int state) argument
305 zynq_gpio_dir_in(struct gpio_chip *chip, unsigned int pin) argument
344 zynq_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, int state) argument
380 zynq_gpio_get_direction(struct gpio_chip *chip, unsigned int pin) argument
[all...]
H A Dgpio-zynqmp-modepin.c3 * Driver for the ps-mode pin configuration.
22 * modepin_gpio_get_value - Get the state of the specified pin of GPIO device
24 * @pin: gpio pin number within the device
26 * This function reads the state of the specified pin of the GPIO device.
28 * Return: 0 if the pin is low, 1 if pin is high, -EINVAL wrong pin configured
31 static int modepin_gpio_get_value(struct gpio_chip *chip, unsigned int pin) argument
43 if (regval & BIT(pin))
60 modepin_gpio_set_value(struct gpio_chip *chip, unsigned int pin, int state) argument
89 modepin_gpio_dir_in(struct gpio_chip *chip, unsigned int pin) argument
102 modepin_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, int state) argument
[all...]
H A Dgpiolib-acpi.c34 "controller@pin combos on which to ignore the ACPI wake flag "
35 "ignore_wake=controller@pin[,controller@pin[,...]]");
40 "controller@pin combos on which to ignore interrupt "
41 "ignore_interrupt=controller@pin[,controller@pin[,...]]");
55 * @pin: GPIO pin number on the struct gpio_chip
60 * @desc: struct gpio_desc for the GPIO pin for this event
66 unsigned int pin; member in struct:acpi_gpio_event
76 unsigned int pin; member in struct:acpi_gpio_connection
144 acpi_get_gpiod(char *path, unsigned int pin) argument
311 unsigned int pin = agpio->pin_table[index]; local
333 unsigned int pin; local
368 unsigned int pin = agpio->pin_table[0]; local
392 unsigned int pin; local
1143 unsigned int pin = agpio->pin_table[i]; local
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_atombios.c167 ATOM_GPIO_PIN_ASSIGNMENT *pin; local
180 pin = gpio_info->asGPIO_Pin;
182 if (id == pin->ucGPIO_ID) {
183 gpio.id = pin->ucGPIO_ID;
184 gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex);
185 gpio.shift = pin->ucGpioPinBitShift;
186 gpio.mask = (1 << pin->ucGpioPinBitShift);
190 pin = (ATOM_GPIO_PIN_ASSIGNMENT *)
191 ((u8 *)pin + sizeof(ATOM_GPIO_PIN_ASSIGNMENT));
H A Damdgpu_dma_buf.c100 * amdgpu_dma_buf_pin - &dma_buf_ops.pin implementation
102 * @attach: attachment to pin down
111 /* pin buffer into GTT */
271 .pin = amdgpu_dma_buf_pin,
H A Damdgpu_mode.h132 * output pin value
135 * sets the pin direction
138 * input pin value
238 struct amdgpu_audio_pin *pin; member in struct:amdgpu_afmt
257 struct amdgpu_audio_pin pin[AMDGPU_MAX_AFMT_BLOCKS]; member in struct:amdgpu_audio
H A Ddce_v10_0.c275 * @hpd: hpd (hotplug detect) pin
299 * @hpd: hpd (hotplug detect) pin
301 * Set the polarity of the hpd pin (evergreen+).
326 * Enable the pin, set the polarity, and enable the hpd interrupts.
697 u32 yclk; /* bandwidth per dram data pin in kHz */
1184 offset = adev->mode_info.audio.pin[i].offset;
1190 adev->mode_info.audio.pin[i].connected = false;
1192 adev->mode_info.audio.pin[i].connected = true;
1203 if (adev->mode_info.audio.pin[i].connected)
1204 return &adev->mode_info.audio.pin[
1414 dce_v10_0_audio_enable(struct amdgpu_device *adev, struct amdgpu_audio_pin *pin, bool enable) argument
[all...]
H A Ddce_v11_0.c299 * @hpd: hpd (hotplug detect) pin
323 * @hpd: hpd (hotplug detect) pin
325 * Set the polarity of the hpd pin (evergreen+).
350 * Enable the pin, set the polarity, and enable the hpd interrupts.
729 u32 yclk; /* bandwidth per dram data pin in kHz */
1216 offset = adev->mode_info.audio.pin[i].offset;
1222 adev->mode_info.audio.pin[i].connected = false;
1224 adev->mode_info.audio.pin[i].connected = true;
1235 if (adev->mode_info.audio.pin[i].connected)
1236 return &adev->mode_info.audio.pin[
1446 dce_v11_0_audio_enable(struct amdgpu_device *adev, struct amdgpu_audio_pin *pin, bool enable) argument
[all...]
H A Ddce_v6_0.c232 * @hpd: hpd (hotplug detect) pin
255 * @hpd: hpd (hotplug detect) pin
257 * Set the polarity of the hpd pin (evergreen+).
297 * Enable the pin, set the polarity, and enable the hpd interrupts.
515 u32 yclk; /* bandwidth per dram data pin in kHz */
1109 tmp = RREG32_AUDIO_ENDPT(adev->mode_info.audio.pin[i].offset,
1113 adev->mode_info.audio.pin[i].connected = false;
1115 adev->mode_info.audio.pin[i].connected = true;
1127 if (adev->mode_info.audio.pin[i].connected)
1128 return &adev->mode_info.audio.pin[
1337 dce_v6_0_audio_enable(struct amdgpu_device *adev, struct amdgpu_audio_pin *pin, bool enable) argument
[all...]
H A Ddce_v8_0.c223 * @hpd: hpd (hotplug detect) pin
247 * @hpd: hpd (hotplug detect) pin
249 * Set the polarity of the hpd pin (evergreen+).
289 * Enable the pin, set the polarity, and enable the hpd interrupts.
650 u32 yclk; /* bandwidth per dram data pin in kHz */
1139 offset = adev->mode_info.audio.pin[i].offset;
1145 adev->mode_info.audio.pin[i].connected = false;
1147 adev->mode_info.audio.pin[i].connected = true;
1158 if (adev->mode_info.audio.pin[i].connected)
1159 return &adev->mode_info.audio.pin[
1386 dce_v8_0_audio_enable(struct amdgpu_device *adev, struct amdgpu_audio_pin *pin, bool enable) argument
[all...]
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c1062 adev->mode_info.audio.pin[i].channels = -1;
1063 adev->mode_info.audio.pin[i].rate = -1;
1064 adev->mode_info.audio.pin[i].bits_per_sample = -1;
1065 adev->mode_info.audio.pin[i].status_bits = 0;
1066 adev->mode_info.audio.pin[i].category_code = 0;
1067 adev->mode_info.audio.pin[i].connected = false;
1068 adev->mode_info.audio.pin[i].id =
1070 adev->mode_info.audio.pin[i].offset = 0;
1100 static void amdgpu_dm_audio_eld_notify(struct amdgpu_device *adev, int pin) argument
1105 DRM_DEBUG_KMS("Notify ELD: %d\n", pin);
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/bios/
H A Dbios_parser2.c463 struct atom_gpio_pin_assignment *pin; local
491 pin = (struct atom_gpio_pin_assignment *) header->gpio_pin;
494 if (((record->i2c_id & I2C_HW_CAP) == (pin->gpio_id & I2C_HW_CAP)) &&
495 ((record->i2c_id & I2C_HW_ENGINE_ID_MASK) == (pin->gpio_id & I2C_HW_ENGINE_ID_MASK)) &&
496 ((record->i2c_id & I2C_HW_LANE_MUX) == (pin->gpio_id & I2C_HW_LANE_MUX))) {
501 pin = (struct atom_gpio_pin_assignment *)((uint8_t *)pin + sizeof(struct atom_gpio_pin_assignment));
517 info->gpio_info.clk_a_register_index = le16_to_cpu(pin->data_a_reg_index);
518 info->gpio_info.clk_a_shift = pin->gpio_bitshift;
675 /* Temporary hard code gpio pin inf
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce110/
H A Dhw_factory_dce110.c113 struct hw_gpio_pin *pin,
116 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
118 switch (pin->id) {
137 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
139 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
162 * Initialize HW factory function pointers and pin info
112 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce120/
H A Dhw_factory_dce120.c130 struct hw_gpio_pin *pin,
133 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
135 switch (pin->id) {
154 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
156 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
180 * Initialize HW factory function pointers and pin info
129 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce60/
H A Dhw_factory_dce60.c117 struct hw_gpio_pin *pin,
120 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
122 switch (pin->id) {
141 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
143 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
116 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce80/
H A Dhw_factory_dce80.c117 struct hw_gpio_pin *pin,
120 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
122 switch (pin->id) {
141 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
143 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
116 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn10/
H A Dhw_factory_dcn10.c151 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument
153 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin);
162 struct hw_gpio_pin *pin,
165 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
167 switch (pin->id) {
186 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
188 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
213 * Initialize HW factory function pointers and pin info
161 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn20/
H A Dhw_factory_dcn20.c182 struct hw_gpio_pin *pin,
185 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
187 switch (pin->id) {
206 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
208 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
216 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument
218 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin);
242 * Initialize HW factory function pointers and pin info
181 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn21/
H A Dhw_factory_dcn21.c159 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument
161 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin);
170 struct hw_gpio_pin *pin,
173 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
175 switch (pin->id) {
194 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
196 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
221 * Initialize HW factory function pointers and pin info
169 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn30/
H A Dhw_factory_dcn30.c188 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument
190 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin);
199 struct hw_gpio_pin *pin,
202 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
204 switch (pin->id) {
223 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
225 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
250 * Initialize HW factory function pointers and pin info
198 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn315/
H A Dhw_factory_dcn315.c180 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument
182 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin);
191 struct hw_gpio_pin *pin,
194 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin);
196 switch (pin->id) {
215 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument
217 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin);
242 * Initialize HW factory function pointers and pin info
190 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument

Completed in 635 milliseconds

1234567891011>>