Lines Matching full:pads
16 /* Helper function to allocate and initialize pads */
19 struct media_pad *pads; in dcmipp_pads_init() local
22 /* Allocate memory for the pads */ in dcmipp_pads_init()
23 pads = kcalloc(num_pads, sizeof(*pads), GFP_KERNEL); in dcmipp_pads_init()
24 if (!pads) in dcmipp_pads_init()
27 /* Initialize the pads */ in dcmipp_pads_init()
29 pads[i].index = i; in dcmipp_pads_init()
30 pads[i].flags = pads_flags[i]; in dcmipp_pads_init()
33 return pads; in dcmipp_pads_init()
54 /* Allocate the pads. Should be released from the sd_int_op release */ in dcmipp_ent_sd_register()
55 ved->pads = dcmipp_pads_init(num_pads, pads_flag); in dcmipp_ent_sd_register()
56 if (IS_ERR(ved->pads)) in dcmipp_ent_sd_register()
57 return PTR_ERR(ved->pads); in dcmipp_ent_sd_register()
77 ret = media_entity_pads_init(&sd->entity, num_pads, ved->pads); in dcmipp_ent_sd_register()
102 dcmipp_pads_cleanup(ved->pads); in dcmipp_ent_sd_register()