Lines Matching refs:pads
223 kfree(dvbdev->pads); in dvb_media_device_free()
225 dvbdev->pads = NULL; in dvb_media_device_free()
277 struct media_pad *pads = &dvbdev->tsout_pads[i]; in dvb_create_tsout_entity() local
285 pads->flags = MEDIA_PAD_FL_SINK; in dvb_create_tsout_entity()
287 ret = media_entity_pads_init(entity, 1, pads); in dvb_create_tsout_entity()
347 dvbdev->pads = kcalloc(npads, sizeof(*dvbdev->pads), in dvb_create_media_entity()
349 if (!dvbdev->pads) { in dvb_create_media_entity()
359 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity()
360 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; in dvb_create_media_entity()
364 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity()
366 dvbdev->pads[i].flags = MEDIA_PAD_FL_SOURCE; in dvb_create_media_entity()
370 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity()
371 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; in dvb_create_media_entity()
376 kfree(dvbdev->pads); in dvb_create_media_entity()
378 dvbdev->pads = NULL; in dvb_create_media_entity()
383 ret = media_entity_pads_init(dvbdev->entity, npads, dvbdev->pads); in dvb_create_media_entity()