| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| D | pad.c | 24 #include "pad.h" 27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument 29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked() 31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked() 32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked() 36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument 38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode() 39 mutex_lock(&pad->mutex); in nvkm_i2c_pad_mode() 40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode() 41 pad->mode = mode; in nvkm_i2c_pad_mode() [all …]
|
| D | base.c | 27 #include "pad.h" 38 struct nvkm_i2c_pad *pad; in nvkm_i2c_pad_find() local 40 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find() 41 if (pad->id == id) in nvkm_i2c_pad_find() 42 return pad; in nvkm_i2c_pad_find() 162 struct nvkm_i2c_pad *pad; in nvkm_i2c_fini() local 180 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_fini() 181 nvkm_i2c_pad_fini(pad); in nvkm_i2c_fini() 192 struct nvkm_i2c_pad *pad; in nvkm_i2c_preinit() local 198 list_for_each_entry(pad, &i2c->pad, head) in nvkm_i2c_preinit() [all …]
|
| D | anx9805.c | 38 struct anx9805_pad *pad; member 46 struct anx9805_pad *pad = bus->pad; in anx9805_bus_xfer() local 47 struct i2c_adapter *adap = &pad->bus->i2c; in anx9805_bus_xfer() 53 tmp = nvkm_rdi2cr(adap, pad->addr, 0x07) & ~0x10; in anx9805_bus_xfer() 54 nvkm_wri2cr(adap, pad->addr, 0x07, tmp | 0x10); in anx9805_bus_xfer() 55 nvkm_wri2cr(adap, pad->addr, 0x07, tmp); in anx9805_bus_xfer() 106 struct anx9805_pad *pad = anx9805_pad(base); in anx9805_bus_new() local 113 bus->pad = pad; in anx9805_bus_new() 115 ret = nvkm_i2c_bus_ctor(&anx9805_bus_func, &pad->base, id, &bus->base); in anx9805_bus_new() 119 switch (pad->addr) { in anx9805_bus_new() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| D | pad.c | 24 #include "pad.h" 27 nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode_locked() argument 29 PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : in nvkm_i2c_pad_mode_locked() 31 if (pad->func->mode) in nvkm_i2c_pad_mode_locked() 32 pad->func->mode(pad, mode); in nvkm_i2c_pad_mode_locked() 36 nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) in nvkm_i2c_pad_mode() argument 38 PAD_TRACE(pad, "mode %d", mode); in nvkm_i2c_pad_mode() 39 mutex_lock(&pad->mutex); in nvkm_i2c_pad_mode() 40 nvkm_i2c_pad_mode_locked(pad, mode); in nvkm_i2c_pad_mode() 41 pad->mode = mode; in nvkm_i2c_pad_mode() [all …]
|
| D | base.c | 27 #include "pad.h" 38 struct nvkm_i2c_pad *pad; in nvkm_i2c_pad_find() local 40 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_pad_find() 41 if (pad->id == id) in nvkm_i2c_pad_find() 42 return pad; in nvkm_i2c_pad_find() 162 struct nvkm_i2c_pad *pad; in nvkm_i2c_fini() local 180 list_for_each_entry(pad, &i2c->pad, head) { in nvkm_i2c_fini() 181 nvkm_i2c_pad_fini(pad); in nvkm_i2c_fini() 192 struct nvkm_i2c_pad *pad; in nvkm_i2c_preinit() local 198 list_for_each_entry(pad, &i2c->pad, head) in nvkm_i2c_preinit() [all …]
|
| D | anx9805.c | 38 struct anx9805_pad *pad; member 46 struct anx9805_pad *pad = bus->pad; in anx9805_bus_xfer() local 47 struct i2c_adapter *adap = &pad->bus->i2c; in anx9805_bus_xfer() 53 tmp = nvkm_rdi2cr(adap, pad->addr, 0x07) & ~0x10; in anx9805_bus_xfer() 54 nvkm_wri2cr(adap, pad->addr, 0x07, tmp | 0x10); in anx9805_bus_xfer() 55 nvkm_wri2cr(adap, pad->addr, 0x07, tmp); in anx9805_bus_xfer() 106 struct anx9805_pad *pad = anx9805_pad(base); in anx9805_bus_new() local 113 bus->pad = pad; in anx9805_bus_new() 115 ret = nvkm_i2c_bus_ctor(&anx9805_bus_func, &pad->base, id, &bus->base); in anx9805_bus_new() 119 switch (pad->addr) { in anx9805_bus_new() [all …]
|
| /kernel/linux/linux-4.19/drivers/pinctrl/qcom/ |
| D | pinctrl-spmi-gpio.c | 224 struct pmic_gpio_pad *pad, unsigned int addr) in pmic_gpio_read() argument 229 ret = regmap_read(state->map, pad->base + addr, &val); in pmic_gpio_read() 239 struct pmic_gpio_pad *pad, unsigned int addr, in pmic_gpio_write() argument 244 ret = regmap_write(state->map, pad->base + addr, val); in pmic_gpio_write() 304 struct pmic_gpio_pad *pad; in pmic_gpio_set_mux() local 313 pad = pctldev->desc->pins[pin].drv_data; in pmic_gpio_set_mux() 318 if (!pad->lv_mv_type) { in pmic_gpio_set_mux() 329 pad->function = function; in pmic_gpio_set_mux() 331 if (pad->analog_pass) in pmic_gpio_set_mux() 333 else if (pad->output_enabled && pad->input_enabled) in pmic_gpio_set_mux() [all …]
|
| D | pinctrl-spmi-mpp.c | 185 struct pmic_mpp_pad *pad, unsigned int addr) in pmic_mpp_read() argument 190 ret = regmap_read(state->map, pad->base + addr, &val); in pmic_mpp_read() 200 struct pmic_mpp_pad *pad, unsigned int addr, in pmic_mpp_write() argument 205 ret = regmap_write(state->map, pad->base + addr, val); in pmic_mpp_write() 263 struct pmic_mpp_pad *pad) in pmic_mpp_write_mode_ctl() argument 270 switch (pad->function) { in pmic_mpp_write_mode_ctl() 272 if (pad->input_enabled && pad->output_enabled) in pmic_mpp_write_mode_ctl() 274 else if (pad->input_enabled) in pmic_mpp_write_mode_ctl() 280 if (pad->input_enabled && pad->output_enabled) in pmic_mpp_write_mode_ctl() 282 else if (pad->input_enabled) in pmic_mpp_write_mode_ctl() [all …]
|
| /kernel/linux/linux-5.10/drivers/pinctrl/qcom/ |
| D | pinctrl-spmi-mpp.c | 177 struct pmic_mpp_pad *pad, unsigned int addr) in pmic_mpp_read() argument 182 ret = regmap_read(state->map, pad->base + addr, &val); in pmic_mpp_read() 192 struct pmic_mpp_pad *pad, unsigned int addr, in pmic_mpp_write() argument 197 ret = regmap_write(state->map, pad->base + addr, val); in pmic_mpp_write() 255 struct pmic_mpp_pad *pad) in pmic_mpp_write_mode_ctl() argument 262 switch (pad->function) { in pmic_mpp_write_mode_ctl() 264 if (pad->input_enabled && pad->output_enabled) in pmic_mpp_write_mode_ctl() 266 else if (pad->input_enabled) in pmic_mpp_write_mode_ctl() 272 if (pad->input_enabled && pad->output_enabled) in pmic_mpp_write_mode_ctl() 274 else if (pad->input_enabled) in pmic_mpp_write_mode_ctl() [all …]
|
| D | pinctrl-spmi-gpio.c | 216 struct pmic_gpio_pad *pad, unsigned int addr) in pmic_gpio_read() argument 221 ret = regmap_read(state->map, pad->base + addr, &val); in pmic_gpio_read() 231 struct pmic_gpio_pad *pad, unsigned int addr, in pmic_gpio_write() argument 236 ret = regmap_write(state->map, pad->base + addr, val); in pmic_gpio_write() 296 struct pmic_gpio_pad *pad; in pmic_gpio_set_mux() local 305 pad = pctldev->desc->pins[pin].drv_data; in pmic_gpio_set_mux() 310 if (!pad->lv_mv_type) { in pmic_gpio_set_mux() 321 pad->function = function; in pmic_gpio_set_mux() 323 if (pad->analog_pass) in pmic_gpio_set_mux() 325 else if (pad->output_enabled && pad->input_enabled) in pmic_gpio_set_mux() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
| D | tables_lpphy.c | 1070 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 152, }, 1071 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 147, }, 1072 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 143, }, 1073 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 139, }, 1074 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 135, }, 1075 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 131, }, 1076 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 128, }, 1077 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 124, }, 1078 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 121, }, 1079 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 117, }, [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/broadcom/b43/ |
| D | tables_lpphy.c | 1083 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 152, }, 1084 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 147, }, 1085 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 143, }, 1086 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 139, }, 1087 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 135, }, 1088 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 131, }, 1089 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 128, }, 1090 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 124, }, 1091 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 121, }, 1092 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 117, }, [all …]
|
| /kernel/linux/linux-4.19/drivers/input/joystick/ |
| D | psxpad-spi.c | 73 static int psxpad_command(struct psxpad *pad, const u8 sendcmdlen) in psxpad_command() argument 76 .tx_buf = pad->sendbuf, in psxpad_command() 77 .rx_buf = pad->response, in psxpad_command() 82 err = spi_sync_transfer(pad->spi, &xfers, 1); in psxpad_command() 84 dev_err(&pad->spi->dev, in psxpad_command() 94 static void psxpad_control_motor(struct psxpad *pad, in psxpad_control_motor() argument 99 pad->motor1enable = motor1enable; in psxpad_control_motor() 100 pad->motor2enable = motor2enable; in psxpad_control_motor() 102 memcpy(pad->sendbuf, PSX_CMD_ENTER_CFG, sizeof(PSX_CMD_ENTER_CFG)); in psxpad_control_motor() 103 err = psxpad_command(pad, sizeof(PSX_CMD_ENTER_CFG)); in psxpad_control_motor() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/joystick/ |
| D | psxpad-spi.c | 72 static int psxpad_command(struct psxpad *pad, const u8 sendcmdlen) in psxpad_command() argument 75 .tx_buf = pad->sendbuf, in psxpad_command() 76 .rx_buf = pad->response, in psxpad_command() 81 err = spi_sync_transfer(pad->spi, &xfers, 1); in psxpad_command() 83 dev_err(&pad->spi->dev, in psxpad_command() 93 static void psxpad_control_motor(struct psxpad *pad, in psxpad_control_motor() argument 98 pad->motor1enable = motor1enable; in psxpad_control_motor() 99 pad->motor2enable = motor2enable; in psxpad_control_motor() 101 memcpy(pad->sendbuf, PSX_CMD_ENTER_CFG, sizeof(PSX_CMD_ENTER_CFG)); in psxpad_control_motor() 102 err = psxpad_command(pad, sizeof(PSX_CMD_ENTER_CFG)); in psxpad_control_motor() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | micrel-ksz90x1.txt | 25 corresponding pad skew register: 27 Device Tree Value Delay Pad Skew Register Value 48 - rxc-skew-ps : Skew control of RXC pad 49 - rxdv-skew-ps : Skew control of RX CTL pad 50 - txc-skew-ps : Skew control of TXC pad 51 - txen-skew-ps : Skew control of TX CTL pad 52 - rxd0-skew-ps : Skew control of RX data 0 pad 53 - rxd1-skew-ps : Skew control of RX data 1 pad 54 - rxd2-skew-ps : Skew control of RX data 2 pad 55 - rxd3-skew-ps : Skew control of RX data 3 pad [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/net/ |
| D | micrel-ksz90x1.txt | 20 - rxc-skew-ps : Skew control of RXC pad 21 - rxdv-skew-ps : Skew control of RX CTL pad 22 - txc-skew-ps : Skew control of TXC pad 23 - txen-skew-ps : Skew control of TX CTL pad 24 - rxd0-skew-ps : Skew control of RX data 0 pad 25 - rxd1-skew-ps : Skew control of RX data 1 pad 26 - rxd2-skew-ps : Skew control of RX data 2 pad 27 - rxd3-skew-ps : Skew control of RX data 3 pad 28 - txd0-skew-ps : Skew control of TX data 0 pad 29 - txd1-skew-ps : Skew control of TX data 1 pad [all …]
|
| /kernel/linux/linux-4.19/drivers/pinctrl/ |
| D | pinctrl-u300.c | 32 /* PAD MUX Control register 1 (LOW) 16bit (R/W) */ 77 /* PAD MUX Control register 2 (HIGH) 16bit (R/W) */ 173 * edges of the silicon, finger by finger. LTCORNER upper left is pad 0. 185 /* Pad names for the pinmux subsystem */ 188 PINCTRL_PIN(0, "P PAD VDD 28"), 189 PINCTRL_PIN(1, "P PAD GND 28"), 219 PINCTRL_PIN(31, "P PAD VDDIO 11"), 234 PINCTRL_PIN(46, "P PAD VSSIO 11"), 235 PINCTRL_PIN(47, "P PAD VSSIO 12"), 238 PINCTRL_PIN(50, "P PAD VDDIO 16"), [all …]
|
| /kernel/linux/linux-5.10/drivers/pinctrl/ |
| D | pinctrl-u300.c | 33 /* PAD MUX Control register 1 (LOW) 16bit (R/W) */ 78 /* PAD MUX Control register 2 (HIGH) 16bit (R/W) */ 174 * edges of the silicon, finger by finger. LTCORNER upper left is pad 0. 186 /* Pad names for the pinmux subsystem */ 189 PINCTRL_PIN(0, "P PAD VDD 28"), 190 PINCTRL_PIN(1, "P PAD GND 28"), 220 PINCTRL_PIN(31, "P PAD VDDIO 11"), 235 PINCTRL_PIN(46, "P PAD VSSIO 11"), 236 PINCTRL_PIN(47, "P PAD VSSIO 12"), 239 PINCTRL_PIN(50, "P PAD VDDIO 16"), [all …]
|
| /kernel/linux/linux-4.19/drivers/media/platform/vsp1/ |
| D | vsp1_entity.c | 35 * sink pad. in vsp1_entity_route_setup() 48 * sink pad. in vsp1_entity_route_setup() 103 * vsp1_entity_get_pad_config - Get the pad configuration for an entity 105 * @cfg: the TRY pad configuration 111 * Return the pad configuration requested by the which argument. The TRY 131 * vsp1_entity_get_pad_format - Get a pad format from storage for an entity 134 * @pad: the pad number 136 * Return the format stored in the given configuration for an entity's pad. The 142 unsigned int pad) in vsp1_entity_get_pad_format() argument 144 return v4l2_subdev_get_try_format(&entity->subdev, cfg, pad); in vsp1_entity_get_pad_format() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
| D | vsp1_entity.c | 35 * sink pad. in vsp1_entity_route_setup() 48 * sink pad. in vsp1_entity_route_setup() 104 * vsp1_entity_get_pad_config - Get the pad configuration for an entity 106 * @cfg: the TRY pad configuration 112 * Return the pad configuration requested by the which argument. The TRY 132 * vsp1_entity_get_pad_format - Get a pad format from storage for an entity 135 * @pad: the pad number 137 * Return the format stored in the given configuration for an entity's pad. The 143 unsigned int pad) in vsp1_entity_get_pad_format() argument 145 return v4l2_subdev_get_try_format(&entity->subdev, cfg, pad); in vsp1_entity_get_pad_format() [all …]
|
| /kernel/linux/linux-4.19/drivers/phy/tegra/ |
| D | xusb.c | 35 struct tegra_xusb_pad *pad = dev_get_drvdata(dev); in tegra_xusb_pad_of_xlate() local 42 for (i = 0; i < pad->soc->num_lanes; i++) { in tegra_xusb_pad_of_xlate() 43 if (!pad->lanes[i]) in tegra_xusb_pad_of_xlate() 46 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate() 47 phy = pad->lanes[i]; in tegra_xusb_pad_of_xlate() 91 tegra_xusb_pad_find_phy_node(struct tegra_xusb_pad *pad, unsigned int index) in tegra_xusb_pad_find_phy_node() argument 95 lanes = of_get_child_by_name(pad->dev.of_node, "lanes"); in tegra_xusb_pad_find_phy_node() 99 np = of_get_child_by_name(lanes, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node() 108 struct device *dev = &lane->pad->dev; in tegra_xusb_lane_parse_dt() 133 lane->pad->ops->remove(lane); in tegra_xusb_lane_destroy() [all …]
|
| D | xusb-tegra124.c | 310 if (lane->pad == padctl->pcie) in tegra124_usb3_save_context() 435 tegra124_usb2_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_usb2_lane_probe() argument 446 usb2->base.soc = &pad->soc->lanes[index]; in tegra124_usb2_lane_probe() 448 usb2->base.pad = pad; in tegra124_usb2_lane_probe() 476 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_usb2_phy_init() 483 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_usb2_phy_exit() 490 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra124_usb2_phy_power_on() local 491 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_usb2_phy_power_on() 561 mutex_lock(&pad->lock); in tegra124_usb2_phy_power_on() 563 if (pad->enable++ > 0) in tegra124_usb2_phy_power_on() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
| D | v4l2-subdev.c | 30 fh->pad = v4l2_subdev_alloc_pad_config(sd); in subdev_fh_init() 31 if (fh->pad == NULL) in subdev_fh_init() 40 v4l2_subdev_free_pad_config(fh->pad); in subdev_fh_free() 41 fh->pad = NULL; in subdev_fh_free() 134 static inline int check_pad(struct v4l2_subdev *sd, u32 pad) in check_pad() argument 138 if (pad >= sd->entity.num_pads) in check_pad() 143 /* allow pad 0 on subdevices not registered as media entities */ in check_pad() 144 if (pad > 0) in check_pad() 164 return check_which(format->which) ? : check_pad(sd, format->pad) ? : in check_format() 173 sd->ops->pad->get_fmt(sd, cfg, format); in call_get_fmt() [all …]
|
| /kernel/linux/linux-5.10/drivers/phy/tegra/ |
| D | xusb-tegra124.c | 302 if (lane->pad == padctl->pcie) in tegra124_usb3_save_context() 427 tegra124_usb2_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_usb2_lane_probe() argument 438 usb2->base.soc = &pad->soc->lanes[index]; in tegra124_usb2_lane_probe() 440 usb2->base.pad = pad; in tegra124_usb2_lane_probe() 468 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_usb2_phy_init() 475 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_usb2_phy_exit() 482 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra124_usb2_phy_power_on() local 483 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_usb2_phy_power_on() 553 mutex_lock(&pad->lock); in tegra124_usb2_phy_power_on() 555 if (pad->enable++ > 0) in tegra124_usb2_phy_power_on() [all …]
|
| /kernel/linux/linux-4.19/include/uapi/linux/ |
| D | v4l2-subdev.h | 43 * struct v4l2_subdev_format - Pad-level media bus format 45 * @pad: pad number, as reported by the media API 50 __u32 pad; member 56 * struct v4l2_subdev_crop - Pad-level crop settings 58 * @pad: pad number, as reported by the media API 59 * @rect: pad crop rectangle boundaries 63 __u32 pad; member 70 * @pad: pad number, as reported by the media API 76 __u32 pad; member 85 * @pad: pad number, as reported by the media API [all …]
|