Home
last modified time | relevance | path

Searched refs:df (Results 1 – 25 of 118) sorted by relevance

12345

/linux-6.15/drivers/gpu/drm/msm/
H A Dmsm_gpu_devfreq.c40 if (df->idle_freq) { in msm_devfreq_target()
41 df->idle_freq = *freq; in msm_devfreq_target()
47 mutex_lock(&df->lock); in msm_devfreq_target()
68 if (df->idle_freq) in get_freq()
69 return df->idle_freq; in get_freq()
86 mutex_lock(&df->lock); in msm_devfreq_get_dev_status()
91 df->time = time; in msm_devfreq_get_dev_status()
93 if (df->suspended) { in msm_devfreq_get_dev_status()
136 return !!df->devfreq; in has_devfreq()
185 df->devfreq = NULL; in msm_devfreq_init()
[all …]
/linux-6.15/drivers/vfio/
H A Ddevice_cdev.c35 if (IS_ERR(df)) { in vfio_device_fops_cdev_open()
36 ret = PTR_ERR(df); in vfio_device_fops_cdev_open()
40 filep->private_data = df; in vfio_device_fops_cdev_open()
59 vfio_device_get_kvm_safe(df->device, df->kvm); in vfio_df_get_kvm_safe()
82 if (df->group) in vfio_df_ioctl_bind_iommufd()
91 if (df->access_granted) { in vfio_df_ioctl_bind_iommufd()
99 df->iommufd = NULL; in vfio_df_ioctl_bind_iommufd()
111 ret = vfio_df_open(df); in vfio_df_ioctl_bind_iommufd()
130 vfio_df_close(df); in vfio_df_ioctl_bind_iommufd()
134 df->iommufd = NULL; in vfio_df_ioctl_bind_iommufd()
[all …]
H A Dvfio_main.c493 struct vfio_device_file *df; in vfio_allocate_device_file() local
495 df = kzalloc(sizeof(*df), GFP_KERNEL_ACCOUNT); in vfio_allocate_device_file()
496 if (!df) in vfio_allocate_device_file()
499 df->device = device; in vfio_allocate_device_file()
502 return df; in vfio_allocate_device_file()
532 vfio_df_iommufd_unbind(df); in vfio_df_device_first_open()
633 if (df->group) in vfio_device_fops_release()
634 vfio_df_group_close(df); in vfio_device_fops_release()
640 kfree(df); in vfio_device_fops_release()
1374 return df->device; in vfio_device_from_file()
[all …]
H A Dvfio.h32 int vfio_df_open(struct vfio_device_file *df);
33 void vfio_df_close(struct vfio_device_file *df);
108 void vfio_df_group_close(struct vfio_device_file *df);
160 static inline void vfio_df_group_close(struct vfio_device_file *df) in vfio_df_group_close() argument
323 int vfio_df_iommufd_bind(struct vfio_device_file *df);
324 void vfio_df_iommufd_unbind(struct vfio_device_file *df);
340 static inline void vfio_df_iommufd_unbind(struct vfio_device_file *df) in vfio_df_iommufd_unbind() argument
352 int vfio_df_ioctl_attach_pt(struct vfio_device_file *df,
354 int vfio_df_ioctl_detach_pt(struct vfio_device_file *df,
378 long vfio_df_ioctl_bind_iommufd(struct vfio_device_file *df,
[all …]
H A Dgroup.c202 ret = vfio_df_open(df); in vfio_df_group_open()
223 vfio_df_close(df); in vfio_df_group_open()
225 df->iommufd = NULL; in vfio_df_group_open()
241 vfio_df_close(df); in vfio_df_group_close()
242 df->iommufd = NULL; in vfio_df_group_close()
253 struct vfio_device_file *df; in vfio_device_open_file() local
258 if (IS_ERR(df)) { in vfio_device_open_file()
259 ret = PTR_ERR(df); in vfio_device_open_file()
263 df->group = device->group; in vfio_device_open_file()
292 vfio_df_group_close(df); in vfio_device_open_file()
[all …]
H A Diommufd.c21 int vfio_df_iommufd_bind(struct vfio_device_file *df) in vfio_df_iommufd_bind() argument
23 struct vfio_device *vdev = df->device; in vfio_df_iommufd_bind()
24 struct iommufd_ctx *ictx = df->iommufd; in vfio_df_iommufd_bind()
28 return vdev->ops->bind_iommufd(vdev, ictx, &df->devid); in vfio_df_iommufd_bind()
51 void vfio_df_iommufd_unbind(struct vfio_device_file *df) in vfio_df_iommufd_unbind() argument
53 struct vfio_device *vdev = df->device; in vfio_df_iommufd_unbind()
/linux-6.15/arch/s390/hypfs/
H A Dhypfs_dbfs.c35 struct hypfs_dbfs_file *df; in dbfs_read() local
41 df = file_inode(file)->i_private; in dbfs_read()
47 mutex_unlock(&df->lock); in dbfs_read()
52 mutex_unlock(&df->lock); in dbfs_read()
56 mutex_unlock(&df->lock); in dbfs_read()
68 mutex_lock(&df->lock); in dbfs_ioctl()
69 if (df->unlocked_ioctl) in dbfs_ioctl()
73 mutex_unlock(&df->lock); in dbfs_ioctl()
84 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df, in hypfs_dbfs_create_file()
86 mutex_init(&df->lock); in hypfs_dbfs_create_file()
[all …]
/linux-6.15/scripts/gendwarfksyms/
H A Ddie.c74 struct die_fragment *df; in reset_die() local
78 free(df->data.str); in reset_die()
79 free(df); in reset_die()
124 struct die_fragment *df; in append_item() local
129 return df; in append_item()
134 struct die_fragment *df; in die_map_add_string() local
139 df = append_item(cd); in die_map_add_string()
146 struct die_fragment *df; in die_map_add_linebreak() local
151 df = append_item(cd); in die_map_add_linebreak()
158 struct die_fragment *df; in die_map_add_die() local
[all …]
H A Dtypes.c332 struct die_fragment *df; in __type_expand() local
335 list_for_each_entry(df, &cache->fragments, list) { in __type_expand()
336 switch (df->type) { in __type_expand()
338 type_expansion_append(type, df->data.str, NULL); in __type_expand()
342 if (__die_map_get(df->data.addr, DIE_COMPLETE, in __type_expand()
344 __die_map_get(df->data.addr, DIE_UNEXPANDED, in __type_expand()
347 df->data.addr); in __type_expand()
356 if (list_is_last(&df->list, &cache->fragments) || in __type_expand()
357 list_next_entry(df, list)->type != in __type_expand()
/linux-6.15/drivers/devfreq/
H A Ddevfreq.c1466 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in governor_store()
1472 remove_sysfs_files(df, df->governor); in governor_store()
1480 ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL); in governor_store()
1501 create_sysfs_files(df, df->governor); in governor_store()
1568 !df->profile->get_cur_freq(df->dev.parent, &freq)) in cur_freq_show()
1724 devfreq_update_status(df, df->previous_freq)) { in trans_stat_show()
1746 if (df->freq_table[2] == df->previous_freq) in trans_stat_show()
1794 memset(df->stats.time_in_state, 0, (df->max_state * in trans_stat_store()
1873 if (!df->governor || !df->profile) in timer_store()
1901 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in timer_store()
[all …]
H A Dgovernor.h120 static inline int devfreq_update_stats(struct devfreq *df) in devfreq_update_stats() argument
122 if (!df->profile->get_dev_status) in devfreq_update_stats()
125 return df->profile->get_dev_status(df->dev.parent, &df->last_status); in devfreq_update_stats()
H A Dgovernor_simpleondemand.c18 static int devfreq_simple_ondemand_func(struct devfreq *df, in devfreq_simple_ondemand_func() argument
26 struct devfreq_simple_ondemand_data *data = df->data; in devfreq_simple_ondemand_func()
28 err = devfreq_update_stats(df); in devfreq_simple_ondemand_func()
32 stat = &df->last_status; in devfreq_simple_ondemand_func()
H A Dgovernor_userspace.c22 static int devfreq_userspace_func(struct devfreq *df, unsigned long *freq) in devfreq_userspace_func() argument
24 struct userspace_data *data = df->governor_data; in devfreq_userspace_func()
29 *freq = df->previous_freq; /* No user freq specified yet */ in devfreq_userspace_func()
/linux-6.15/drivers/thermal/
H A Ddevfreq_cooling.c88 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state() local
202 mutex_lock(&df->lock); in devfreq_cooling_get_requested_power()
203 status = df->last_status; in devfreq_cooling_get_requested_power()
204 mutex_unlock(&df->lock); in devfreq_cooling_get_requested_power()
209 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
298 mutex_lock(&df->lock); in devfreq_cooling_power2state()
299 status = df->last_status; in devfreq_cooling_power2state()
300 mutex_unlock(&df->lock); in devfreq_cooling_power2state()
409 dfc->devfreq = df; in of_devfreq_cooling_register_power()
530 if (IS_ERR_OR_NULL(df)) in devfreq_cooling_em_register()
[all …]
/linux-6.15/include/linux/
H A Ddevfreq_cooling.h38 int (*get_real_power)(struct devfreq *df, u32 *power,
45 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
48 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df);
49 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df);
52 devfreq_cooling_em_register(struct devfreq *df,
58 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, in of_devfreq_cooling_register_power() argument
65 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register() argument
71 devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register() argument
77 devfreq_cooling_em_register(struct devfreq *df, in devfreq_cooling_em_register() argument
/linux-6.15/drivers/pinctrl/pxa/
H A Dpinctrl-pxa2xx.c69 struct pxa_desc_function *df; in pxa_desc_by_func_group() local
75 for (df = pin->functions; df->name; df++) in pxa_desc_by_func_group()
77 return df; in pxa_desc_by_func_group()
144 struct pxa_desc_function *df; in pxa2xx_pmx_set_mux() local
151 if (!df) in pxa2xx_pmx_set_mux()
158 pin, df->muxval >> 1, df->muxval & 0x1); in pxa2xx_pmx_set_mux()
267 struct pxa_desc_function *df; in pxa2xx_build_functions() local
281 for (df = pctl->ppins[i].functions; df->name; df++) in pxa2xx_build_functions()
308 for (df = pctl->ppins[j].functions; df->name; in pxa2xx_build_groups()
309 df++) in pxa2xx_build_groups()
[all …]
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Ddf_v1_7.c34 adev->df.hash_status.hash_64k = false; in df_v1_7_sw_init()
35 adev->df.hash_status.hash_2m = false; in df_v1_7_sw_init()
36 adev->df.hash_status.hash_1g = false; in df_v1_7_sw_init()
72 fb_channel_number = adev->df.funcs->get_fb_channel_number(adev); in df_v1_7_get_hbm_channel_number()
85 adev->df.funcs->enable_broadcast_mode(adev, true); in df_v1_7_update_medium_grain_clock_gating()
100 adev->df.funcs->enable_broadcast_mode(adev, false); in df_v1_7_update_medium_grain_clock_gating()
H A Damdgpu_pmu.c236 if ((!pe->adev->df.funcs) || in amdgpu_perf_start()
237 (!pe->adev->df.funcs->pmc_start)) in amdgpu_perf_start()
275 if ((!pe->adev->df.funcs) || in amdgpu_perf_read()
276 (!pe->adev->df.funcs->pmc_get_count)) in amdgpu_perf_read()
284 pe->adev->df.funcs->pmc_get_count(pe->adev, in amdgpu_perf_read()
307 if ((!pe->adev->df.funcs) || in amdgpu_perf_stop()
308 (!pe->adev->df.funcs->pmc_stop)) in amdgpu_perf_stop()
340 if ((!pe->adev->df.funcs) || in amdgpu_perf_add()
341 (!pe->adev->df.funcs->pmc_start)) in amdgpu_perf_add()
389 if ((!pe->adev->df.funcs) || in amdgpu_perf_del()
[all …]
H A Dumc_v6_7.h61 (((pa) >> 20) & 0x1ULL & adev->df.hash_status.hash_64k) ^ \
62 (((pa) >> 25) & 0x1ULL & adev->df.hash_status.hash_2m) ^ \
63 (((pa) >> 34) & 0x1ULL & adev->df.hash_status.hash_1g))
H A Ddf_v3_6.c218 adev->df.hash_status.hash_64k = false; in df_v3_6_query_hashes()
219 adev->df.hash_status.hash_2m = false; in df_v3_6_query_hashes()
220 adev->df.hash_status.hash_1g = false; in df_v3_6_query_hashes()
224 adev->df.funcs->get_fb_channel_number(adev) == 0xe) || in df_v3_6_query_hashes()
226 adev->df.funcs->get_fb_channel_number(adev) == 0x1e)) { in df_v3_6_query_hashes()
228 adev->df.hash_status.hash_64k = REG_GET_FIELD(tmp, in df_v3_6_query_hashes()
231 adev->df.hash_status.hash_2m = REG_GET_FIELD(tmp, in df_v3_6_query_hashes()
234 adev->df.hash_status.hash_1g = REG_GET_FIELD(tmp, in df_v3_6_query_hashes()
297 fb_channel_number = adev->df.funcs->get_fb_channel_number(adev); in df_v3_6_get_hbm_channel_number()
311 adev->df.funcs->enable_broadcast_mode(adev, true); in df_v3_6_update_medium_grain_clock_gating()
[all …]
/linux-6.15/drivers/clk/rockchip/
H A Dclk.h681 .div_flags = df, \
703 .div_flags = df, \
721 .div_flags = df, \
739 .div_flags = df, \
765 ds, dw, df) \ argument
779 .div_flags = df, \
798 .div_flags = df, \
814 .div_flags = df, \
831 .div_flags = df, \
855 ds, dw, df) \ argument
[all …]
/linux-6.15/tools/testing/selftests/net/
H A Dcmsg_ip.sh52 for df in 0 1; do
59 [ $ovr == "setsock" ] && m="-F $df"
60 [ $ovr == "cmsg" ] && m="-f $df"
61 [ $ovr == "both" ] && m="-F $df -f $df"
62 [ $ovr == "diff" ] && m="-F $((1 - df)) -f $df"
65 check_result $? $df "DONTFRAG $prot $ovr"
/linux-6.15/drivers/isdn/hardware/mISDN/
H A Dhfcpci.c465 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
473 df->f1, df->f2, in receive_dmsg()
489 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg()
491 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg()
521 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg()
523 df->za[df->f2 & D_FREG_MASK].z2 = cpu_to_le16(( in receive_dmsg()
683 df->f1, df->f2, in hfcpci_fill_dfifo()
684 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1)); in hfcpci_fill_dfifo()
699 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1) - 1; in hfcpci_fill_dfifo()
715 dst = df->data + le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1); in hfcpci_fill_dfifo()
[all …]
/linux-6.15/drivers/regulator/
H A Dad5398.c222 const struct ad5398_current_data_format *df = in ad5398_probe() local
243 chip->min_uA = df->min_uA; in ad5398_probe()
244 chip->max_uA = df->max_uA; in ad5398_probe()
245 chip->current_level = 1 << df->current_bits; in ad5398_probe()
246 chip->current_offset = df->current_offset; in ad5398_probe()
/linux-6.15/net/netfilter/
H A Dnfnetlink_osf.c57 bool df; member
181 ctx->df = ntohs(ip->frag_off) & IP_DF; in nf_osf_hdr_ctx_init()
220 list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) { in nf_osf_match()
280 list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) { in nf_osf_find()
332 list_for_each_entry(sf, &nf_osf_fingers[!!f->df], finger_entry) { in nfnl_osf_add_callback()
348 list_add_tail_rcu(&kf->finger_entry, &nf_osf_fingers[!!f->df]); in nfnl_osf_add_callback()
369 list_for_each_entry(sf, &nf_osf_fingers[!!f->df], finger_entry) { in nfnl_osf_remove_callback()

12345