/freebsd-current/sys/dev/random/ |
H A D | randomdev.h | 44 if (oidp->oid_arg1 != NULL) { \ 45 if (*(u_int *)(oidp->oid_arg1) <= (min)) \ 46 *(u_int *)(oidp->oid_arg1) = (min); \ 47 else if (*(u_int *)(oidp->oid_arg1) > (max)) \ 48 *(u_int *)(oidp->oid_arg1) = (max); \ 50 return (sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, \
|
/freebsd-current/sys/kern/ |
H A D | kern_sysctl.c | 124 static int sysctl_remove_oid_locked(struct sysctl_oid *oidp, int del, 133 struct sysctl_oid *oidp; local 136 SYSCTL_FOREACH(oidp, list) { 137 if (strcmp(oidp->oid_name, name) == 0) { 138 return (oidp); 148 struct sysctl_oid *oidp; local 151 SYSCTL_FOREACH(oidp, list) { 152 if (strncmp(oidp->oid_name, name, len) == 0 && 153 oidp->oid_name[len] == '\0') 154 return (oidp); 221 sysctl_load_tunable_by_oid_locked(struct sysctl_oid *oidp) argument 446 sysctl_register_oid(struct sysctl_oid *oidp) argument 543 sysctl_register_disabled_oid(struct sysctl_oid *oidp) argument 559 sysctl_enable_oid(struct sysctl_oid *oidp) argument 574 sysctl_unregister_oid(struct sysctl_oid *oidp) argument 668 sysctl_ctx_entry_add(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp) argument 683 sysctl_ctx_entry_find(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp) argument 703 sysctl_ctx_entry_del(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp) argument 729 sysctl_remove_oid(struct sysctl_oid *oidp, int del, int recurse) argument 797 sysctl_remove_oid_locked(struct sysctl_oid *oidp, int del, int recurse) argument 878 struct sysctl_oid *oidp; local 931 sysctl_rename_oid(struct sysctl_oid *oidp, const char *name) argument 950 struct sysctl_oid *oidp; local 978 struct sysctl_oid **oidp; local 994 struct sysctl_oid *oidp; local 1017 struct sysctl_oid *oidp; local 1119 struct sysctl_oid *oidp; local 1256 sysctl_sysctl_next_node(struct sysctl_oid *oidp, int *name, unsigned int namelen, bool honor_skip) argument 1340 struct sysctl_oid *oidp = NULL, key; local 1435 struct sysctl_oid *oidp; local 2829 db_sysctl(struct sysctl_oid *oidp, int *name, u_int namelen, void *old, size_t *oldlenp, size_t *retval, int flags) argument 2875 struct sysctl_oid *oidp; local 2896 db_oid_safe(const struct sysctl_oid *oidp) argument 2911 db_show_oid(struct sysctl_oid *oidp, int *oid, size_t nlen, int flags) argument 2966 struct sysctl_oid *oidp; local 3020 struct sysctl_oid *oidp; local [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | sysfs.h | 121 error = sysctl_handle_string(oidp, buf, PAGE_SIZE - 1, req); 140 oid = SYSCTL_ADD_OID(NULL, SYSCTL_CHILDREN(kobj->oidp), OID_AUTO, 154 if (kobj->oidp) 155 sysctl_remove_name(kobj->oidp, attr->name, 1, 1); 200 struct sysctl_oid *oidp; local 204 oidp = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(kobj->oidp), 207 oidp = kobj->oidp; 209 SYSCTL_ADD_OID(NULL, SYSCTL_CHILDREN(oidp), OID_AUT 264 struct sysctl_oid *oidp; local [all...] |
/freebsd-current/sys/dev/nvme/ |
H A D | nvme_sysctl.c | 84 int error = sysctl_handle_int(oidp, &val, 0, req); 100 int error = sysctl_handle_int(oidp, &ctrlr->int_coal_time, 0, 119 int error = sysctl_handle_int(oidp, &ctrlr->int_coal_threshold, 0, 138 int error = sysctl_handle_int(oidp, &newval, 0, req); 182 return (sysctl_handle_64(oidp, &num_cmds, 0, req)); 197 return (sysctl_handle_64(oidp, &num_intr_handler_calls, 0, req)); 212 return (sysctl_handle_64(oidp, &num_retries, 0, req)); 227 return (sysctl_handle_64(oidp, &num_failures, 0, req)); 242 return (sysctl_handle_64(oidp, &num_ignored, 0, req)); 257 return (sysctl_handle_64(oidp, [all...] |
/freebsd-current/sys/dev/isci/ |
H A D | isci_sysctl.c | 45 int error = sysctl_handle_int(oidp, &isci->coalesce_timeout, 0, req); 63 int error = sysctl_handle_int(oidp, &isci->coalesce_number, 0, req); 105 int error = sysctl_handle_int(oidp, &remote_devices_to_be_reset, 0, req); 122 sysctl_handle_int(oidp, &remote_devices_to_be_reset, 0, req); 151 int error = sysctl_handle_int(oidp, &phy_to_be_stopped, 0, req); 183 int error = sysctl_handle_int(oidp, &phy_to_be_started, 0, req); 204 error = sysctl_handle_int(oidp, &log_frozen_devices, 0, req); 233 error = sysctl_handle_int(oidp, &fail_on_timeout, 0, req);
|
/freebsd-current/sys/netgraph/bluetooth/common/ |
H A D | ng_bluetooth.c | 78 error = sysctl_handle_int(oidp, &value, 0, req); 102 error = sysctl_handle_int(oidp, &value, 0, req); 137 error = sysctl_handle_int(oidp, &value, 0, req); 162 error = sysctl_handle_int(oidp, &value, 0, req); 240 error = sysctl_handle_int(oidp, &value, 0, req);
|
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | sysctl_os.c | 143 err = sysctl_handle_64(oidp, arg1, 0, req); 157 err = sysctl_handle_int(oidp, arg1, 0, req); 173 err = sysctl_handle_64(oidp, &val, 0, req); 205 err = sysctl_handle_64(oidp, &val, 0, req); 238 err = sysctl_handle_int(oidp, &val, 0, req); 270 err = sysctl_handle_int(oidp, &val, 0, req); 369 return (sysctl_handle_64(oidp, &val, 0, req)); 512 rc = sysctl_handle_string(oidp, buf, sizeof (buf), req); 621 err = sysctl_handle_64(oidp, &zfs_multihost_interval, 0, req); 668 err = sysctl_handle_int(oidp, [all...] |
/freebsd-current/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_pwm.c | 192 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 205 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 223 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 239 error = sysctl_handle_int(oidp, &sc->period, sizeof(sc->period), req); 254 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 276 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 289 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 305 error = sysctl_handle_int(oidp, &sc->period2, sizeof(sc->period2), req); 320 error = sysctl_handle_int(oidp, &r, sizeof(r), req); 340 error = sysctl_handle_int(oidp, [all...] |
H A D | bcm2835_spi.c | 129 error = sysctl_handle_int(oidp, &clk, sizeof(clk), req); 149 error = sysctl_handle_int(oidp, ®, sizeof(reg), req); 160 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CPOL)); 167 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CPHA)); 174 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL0)); 181 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL1)); 188 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL2));
|
/freebsd-current/sys/kgssapi/ |
H A D | gssd_prot.c | 76 xdr_gss_OID(XDR *xdrs, gss_OID *oidp) argument 83 oid = *oidp; 100 *oidp = GSS_C_NO_OID; 108 *oidp = oid; 113 oid = *oidp;
|
/freebsd-current/sys/i386/i386/ |
H A D | longrun.c | 204 error = sysctl_handle_int(oidp, &mode, 0, req); 228 val = *(u_int *)oidp->oid_arg1; 229 error = sysctl_handle_int(oidp, &val, 0, req); 240 argp = (u_int32_t *)oidp->oid_arg1; 242 error = sysctl_handle_int(oidp, &arg, 0, req);
|
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_ioctl.c | 741 rc = sysctl_handle_string(oidp, file_name, sizeof(file_name), req); 817 ocs_t *ocs = oidp->oid_arg1; 837 return (sysctl_handle_string(oidp, old, sizeof(old), req)); 841 rc = sysctl_handle_string(oidp, new, sizeof(new), req); 856 ocs_t *ocs = oidp->oid_arg1; 874 return (sysctl_handle_string(oidp, old, sizeof(old), req)); 878 rc = sysctl_handle_string(oidp, new, sizeof(new), req); 892 ocs_t *ocs = oidp->oid_arg1; 897 return (sysctl_handle_int(oidp, &value, 0, req)); 903 ocs_t *ocs = oidp [all...] |
/freebsd-current/sys/security/mac/ |
H A D | mac_system.c | 220 mac_system_check_sysctl(struct ucred *cred, struct sysctl_oid *oidp, argument 229 MAC_POLICY_CHECK_NOSLEEP(system_check_sysctl, cred, oidp, arg1, arg2, 231 MAC_CHECK_PROBE3(system_check_sysctl, error, cred, oidp, req);
|
/freebsd-current/sys/dev/sound/pci/ |
H A D | hdspe.c | 251 struct sc_info *sc = oidp->oid_arg1; 258 error = sysctl_handle_int(oidp, &speed, 0, req); 286 struct sc_info *sc = oidp->oid_arg1; 293 error = sysctl_handle_int(oidp, &period, 0, req); 317 sc = oidp->oid_arg1; 337 error = sysctl_handle_string(oidp, buf, sizeof(buf), req); 367 sc = oidp->oid_arg1; 396 return (sysctl_handle_string(oidp, buf, sizeof(buf), req)); 407 sc = oidp->oid_arg1; 425 return (sysctl_handle_string(oidp, bu [all...] |
H A D | hdsp.c | 236 struct sc_info *sc = oidp->oid_arg1; 243 error = sysctl_handle_int(oidp, &speed, 0, req); 271 struct sc_info *sc = oidp->oid_arg1; 278 error = sysctl_handle_int(oidp, &period, 0, req); 325 sc = oidp->oid_arg1; 345 error = sysctl_handle_string(oidp, buf, sizeof(buf), req); 399 sc = oidp->oid_arg1; 428 return (sysctl_handle_string(oidp, buf, sizeof(buf), req)); 439 sc = oidp->oid_arg1; 457 return (sysctl_handle_string(oidp, bu [all...] |
/freebsd-current/sys/netinet/cc/ |
H A D | cc_hd.c | 192 error = sysctl_handle_int(oidp, &new, 0, req); 210 error = sysctl_handle_int(oidp, &new, 0, req); 228 error = sysctl_handle_int(oidp, &new, 0, req);
|
/freebsd-current/sys/dev/intel/ |
H A D | pchtherm.c | 123 struct pchtherm_softc *sc = oidp->oid_arg1; 124 int regshift = oidp->oid_arg2; 131 return sysctl_handle_int(oidp, &temp, 0, req); 135 struct pchtherm_softc *sc = oidp->oid_arg1; 136 int regoff = oidp->oid_arg2; 142 return sysctl_handle_int(oidp, &temp, 0, req);
|
/freebsd-current/sys/dev/acpi_support/ |
H A D | acpi_sony.c | 175 int function = oidp->oid_arg2; 180 error = sysctl_handle_int(oidp, &val, 0, req);
|
H A D | acpi_rapidstart.c | 109 int function = oidp->oid_arg2; 114 error = sysctl_handle_int(oidp, &val, 0, req);
|
/freebsd-current/sys/gnu/gcov/ |
H A D | gcov_subr.c | 60 error = sysctl_handle_int(oidp, &v, 0, req); 78 error = sysctl_handle_int(oidp, &v, v, req);
|
/freebsd-current/sys/cddl/dev/dtrace/ |
H A D | dtrace_sysctl.c | 66 error = sysctl_handle_string(oidp, p_name, len, req);
|
H A D | dtrace_test.c | 65 error = sysctl_handle_int(oidp, &val, 0, req);
|
/freebsd-current/sys/dev/qat/qat_common/ |
H A D | adf_cfg_sysctl.c | 118 ret = sysctl_handle_string(oidp, buf, sizeof(buf), req); 169 ret = sysctl_handle_string(oidp, buf, sizeof(buf), req); 221 ret = sysctl_handle_string(oidp, buf, sizeof(buf), req); 258 ret = sysctl_handle_int(oidp, &num_user_processes, 0, req);
|
H A D | adf_freebsd_heartbeat_dbg.c | 41 ret = sysctl_handle_int(oidp, &hb->heartbeat.hb_sysctlvar, 0, req);
|
/freebsd-current/sys/dev/ice/ |
H A D | ice_fw_logging.c | 139 * @oidp: sysctl oid structure 160 error = sysctl_handle_bool(oidp, &enabled, 0, req); 174 * @oidp: sysctl oid structure 196 error = sysctl_handle_8(oidp, &resolution, 0, req); 213 * @oidp: sysctl oid structure 242 error = sysctl_handle_bool(oidp, &enabled, 0, req); 267 * @oidp: sysctl oid structure 291 error = sysctl_handle_string(oidp, sev_str, sizeof(sev_str), req);
|