| /freebsd-10-stable/sys/kern/ |
| D | kern_sysctl.c | 103 static int sysctl_remove_oid_locked(struct sysctl_oid *oidp, int del, 109 struct sysctl_oid *oidp; in sysctl_find_oidname() local 112 SLIST_FOREACH(oidp, list, oid_link) { in sysctl_find_oidname() 113 if (strcmp(oidp->oid_name, name) == 0) { in sysctl_find_oidname() 114 return (oidp); in sysctl_find_oidname() 140 sysctl_register_oid(struct sysctl_oid *oidp) in sysctl_register_oid() argument 142 struct sysctl_oid_list *parent = oidp->oid_parent; in sysctl_register_oid() 153 p = sysctl_find_oidname(oidp->oid_name, parent); in sysctl_register_oid() 164 oid_number = oidp->oid_number; in sysctl_register_oid() 215 if (oidp->oid_number >= 0 && oidp->oid_number < CTL_AUTO_START && in sysctl_register_oid() [all …]
|
| D | vfs_init.c | 171 struct sysctl_oid *oidp; in vfs_register() local 296 SLIST_FOREACH(oidp, &sysctl__vfs_children, oid_link) { in vfs_register() 297 if (strcmp(oidp->oid_name, vfc->vfc_name) == 0) { in vfs_register() 298 sysctl_unregister_oid(oidp); in vfs_register() 299 oidp->oid_number = vfc->vfc_typenum; in vfs_register() 300 sysctl_register_oid(oidp); in vfs_register()
|
| D | kern_mib.c | 172 return (sysctl_handle_long(oidp, &val, 0, req)); in sysctl_hw_physmem() 183 return (sysctl_handle_long(oidp, &val, 0, req)); in sysctl_hw_realmem() 193 return (sysctl_handle_long(oidp, &val, 0, req)); in sysctl_hw_usermem() 289 error = sysctl_handle_string(oidp, tmpname, len, req); in sysctl_hostname() 346 error = sysctl_handle_int(oidp, &level, 0, req); in sysctl_kern_securelvl() 399 error = sysctl_handle_long(oidp, &tmpid, 0, req); in sysctl_hostid() 544 error = sysctl_handle_int(oidp, &pm, 0, req); in sysctl_kern_pid_max()
|
| D | subr_clock.c | 65 error = sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, req); in sysctl_machdep_adjkerntz()
|
| D | kern_ktr.c | 139 error = sysctl_handle_string(oidp, lktr_cpumask_str, in sysctl_debug_ktr_cpumask() 160 error = sysctl_handle_int(oidp, &clear, 0, req); in sysctl_debug_ktr_clear() 184 error = sysctl_handle_int(oidp, &mask, 0, req); in sysctl_debug_ktr_mask() 229 error = sysctl_handle_int(oidp, &entries, 0, req); in sysctl_debug_ktr_entries() 296 error = sysctl_handle_int(oidp, &enable, 0, req); in sysctl_debug_ktr_alq_enable()
|
| D | subr_kdb.c | 152 error = sysctl_handle_string(oidp, buf, sizeof(buf), req); in kdb_sysctl_current() 168 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_enter() 186 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_panic() 203 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_trap() 219 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_trap_code()
|
| /freebsd-10-stable/sys/ofed/include/linux/ |
| D | sysfs.h | 112 error = sysctl_handle_string(oidp, buf, PAGE_SIZE - 1, req); in sysctl_handle_attr() 130 sysctl_add_oid(NULL, SYSCTL_CHILDREN(kobj->oidp), OID_AUTO, in sysfs_create_file() 141 if (kobj->oidp) in sysfs_remove_file() 142 sysctl_remove_name(kobj->oidp, attr->name, 1, 1); in sysfs_remove_file() 149 if (kobj->oidp) in sysfs_remove_group() 150 sysctl_remove_name(kobj->oidp, grp->name, 1, 1); in sysfs_remove_group() 157 struct sysctl_oid *oidp; in sysfs_create_group() local 159 oidp = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(kobj->oidp), in sysfs_create_group() 162 sysctl_add_oid(NULL, SYSCTL_CHILDREN(oidp), OID_AUTO, in sysfs_create_group() 174 kobj->oidp = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(kobj->parent->oidp), in sysfs_create_dir() [all …]
|
| /freebsd-10-stable/sys/dev/random/ |
| D | randomdev_soft.h | 76 if (oidp->oid_arg1 != NULL) { \ 77 if (*(u_int *)(oidp->oid_arg1) <= (min)) \ 78 *(u_int *)(oidp->oid_arg1) = (min); \ 79 else if (*(u_int *)(oidp->oid_arg1) > (max)) \ 80 *(u_int *)(oidp->oid_arg1) = (max); \ 82 return (sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, \
|
| D | randomdev_soft.c | 118 if (oidp->oid_arg1 != NULL && *(u_int *)(oidp->oid_arg1) != 0) in random_check_boolean() 119 *(u_int *)(oidp->oid_arg1) = 1; in random_check_boolean() 120 return (sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, req)); in random_check_boolean()
|
| /freebsd-10-stable/sys/dev/isci/ |
| D | isci_sysctl.c | 45 int error = sysctl_handle_int(oidp, &isci->coalesce_timeout, 0, req); in isci_sysctl_coalesce_timeout() 63 int error = sysctl_handle_int(oidp, &isci->coalesce_number, 0, req); in isci_sysctl_coalesce_number() 105 int error = sysctl_handle_int(oidp, &remote_devices_to_be_reset, 0, req); in isci_sysctl_reset_remote_device_on_controller0() 122 sysctl_handle_int(oidp, &remote_devices_to_be_reset, 0, req); in isci_sysctl_reset_remote_device_on_controller1() 151 int error = sysctl_handle_int(oidp, &phy_to_be_stopped, 0, req); in isci_sysctl_stop_phy() 183 int error = sysctl_handle_int(oidp, &phy_to_be_started, 0, req); in isci_sysctl_start_phy() 204 error = sysctl_handle_int(oidp, &log_frozen_devices, 0, req); in isci_sysctl_log_frozen_lun_masks() 233 error = sysctl_handle_int(oidp, &fail_on_timeout, 0, req); in isci_sysctl_fail_on_task_timeout()
|
| /freebsd-10-stable/sys/dev/nvme/ |
| D | nvme_sysctl.c | 77 int error = sysctl_handle_int(oidp, &val, 0, req); in nvme_sysctl_dump_debug() 93 int error = sysctl_handle_int(oidp, &ctrlr->int_coal_time, 0, in nvme_sysctl_int_coal_time() 112 int error = sysctl_handle_int(oidp, &ctrlr->int_coal_threshold, 0, in nvme_sysctl_int_coal_threshold() 131 int error = sysctl_handle_int(oidp, &ctrlr->timeout_period, 0, req); in nvme_sysctl_timeout_period() 165 return (sysctl_handle_64(oidp, &num_cmds, 0, req)); in nvme_sysctl_num_cmds() 180 return (sysctl_handle_64(oidp, &num_intr_handler_calls, 0, req)); in nvme_sysctl_num_intr_handler_calls() 189 int error = sysctl_handle_int(oidp, &val, 0, req); in nvme_sysctl_reset_stats()
|
| /freebsd-10-stable/sys/netgraph/bluetooth/common/ |
| D | ng_bluetooth.c | 76 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_hci_command_timeout_value() 100 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_hci_connect_timeout_value() 135 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_l2cap_rtx_timeout_value() 160 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_l2cap_ertx_timeout_value() 238 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_sco_rtx_timeout_value()
|
| /freebsd-10-stable/sys/dev/ath/ |
| D | if_ath_sysctl.c | 113 error = sysctl_handle_int(oidp, &slottime, 0, req); in ath_sysctl_slottime() 126 error = sysctl_handle_int(oidp, &acktimeout, 0, req); in ath_sysctl_acktimeout() 139 error = sysctl_handle_int(oidp, &ctstimeout, 0, req); in ath_sysctl_ctstimeout() 152 error = sysctl_handle_int(oidp, &softled, 0, req); in ath_sysctl_softled() 173 error = sysctl_handle_int(oidp, &ledpin, 0, req); in ath_sysctl_ledpin() 192 error = sysctl_handle_int(oidp, &hardled, 0, req); in ath_sysctl_hardled() 213 error = sysctl_handle_int(oidp, &txantenna, 0, req); in ath_sysctl_txantenna() 236 error = sysctl_handle_int(oidp, &defantenna, 0, req); in ath_sysctl_rxantenna() 249 error = sysctl_handle_int(oidp, &diversity, 0, req); in ath_sysctl_diversity() 267 error = sysctl_handle_int(oidp, &diag, 0, req); in ath_sysctl_diag() [all …]
|
| /freebsd-10-stable/sys/kgssapi/ |
| D | gssd_prot.c | 76 xdr_gss_OID(XDR *xdrs, gss_OID *oidp) in xdr_gss_OID() argument 83 oid = *oidp; in xdr_gss_OID() 100 *oidp = GSS_C_NO_OID; in xdr_gss_OID() 108 *oidp = oid; in xdr_gss_OID() 113 oid = *oidp; in xdr_gss_OID()
|
| /freebsd-10-stable/sys/i386/i386/ |
| D | longrun.c | 203 error = sysctl_handle_int(oidp, &mode, 0, req); in tmx86_longrun_sysctl() 227 val = *(u_int *)oidp->oid_arg1; in tmx86_status_sysctl() 228 error = sysctl_handle_int(oidp, &val, 0, req); in tmx86_status_sysctl() 239 argp = (u_int32_t *)oidp->oid_arg1; in tmx86_longrun_profile_sysctl() 241 error = sysctl_handle_int(oidp, &arg, 0, req); in tmx86_longrun_profile_sysctl()
|
| /freebsd-10-stable/sys/dev/ixgbe/ |
| D | if_bypass.c | 136 error = sysctl_handle_int(oidp, &version, 0, req); in ixgbe_bp_version() 172 error = sysctl_handle_int(oidp, &state, 0, req); in ixgbe_bp_set_state() 233 error = sysctl_handle_int(oidp, &timeout, 0, req); in ixgbe_bp_timeout() 275 error = sysctl_handle_int(oidp, &main_on, 0, req); in ixgbe_bp_main_on() 317 error = sysctl_handle_int(oidp, &main_off, 0, req); in ixgbe_bp_main_off() 359 error = sysctl_handle_int(oidp, &aux_on, 0, req); in ixgbe_bp_aux_on() 401 error = sysctl_handle_int(oidp, &aux_off, 0, req); in ixgbe_bp_aux_off() 455 error = sysctl_handle_int(oidp, &timeout, 0, req); in ixgbe_bp_wd_set() 523 error = sysctl_handle_int(oidp, &reset_wd, 0, req); in ixgbe_bp_wd_reset() 572 error = sysctl_handle_int(oidp, &status, 0, req); in ixgbe_bp_log()
|
| /freebsd-10-stable/sys/netpfil/ipfw/ |
| D | dn_aqm_pie.c | 93 if (!strcmp(oidp->oid_name,"alpha")) in pie_sysctl_alpha_beta_handler() 99 error = sysctl_handle_long(oidp, &value, 0, req); in pie_sysctl_alpha_beta_handler() 105 if (!strcmp(oidp->oid_name,"alpha")) in pie_sysctl_alpha_beta_handler() 118 if (!strcmp(oidp->oid_name,"target")) in pie_sysctl_target_tupdate_maxb_handler() 120 else if (!strcmp(oidp->oid_name,"tupdate")) in pie_sysctl_target_tupdate_maxb_handler() 126 error = sysctl_handle_long(oidp, &value, 0, req); in pie_sysctl_target_tupdate_maxb_handler() 133 if (!strcmp(oidp->oid_name,"target")) in pie_sysctl_target_tupdate_maxb_handler() 135 else if (!strcmp(oidp->oid_name,"tupdate")) in pie_sysctl_target_tupdate_maxb_handler() 150 error = sysctl_handle_long(oidp, &value, 0, req); in pie_sysctl_max_ecnth_handler()
|
| /freebsd-10-stable/sys/dev/sound/pcm/ |
| D | vchan.c | 300 d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1)); in sysctl_dev_pcm_vchans() 307 switch (VCHAN_SYSCTL_DIR(oidp->oid_arg1)) { in sysctl_dev_pcm_vchans() 333 err = sysctl_handle_int(oidp, &cnt, 0, req); in sysctl_dev_pcm_vchans() 357 d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1)); in sysctl_dev_pcm_vchanmode() 364 switch (VCHAN_SYSCTL_DIR(oidp->oid_arg1)) { in sysctl_dev_pcm_vchanmode() 402 ret = sysctl_handle_string(oidp, dtype, sizeof(dtype), req); in sysctl_dev_pcm_vchanmode() 450 d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1)); in sysctl_dev_pcm_vchanrate() 457 switch (VCHAN_SYSCTL_DIR(oidp->oid_arg1)) { in sysctl_dev_pcm_vchanrate() 499 ret = sysctl_handle_int(oidp, &newspd, 0, req); in sysctl_dev_pcm_vchanrate() 559 d = devclass_get_softc(pcm_devclass, VCHAN_SYSCTL_UNIT(oidp->oid_arg1)); in sysctl_dev_pcm_vchanformat() [all …]
|
| /freebsd-10-stable/sys/sys/ |
| D | sysctl.h | 134 #define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \ 208 void sysctl_register_oid(struct sysctl_oid *oidp); 209 void sysctl_register_disabled_oid(struct sysctl_oid *oidp); 210 void sysctl_enable_oid(struct sysctl_oid *oidp); 211 void sysctl_unregister_oid(struct sysctl_oid *oidp); 772 void sysctl_rename_oid(struct sysctl_oid *oidp, const char *name); 773 int sysctl_move_oid(struct sysctl_oid *oidp, 775 int sysctl_remove_oid(struct sysctl_oid *oidp, int del, int recurse); 779 struct sysctl_oid *oidp); 781 struct sysctl_oid *oidp); [all …]
|
| /freebsd-10-stable/sys/dev/asmc/ |
| D | asmc.c | 1007 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_fanspeed() 1023 error = sysctl_handle_string(oidp, desc, 0, req); in asmc_mb_sysctl_fanid() 1037 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_fansafespeed() 1052 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_fanminspeed() 1071 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_fanmaxspeed() 1090 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_fantargetspeed() 1125 error = sysctl_handle_int(oidp, &val, 0, req); in asmc_temp_sysctl() 1256 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_sms_x() 1271 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_sms_y() 1286 error = sysctl_handle_int(oidp, &v, 0, req); in asmc_mb_sysctl_sms_z() [all …]
|
| /freebsd-10-stable/sys/security/mac/ |
| D | mac_system.c | 223 mac_system_check_sysctl(struct ucred *cred, struct sysctl_oid *oidp, in mac_system_check_sysctl() argument 232 MAC_POLICY_CHECK_NOSLEEP(system_check_sysctl, cred, oidp, arg1, arg2, in mac_system_check_sysctl() 234 MAC_CHECK_PROBE3(system_check_sysctl, error, cred, oidp, req); in mac_system_check_sysctl()
|
| /freebsd-10-stable/sys/arm/broadcom/bcm2835/ |
| D | bcm2835_spi.c | 134 error = sysctl_handle_int(oidp, &clk, sizeof(clk), req); in bcm_spi_clock_proc() 165 error = sysctl_handle_int(oidp, ®, sizeof(reg), req); in bcm_spi_cs_bit_proc() 182 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CPOL)); in bcm_spi_cpol_proc() 189 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CPHA)); in bcm_spi_cpha_proc() 196 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL0)); in bcm_spi_cspol0_proc() 203 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL1)); in bcm_spi_cspol1_proc()
|
| /freebsd-10-stable/sys/netinet/cc/ |
| D | cc_hd.c | 188 error = sysctl_handle_int(oidp, &new, 0, req); in hd_pmax_handler() 207 error = sysctl_handle_int(oidp, &new, 0, req); in hd_qmin_handler() 225 error = sysctl_handle_int(oidp, &new, 0, req); in hd_qthresh_handler()
|
| /freebsd-10-stable/sys/arm/ti/am335x/ |
| D | am335x_pwm.c | 274 error = sysctl_handle_int(oidp, &freq, sizeof(freq), req); in am335x_pwm_sysctl_freq() 323 error = sysctl_handle_int(oidp, &clkdiv, sizeof(clkdiv), req); in am335x_pwm_sysctl_clkdiv() 351 if (oidp == sc->sc_chanA_oid) in am335x_pwm_sysctl_duty() 355 error = sysctl_handle_int(oidp, &duty, 0, req); in am335x_pwm_sysctl_duty() 366 if (oidp == sc->sc_chanA_oid) { in am335x_pwm_sysctl_duty() 387 error = sysctl_handle_int(oidp, &period, 0, req); in am335x_pwm_sysctl_period()
|
| /freebsd-10-stable/crypto/openssh/ |
| D | ssh-rsa.c | 285 rsa_hash_alg_oid(int hash_alg, const u_char **oidp, size_t *oidlenp) in rsa_hash_alg_oid() argument 289 *oidp = id_sha1; in rsa_hash_alg_oid() 293 *oidp = id_sha256; in rsa_hash_alg_oid() 297 *oidp = id_sha512; in rsa_hash_alg_oid()
|