Home
last modified time | relevance | path

Searched refs:vcap (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/mscc/
H A 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()
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
94 entry_words = DIV_ROUND_UP(vcap->entry_width, ENTRY_WIDTH); in vcap_entry2cache()
[all …]
H A Docelot_flower.c525 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()
H A Docelot_vsc7514.c345 ocelot->vcap = vsc7514_vcap_props; in mscc_ocelot_probe()
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A DMakefile6 obj-$(CONFIG_VCAP) += vcap.o
8 vcap-$(CONFIG_DEBUG_FS) += vcap_api_debugfs.o
10 vcap-y += vcap_api.o vcap_tc.o
H A Dvcap_api_debugfs.c270 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->version); in vcap_show_admin_info()
/openbmc/linux/tools/testing/selftests/media_tests/
H A Dvideo_device_test.c85 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()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_vcap_debugfs.c219 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 DMakefile22 ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
/openbmc/linux/drivers/net/ethernet/microchip/
H A DMakefile14 obj-$(CONFIG_VCAP) += vcap/
H A DKconfig61 source "drivers/net/ethernet/microchip/vcap/Kconfig"
/openbmc/linux/drivers/media/i2c/
H A Dvideo-i2c.c573 struct v4l2_capability *vcap) in video_i2c_querycap() argument
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()
/openbmc/linux/Documentation/hwmon/
H A Dbel-pfe.rst91 in2_label "vcap"
111 - curr3, fan2, vout[2-7], vcap, pin2, pout2 and temp3 attributes only
H A Dpim4328.rst82 in4_label "vcap"
H A Dpmbus.rst209 inX_label "vin", "vcap", or "voutY"
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A DMakefile19 ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
H A Dsparx5_vcap_debugfs.c445 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()
/openbmc/linux/drivers/media/pci/cobalt/
H A 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()
/openbmc/linux/drivers/media/pci/cx18/
H A Dcx18-ioctl.c421 struct v4l2_capability *vcap) in cx18_querycap() argument
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()
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.h36 struct vcap_props *vcap; member
H A Docelot_ext.c57 .vcap = vsc7514_vcap_props,
H A Dfelix.c75 key_length = ocelot->vcap[VCAP_ES0].keys[VCAP_ES0_IGR_PORT].length; in felix_tag_8021q_vlan_add_rx()
1388 ocelot->vcap = felix->info->vcap; in felix_init_structs()
H A Dseville_vsc9953.c958 .vcap = vsc9953_vcap_props,
/openbmc/qemu/hw/scsi/
H A Dspapr_vscsi.c993 struct viosrp_capabilities *vcap; in vscsi_send_capabilities() local
999 vcap = &req_iu(req)->mad.capabilities; in vscsi_send_capabilities()
1000 req_len = len = be16_to_cpu(vcap->common.length); in vscsi_send_capabilities()
1001 buffer = be64_to_cpu(vcap->buffer); in vscsi_send_capabilities()
1038 vcap->common.status = rc ? cpu_to_be32(1) : 0; in vscsi_send_capabilities()
1039 return vscsi_send_iu(s, req, sizeof(*vcap), VIOSRP_MAD_FORMAT); in vscsi_send_capabilities()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dvas.c741 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()
/openbmc/linux/drivers/media/pci/ivtv/
H A Divtv-ioctl.c728 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()

12