Lines Matching defs:subparam
51 static uint_t feature_csr_val_construct(uint_t subparam, uint_t param_val,
53 static uint_t feature_csr_val_subparam_extract(uint_t subparam,
55 static uint_t feature_elm_inq_reg_val_subparam_extract(uint_t subparam,
67 uint_t param, presence, subparam;
77 subparam = DCAM1394_SUBPARAM_NONE;
79 param_attr_set(param_attr, param, subparam, attr_bmap);
87 for (subparam = DCAM1394_SUBPARAM_VID_MODE_0;
88 subparam <= DCAM1394_SUBPARAM_VID_MODE_5; subparam++) {
89 param_attr_set(param_attr, param, subparam, attr_bmap);
100 for (subparam = DCAM1394_SUBPARAM_FRAME_RATE_0;
101 subparam <= DCAM1394_SUBPARAM_FRAME_RATE_4; subparam++) {
102 param_attr_set(param_attr, param, subparam, attr_bmap);
110 subparam = DCAM1394_SUBPARAM_NONE;
118 param_attr_set(param_attr, param, subparam, attr_bmap);
124 subparam = DCAM1394_SUBPARAM_NONE;
126 param_attr_set(param_attr, param, subparam, attr_bmap);
132 subparam = DCAM1394_SUBPARAM_NONE;
134 param_attr_set(param_attr, param, subparam, attr_bmap);
140 subparam = DCAM1394_SUBPARAM_NONE;
142 param_attr_set(param_attr, param, subparam, attr_bmap);
148 subparam = DCAM1394_SUBPARAM_NONE;
150 param_attr_set(param_attr, param, subparam, attr_bmap);
156 subparam = DCAM1394_SUBPARAM_NONE;
158 param_attr_set(param_attr, param, subparam, attr_bmap);
164 subparam = DCAM1394_SUBPARAM_NONE;
166 param_attr_set(param_attr, param, subparam, attr_bmap);
172 subparam = DCAM1394_SUBPARAM_NONE;
174 param_attr_set(param_attr, param, subparam, attr_bmap);
193 subparam = DCAM1394_SUBPARAM_PRESENCE;
195 param_attr_set(param_attr, param, subparam, attr_bmap);
199 subparam = DCAM1394_SUBPARAM_CAP_READ;
202 subparam, attr_bmap);
205 subparam = DCAM1394_SUBPARAM_CAP_ON_OFF;
208 subparam, attr_bmap);
211 subparam = DCAM1394_SUBPARAM_CAP_CTRL_AUTO;
214 subparam, attr_bmap);
217 subparam = DCAM1394_SUBPARAM_CAP_CTRL_MANUAL;
220 subparam, attr_bmap);
223 subparam = DCAM1394_SUBPARAM_MIN_VAL;
226 subparam, attr_bmap);
229 subparam = DCAM1394_SUBPARAM_MAX_VAL;
232 subparam, attr_bmap);
235 subparam = DCAM1394_SUBPARAM_ON_OFF;
247 subparam, attr_bmap);
250 subparam = DCAM1394_SUBPARAM_CTRL_MODE;
255 subparam, attr_bmap);
266 subparam = DCAM1394_SUBPARAM_U_VALUE;
275 subparam, attr_bmap);
277 subparam = DCAM1394_SUBPARAM_V_VALUE;
286 subparam, attr_bmap);
290 subparam = DCAM1394_SUBPARAM_VALUE;
299 subparam, attr_bmap);
316 uint_t subparam, uint_t attr_bmap)
318 param_attr[param][subparam] = attr_bmap;
333 int param, subparam;
339 for (subparam = 0;
340 subparam < DCAM1394_NUM_SUBPARAM;
341 subparam++) {
343 if (param_list[param][subparam].flag) {
345 softc_p->param_attr[param][subparam] &
348 softc_p->param_attr[param][subparam] &
351 softc_p->param_attr[param][subparam] &
356 param, subparam, &val)) {
358 param_list[param][subparam].err = 1;
363 param_list[param][subparam].val =
367 param_list[param][subparam].err = 1;
387 int param, subparam;
394 for (subparam = 0;
395 subparam < DCAM1394_NUM_SUBPARAM;
396 subparam++) {
397 if (param_list[param][subparam].flag) {
399 softc_p->param_attr[param][subparam] &
402 softc_p->param_attr[param][subparam] &
406 (softc_p->param_attr[param][subparam]
408 (softc_p->param_attr[param][subparam]
412 val = param_list[param][subparam].val;
415 param, subparam, val)) {
417 param_list[param][subparam].err = 1;
421 param_list[param][subparam].err = 1;
436 dcam1394_param_get(dcam_state_t *softc_p, uint_t param, uint_t subparam,
448 err = param_cap_vid_mode_get(softc_p, subparam, val_p);
457 err = param_cap_frame_rate_get(softc_p, param, subparam, val_p);
493 err = param_brightness_get(softc_p, subparam, val_p);
497 err = param_exposure_get(softc_p, subparam, val_p);
501 err = param_sharpness_get(softc_p, subparam, val_p);
505 err = param_white_balance_get(softc_p, subparam, val_p);
509 err = param_hue_get(softc_p, subparam, val_p);
513 err = param_saturation_get(softc_p, subparam, val_p);
517 err = param_gamma_get(softc_p, subparam, val_p);
521 err = param_shutter_get(softc_p, subparam, val_p);
525 err = param_gain_get(softc_p, subparam, val_p);
529 err = param_iris_get(softc_p, subparam, val_p);
533 err = param_focus_get(softc_p, subparam, val_p);
537 err = param_zoom_get(softc_p, subparam, val_p);
541 err = param_pan_get(softc_p, subparam, val_p);
545 err = param_tilt_get(softc_p, subparam, val_p);
561 dcam1394_param_set(dcam_state_t *softc_p, uint_t param, uint_t subparam,
589 err = param_brightness_set(softc_p, subparam, val);
593 err = param_exposure_set(softc_p, subparam, val);
597 err = param_sharpness_set(softc_p, subparam, val);
601 err = param_white_balance_set(softc_p, subparam, val);
605 err = param_hue_set(softc_p, subparam, val);
609 err = param_saturation_set(softc_p, subparam, val);
613 err = param_gamma_set(softc_p, subparam, val);
617 err = param_shutter_set(softc_p, subparam, val);
621 err = param_gain_set(softc_p, subparam, val);
625 err = param_iris_set(softc_p, subparam, val);
629 err = param_focus_set(softc_p, subparam, val);
633 err = param_zoom_set(softc_p, subparam, val);
637 err = param_pan_set(softc_p, subparam, val);
641 err = param_tilt_set(softc_p, subparam, val);
658 uint_t feature_elm_inq_reg_offs, uint_t subparam, uint_t *val_p)
663 switch (subparam) {
678 val = feature_csr_val_subparam_extract(subparam, reg_io.val);
694 val = feature_elm_inq_reg_val_subparam_extract(subparam,
714 uint_t subparam, uint_t val)
724 reg_io.val = feature_csr_val_construct(subparam, val, reg_io.val);
760 param_cap_vid_mode_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
765 vid_mode = subparam - DCAM1394_SUBPARAM_VID_MODE_0;
787 uint_t subparam, uint_t *val_p)
793 frame_rate = subparam - DCAM1394_SUBPARAM_FRAME_RATE_0;
1122 param_brightness_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1132 feature_elm_inq_reg_offs, subparam, val_p);
1142 param_brightness_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1149 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1159 param_exposure_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1169 feature_elm_inq_reg_offs, subparam, val_p);
1179 param_exposure_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1186 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1196 param_sharpness_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1206 feature_elm_inq_reg_offs, subparam, val_p);
1216 param_sharpness_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1223 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1233 param_white_balance_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1243 feature_elm_inq_reg_offs, subparam, val_p);
1253 param_white_balance_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1260 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1270 param_hue_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1280 feature_elm_inq_reg_offs, subparam, val_p);
1290 param_hue_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1297 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1307 param_saturation_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1317 feature_elm_inq_reg_offs, subparam, val_p);
1327 param_saturation_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1334 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1344 param_gamma_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1354 feature_elm_inq_reg_offs, subparam, val_p);
1364 param_gamma_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1371 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1381 param_shutter_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1391 feature_elm_inq_reg_offs, subparam, val_p);
1401 param_shutter_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1408 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1418 param_gain_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1428 feature_elm_inq_reg_offs, subparam, val_p);
1438 param_gain_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1445 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1455 param_iris_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1465 feature_elm_inq_reg_offs, subparam, val_p);
1467 switch (subparam) {
1491 param_iris_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1498 if (subparam == DCAM1394_SUBPARAM_ON_OFF) {
1500 } else if (subparam == DCAM1394_SUBPARAM_VALUE) {
1503 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1513 param_focus_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1523 feature_elm_inq_reg_offs, subparam, val_p);
1533 param_focus_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1540 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1550 param_zoom_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1560 feature_elm_inq_reg_offs, subparam, val_p);
1570 param_zoom_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1577 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1587 param_pan_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1597 feature_elm_inq_reg_offs, subparam, val_p);
1607 param_pan_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1614 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1624 param_tilt_get(dcam_state_t *softc_p, uint_t subparam, uint_t *val_p)
1634 feature_elm_inq_reg_offs, subparam, val_p);
1644 param_tilt_set(dcam_state_t *softc_p, uint_t subparam, uint_t val)
1651 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val);
1661 feature_csr_val_construct(uint_t subparam, uint_t param_val, uint_t init_val)
1665 switch (subparam) {
1705 feature_csr_val_subparam_extract(uint_t subparam, uint_t reg_val)
1709 switch (subparam) {
1759 feature_elm_inq_reg_val_subparam_extract(uint_t subparam,
1764 switch (subparam) {