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