Lines Matching refs:smccc_dev
13 const struct arm_smccc_device *smccc_dev = to_arm_smccc_device(dev); in arm_smccc_bus_match() local
20 if (smccc_dev->func_id == id_table->func_id) in arm_smccc_bus_match()
46 const struct arm_smccc_device *smccc_dev = to_arm_smccc_device(dev); in arm_smccc_bus_uevent() local
49 smccc_dev->func_id); in arm_smccc_bus_uevent()
55 struct arm_smccc_device *smccc_dev = to_arm_smccc_device(dev); in modalias_show() local
58 smccc_dev->func_id); in modalias_show()
101 struct arm_smccc_device *smccc_dev = to_arm_smccc_device(dev); in arm_smccc_release_device() local
103 kfree(smccc_dev); in arm_smccc_release_device()
108 struct arm_smccc_device *smccc_dev; in arm_smccc_device_alloc() local
110 smccc_dev = kzalloc_obj(*smccc_dev); in arm_smccc_device_alloc()
111 if (!smccc_dev) in arm_smccc_device_alloc()
114 smccc_dev->func_id = func_id; in arm_smccc_device_alloc()
115 smccc_dev->dev.bus = &arm_smccc_bus_type; in arm_smccc_device_alloc()
116 smccc_dev->dev.release = arm_smccc_release_device; in arm_smccc_device_alloc()
117 device_initialize(&smccc_dev->dev); in arm_smccc_device_alloc()
119 return &smccc_dev->dev; in arm_smccc_device_alloc()
145 void arm_smccc_device_unregister(struct arm_smccc_device *smccc_dev) in arm_smccc_device_unregister() argument
147 if (!smccc_dev) in arm_smccc_device_unregister()
150 device_unregister(&smccc_dev->dev); in arm_smccc_device_unregister()