Lines Matching defs:obj
150 static int32_t HiPwmProbe(struct HiPwm *hp, struct HdfDeviceObject *obj)
162 if (iface->GetUint32(obj->property, "num", &(hp->dev.num), 0) != HDF_SUCCESS) {
167 if (iface->GetUint32(obj->property, "base", &tmp, 0) != HDF_SUCCESS) {
187 if (PwmDeviceAdd(obj, &(hp->dev)) != HDF_SUCCESS) {
203 static int32_t HdfPwmBind(struct HdfDeviceObject *obj)
205 (void)obj;
209 static int32_t HdfPwmInit(struct HdfDeviceObject *obj)
214 if (obj == NULL) {
215 HDF_LOGE("%s: obj is null", __func__);
224 ret = HiPwmProbe(hp, obj);
234 static void HdfPwmRelease(struct HdfDeviceObject *obj)
239 if (obj == NULL) {
240 HDF_LOGE("%s: obj is null", __func__);
243 hp = (struct HiPwm *)obj->service;
249 PwmDeviceRemove(obj, &(hp->dev));