Home
last modified time | relevance | path

Searched full:vcap (Results 1 – 25 of 37) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_vcap.c50 const struct vcap_props *vcap) in vcap_read_update_ctrl() argument
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()
81 /* Convert from 0-based row to VCAP entry row and run command */
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() argument
[all …]
Docelot_flower.c11 /* Arbitrarily chosen constants for encoding the VCAP block and lookup number
76 /* Can't offload GOTO in VCAP ES0 */ in ocelot_is_goto_target_valid()
82 /* VCAP IS1 can be skipped, either partially or completely */ in ocelot_is_goto_target_valid()
95 /* Lookup 2 of VCAP IS1 can really support non-optional GOTOs, in ocelot_is_goto_target_valid()
97 * value encoding a VCAP IS2 target chain. in ocelot_is_goto_target_valid()
107 /* Non-optional GOTO from VCAP IS2 lookup 0 to lookup 1. in ocelot_is_goto_target_valid()
114 /* VCAP IS2 lookup 1 cannot jump anywhere */ in ocelot_is_goto_target_valid()
180 "Drop action can only be offloaded to VCAP IS2"); in ocelot_flower_parse_action()
197 "Trap action can only be offloaded to VCAP IS2"); in ocelot_flower_parse_action()
215 "Police action can only be offloaded to VCAP IS2 lookup 0"); in ocelot_flower_parse_action()
[all …]
Docelot_vcap.h206 /* VCAP ES0 */
224 /* VCAP IS1 */
239 /* VCAP IS2 */
277 /* For VCAP IS1 and IS2 */
279 /* For VCAP ES0 */
Docelot_police.c21 #define POL_ORDER 0x1d3 /* Ocelot policer order: Serial (QoS -> Port -> VCAP) */
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
Dvimc-capture.c68 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->format.height, in vimc_cap_s_fmt_vid_cap()
135 vcap->format.pixelformat, vcap->format.colorspace, in vimc_cap_s_fmt_vid_cap()
[all …]
/kernel/linux/linux-4.19/drivers/media/platform/vimc/
Dvimc-capture.c73 struct vimc_cap_device *vcap = video_drvdata(file); in vimc_cap_querycap() local
78 "platform:%s", vcap->vdev.v4l2_dev->name); in vimc_cap_querycap()
86 struct vimc_cap_device *vcap = container_of(ved, struct vimc_cap_device, in vimc_cap_get_format() local
89 *fmt = vcap->format; in vimc_cap_get_format()
95 struct vimc_cap_device *vcap = video_drvdata(file); in vimc_cap_g_fmt_vid_cap() local
97 f->fmt.pix = vcap->format; in vimc_cap_g_fmt_vid_cap()
134 struct vimc_cap_device *vcap = video_drvdata(file); in vimc_cap_s_fmt_vid_cap() local
138 if (vb2_is_busy(&vcap->queue)) in vimc_cap_s_fmt_vid_cap()
145 dev_dbg(vcap->dev, "%s: format update: " in vimc_cap_s_fmt_vid_cap()
147 "new:%dx%d (0x%x, %d, %d, %d, %d)\n", vcap->vdev.name, in vimc_cap_s_fmt_vid_cap()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/ocelot/
Dtc_flower_chains.sh37 # Helpers to map a VCAP IS1 and VCAP IS2 lookup and policy to a chain number
39 # VCAP IS1 lookup 0: 10000
40 # VCAP IS1 lookup 1: 11000
41 # VCAP IS1 lookup 2: 12000
42 # VCAP IS2 lookup 0 policy 0: 20000
43 # VCAP IS2 lookup 0 policy 1: 20001
44 # VCAP IS2 lookup 0 policy 255: 20255
45 # VCAP IS2 lookup 1 policy 0: 21000
46 # VCAP IS2 lookup 1 policy 1: 21001
47 # VCAP IS2 lookup 1 policy 255: 21255
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/media_tests/
Dvideo_device_test.c46 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-4.19/tools/testing/selftests/media_tests/
Dvideo_device_test.c46 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-5.10/include/soc/mscc/
Docelot_vcap.h12 * VCAP Common
48 /* VCAP Type-Group values */
110 * VCAP IS2
271 * VCAP IS1
362 * VCAP ES0
/kernel/linux/linux-4.19/drivers/media/pci/cobalt/
Dcobalt-v4l2.c477 struct v4l2_capability *vcap) in cobalt_querycap() argument
482 strlcpy(vcap->driver, "cobalt", sizeof(vcap->driver)); in cobalt_querycap()
483 strlcpy(vcap->card, "cobalt", sizeof(vcap->card)); in cobalt_querycap()
484 snprintf(vcap->bus_info, sizeof(vcap->bus_info), in cobalt_querycap()
486 vcap->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_READWRITE; in cobalt_querycap()
488 vcap->device_caps |= V4L2_CAP_VIDEO_OUTPUT; in cobalt_querycap()
490 vcap->device_caps |= V4L2_CAP_VIDEO_CAPTURE; in cobalt_querycap()
491 vcap->capabilities = vcap->device_caps | V4L2_CAP_DEVICE_CAPS | in cobalt_querycap()
494 vcap->capabilities |= V4L2_CAP_VIDEO_OUTPUT; in cobalt_querycap()
/kernel/linux/linux-4.19/drivers/media/i2c/
Dvideo-i2c.c350 struct v4l2_capability *vcap) in video_i2c_querycap() argument
355 strlcpy(vcap->driver, data->v4l2_dev.name, sizeof(vcap->driver)); in video_i2c_querycap()
356 strlcpy(vcap->card, data->vdev.name, sizeof(vcap->card)); in video_i2c_querycap()
358 sprintf(vcap->bus_info, "I2C:%d-%d", client->adapter->nr, client->addr); in video_i2c_querycap()
/kernel/linux/linux-5.10/Documentation/hwmon/
Dbel-pfe.rst91 in2_label "vcap"
111 - curr3, fan2, vout[2-7], vcap, pin2, pout2 and temp3 attributes only
Dpmbus.rst212 inX_label "vin", "vcap", or "voutY"
/kernel/linux/linux-4.19/drivers/media/pci/cx18/
Dcx18-ioctl.c394 struct v4l2_capability *vcap) in cx18_querycap() argument
400 strlcpy(vcap->driver, CX18_DRIVER_NAME, sizeof(vcap->driver)); in cx18_querycap()
401 strlcpy(vcap->card, cx->card_name, sizeof(vcap->card)); in cx18_querycap()
402 snprintf(vcap->bus_info, sizeof(vcap->bus_info), in cx18_querycap()
404 vcap->capabilities = cx->v4l2_cap; /* capabilities */ in cx18_querycap()
405 vcap->device_caps = s->v4l2_dev_caps; /* device capabilities */ in cx18_querycap()
406 vcap->capabilities |= V4L2_CAP_DEVICE_CAPS; in cx18_querycap()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dvideo-i2c.c567 struct v4l2_capability *vcap) in video_i2c_querycap() argument
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()
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
Dcx18-ioctl.c385 struct v4l2_capability *vcap) in cx18_querycap() argument
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()
/kernel/linux/linux-5.10/drivers/media/pci/cobalt/
Dcobalt-v4l2.c477 struct v4l2_capability *vcap) in cobalt_querycap() argument
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()
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/
Dfelix.h24 struct vcap_props *vcap; member
Dfelix.c452 ocelot->vcap = felix->info->vcap; in felix_init_structs()
/kernel/linux/linux-4.19/drivers/media/pci/ivtv/
Divtv-ioctl.c744 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) in ivtv_querycap() argument
750 strlcpy(vcap->driver, IVTV_DRIVER_NAME, sizeof(vcap->driver)); in ivtv_querycap()
751 strlcpy(vcap->card, itv->card_name, sizeof(vcap->card)); in ivtv_querycap()
752 snprintf(vcap->bus_info, sizeof(vcap->bus_info), "PCI:%s", pci_name(itv->pdev)); in ivtv_querycap()
753 vcap->capabilities = itv->v4l2_cap | V4L2_CAP_DEVICE_CAPS; in ivtv_querycap()
754 vcap->device_caps = s->caps; in ivtv_querycap()
757 vcap->capabilities &= ~V4L2_CAP_VIDEO_OUTPUT_OVERLAY; in ivtv_querycap()
758 vcap->device_caps &= ~V4L2_CAP_VIDEO_OUTPUT_OVERLAY; in ivtv_querycap()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/
Dmicrochip,sparx5.yaml20 (VCAP)
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-ioctl.c733 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-5.10/arch/arm64/
DKconfig.platforms104 content aware processor (VCAP).
/kernel/linux/linux-4.19/Documentation/hwmon/
Dpmbus166 inX_label "vin", "vcap", or "voutY"

12