/linux/drivers/gpu/drm/msm/ |
H A D | msm_gpu_devfreq.c | 40 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() 180 df->devfreq = NULL; in msm_devfreq_init() [all …]
|
/linux/drivers/vfio/ |
H A D | device_cdev.c | 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() 52 vfio_device_get_kvm_safe(df->device, df->kvm); in vfio_df_get_kvm_safe() 75 if (df->group) in vfio_df_ioctl_bind_iommufd() 84 if (df->access_granted) { in vfio_df_ioctl_bind_iommufd() 92 df->iommufd = NULL; in vfio_df_ioctl_bind_iommufd() 104 ret = vfio_df_open(df); in vfio_df_ioctl_bind_iommufd() 123 vfio_df_close(df); in vfio_df_ioctl_bind_iommufd() 127 df->iommufd = NULL; in vfio_df_ioctl_bind_iommufd() [all …]
|
H A D | vfio_main.c | 449 struct vfio_device_file *df; in vfio_allocate_device_file() local 451 df = kzalloc(sizeof(*df), GFP_KERNEL_ACCOUNT); in vfio_allocate_device_file() 452 if (!df) in vfio_allocate_device_file() 455 df->device = device; in vfio_allocate_device_file() 458 return df; in vfio_allocate_device_file() 488 vfio_df_iommufd_unbind(df); in vfio_df_device_first_open() 589 if (df->group) in vfio_device_fops_release() 590 vfio_df_group_close(df); in vfio_device_fops_release() 596 kfree(df); in vfio_device_fops_release() 1330 return df->device; in vfio_device_from_file() [all …]
|
H A D | vfio.h | 32 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 D | group.c | 204 ret = vfio_df_open(df); in vfio_df_group_open() 225 vfio_df_close(df); in vfio_df_group_open() 227 df->iommufd = NULL; in vfio_df_group_open() 243 vfio_df_close(df); in vfio_df_group_close() 244 df->iommufd = NULL; in vfio_df_group_close() 260 if (IS_ERR(df)) { in vfio_device_open_file() 261 ret = PTR_ERR(df); in vfio_device_open_file() 265 df->group = device->group; in vfio_device_open_file() 276 df, O_RDWR); in vfio_device_open_file() 299 vfio_df_group_close(df); in vfio_device_open_file() [all …]
|
H A D | iommufd.c | 21 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/arch/s390/hypfs/ |
H A D | hypfs_dbfs.c | 35 struct hypfs_dbfs_file *df; in dbfs_read() local 42 mutex_lock(&df->lock); in dbfs_read() 45 mutex_unlock(&df->lock); in dbfs_read() 50 mutex_unlock(&df->lock); in dbfs_read() 54 mutex_unlock(&df->lock); in dbfs_read() 66 mutex_lock(&df->lock); in dbfs_ioctl() 67 if (df->unlocked_ioctl) in dbfs_ioctl() 71 mutex_unlock(&df->lock); in dbfs_ioctl() 83 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df, in hypfs_dbfs_create_file() 85 mutex_init(&df->lock); in hypfs_dbfs_create_file() [all …]
|
H A D | hypfs.h | 82 extern void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df); 83 extern void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df);
|
/linux/drivers/devfreq/ |
H A D | devfreq.c | 1466 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 D | governor.h | 120 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 D | governor_simpleondemand.c | 18 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 D | governor_userspace.c | 22 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/drivers/thermal/ |
H A D | devfreq_cooling.c | 88 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/include/linux/ |
H A D | devfreq_cooling.h | 38 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/drivers/pinctrl/pxa/ |
H A D | pinctrl-pxa2xx.c | 69 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() 309 for (df = pctl->ppins[j].functions; df->name; in pxa2xx_build_groups() 310 df++) in pxa2xx_build_groups() [all …]
|
/linux/drivers/clk/rockchip/ |
H A D | clk.h | 565 .div_flags = df, \ 587 .div_flags = df, \ 605 .div_flags = df, \ 623 .div_flags = df, \ 649 ds, dw, df) \ argument 663 .div_flags = df, \ 682 .div_flags = df, \ 698 .div_flags = df, \ 715 .div_flags = df, \ 739 ds, dw, df) \ argument [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | df_v1_7.c | 34 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() 83 adev->df.funcs->enable_broadcast_mode(adev, true); in df_v1_7_update_medium_grain_clock_gating() 98 adev->df.funcs->enable_broadcast_mode(adev, false); in df_v1_7_update_medium_grain_clock_gating()
|
H A D | amdgpu_pmu.c | 236 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 D | umc_v6_7.h | 61 (((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 D | df_v3_6.c | 218 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/tools/testing/selftests/net/ |
H A D | cmsg_ipv6.sh | 49 for df in 0 1; do 55 [ $ovr == "setsock" ] && m="-F $df" 56 [ $ovr == "cmsg" ] && m="-f $df" 57 [ $ovr == "both" ] && m="-F $df -f $df" 58 [ $ovr == "diff" ] && m="-F $((1 - df)) -f $df" 61 check_result $? $df "DONTFRAG $prot $ovr"
|
/linux/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 464 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg() 472 df->f1, df->f2, in receive_dmsg() 488 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg() 490 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg() 520 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg() 522 df->za[df->f2 & D_FREG_MASK].z2 = cpu_to_le16(( in receive_dmsg() 682 df->f1, df->f2, in hfcpci_fill_dfifo() 683 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1)); in hfcpci_fill_dfifo() 698 le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1) - 1; in hfcpci_fill_dfifo() 714 dst = df->data + le16_to_cpu(df->za[df->f1 & D_FREG_MASK].z1); in hfcpci_fill_dfifo() [all …]
|
/linux/drivers/regulator/ |
H A D | ad5398.c | 221 const struct ad5398_current_data_format *df = in ad5398_probe() local 237 chip->min_uA = df->min_uA; in ad5398_probe() 238 chip->max_uA = df->max_uA; in ad5398_probe() 239 chip->current_level = 1 << df->current_bits; in ad5398_probe() 240 chip->current_offset = df->current_offset; in ad5398_probe()
|
/linux/net/netfilter/ |
H A D | nfnetlink_osf.c | 57 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()
|
/linux/drivers/staging/rtl8723bs/include/ |
H A D | drv_types.h | 459 int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); in RTW_DISABLE_FUNC() local 460 df |= func_bit; in RTW_DISABLE_FUNC() 461 atomic_set(&adapter_to_dvobj(padapter)->disable_func, df); in RTW_DISABLE_FUNC() 466 int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); in RTW_ENABLE_FUNC() local 467 df &= ~(func_bit); in RTW_ENABLE_FUNC() 468 atomic_set(&adapter_to_dvobj(padapter)->disable_func, df); in RTW_ENABLE_FUNC()
|