/linux/arch/s390/hypfs/ |
H A D | hypfs_dbfs.c | 35 struct hypfs_dbfs_file *df; in dbfs_read() local 41 df = file_inode(file)->i_private; in dbfs_read() 42 if (mutex_lock_interruptible(&df->lock)) in dbfs_read() 45 data = hypfs_dbfs_data_alloc(df); in dbfs_read() 47 mutex_unlock(&df->lock); in dbfs_read() 50 rc = df->data_create(&data->buf, &data->buf_free_ptr, &data->size); in dbfs_read() 52 mutex_unlock(&df->lock); in dbfs_read() 56 mutex_unlock(&df->lock); in dbfs_read() 65 struct hypfs_dbfs_file *df = file_inode(file)->i_private; in dbfs_ioctl() local 68 mutex_lock(&df->lock); in dbfs_ioctl() [all …]
|
H A D | hypfs.h | 81 extern void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df); 82 extern void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df);
|
/linux/drivers/devfreq/ |
H A D | devfreq.c | 1416 struct devfreq *df = to_devfreq(dev); in name_show() local 1417 return sprintf(buf, "%s\n", dev_name(df->dev.parent)); in name_show() 1424 struct devfreq *df = to_devfreq(dev); in governor_show() local 1426 if (!df->governor) in governor_show() 1429 return sprintf(buf, "%s\n", df->governor->name); in governor_show() 1435 struct devfreq *df = to_devfreq(dev); in governor_store() local 1440 if (!df->governor) in governor_store() 1453 if (df->governor == governor) { in governor_store() 1456 } else if (IS_SUPPORTED_FLAG(df->governor->flags, IMMUTABLE) in governor_store() 1466 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in governor_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 89 struct device *dev = df->dev.parent; in devfreq_cooling_set_cur_state() 148 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument 150 struct device *dev = df->dev.parent; in get_voltage() 194 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power() 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() 215 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power() [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/vfio/ |
H A D | vfio_main.c | 493 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() 500 spin_lock_init(&df->kvm_ref_lock); in vfio_allocate_device_file() 502 return df; in vfio_allocate_device_file() 505 static int vfio_df_device_first_open(struct vfio_device_file *df) in vfio_df_device_first_open() argument 507 struct vfio_device *device = df->device; in vfio_df_device_first_open() 508 struct iommufd_ctx *iommufd = df->iommufd; in vfio_df_device_first_open() 517 ret = vfio_df_iommufd_bind(df); in vfio_df_device_first_open() [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 | 165 static int vfio_df_group_open(struct vfio_device_file *df) in vfio_df_group_open() argument 167 struct vfio_device *device = df->device; in vfio_df_group_open() 187 df->iommufd = device->group->iommufd; in vfio_df_group_open() 188 if (df->iommufd && vfio_device_is_noiommu(device) && device->open_count == 0) { in vfio_df_group_open() 195 vfio_iommufd_device_has_compat_ioas(device, df->iommufd)) in vfio_df_group_open() 202 ret = vfio_df_open(df); in vfio_df_group_open() 206 if (df->iommufd && device->open_count == 1) { in vfio_df_group_open() 207 ret = vfio_iommufd_compat_attach_ioas(device, df->iommufd); in vfio_df_group_open() 216 smp_store_release(&df->access_granted, true); in vfio_df_group_open() 223 vfio_df_close(df); in vfio_df_group_open() [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/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() 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 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() 247 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_start() 256 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, 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() 314 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, hwc->idx, in amdgpu_perf_stop() [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 | soc15.c | 1256 if (adev->df.funcs && in soc15_common_sw_init() 1257 adev->df.funcs->sw_init) in soc15_common_sw_init() 1258 adev->df.funcs->sw_init(adev); in soc15_common_sw_init() 1267 if (adev->df.funcs && in soc15_common_sw_fini() 1268 adev->df.funcs->sw_fini) in soc15_common_sw_fini() 1269 adev->df.funcs->sw_fini(adev); in soc15_common_sw_fini() 1439 adev->df.funcs->update_medium_grain_clock_gating(adev, in soc15_common_set_clockgating_state() 1500 if (adev->df.funcs && adev->df.funcs->get_clockgating_state) in soc15_common_get_clockgating_state() 1501 adev->df.funcs->get_clockgating_state(adev, flags); in soc15_common_get_clockgating_state()
|
/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 | 460 struct dfifo *df; in receive_dmsg() local 463 df = &((union fifo_area *)(hc->hw.fifos))->d_chan.d_rx; in receive_dmsg() 464 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg() 465 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg() 473 df->f1, df->f2, in receive_dmsg() 479 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg() 485 df->data[le16_to_cpu(zp->z1)]); 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() 511 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg() [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/clk/samsung/ |
H A D | clk.h | 180 #define __DIV(_id, cname, pname, o, s, w, f, df, t) \ argument 189 .div_flags = df, \ 196 #define DIV_F(_id, cname, pname, o, s, w, f, df) \ argument 197 __DIV(_id, cname, pname, o, s, w, f, df, NULL)
|
/linux/tools/counter/ |
H A D | Makefile | 50 rm -df $(OUTPUT)include/linux 51 rm -df $(OUTPUT)include
|
/linux/drivers/clk/ |
H A D | clk-sp7021.c | 243 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()
|
/linux/drivers/net/ |
H A D | geneve.c | 58 enum ifla_geneve_df df; member 825 __be16 df = 0; in geneve_xmit_skb() local 886 df = test_bit(IP_TUNNEL_DONT_FRAGMENT_BIT, key->tun_flags) ? in geneve_xmit_skb() 895 if (geneve->cfg.df == GENEVE_DF_SET) { in geneve_xmit_skb() 896 df = htons(IP_DF); in geneve_xmit_skb() 897 } else if (geneve->cfg.df == GENEVE_DF_INHERIT) { in geneve_xmit_skb() 901 df = htons(IP_DF); in geneve_xmit_skb() 906 df = htons(IP_DF); in geneve_xmit_skb() 917 tos, ttl, df, sport, geneve->cfg.info.key.tp_dst, in geneve_xmit_skb() 1273 enum ifla_geneve_df df = nla_get_u8(data[IFLA_GENEVE_DF]); in geneve_validate() local [all …]
|
/linux/sound/core/ |
H A D | init.c | 422 struct snd_monitor_file *df = NULL, *_df; in snd_disconnect_release() local 427 df = _df; in snd_disconnect_release() 428 list_del_init(&df->shutdown_list); in snd_disconnect_release() 434 if (likely(df)) { in snd_disconnect_release() 435 if ((file->f_flags & FASYNC) && df->disconnected_f_op->fasync) in snd_disconnect_release() 436 df->disconnected_f_op->fasync(-1, file, 0); in snd_disconnect_release() 437 return df->disconnected_f_op->release(inode, file); in snd_disconnect_release()
|