/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 68 struct vimc_cap_device *vcap = container_of(ved, struct vimc_cap_device, in vimc_cap_get_format() local 71 *fmt = vcap->format; in vimc_cap_get_format() 77 struct vimc_cap_device *vcap = video_drvdata(file); in vimc_cap_g_fmt_vid_cap() local 79 f->fmt.pix = vcap->format; in vimc_cap_g_fmt_vid_cap() 119 struct vimc_cap_device *vcap = video_drvdata(file); in vimc_cap_s_fmt_vid_cap() local 123 if (vb2_is_busy(&vcap->queue)) in vimc_cap_s_fmt_vid_cap() 130 dev_dbg(vcap->ved.dev, "%s: format update: " in vimc_cap_s_fmt_vid_cap() 132 "new:%dx%d (0x%x, %d, %d, %d, %d)\n", vcap->vdev.name, in vimc_cap_s_fmt_vid_cap() 134 vcap->format.width, vcap in vimc_cap_s_fmt_vid_cap() 225 vimc_cap_return_all_buffers(struct vimc_cap_device *vcap, enum vb2_buffer_state state) vimc_cap_return_all_buffers() argument 242 struct vimc_cap_device *vcap = vb2_get_drv_priv(vq); vimc_cap_start_streaming() local 271 struct vimc_cap_device *vcap = vb2_get_drv_priv(vq); vimc_cap_stop_streaming() local 284 struct vimc_cap_device *vcap = vb2_get_drv_priv(vb2_buf->vb2_queue); vimc_cap_buf_queue() local 298 struct vimc_cap_device *vcap = vb2_get_drv_priv(vq); vimc_cap_queue_setup() local 311 struct vimc_cap_device *vcap = vb2_get_drv_priv(vb->vb2_queue); vimc_cap_buffer_prepare() local 342 struct vimc_cap_device *vcap = vimc_cap_release() local 351 struct vimc_cap_device *vcap = vimc_cap_unregister() local 360 struct vimc_cap_device *vcap = container_of(ved, struct vimc_cap_device, vimc_cap_process_frame() local 401 struct vimc_cap_device *vcap; vimc_cap_add() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot_vcap.c | 50 const struct vcap_props *vcap) in vcap_read_update_ctrl() 52 return ocelot_target_read(ocelot, vcap->target, VCAP_CORE_UPDATE_CTRL); in vcap_read_update_ctrl() 55 static void vcap_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, in vcap_cmd() argument 62 if ((sel & VCAP_SEL_ENTRY) && ix >= vcap->entry_count) in vcap_cmd() 74 ocelot_target_write(ocelot, vcap->target, value, VCAP_CORE_UPDATE_CTRL); in vcap_cmd() 78 10, 100000, false, ocelot, vcap); in vcap_cmd() 82 static void vcap_row_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, in vcap_row_cmd() argument 85 vcap_cmd(ocelot, vcap, vcap->entry_count - row - 1, cmd, sel); in vcap_row_cmd() 89 const struct vcap_props *vcap, in vcap_entry2cache() 49 vcap_read_update_ctrl(struct ocelot *ocelot, const struct vcap_props *vcap) vcap_read_update_ctrl() argument 88 vcap_entry2cache(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_entry2cache() argument 105 vcap_cache2entry(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_cache2entry() argument 123 vcap_action2cache(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_action2cache() argument 148 vcap_cache2action(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_cache2action() argument 173 vcap_data_offset_get(const struct vcap_props *vcap, struct vcap_data *data, int ix) vcap_data_offset_get() argument 254 vcap_key_set(const struct vcap_props *vcap, struct vcap_data *data, int field, u32 value, u32 mask) vcap_key_set() argument 263 vcap_key_bytes_set(const struct vcap_props *vcap, struct vcap_data *data, int field, u8 *val, u8 *msk) vcap_key_bytes_set() argument 294 vcap_key_l4_port_set(const struct vcap_props *vcap, struct vcap_data *data, int field, struct ocelot_vcap_udp_tcp *port) vcap_key_l4_port_set() argument 306 vcap_key_bit_set(const struct vcap_props *vcap, struct vcap_data *data, int field, enum ocelot_vcap_bit val) vcap_key_bit_set() argument 320 vcap_action_set(const struct vcap_props *vcap, struct vcap_data *data, int field, u32 value) vcap_action_set() argument 333 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS2]; is2_action_set() local 348 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS2]; is2_entry_set() local 649 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS1]; is1_action_set() local 672 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS1]; is1_entry_set() local 783 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; es0_action_set() local 811 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; es0_entry_set() local 854 const struct vcap_props *vcap = &ocelot->vcap[filter->block_id]; vcap_entry_get() local 1314 ocelot_vcap_init_one(struct ocelot *ocelot, const struct vcap_props *vcap) ocelot_vcap_init_one() argument 1333 ocelot_vcap_detect_constants(struct ocelot *ocelot, struct vcap_props *vcap) ocelot_vcap_detect_constants() argument 1419 struct vcap_props *vcap = &ocelot->vcap[i]; ocelot_vcap_init() local [all...] |
H A D | ocelot_flower.c | 525 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; in ocelot_flower_parse_indev() local 526 int key_length = vcap->keys[VCAP_ES0_IGR_PORT].length; in ocelot_flower_parse_indev() 816 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; in ocelot_vcap_filter_create() local 817 int key_length = vcap->keys[VCAP_ES0_EGR_PORT].length; in ocelot_vcap_filter_create()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
H A D | ocelot_vcap.c | 50 const struct vcap_props *vcap) in vcap_read_update_ctrl() 52 return ocelot_target_read(ocelot, vcap->target, VCAP_CORE_UPDATE_CTRL); in vcap_read_update_ctrl() 55 static void vcap_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, in vcap_cmd() argument 62 if ((sel & VCAP_SEL_ENTRY) && ix >= vcap->entry_count) in vcap_cmd() 74 ocelot_target_write(ocelot, vcap->target, value, VCAP_CORE_UPDATE_CTRL); in vcap_cmd() 78 10, 100000, false, ocelot, vcap); in vcap_cmd() 82 static void vcap_row_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, in vcap_row_cmd() argument 85 vcap_cmd(ocelot, vcap, vcap->entry_count - row - 1, cmd, sel); in vcap_row_cmd() 89 const struct vcap_props *vcap, in vcap_entry2cache() 49 vcap_read_update_ctrl(struct ocelot *ocelot, const struct vcap_props *vcap) vcap_read_update_ctrl() argument 88 vcap_entry2cache(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_entry2cache() argument 105 vcap_cache2entry(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_cache2entry() argument 123 vcap_action2cache(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_action2cache() argument 148 vcap_cache2action(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) vcap_cache2action() argument 173 vcap_data_offset_get(const struct vcap_props *vcap, struct vcap_data *data, int ix) vcap_data_offset_get() argument 254 vcap_key_set(const struct vcap_props *vcap, struct vcap_data *data, int field, u32 value, u32 mask) vcap_key_set() argument 263 vcap_key_bytes_set(const struct vcap_props *vcap, struct vcap_data *data, int field, u8 *val, u8 *msk) vcap_key_bytes_set() argument 294 vcap_key_l4_port_set(const struct vcap_props *vcap, struct vcap_data *data, int field, struct ocelot_vcap_udp_tcp *port) vcap_key_l4_port_set() argument 306 vcap_key_bit_set(const struct vcap_props *vcap, struct vcap_data *data, int field, enum ocelot_vcap_bit val) vcap_key_bit_set() argument 320 vcap_action_set(const struct vcap_props *vcap, struct vcap_data *data, int field, u32 value) vcap_action_set() argument 333 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS2]; is2_action_set() local 347 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS2]; is2_entry_set() local 648 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS1]; is1_action_set() local 671 const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS1]; is1_entry_set() local 783 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; es0_action_set() local 811 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; es0_entry_set() local 856 const struct vcap_props *vcap = &ocelot->vcap[filter->block_id]; vcap_entry_get() local 1236 ocelot_vcap_init_one(struct ocelot *ocelot, const struct vcap_props *vcap) ocelot_vcap_init_one() argument 1255 ocelot_vcap_detect_constants(struct ocelot *ocelot, struct vcap_props *vcap) ocelot_vcap_detect_constants() argument 1345 struct vcap_props *vcap = &ocelot->vcap[i]; ocelot_vcap_init() local [all...] |
H A D | ocelot_flower.c | 388 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; in ocelot_flower_parse_indev() local 389 int key_length = vcap->keys[VCAP_ES0_IGR_PORT].length; in ocelot_flower_parse_indev() 664 const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0]; in ocelot_vcap_filter_create() local 665 int key_length = vcap->keys[VCAP_ES0_EGR_PORT].length; in ocelot_vcap_filter_create()
|
/kernel/linux/linux-5.10/tools/testing/selftests/media_tests/ |
H A D | video_device_test.c | 46 struct v4l2_capability vcap; in main() local 86 ret = ioctl(fd, VIDIOC_QUERYCAP, &vcap); in main() 90 printf("Video device driver %s\n", vcap.driver); in main()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_debugfs.c | 270 const struct vcap_info *vcap = &vctrl->vcaps[admin->vtype]; in vcap_show_admin_info() local 272 out->prf(out->dst, "name: %s\n", vcap->name); in vcap_show_admin_info() 273 out->prf(out->dst, "rows: %d\n", vcap->rows); in vcap_show_admin_info() 274 out->prf(out->dst, "sw_count: %d\n", vcap->sw_count); in vcap_show_admin_info() 275 out->prf(out->dst, "sw_width: %d\n", vcap->sw_width); in vcap_show_admin_info() 276 out->prf(out->dst, "sticky_width: %d\n", vcap->sticky_width); in vcap_show_admin_info() 277 out->prf(out->dst, "act_width: %d\n", vcap->act_width); in vcap_show_admin_info() 278 out->prf(out->dst, "default_cnt: %d\n", vcap->default_cnt); in vcap_show_admin_info() 279 out->prf(out->dst, "require_cnt_dis: %d\n", vcap->require_cnt_dis); in vcap_show_admin_info() 280 out->prf(out->dst, "version: %d\n", vcap in vcap_show_admin_info() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/media_tests/ |
H A D | video_device_test.c | 85 struct v4l2_capability vcap; in loop_test() local 99 ret = ioctl(fd, VIDIOC_QUERYCAP, &vcap); in loop_test() 103 printf("Video device driver %s\n", vcap.driver); in loop_test()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/ |
H A D | Makefile | 14 obj-$(CONFIG_VCAP) += vcap/
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vcap_debugfs.c | 219 const struct vcap_info *vcap; in lan966x_vcap_port_info() local 223 vcap = &vctrl->vcaps[admin->vtype]; in lan966x_vcap_port_info() 225 out->prf(out->dst, "%s:\n", vcap->name); in lan966x_vcap_port_info()
|
H A D | Makefile | 22 ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | Makefile | 19 ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
|
H A D | sparx5_vcap_debugfs.c | 445 const struct vcap_info *vcap; in sparx5_port_info() local 449 vcap = &vctrl->vcaps[admin->vtype]; in sparx5_port_info() 450 out->prf(out->dst, "%s:\n", vcap->name); in sparx5_port_info()
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | video-i2c.c | 567 struct v4l2_capability *vcap) in video_i2c_querycap() 573 strscpy(vcap->driver, data->v4l2_dev.name, sizeof(vcap->driver)); in video_i2c_querycap() 574 strscpy(vcap->card, data->vdev.name, sizeof(vcap->card)); in video_i2c_querycap() 576 sprintf(vcap->bus_info, "I2C:%d-%d", client->adapter->nr, client->addr); in video_i2c_querycap() 566 video_i2c_querycap(struct file *file, void *priv, struct v4l2_capability *vcap) video_i2c_querycap() argument
|
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | video-i2c.c | 573 struct v4l2_capability *vcap) in video_i2c_querycap() 579 strscpy(vcap->driver, data->v4l2_dev.name, sizeof(vcap->driver)); in video_i2c_querycap() 580 strscpy(vcap->card, data->vdev.name, sizeof(vcap->card)); in video_i2c_querycap() 582 sprintf(vcap->bus_info, "I2C:%d-%d", client->adapter->nr, client->addr); in video_i2c_querycap() 572 video_i2c_querycap(struct file *file, void *priv, struct v4l2_capability *vcap) video_i2c_querycap() argument
|
/kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
H A D | cx18-ioctl.c | 385 struct v4l2_capability *vcap) in cx18_querycap() 390 strscpy(vcap->driver, CX18_DRIVER_NAME, sizeof(vcap->driver)); in cx18_querycap() 391 strscpy(vcap->card, cx->card_name, sizeof(vcap->card)); in cx18_querycap() 392 snprintf(vcap->bus_info, sizeof(vcap->bus_info), in cx18_querycap() 394 vcap->capabilities = cx->v4l2_cap | V4L2_CAP_DEVICE_CAPS; in cx18_querycap() 384 cx18_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) cx18_querycap() argument
|
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
H A D | felix.h | 24 struct vcap_props *vcap; member
|
/kernel/linux/linux-6.6/drivers/net/dsa/ocelot/ |
H A D | felix.h | 36 struct vcap_props *vcap; member
|
H A D | ocelot_ext.c | 57 .vcap = vsc7514_vcap_props,
|
/kernel/linux/linux-6.6/drivers/media/pci/cx18/ |
H A D | cx18-ioctl.c | 421 struct v4l2_capability *vcap) in cx18_querycap() 426 strscpy(vcap->driver, CX18_DRIVER_NAME, sizeof(vcap->driver)); in cx18_querycap() 427 strscpy(vcap->card, cx->card_name, sizeof(vcap->card)); in cx18_querycap() 428 vcap->capabilities = cx->v4l2_cap | V4L2_CAP_DEVICE_CAPS; in cx18_querycap() 420 cx18_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) cx18_querycap() argument
|
/kernel/linux/linux-5.10/drivers/media/pci/cobalt/ |
H A D | cobalt-v4l2.c | 477 struct v4l2_capability *vcap) in cobalt_querycap() 482 strscpy(vcap->driver, "cobalt", sizeof(vcap->driver)); in cobalt_querycap() 483 strscpy(vcap->card, "cobalt", sizeof(vcap->card)); in cobalt_querycap() 484 snprintf(vcap->bus_info, sizeof(vcap->bus_info), in cobalt_querycap() 486 vcap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_READWRITE | in cobalt_querycap() 489 vcap->capabilities |= V4L2_CAP_VIDEO_OUTPUT; in cobalt_querycap() 476 cobalt_querycap(struct file *file, void *priv_fh, struct v4l2_capability *vcap) cobalt_querycap() argument
|
/kernel/linux/linux-6.6/drivers/media/pci/cobalt/ |
H A D | cobalt-v4l2.c | 477 struct v4l2_capability *vcap) in cobalt_querycap() 482 strscpy(vcap->driver, "cobalt", sizeof(vcap->driver)); in cobalt_querycap() 483 strscpy(vcap->card, "cobalt", sizeof(vcap->card)); in cobalt_querycap() 484 snprintf(vcap->bus_info, sizeof(vcap->bus_info), in cobalt_querycap() 486 vcap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_READWRITE | in cobalt_querycap() 489 vcap->capabilities |= V4L2_CAP_VIDEO_OUTPUT; in cobalt_querycap() 476 cobalt_querycap(struct file *file, void *priv_fh, struct v4l2_capability *vcap) cobalt_querycap() argument
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | vas.c | 741 static int reconfig_close_windows(struct vas_caps *vcap, int excess_creds, in reconfig_close_windows() argument 754 list_for_each_entry_safe(win, tmp, &vcap->list, win_list) { in reconfig_close_windows() 810 vcap->nr_close_wins++; in reconfig_close_windows()
|
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 733 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) in ivtv_querycap() argument 738 strscpy(vcap->driver, IVTV_DRIVER_NAME, sizeof(vcap->driver)); in ivtv_querycap() 739 strscpy(vcap->card, itv->card_name, sizeof(vcap->card)); in ivtv_querycap() 740 snprintf(vcap->bus_info, sizeof(vcap->bus_info), "PCI:%s", pci_name(itv->pdev)); in ivtv_querycap() 741 vcap->capabilities = itv->v4l2_cap | V4L2_CAP_DEVICE_CAPS; in ivtv_querycap()
|
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 728 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) in ivtv_querycap() argument 733 strscpy(vcap->driver, IVTV_DRIVER_NAME, sizeof(vcap->driver)); in ivtv_querycap() 734 strscpy(vcap->card, itv->card_name, sizeof(vcap->card)); in ivtv_querycap() 735 vcap->capabilities = itv->v4l2_cap | V4L2_CAP_DEVICE_CAPS; in ivtv_querycap()
|