Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/iio/adc/
Denvelope-detector.c79 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument
83 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch()
84 comp = env->comp; in envelope_detector_comp_latch()
85 env->comp = 0; in envelope_detector_comp_latch()
86 spin_unlock_irq(&env->comp_lock); in envelope_detector_comp_latch()
98 enable_irq(env->comp_irq); in envelope_detector_comp_latch()
101 synchronize_irq(env->comp_irq); in envelope_detector_comp_latch()
104 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch()
105 comp = env->comp; in envelope_detector_comp_latch()
106 env->comp = 0; in envelope_detector_comp_latch()
[all …]
/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c16 #define pr_vlog(env, fmt, ...) \ argument
17 bpf_verifier_log_write(env, "[nfp] " fmt, ##__VA_ARGS__)
83 static bool nfp_bpf_map_update_value_ok(struct bpf_verifier_env *env) in nfp_bpf_map_update_value_ok() argument
85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok()
86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok()
92 state = env->cur_state->frame[reg3->frameno]; in nfp_bpf_map_update_value_ok()
113 …pr_vlog(env, "value at offset %d/%d may be non-zero, bpf_map_update_elem() is required to initiali… in nfp_bpf_map_update_value_ok()
124 nfp_bpf_stack_arg_ok(const char *fname, struct bpf_verifier_env *env, in nfp_bpf_stack_arg_ok() argument
131 pr_vlog(env, "%s: unsupported ptr type %d\n", in nfp_bpf_stack_arg_ok()
136 pr_vlog(env, "%s: variable pointer\n", fname); in nfp_bpf_stack_arg_ok()
[all …]
Dmain.h566 int nfp_verify_insn(struct bpf_verifier_env *env, int insn_idx,
568 int nfp_bpf_finalize(struct bpf_verifier_env *env);
570 int nfp_bpf_opt_replace_insn(struct bpf_verifier_env *env, u32 off,
572 int nfp_bpf_opt_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt);
/drivers/of/
Ddevice.c247 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
257 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
258 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
261 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
267 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
270 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
276 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
285 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
293 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
296 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c1183 static int mlxsw_env_line_cards_alloc(struct mlxsw_env *env) in mlxsw_env_line_cards_alloc() argument
1188 for (i = 0; i < env->num_of_slots; i++) { in mlxsw_env_line_cards_alloc()
1189 env->line_cards[i] = kzalloc(struct_size(env->line_cards[i], in mlxsw_env_line_cards_alloc()
1191 env->max_module_count), in mlxsw_env_line_cards_alloc()
1193 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc()
1199 for (j = 0; j < env->max_module_count; j++) { in mlxsw_env_line_cards_alloc()
1200 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc()
1210 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc()
1214 static void mlxsw_env_line_cards_free(struct mlxsw_env *env) in mlxsw_env_line_cards_free() argument
1216 int i = env->num_of_slots; in mlxsw_env_line_cards_free()
[all …]
/drivers/net/wireless/realtek/rtw89/
Dphy.c3226 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; in rtw89_phy_ccx_us_to_idx() local
3228 return time_us >> (ilog2(CCX_US_BASE_RATIO) + env->ccx_unit_idx); in rtw89_phy_ccx_us_to_idx()
3233 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; in rtw89_phy_ccx_idx_to_us() local
3235 return idx << (ilog2(CCX_US_BASE_RATIO) + env->ccx_unit_idx); in rtw89_phy_ccx_idx_to_us()
3241 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; in rtw89_phy_ccx_top_setting_init() local
3244 env->ccx_manual_ctrl = false; in rtw89_phy_ccx_top_setting_init()
3245 env->ccx_ongoing = false; in rtw89_phy_ccx_top_setting_init()
3246 env->ccx_rac_lv = RTW89_RAC_RELEASE; in rtw89_phy_ccx_top_setting_init()
3247 env->ccx_period = 0; in rtw89_phy_ccx_top_setting_init()
3248 env->ccx_unit_idx = RTW89_CCX_32_US; in rtw89_phy_ccx_top_setting_init()
[all …]
Dsar.c457 struct rtw89_env_monitor_info *env = &rtwdev->env_monitor; in rtw89_tas_track() local
468 if (env->ccx_watchdog_result != RTW89_PHY_ENV_MON_IFS_CLM) in rtw89_tas_track()
482 txpwr = instant_txpwr * env->ifs_clm_tx_ratio; in rtw89_tas_track()
487 instant_txpwr, env->ifs_clm_tx_ratio, txpwr); in rtw89_tas_track()
/drivers/hwmon/
Dultra45_env.c62 struct env { struct
69 static u8 env_read(struct env *p, u8 ireg) in env_read() argument
81 static void env_write(struct env *p, u8 ireg, u8 val) in env_write()
102 struct env *p = dev_get_drvdata(dev); in show_fan_speed()
121 struct env *p = dev_get_drvdata(dev); in set_fan_speed()
144 struct env *p = dev_get_drvdata(dev); in show_fan_fault()
167 struct env *p = dev_get_drvdata(dev); in show_temp()
188 struct env *p = dev_get_drvdata(dev); in show_stat_bit()
204 struct env *p = dev_get_drvdata(dev); in show_fwver()
257 struct env *p = devm_kzalloc(&op->dev, sizeof(*p), GFP_KERNEL); in env_probe()
[all …]
/drivers/firmware/
Ddmi-id.c158 static int dmi_dev_uevent(const struct device *dev, struct kobj_uevent_env *env) in dmi_dev_uevent() argument
162 if (add_uevent_var(env, "MODALIAS=")) in dmi_dev_uevent()
164 len = get_modalias(&env->buf[env->buflen - 1], in dmi_dev_uevent()
165 sizeof(env->buf) - env->buflen); in dmi_dev_uevent()
166 if (len >= (sizeof(env->buf) - env->buflen)) in dmi_dev_uevent()
168 env->buflen += len; in dmi_dev_uevent()
/drivers/staging/greybus/
Dgbphy.c74 static int gbphy_dev_uevent(const struct device *dev, struct kobj_uevent_env *env) in gbphy_dev_uevent() argument
83 if (add_uevent_var(env, "BUS=%u", hd->bus_id)) in gbphy_dev_uevent()
85 if (add_uevent_var(env, "MODULE=%u", module->module_id)) in gbphy_dev_uevent()
87 if (add_uevent_var(env, "INTERFACE=%u", intf->interface_id)) in gbphy_dev_uevent()
89 if (add_uevent_var(env, "GREYBUS_ID=%08x/%08x", in gbphy_dev_uevent()
92 if (add_uevent_var(env, "BUNDLE=%u", gbphy_dev->bundle->id)) in gbphy_dev_uevent()
94 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class)) in gbphy_dev_uevent()
96 if (add_uevent_var(env, "GBPHY=%u", gbphy_dev->id)) in gbphy_dev_uevent()
98 if (add_uevent_var(env, "PROTOCOL_ID=%02x", cport_desc->protocol_id)) in gbphy_dev_uevent()
/drivers/zorro/
Dzorro-driver.c133 static int zorro_uevent(const struct device *dev, struct kobj_uevent_env *env) in zorro_uevent() argument
144 if (add_uevent_var(env, "ZORRO_ID=%08X", z->id) || in zorro_uevent()
145 add_uevent_var(env, "ZORRO_SLOT_NAME=%s", dev_name(dev)) || in zorro_uevent()
146 add_uevent_var(env, "ZORRO_SLOT_ADDR=%04X", z->slotaddr) || in zorro_uevent()
147 add_uevent_var(env, "MODALIAS=" ZORRO_DEVICE_MODALIAS_FMT, z->id)) in zorro_uevent()
/drivers/acpi/
Ddevice_sysfs.c245 struct kobj_uevent_env *env) in __acpi_device_uevent_modalias() argument
255 if (add_uevent_var(env, "MODALIAS=")) in __acpi_device_uevent_modalias()
259 len = create_of_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias()
260 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias()
262 len = create_pnp_modalias(adev, &env->buf[env->buflen - 1], in __acpi_device_uevent_modalias()
263 sizeof(env->buf) - env->buflen); in __acpi_device_uevent_modalias()
267 env->buflen += len; in __acpi_device_uevent_modalias()
282 int acpi_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in acpi_device_uevent_modalias() argument
284 return __acpi_device_uevent_modalias(acpi_companion_match(dev), env); in acpi_device_uevent_modalias()
/drivers/xen/xenbus/
Dxenbus_probe_backend.c96 struct kobj_uevent_env *env) in xenbus_uevent_backend() argument
110 if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype)) in xenbus_uevent_backend()
114 if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype)) in xenbus_uevent_backend()
117 if (add_uevent_var(env, "XENBUS_PATH=%s", xdev->nodename)) in xenbus_uevent_backend()
120 if (add_uevent_var(env, "XENBUS_BASE_PATH=%s", bus->root)) in xenbus_uevent_backend()
126 return drv->uevent(xdev, env); in xenbus_uevent_backend()
/drivers/greybus/
Dcore.c81 static int greybus_uevent(const struct device *dev, struct kobj_uevent_env *env) in greybus_uevent() argument
117 if (add_uevent_var(env, "BUS=%u", hd->bus_id)) in greybus_uevent()
121 if (add_uevent_var(env, "MODULE=%u", module->module_id)) in greybus_uevent()
126 if (add_uevent_var(env, "INTERFACE=%u", intf->interface_id)) in greybus_uevent()
128 if (add_uevent_var(env, "GREYBUS_ID=%08x/%08x", in greybus_uevent()
139 if (add_uevent_var(env, "BUNDLE=%u", bundle->id)) in greybus_uevent()
141 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class)) in greybus_uevent()
/drivers/mmc/core/
Dbus.c58 mmc_bus_uevent(const struct device *dev, struct kobj_uevent_env *env) in mmc_bus_uevent() argument
83 retval = add_uevent_var(env, "MMC_TYPE=%s", type); in mmc_bus_uevent()
89 retval = add_uevent_var(env, "SDIO_ID=%04X:%04X", in mmc_bus_uevent()
94 retval = add_uevent_var(env, "SDIO_REVISION=%u.%u", in mmc_bus_uevent()
100 retval = add_uevent_var(env, "SDIO_INFO%u=%s", i+1, card->info[i]); in mmc_bus_uevent()
113 retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card)); in mmc_bus_uevent()
121 retval = add_uevent_var(env, "MODALIAS=mmc:block"); in mmc_bus_uevent()
Dsdio_bus.c123 sdio_bus_uevent(const struct device *dev, struct kobj_uevent_env *env) in sdio_bus_uevent() argument
128 if (add_uevent_var(env, in sdio_bus_uevent()
132 if (add_uevent_var(env, in sdio_bus_uevent()
136 if (add_uevent_var(env, in sdio_bus_uevent()
141 if (add_uevent_var(env, "SDIO_INFO%u=%s", i+1, func->info[i])) in sdio_bus_uevent()
145 if (add_uevent_var(env, in sdio_bus_uevent()
/drivers/staging/media/atomisp/pci/
Dia_css_device_access.c25 ia_css_device_access_init(const struct ia_css_hw_access_env *env) in ia_css_device_access_init() argument
27 assert(env); in ia_css_device_access_init()
29 my_env = *env; in ia_css_device_access_init()
/drivers/base/firmware_loader/
Dsysfs.c67 static int do_firmware_uevent(const struct fw_sysfs *fw_sysfs, struct kobj_uevent_env *env) in do_firmware_uevent() argument
69 if (add_uevent_var(env, "FIRMWARE=%s", fw_sysfs->fw_priv->fw_name)) in do_firmware_uevent()
71 if (add_uevent_var(env, "TIMEOUT=%i", __firmware_loading_timeout())) in do_firmware_uevent()
73 if (add_uevent_var(env, "ASYNC=%d", fw_sysfs->nowait)) in do_firmware_uevent()
79 static int firmware_uevent(const struct device *dev, struct kobj_uevent_env *env) in firmware_uevent() argument
86 err = do_firmware_uevent(fw_sysfs, env); in firmware_uevent()
/drivers/power/supply/
Dpower_supply_sysfs.c436 static int add_prop_uevent(const struct device *dev, struct kobj_uevent_env *env, in add_prop_uevent() argument
463 return add_uevent_var(env, "POWER_SUPPLY_%s=%s", in add_prop_uevent()
467 int power_supply_uevent(const struct device *dev, struct kobj_uevent_env *env) in power_supply_uevent() argument
482 ret = add_uevent_var(env, "POWER_SUPPLY_NAME=%s", psy->desc->name); in power_supply_uevent()
497 ret = add_prop_uevent(dev, env, POWER_SUPPLY_PROP_TYPE, prop_buf); in power_supply_uevent()
503 ret = add_prop_uevent(dev, env, psy->desc->properties[j], in power_supply_uevent()
515 ret = add_prop_uevent(dev, env, battery_props[j], in power_supply_uevent()
/drivers/gpu/drm/ci/
Dlava-submit.sh21 cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/
26 artifacts/ci-common/generate-env.sh | tee results/job-rootfs-overlay/set-job-env-vars.sh
/drivers/input/
Dinput.c1681 static int input_add_uevent_bm_var(struct kobj_uevent_env *env, in input_add_uevent_bm_var() argument
1686 if (add_uevent_var(env, "%s", name)) in input_add_uevent_bm_var()
1689 len = input_print_bitmap(&env->buf[env->buflen - 1], in input_add_uevent_bm_var()
1690 sizeof(env->buf) - env->buflen, in input_add_uevent_bm_var()
1692 if (len >= (sizeof(env->buf) - env->buflen)) in input_add_uevent_bm_var()
1695 env->buflen += len; in input_add_uevent_bm_var()
1716 static int input_add_uevent_modalias_var(struct kobj_uevent_env *env, in input_add_uevent_modalias_var() argument
1721 if (add_uevent_var(env, "MODALIAS=")) in input_add_uevent_modalias_var()
1724 len = input_print_modalias(&env->buf[env->buflen - 1], in input_add_uevent_modalias_var()
1725 (int)sizeof(env->buf) - env->buflen - in input_add_uevent_modalias_var()
[all …]
/drivers/net/netdevsim/
Dbpf.c26 #define pr_vlog(env, fmt, ...) \ argument
27 bpf_verifier_log_write(env, "[netdevsim] " fmt, ##__VA_ARGS__)
63 nsim_bpf_verify_insn(struct bpf_verifier_env *env, int insn_idx, int prev_insn) in nsim_bpf_verify_insn() argument
68 state = env->prog->aux->offload->dev_priv; in nsim_bpf_verify_insn()
72 if (insn_idx == env->prog->len - 1) { in nsim_bpf_verify_insn()
73 pr_vlog(env, "Hello from netdevsim!\n"); in nsim_bpf_verify_insn()
82 static int nsim_bpf_finalize(struct bpf_verifier_env *env) in nsim_bpf_finalize() argument
/drivers/bus/
Dmips_cdmm.c70 static int mips_cdmm_uevent(const struct device *dev, struct kobj_uevent_env *env) in mips_cdmm_uevent() argument
75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); in mips_cdmm_uevent()
79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); in mips_cdmm_uevent()
83 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev); in mips_cdmm_uevent()
87 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type); in mips_cdmm_uevent()
/drivers/usb/typec/
Dbus.c361 static int typec_uevent(const struct device *dev, struct kobj_uevent_env *env) in typec_uevent() argument
365 if (add_uevent_var(env, "SVID=%04X", altmode->svid)) in typec_uevent()
368 if (add_uevent_var(env, "MODE=%u", altmode->mode)) in typec_uevent()
371 return add_uevent_var(env, "MODALIAS=typec:id%04Xm%02X", in typec_uevent()
/drivers/nvmem/
DMakefile74 obj-$(CONFIG_NVMEM_U_BOOT_ENV) += nvmem_u-boot-env.o
75 nvmem_u-boot-env-y := u-boot-env.o

12345