Home
last modified time | relevance | path

Searched refs:bmControls (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/include/linux/usb/
Daudio-v2.h34 static inline bool uac_v2v3_control_is_readable(u32 bmControls, u8 control) in uac_v2v3_control_is_readable() argument
36 return (bmControls >> ((control - 1) * 2)) & 0x1; in uac_v2v3_control_is_readable()
39 static inline bool uac_v2v3_control_is_writeable(u32 bmControls, u8 control) in uac_v2v3_control_is_writeable() argument
41 return (bmControls >> ((control - 1) * 2)) & 0x2; in uac_v2v3_control_is_writeable()
52 __u8 bmControls; member
73 __u8 bmControls; member
105 __u8 bmControls; member
122 __le16 bmControls; member
137 __le16 bmControls; member
189 __u8 bmControls; member
[all …]
Daudio-v3.h68 __le32 bmControls; member
80 __le32 bmControls; member
97 __le32 bmControls; member
137 __le32 bmControls; member
166 __le32 bmControls; member
203 __le32 bmControls; member
219 __le32 bmControls; member
/linux-6.6.21/sound/usb/
Dclock.c218 u32 bmControls; in uac_clock_source_is_valid() local
226 bmControls = le32_to_cpu(cs_desc->v3.bmControls); in uac_clock_source_is_valid()
228 bmControls = cs_desc->v2.bmControls; in uac_clock_source_is_valid()
231 if (!uac_v2v3_control_is_readable(bmControls, in uac_clock_source_is_valid()
501 u32 bmControls; in snd_usb_set_sample_rate_v2v3() local
512 bmControls = le32_to_cpu(cs_desc->v3.bmControls); in snd_usb_set_sample_rate_v2v3()
514 bmControls = cs_desc->v2.bmControls; in snd_usb_set_sample_rate_v2v3()
516 writeable = uac_v2v3_control_is_writeable(bmControls, in snd_usb_set_sample_rate_v2v3()
Dformat.c477 u32 bmControls; in validate_sample_rate_table_v2v3() local
493 bmControls = le32_to_cpu(as->bmControls); in validate_sample_rate_table_v2v3()
497 bmControls = as->bmControls; in validate_sample_rate_table_v2v3()
500 if (!uac_v2v3_control_is_readable(bmControls, in validate_sample_rate_table_v2v3()
Dstream.c612 if (csep2->bmControls & UAC2_CONTROL_PITCH) in parse_uac_endpoint_attributes()
621 if (le32_to_cpu(csep3->bmControls) & UAC2_CONTROL_PITCH) in parse_uac_endpoint_attributes()
Dmixer.c1948 if (!uac_v2v3_control_is_readable(hdr->bmControls, in parse_clock_source_unit()
2216 bmctls = le16_to_cpu(d_v2->bmControls); in parse_audio_input_terminal()
2221 bmctls = le32_to_cpu(d_v3->bmControls); in parse_audio_input_terminal()
3276 uac_v2v3_control_is_readable(le16_to_cpu(desc->bmControls), in snd_usb_mixer_controls()
3302 uac_v2v3_control_is_readable(le32_to_cpu(desc->bmControls), in snd_usb_mixer_controls()
/linux-6.6.21/Documentation/usb/
Dgadget_uvc.rst229 echo 0x0d > bmControls
236 The bmControls attribute and the baSourceID attribute are multi-value attributes.
239 need to write two values to bmControls, like so:
243 cat << EOF > bmControls
251 The bControlSize attribute reflects the size of the bmControls attribute, and
253 attributes are automatically increased / decreased as you set bmControls and
260 $ cat bmControls
268 $ cat bmControls
272 $ cat bmControls
281 The Camera Terminal and Processing Units in the UVC chain also have bmControls
[all …]
/linux-6.6.21/drivers/usb/gadget/legacy/
Dwebcam.c111 .bmControls[0] = 2,
112 .bmControls[1] = 0,
113 .bmControls[2] = 0,
124 .bmControls[0] = 1,
125 .bmControls[1] = 0,
/linux-6.6.21/drivers/media/usb/uvc/
Duvcvideo.h194 u8 *bmControls; member
199 u8 *bmControls; member
210 u8 *bmControls; member
220 u8 *bmControls; member
226 u8 *bmControls; member
Duvc_ctrl.c2554 controls = entity->processing.bmControls; in uvc_ctrl_prune_entity()
2561 controls = entity->camera.bmControls; in uvc_ctrl_prune_entity()
2683 u8 *bmControls = NULL; in uvc_ctrl_init_chain() local
2686 bmControls = entity->extension.bmControls; in uvc_ctrl_init_chain()
2689 bmControls = entity->processing.bmControls; in uvc_ctrl_init_chain()
2692 bmControls = entity->camera.bmControls; in uvc_ctrl_init_chain()
2695 bmControls = entity->gpio.bmControls; in uvc_ctrl_init_chain()
2703 ncontrols = memweight(bmControls, bControlSize); in uvc_ctrl_init_chain()
2716 if (uvc_test_bit(bmControls, i) == 0) in uvc_ctrl_init_chain()
Duvc_driver.c905 unit->extension.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_vendor_control()
908 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); in uvc_parse_vendor_control()
1015 term->camera.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control()
1022 memcpy(term->camera.bmControls, &buffer[15], n); in uvc_parse_standard_control()
1026 term->media.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control()
1030 memcpy(term->media.bmControls, &buffer[9], n); in uvc_parse_standard_control()
1119 unit->processing.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_standard_control()
1120 memcpy(unit->processing.bmControls, &buffer[8], n); in uvc_parse_standard_control()
1148 unit->extension.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_standard_control()
1149 memcpy(unit->extension.bmControls, &buffer[23+p], n); in uvc_parse_standard_control()
[all …]
/linux-6.6.21/include/uapi/linux/usb/
Dvideo.h292 __u8 bmControls[3]; member
333 __u8 bmControls[2]; member
351 __u8 bmControls[0]; member
371 __u8 bmControls[n]; \
/linux-6.6.21/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uvc79 All attributes read only except bmControls, which is read/write:
82 bmControls bitmap specifying which controls are
104 All attributes read only except bmControls, which is read/write:
108 bmControls bitmap specifying which controls are
137 bControlSize size of the bmControls field in bytes
138 bmControls list of bitmaps detailing which vendor
/linux-6.6.21/drivers/usb/gadget/function/
Df_uvc.c493 memcpy(mem, (desc)->bmControls, (desc)->bControlSize); \
895 cd->bmControls[0] = 2; in uvc_alloc_inst()
896 cd->bmControls[1] = 0; in uvc_alloc_inst()
897 cd->bmControls[2] = 0; in uvc_alloc_inst()
907 pd->bmControls[0] = 1; in uvc_alloc_inst()
908 pd->bmControls[1] = 0; in uvc_alloc_inst()
Df_uac2.c178 .bmControls = (CONTROL_RDWR << CLK_FREQ_CTRL),
190 .bmControls = (CONTROL_RDWR << CLK_FREQ_CTRL),
205 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL),
219 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL),
233 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL),
247 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL),
261 .bmControls = 0,
331 .bmControls = 0,
390 .bmControls = 0,
465 .bmControls = 0,
[all …]
Duvc_configfs.c383 pd->bmControls[i] = bm_controls[i]; in uvcg_default_processing_bm_controls_store()
414 result += sprintf(pg, "%u\n", pd->bmControls[i]); in uvcg_default_processing_bm_controls_show()
424 UVC_ATTR(uvcg_default_processing_, bm_controls, bmControls);
553 cd->bmControls[i] = bm_controls[i]; in uvcg_default_camera_bm_controls_store()
585 result += sprintf(pg, "%u\n", cd->bmControls[i]); in uvcg_default_camera_bm_controls_show()
594 UVC_ATTR(uvcg_default_camera_, bm_controls, bmControls);
931 tmp_buf = krealloc_array(xu->desc.bmControls, num, sizeof(u8), in uvcg_extension_b_control_size_store()
938 xu->desc.bmControls = tmp_buf; in uvcg_extension_b_control_size_store()
1102 ret += sprintf(pg, "0x%02x\n", xu->desc.bmControls[i]); in uvcg_extension_bm_controls_show()
1148 kfree(xu->desc.bmControls); in uvcg_extension_bm_controls_store()
[all …]
Duvc_configfs.h159 u8 *bmControls; member