| /netbsd-src/external/bsd/wpa/dist/src/common/ |
| H A D | wpa_helpers.c | 25 struct wpa_ctrl *ctrl; in wpa_open_ctrl() local 28 ctrl = wpa_ctrl_open(buf); in wpa_open_ctrl() 29 if (ctrl == NULL) in wpa_open_ctrl() 31 return ctrl; in wpa_open_ctrl() 37 struct wpa_ctrl *ctrl; in wpa_command() local 42 ctrl = wpa_open_ctrl(ifname); in wpa_command() 43 if (ctrl == NULL) in wpa_command() 46 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, NULL) < 0) { in wpa_command() 48 wpa_ctrl_close(ctrl); in wpa_command() 51 wpa_ctrl_close(ctrl); in wpa_command() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/disp/ |
| H A D | nouveau_nvkm_engine_disp_dmacgf119.c | 48 int ctrl = chan->chid.ctrl; in gf119_disp_dmac_fini() local 52 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00001010, 0x00001000); in gf119_disp_dmac_fini() 53 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000003, 0x00000000); in gf119_disp_dmac_fini() 55 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x001e0000)) in gf119_disp_dmac_fini() 59 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_dmac_fini() 68 int ctrl = chan->chid.ctrl; in gf119_disp_dmac_init() local 72 nvkm_wr32(device, 0x610494 + (ctrl * 0x0010), chan->push); in gf119_disp_dmac_init() 73 nvkm_wr32(device, 0x610498 + (ctrl * 0x0010), 0x00010000); in gf119_disp_dmac_init() 74 nvkm_wr32(device, 0x61049c + (ctrl * 0x0010), 0x00000001); in gf119_disp_dmac_init() 75 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000010, 0x00000010); in gf119_disp_dmac_init() [all …]
|
| H A D | nouveau_nvkm_engine_disp_dmacnv50.c | 89 int ctrl = chan->chid.ctrl; in nv50_disp_dmac_fini() local 93 nvkm_mask(device, 0x610200 + (ctrl * 0x0010), 0x00001010, 0x00001000); in nv50_disp_dmac_fini() 94 nvkm_mask(device, 0x610200 + (ctrl * 0x0010), 0x00000003, 0x00000000); in nv50_disp_dmac_fini() 96 if (!(nvkm_rd32(device, 0x610200 + (ctrl * 0x10)) & 0x001e0000)) in nv50_disp_dmac_fini() 100 nvkm_rd32(device, 0x610200 + (ctrl * 0x10))); in nv50_disp_dmac_fini() 109 int ctrl = chan->chid.ctrl; in nv50_disp_dmac_init() local 113 nvkm_wr32(device, 0x610204 + (ctrl * 0x0010), chan->push); in nv50_disp_dmac_init() 114 nvkm_wr32(device, 0x610208 + (ctrl * 0x0010), 0x00010000); in nv50_disp_dmac_init() 115 nvkm_wr32(device, 0x61020c + (ctrl * 0x0010), ctrl); in nv50_disp_dmac_init() 116 nvkm_mask(device, 0x610200 + (ctrl * 0x0010), 0x00000010, 0x00000010); in nv50_disp_dmac_init() [all …]
|
| H A D | nouveau_nvkm_engine_disp_piocnv50.c | 40 int ctrl = chan->chid.ctrl; in nv50_disp_pioc_fini() local 43 nvkm_mask(device, 0x610200 + (ctrl * 0x10), 0x00000001, 0x00000000); in nv50_disp_pioc_fini() 45 if (!(nvkm_rd32(device, 0x610200 + (ctrl * 0x10)) & 0x00030000)) in nv50_disp_pioc_fini() 49 nvkm_rd32(device, 0x610200 + (ctrl * 0x10))); in nv50_disp_pioc_fini() 59 int ctrl = chan->chid.ctrl; in nv50_disp_pioc_init() local 62 nvkm_wr32(device, 0x610200 + (ctrl * 0x10), 0x00002000); in nv50_disp_pioc_init() 64 if (!(nvkm_rd32(device, 0x610200 + (ctrl * 0x10)) & 0x00030000)) in nv50_disp_pioc_init() 68 nvkm_rd32(device, 0x610200 + (ctrl * 0x10))); in nv50_disp_pioc_init() 72 nvkm_wr32(device, 0x610200 + (ctrl * 0x10), 0x00000001); in nv50_disp_pioc_init() 74 u32 tmp = nvkm_rd32(device, 0x610200 + (ctrl * 0x10)); in nv50_disp_pioc_init() [all …]
|
| H A D | nouveau_nvkm_engine_disp_dmacgp102.c | 38 int ctrl = chan->chid.ctrl; in gp102_disp_dmac_init() local 42 nvkm_wr32(device, 0x611494 + (ctrl * 0x0010), chan->push); in gp102_disp_dmac_init() 43 nvkm_wr32(device, 0x611498 + (ctrl * 0x0010), 0x00010000); in gp102_disp_dmac_init() 44 nvkm_wr32(device, 0x61149c + (ctrl * 0x0010), 0x00000001); in gp102_disp_dmac_init() 45 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000010, 0x00000010); in gp102_disp_dmac_init() 46 nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), 0x00000000); in gp102_disp_dmac_init() 47 nvkm_wr32(device, 0x610490 + (ctrl * 0x0010), 0x00000013); in gp102_disp_dmac_init() 51 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x80000000)) in gp102_disp_dmac_init() 55 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gp102_disp_dmac_init()
|
| H A D | nouveau_nvkm_engine_disp_piocgf119.c | 40 int ctrl = chan->chid.ctrl; in gf119_disp_pioc_fini() local 43 nvkm_mask(device, 0x610490 + (ctrl * 0x10), 0x00000001, 0x00000000); in gf119_disp_pioc_fini() 45 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x00030000)) in gf119_disp_pioc_fini() 49 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_fini() 59 int ctrl = chan->chid.ctrl; in gf119_disp_pioc_init() local 63 nvkm_wr32(device, 0x610490 + (ctrl * 0x10), 0x00000001); in gf119_disp_pioc_init() 65 u32 tmp = nvkm_rd32(device, 0x610490 + (ctrl * 0x10)); in gf119_disp_pioc_init() 70 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_init()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/i2c/ |
| H A D | nouveau_nvkm_subdev_i2c_auxg94.c | 51 u32 ctrl, timeout; in g94_i2c_aux_init() local 56 ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50)); in g94_i2c_aux_init() 59 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in g94_i2c_aux_init() 62 } while (ctrl & 0x03010000); in g94_i2c_aux_init() 68 ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50)); in g94_i2c_aux_init() 71 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in g94_i2c_aux_init() 75 } while ((ctrl & 0x03000000) != urep); in g94_i2c_aux_init() 87 u32 ctrl, stat, timeout, retries = 0; in g94_i2c_aux_xfer() local 112 ctrl = nvkm_rd32(device, 0x00e4e4 + base); in g94_i2c_aux_xfer() 113 ctrl &= ~0x0001f1ff; in g94_i2c_aux_xfer() [all …]
|
| H A D | nouveau_nvkm_subdev_i2c_auxgm200.c | 51 u32 ctrl, timeout; in gm200_i2c_aux_init() local 56 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init() 59 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in gm200_i2c_aux_init() 62 } while (ctrl & 0x03010000); in gm200_i2c_aux_init() 68 ctrl = nvkm_rd32(device, 0x00d954 + (aux->ch * 0x50)); in gm200_i2c_aux_init() 71 AUX_ERR(&aux->base, "magic wait %08x", ctrl); in gm200_i2c_aux_init() 75 } while ((ctrl & 0x03000000) != urep); in gm200_i2c_aux_init() 87 u32 ctrl, stat, timeout, retries = 0; in gm200_i2c_aux_xfer() local 112 ctrl = nvkm_rd32(device, 0x00d954 + base); in gm200_i2c_aux_xfer() 113 ctrl &= ~0x0001f1ff; in gm200_i2c_aux_xfer() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/ |
| H A D | nouveau_nvkm_engine_device_ctrl.c | 40 nvkm_control_mthd_pstate_info(struct nvkm_control *ctrl, void *data, u32 size) in nvkm_control_mthd_pstate_info() argument 45 struct nvkm_clk *clk = ctrl->device->clk; in nvkm_control_mthd_pstate_info() 48 nvif_ioctl(&ctrl->object, "control pstate info size %d\n", size); in nvkm_control_mthd_pstate_info() 50 nvif_ioctl(&ctrl->object, "control pstate info vers %d\n", in nvkm_control_mthd_pstate_info() 73 nvkm_control_mthd_pstate_attr(struct nvkm_control *ctrl, void *data, u32 size) in nvkm_control_mthd_pstate_attr() argument 78 struct nvkm_clk *clk = ctrl->device->clk; in nvkm_control_mthd_pstate_attr() 86 nvif_ioctl(&ctrl->object, "control pstate attr size %d\n", size); in nvkm_control_mthd_pstate_attr() 88 nvif_ioctl(&ctrl->object, in nvkm_control_mthd_pstate_attr() 146 nvkm_control_mthd_pstate_user(struct nvkm_control *ctrl, void *data, u32 size) in nvkm_control_mthd_pstate_user() argument 151 struct nvkm_clk *clk = ctrl->device->clk; in nvkm_control_mthd_pstate_user() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
| H A D | controls.c | 573 struct slap_control *ctrl = find_ctrl( oid ); in slap_find_control_id() local 574 if ( ctrl ) { in slap_find_control_id() 575 if ( cid ) *cid = ctrl->sc_cid; in slap_find_control_id() 584 struct slap_control *ctrl = find_ctrl( oid ); in slap_global_control() local 586 if ( ctrl == NULL ) { in slap_global_control() 594 if ( cid ) *cid = ctrl->sc_cid; in slap_global_control() 596 if ( ( ctrl->sc_mask & SLAP_CTRL_GLOBAL ) || in slap_global_control() 598 ( ctrl->sc_mask & SLAP_CTRL_GLOBAL_SEARCH ) ) ) in slap_global_control() 1029 int ctrl, in slap_remove_control() argument 1034 switch ( op->o_ctrlflag[ ctrl ] ) { in slap_remove_control() [all …]
|
| /netbsd-src/sys/arch/evbarm/tsarm/ |
| H A D | tslcd.c | 175 uint8_t ctrl; in tslcd_writereg() local 181 ctrl = GPIO_GET(PHDR); in tslcd_writereg() 185 ctrl |= 0x10; /* assert RS */ in tslcd_writereg() 186 ctrl &= ~0x20; /* assert WR */ in tslcd_writereg() 188 ctrl &= ~0x30; /* de-assert WR, de-assert RS */ in tslcd_writereg() 190 GPIO_SET(PHDR, ctrl); in tslcd_writereg() 196 ctrl |= 0x8; in tslcd_writereg() 197 GPIO_SET(PHDR, ctrl); in tslcd_writereg() 203 ctrl &= ~0x8; in tslcd_writereg() 204 GPIO_SET(PHDR, ctrl); in tslcd_writereg() [all …]
|
| /netbsd-src/sys/arch/arm/sunxi/ |
| H A D | sunxi_pwm.c | 112 uint32_t ctrl, octrl; in sunxi_pwm_enable() local 114 octrl = ctrl = PWM_READ(sc, PWM_CH_CTRL); in sunxi_pwm_enable() 116 ctrl |= (PWM_CH0_EN | SCLK_CH0_GATING); in sunxi_pwm_enable() 118 ctrl &= ~(PWM_CH0_EN | SCLK_CH0_GATING); in sunxi_pwm_enable() 120 if (ctrl != octrl) in sunxi_pwm_enable() 121 PWM_WRITE(sc, PWM_CH_CTRL, ctrl); in sunxi_pwm_enable() 130 uint32_t ctrl, ch_period; in sunxi_pwm_get_config() local 132 ctrl = PWM_READ(sc, PWM_CH_CTRL); in sunxi_pwm_get_config() 139 conf->polarity = (ctrl & PWM_CH0_ACT_STA) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; in sunxi_pwm_get_config() 150 uint32_t ctrl, ch_period; in sunxi_pwm_set_config() local [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/ |
| H A D | intel_dsi_dcs_backlight.c | 102 u8 ctrl = 0; in dcs_disable_backlight() local 107 &ctrl, sizeof(ctrl)); in dcs_disable_backlight() 109 ctrl &= ~CONTROL_DISPLAY_BL; in dcs_disable_backlight() 110 ctrl &= ~CONTROL_DISPLAY_DD; in dcs_disable_backlight() 111 ctrl &= ~CONTROL_DISPLAY_BCTRL; in dcs_disable_backlight() 114 &ctrl, sizeof(ctrl)); in dcs_disable_backlight() 127 u8 ctrl = 0; in dcs_enable_backlight() local 132 &ctrl, sizeof(ctrl)); in dcs_enable_backlight() 134 ctrl |= CONTROL_DISPLAY_BL; in dcs_enable_backlight() 135 ctrl |= CONTROL_DISPLAY_DD; in dcs_enable_backlight() [all …]
|
| /netbsd-src/sys/arch/arm/rockchip/ |
| H A D | rk_pwm.c | 117 uint32_t ctrl, octrl; in rk_pwm_enable() local 119 octrl = ctrl = PWM_READ(sc, PWM0_CTRL); in rk_pwm_enable() 121 ctrl |= CTRL_PWM_EN; in rk_pwm_enable() 123 ctrl &= ~CTRL_PWM_EN; in rk_pwm_enable() 125 if (ctrl != octrl) in rk_pwm_enable() 126 PWM_WRITE(sc, PWM0_CTRL, ctrl); in rk_pwm_enable() 139 uint32_t ctrl, period, duty; in rk_pwm_get_config() 142 ctrl = PWM_READ(sc, PWM0_CTRL); in rk_pwm_get_config() 146 if (ctrl & CTRL_CLK_SEL) { in rk_pwm_get_config() 147 div = __SHIFTOUT(ctrl, CTRL_SCALE) * 2; in rk_pwm_get_config() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | controls.c | 451 LDAPControl *ctrl; in ldap_create_control() local 456 ctrl = (LDAPControl *) LDAP_MALLOC( sizeof(LDAPControl) ); in ldap_create_control() 457 if ( ctrl == NULL ) { in ldap_create_control() 461 BER_BVZERO(&ctrl->ldctl_value); in ldap_create_control() 462 if ( ber && ( ber_flatten2( ber, &ctrl->ldctl_value, 1 ) == -1 )) { in ldap_create_control() 463 LDAP_FREE( ctrl ); in ldap_create_control() 467 ctrl->ldctl_oid = LDAP_STRDUP( requestOID ); in ldap_create_control() 468 ctrl->ldctl_iscritical = iscritical; in ldap_create_control() 470 if ( requestOID != NULL && ctrl->ldctl_oid == NULL ) { in ldap_create_control() 471 ldap_control_free( ctrl ); in ldap_create_control() [all …]
|
| H A D | ppolicy.c | 126 LDAPControl *ctrl, in ldap_parse_passwordpolicy_control() argument 140 assert( ctrl != NULL ); in ldap_parse_passwordpolicy_control() 142 if ( !ctrl->ldctl_value.bv_val ) { in ldap_parse_passwordpolicy_control() 148 ber = ber_init(&ctrl->ldctl_value); in ldap_parse_passwordpolicy_control() 227 LDAPControl *ctrl, in ldap_parse_password_expiring_control() argument 236 assert( ctrl != NULL ); in ldap_parse_password_expiring_control() 238 if ( BER_BVISEMPTY( &ctrl->ldctl_value ) || in ldap_parse_password_expiring_control() 239 ctrl->ldctl_value.bv_len >= sizeof(buf) ) { in ldap_parse_password_expiring_control() 244 memcpy( buf, ctrl->ldctl_value.bv_val, ctrl->ldctl_value.bv_len ); in ldap_parse_password_expiring_control() 245 buf[ctrl->ldctl_value.bv_len] = '\0'; in ldap_parse_password_expiring_control()
|
| /netbsd-src/external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/ |
| H A D | aarch64-dbreg-contents.c | 39 #define DR_CONTROL_ENABLED(ctrl) (((ctrl) & 0x1) == 1) argument 40 #define DR_CONTROL_LENGTH(ctrl) (((ctrl) >> 5) & 0xff) argument 60 assert (!DR_CONTROL_ENABLED (dreg_state.dbg_regs[0].ctrl)); in set_watchpoint() 61 dreg_state.dbg_regs[0].ctrl |= 1; in set_watchpoint() 62 assert ( DR_CONTROL_ENABLED (dreg_state.dbg_regs[0].ctrl)); in set_watchpoint() 64 assert (DR_CONTROL_LENGTH (dreg_state.dbg_regs[0].ctrl) == 0); in set_watchpoint() 65 dreg_state.dbg_regs[0].ctrl |= len_mask << 5; in set_watchpoint() 66 assert (DR_CONTROL_LENGTH (dreg_state.dbg_regs[0].ctrl) == len_mask); in set_watchpoint() 68 dreg_state.dbg_regs[0].ctrl |= 2 << 3; // write in set_watchpoint() 69 dreg_state.dbg_regs[0].ctrl |= 2 << 1; // enabled at el0 in set_watchpoint()
|
| /netbsd-src/external/bsd/wpa/dist/wpa_supplicant/ |
| H A D | libwpa_test.c | 15 struct wpa_ctrl *ctrl; in main() local 17 ctrl = wpa_ctrl_open("foo"); in main() 18 if (!ctrl) in main() 20 if (wpa_ctrl_attach(ctrl) == 0) in main() 21 wpa_ctrl_detach(ctrl); in main() 22 if (wpa_ctrl_pending(ctrl)) { in main() 27 wpa_ctrl_recv(ctrl, buf, &len); in main() 29 wpa_ctrl_close(ctrl); in main()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/ |
| H A D | nouveau_nvkm_subdev_therm_nv50.c | 33 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument 38 *ctrl = 0x00e100; in pwm_info() 43 *ctrl = 0x00e100; in pwm_info() 48 *ctrl = 0x00e28c; in pwm_info() 64 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl() local 66 nvkm_mask(device, ctrl, 0x00010001 << line, data << line); in nv50_fan_pwm_ctrl() 74 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get() local 78 if (nvkm_rd32(device, ctrl) & (1 << line)) { in nv50_fan_pwm_get() 91 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_set() local
|
| /netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/noopsrch/ |
| H A D | noopsrch.c | 49 LDAPControl *ctrl ) in noopsrch_parseCtrl() argument 56 if ( !BER_BVISNULL( &ctrl->ldctl_value ) ) { in noopsrch_parseCtrl() 63 op->o_noopsrch = ctrl->ldctl_iscritical in noopsrch_parseCtrl() 110 LDAPControl *ctrl, *ctrlsp[2]; in noopsrch_response() local 132 ctrl = op->o_tmpcalloc( 1, in noopsrch_response() 135 ctrl->ldctl_value.bv_val = (char *)&ctrl[ 1 ]; in noopsrch_response() 136 ctrl->ldctl_oid = LDAP_CONTROL_X_NOOPSRCH; in noopsrch_response() 137 ctrl->ldctl_iscritical = 0; in noopsrch_response() 138 ctrl->ldctl_value.bv_len = ctrlval.bv_len; in noopsrch_response() 139 AC_MEMCPY( ctrl->ldctl_value.bv_val, ctrlval.bv_val, ctrlval.bv_len ); in noopsrch_response() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/ |
| H A D | LDAPControl.cpp | 39 LDAPCtrl::LDAPCtrl(const LDAPControl* ctrl){ in LDAPCtrl() argument 41 m_oid = string(ctrl->ldctl_oid); in LDAPCtrl() 42 m_isCritical = ctrl->ldctl_iscritical ? true : false; in LDAPCtrl() 43 m_data = string(ctrl->ldctl_value.bv_val, ctrl->ldctl_value.bv_len ); in LDAPCtrl() 44 m_noData = ctrl->ldctl_value.bv_len ? false : true; in LDAPCtrl() 88 void LDAPCtrl::freeLDAPControlStruct(LDAPControl *ctrl){ in freeLDAPControlStruct() argument 90 delete[] ctrl->ldctl_oid; in freeLDAPControlStruct() 91 delete[] ctrl->ldctl_value.bv_val; in freeLDAPControlStruct() 92 delete ctrl; in freeLDAPControlStruct()
|
| /netbsd-src/external/bsd/liblzf/dist/ |
| H A D | lzf_d.c | 74 unsigned int ctrl = *ip++; in lzf_decompress() local 76 if (ctrl < (1 << 5)) /* literal run */ in lzf_decompress() 78 ctrl++; in lzf_decompress() 80 if (op + ctrl > out_end) in lzf_decompress() 87 if (ip + ctrl > in_end) in lzf_decompress() 95 lzf_movsb (op, ip, ctrl); in lzf_decompress() 99 while (--ctrl); in lzf_decompress() 104 unsigned int len = ctrl >> 5; in lzf_decompress() 106 u8 *ref = op - ((ctrl & 0x1f) << 8) - 1; in lzf_decompress()
|
| /netbsd-src/external/bsd/ntp/dist/kernel/sys/ |
| H A D | pcl720.h | 53 i8253_ctrl ctrl; \ 55 ctrl.s.bcd = i8253_binary; \ 56 ctrl.s.mode = Mode; \ 57 ctrl.s.rl = i8253_lmb; \ 58 ctrl.s.cntr = c; \ 59 pcl720_outb(pcl720_ctrl(b), ctrl.i); \ 67 i8253_ctrl ctrl; \ 69 ctrl.s.rl = i8253_latch; \ 70 ctrl.s.cntr = i8253_cntr_0; \ 71 pcl720_outb(pcl720_ctrl(b), ctrl.i); \
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/ |
| H A D | nouveau_nvkm_subdev_clk_nv40.c | 38 u32 ctrl; member 48 u32 ctrl = nvkm_rd32(device, reg + 0x00); in read_pll_1() local 49 int P = (ctrl & 0x00070000) >> 16; in read_pll_1() 50 int N = (ctrl & 0x0000ff00) >> 8; in read_pll_1() 51 int M = (ctrl & 0x000000ff) >> 0; in read_pll_1() 54 if (ctrl & 0x80000000) in read_pll_1() 64 u32 ctrl = nvkm_rd32(device, reg + 0x00); in read_pll_2() local 70 int P = (ctrl & 0x00070000) >> 16; in read_pll_2() 73 if ((ctrl & 0x80000000) && M1) { in read_pll_2() 75 if ((ctrl & 0x40000100) == 0x40000000) { in read_pll_2() [all …]
|
| /netbsd-src/usr.bin/videoctl/ |
| H A D | videoctl.c | 507 struct v4l2_control ctrl; in video_print_ctrl() local 512 for (ctrl.id = V4L2_CID_BASE; ctrl.id != V4L2_CID_LASTP1; ctrl.id++) { in video_print_ctrl() 513 if (ctrl_id != 0 && ctrl_id != ctrl.id) in video_print_ctrl() 515 error = ioctl(video_fd, VIDIOC_G_CTRL, &ctrl); in video_print_ctrl() 518 ctrlname = video_cid2name(ctrl.id); in video_print_ctrl() 520 printf("ctrl.%s=%d\n", ctrlname, ctrl.value); in video_print_ctrl() 522 printf("ctrl.%08x=%d\n", ctrl.id, ctrl.value); in video_print_ctrl() 576 struct v4l2_control ctrl; in video_set_ctrl() local 583 ctrl.id = ctrl_id; in video_set_ctrl() 584 error = ioctl(video_fd, VIDIOC_G_CTRL, &ctrl); in video_set_ctrl() [all …]
|