Lines Matching defs:physdev

124 static int cs35l41_add_gpios(struct cs35l41_hda *cs35l41, struct device *physdev, int reset_gpio,
162 gpio_mapping = devm_kcalloc(physdev, num_entries, sizeof(struct acpi_gpio_mapping),
170 reset_gpio_params = devm_kcalloc(physdev, num_amps, sizeof(struct acpi_gpio_params),
184 spkid_gpio_params = devm_kcalloc(physdev, num_amps, sizeof(struct acpi_gpio_params),
199 cs_gpio_params = devm_kzalloc(physdev, sizeof(struct acpi_gpio_params), GFP_KERNEL);
209 return devm_acpi_dev_add_driver_gpios(physdev, gpio_mapping);
211 devm_kfree(physdev, gpio_mapping);
212 devm_kfree(physdev, reset_gpio_params);
213 devm_kfree(physdev, spkid_gpio_params);
214 devm_kfree(physdev, cs_gpio_params);
218 static int generic_dsd_config(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
237 if (!cs35l41->dacpi || cs35l41->dacpi != ACPI_COMPANION(physdev)) {
247 ret = cs35l41_add_gpios(cs35l41, physdev, cfg->reset_gpio_index,
285 cs_gpiod = gpiod_get_index(physdev, "cs", 0, GPIOD_OUT_LOW);
316 cs35l41->speaker_id = cs35l41_get_speaker_id(physdev, cs35l41->index, cfg->num_amps, -1);
352 static int hp_i2c_int_2amp_dual_spkid(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
364 cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH);
366 cs35l41->speaker_id = cs35l41_get_speaker_id(physdev, 0, 0, 1);
368 cs35l41->speaker_id = cs35l41_get_speaker_id(physdev, 0, 0, 2);
391 static int lenovo_legion_no_acpi(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
399 cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH);
400 cs35l41->speaker_id = cs35l41_get_speaker_id(physdev, 0, 0, 2);
420 int (*add_prop)(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
515 int cs35l41_add_dsd_properties(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
525 return model->add_prop(cs35l41, physdev, id, hid);