Lines Matching refs:num_pads
57 u16 source_pad = entity->num_pads - 1; in video_mux_link_setup()
182 u16 source_pad = sd->entity.num_pads - 1; in video_mux_set_format()
323 for (i = 0; i < sd->entity.num_pads; i++) { in video_mux_init_cfg()
411 unsigned int num_pads = 0; in video_mux_probe() local
434 num_pads = max(num_pads, endpoint.port + 1); in video_mux_probe()
437 if (num_pads < 2) { in video_mux_probe()
438 dev_err(dev, "Not enough ports %d\n", num_pads); in video_mux_probe()
450 vmux->pads = devm_kcalloc(dev, num_pads, sizeof(*vmux->pads), in video_mux_probe()
455 vmux->format_mbus = devm_kcalloc(dev, num_pads, in video_mux_probe()
461 for (i = 0; i < num_pads; i++) { in video_mux_probe()
462 vmux->pads[i].flags = (i < num_pads - 1) ? MEDIA_PAD_FL_SINK in video_mux_probe()
468 ret = media_entity_pads_init(&vmux->subdev.entity, num_pads, in video_mux_probe()
475 ret = video_mux_async_register(vmux, num_pads - 1); in video_mux_probe()