Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/msm/
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()
186 df->devfreq = NULL; in msm_devfreq_init()
[all …]
/drivers/vfio/
A Ddevice_cdev.c27 struct vfio_device_file *df; in vfio_device_fops_cdev_open() local
35 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()
110 if (df->group) in vfio_df_ioctl_bind_iommufd()
131 df->iommufd = NULL; in vfio_df_ioctl_bind_iommufd()
143 ret = vfio_df_open(df); in vfio_df_ioctl_bind_iommufd()
162 vfio_df_close(df); in vfio_df_ioctl_bind_iommufd()
166 df->iommufd = NULL; in vfio_df_ioctl_bind_iommufd()
[all …]
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()
634 if (df->group) in vfio_device_fops_release()
635 vfio_df_group_close(df); in vfio_device_fops_release()
641 kfree(df); in vfio_device_fops_release()
1375 return df->device; in vfio_device_from_file()
[all …]
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 …]
A Dgroup.c201 ret = vfio_df_open(df); in vfio_df_group_open()
222 vfio_df_close(df); in vfio_df_group_open()
224 df->iommufd = NULL; in vfio_df_group_open()
240 vfio_df_close(df); in vfio_df_group_close()
241 df->iommufd = NULL; in vfio_df_group_close()
252 struct vfio_device_file *df; in vfio_device_open_file() local
257 if (IS_ERR(df)) { in vfio_device_open_file()
258 ret = PTR_ERR(df); in vfio_device_open_file()
262 df->group = device->group; in vfio_device_open_file()
291 vfio_df_group_close(df); in vfio_device_open_file()
[all …]
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()
32 return vdev->ops->bind_iommufd(vdev, ictx, &df->devid); in vfio_df_iommufd_bind()
55 void vfio_df_iommufd_unbind(struct vfio_device_file *df) in vfio_df_iommufd_unbind() argument
57 struct vfio_device *vdev = df->device; in vfio_df_iommufd_unbind()
/drivers/devfreq/
A Ddevfreq.c1457 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in governor_store()
1463 remove_sysfs_files(df, df->governor); in governor_store()
1471 ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL); in governor_store()
1492 create_sysfs_files(df, df->governor); in governor_store()
1559 !df->profile->get_cur_freq(df->dev.parent, &freq)) in cur_freq_show()
1715 devfreq_update_status(df, df->previous_freq)) { in trans_stat_show()
1737 if (df->freq_table[i] == df->previous_freq) in trans_stat_show()
1785 memset(df->stats.time_in_state, 0, (df->max_state * in trans_stat_store()
1864 if (!df->governor || !df->profile) in timer_store()
1892 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in timer_store()
[all …]
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()
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()
A Dgovernor_userspace.c23 static int devfreq_userspace_func(struct devfreq *df, unsigned long *freq) in devfreq_userspace_func() argument
25 struct userspace_data *data = df->governor_data; in devfreq_userspace_func()
30 *freq = df->previous_freq; /* No user freq specified yet */ in devfreq_userspace_func()
/drivers/thermal/
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 …]
/drivers/pinctrl/pxa/
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 …]
/drivers/clk/rockchip/
A Dclk.h721 .div_flags = df, \
743 .div_flags = df, \
761 .div_flags = df, \
779 .div_flags = df, \
805 ds, dw, df) \ argument
819 .div_flags = df, \
838 .div_flags = df, \
854 .div_flags = df, \
871 .div_flags = df, \
895 ds, dw, df) \ argument
[all …]
/drivers/gpu/drm/amd/amdgpu/
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 …]
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()
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 …]
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))
A Dsoc15.c1259 if (adev->df.funcs && in soc15_common_sw_init()
1260 adev->df.funcs->sw_init) in soc15_common_sw_init()
1261 adev->df.funcs->sw_init(adev); in soc15_common_sw_init()
1270 if (adev->df.funcs && in soc15_common_sw_fini()
1271 adev->df.funcs->sw_fini) in soc15_common_sw_fini()
1272 adev->df.funcs->sw_fini(adev); in soc15_common_sw_fini()
1442 adev->df.funcs->update_medium_grain_clock_gating(adev, in soc15_common_set_clockgating_state()
1503 if (adev->df.funcs && adev->df.funcs->get_clockgating_state) in soc15_common_get_clockgating_state()
1504 adev->df.funcs->get_clockgating_state(adev, flags); in soc15_common_get_clockgating_state()
/drivers/isdn/hardware/mISDN/
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 …]
/drivers/regulator/
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()
/drivers/clk/samsung/
A Dclk.h181 #define __DIV(_id, cname, pname, o, s, w, f, df, t) \ argument
190 .div_flags = df, \
197 #define DIV_F(_id, cname, pname, o, s, w, f, df) \ argument
198 __DIV(_id, cname, pname, o, s, w, f, df, NULL)
/drivers/clk/
A Dclk-sp7021.c243 u32 df; /* diff freq */ in plltv_fractional_div() local
259 df = df0 - df1; in plltv_fractional_div()
261 df = f * (nint) / pp[0]; in plltv_fractional_div()
264 df_quotient = df / m; in plltv_fractional_div()
265 df_remainder = ((df % m) * 1000) / m; in plltv_fractional_div()
285 fout = df / m; in plltv_fractional_div()
/drivers/net/
A Dgeneve.c60 enum ifla_geneve_df df; member
829 __be16 df = 0; in geneve_xmit_skb() local
901 if (geneve->cfg.df == GENEVE_DF_SET) { in geneve_xmit_skb()
902 df = htons(IP_DF); in geneve_xmit_skb()
903 } else if (geneve->cfg.df == GENEVE_DF_INHERIT) { in geneve_xmit_skb()
907 df = htons(IP_DF); in geneve_xmit_skb()
912 df = htons(IP_DF); in geneve_xmit_skb()
1287 if (df < 0 || df > GENEVE_DF_MAX) { in geneve_validate()
1512 cfg->df = nla_get_u8(data[IFLA_GENEVE_DF]); in geneve_nl2info()
1660 .df = GENEVE_DF_UNSET, in geneve_newlink()
[all …]
/drivers/ipack/devices/
A Dscc2698.h63 u8 df, cts; /* Stop counter timer of block */ member
81 u8 df, r3; /* reserved */ member
/drivers/staging/rtl8723bs/include/
A Ddrv_types.h448 int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); in RTW_ENABLE_FUNC() local
449 df &= ~(func_bit); in RTW_ENABLE_FUNC()
450 atomic_set(&adapter_to_dvobj(padapter)->disable_func, df); in RTW_ENABLE_FUNC()

Completed in 85 milliseconds

123