Lines Matching refs:aux_dev
324 static int pci1xxxx_otp_eeprom_probe(struct auxiliary_device *aux_dev, in pci1xxxx_otp_eeprom_probe() argument
333 aux_dev_wrapper = container_of(aux_dev, struct auxiliary_device_wrapper, in pci1xxxx_otp_eeprom_probe()
334 aux_dev); in pci1xxxx_otp_eeprom_probe()
339 priv = devm_kzalloc(&aux_dev->dev, sizeof(*priv), GFP_KERNEL); in pci1xxxx_otp_eeprom_probe()
343 priv->pdev = aux_dev; in pci1xxxx_otp_eeprom_probe()
345 if (!devm_request_mem_region(&aux_dev->dev, pdata->region_start + in pci1xxxx_otp_eeprom_probe()
348 aux_dev->name)) in pci1xxxx_otp_eeprom_probe()
351 priv->reg_base = devm_ioremap(&aux_dev->dev, pdata->region_start + in pci1xxxx_otp_eeprom_probe()
366 dev_set_drvdata(&aux_dev->dev, priv); in pci1xxxx_otp_eeprom_probe()
371 priv->nvmem_config_eeprom.dev = &aux_dev->dev; in pci1xxxx_otp_eeprom_probe()
380 priv->nvmem_eeprom = devm_nvmem_register(&aux_dev->dev, in pci1xxxx_otp_eeprom_probe()
390 priv->nvmem_config_otp.dev = &aux_dev->dev; in pci1xxxx_otp_eeprom_probe()
399 priv->nvmem_otp = devm_nvmem_register(&aux_dev->dev, in pci1xxxx_otp_eeprom_probe()
407 static void pci1xxxx_otp_eeprom_remove(struct auxiliary_device *aux_dev) in pci1xxxx_otp_eeprom_remove() argument
412 priv = dev_get_drvdata(&aux_dev->dev); in pci1xxxx_otp_eeprom_remove()