Searched refs:pdevice (Results 1 – 4 of 4) sorted by relevance
237 static struct CanCntlr *CanCntlrFromPlatformDevice(const struct PlatformDevice *pdevice) in CanCntlrFromPlatformDevice() argument239 return CONTAINER_OF(pdevice, struct CanCntlr, device); in CanCntlrFromPlatformDevice()245 struct PlatformDevice *pdevice = NULL; in CanCntlrGetByName() local253 pdevice = PlatformManagerGetDeviceByName(manager, name); in CanCntlrGetByName()254 if (pdevice == NULL) { in CanCntlrGetByName()259 return CanCntlrFromPlatformDevice(pdevice); in CanCntlrGetByName()265 struct PlatformDevice *pdevice = NULL; in CanCntlrGetByNumber() local273 pdevice = PlatformManagerGetDeviceByNumber(manager, number); in CanCntlrGetByNumber()274 if (pdevice == NULL) { in CanCntlrGetByNumber()279 return CanCntlrFromPlatformDevice(pdevice); in CanCntlrGetByNumber()
88 struct PlatformDevice *pdevice = PlatformDeviceFromHdfDev(device); in CanCntlrFromHdfDev() local89 return (pdevice == NULL) ? NULL : CONTAINER_OF(pdevice, struct CanCntlr, device); in CanCntlrFromHdfDev()
260 bool (*match)(struct PlatformDevice *pdevice, void *data)) in PlatformManagerFindDevice() argument263 struct PlatformDevice *pdevice = NULL; in PlatformManagerFindDevice() local280 pdevice = tmp; in PlatformManagerFindDevice()286 return pdevice; in PlatformManagerFindDevice()
101 bool (*match)(struct PlatformDevice *pdevice, void *data));