| /linux/drivers/vfio/ |
| H A D | device_cdev.c | 27 struct vfio_device_file *df; in vfio_device_fops_cdev_open() local 34 df = vfio_allocate_device_file(device); in vfio_device_fops_cdev_open() 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() 56 static void vfio_df_get_kvm_safe(struct vfio_device_file *df) in vfio_df_get_kvm_safe() argument 58 spin_lock(&df->kvm_ref_lock); in vfio_df_get_kvm_safe() 59 vfio_device_get_kvm_safe(df->device, df->kvm); in vfio_df_get_kvm_safe() 60 spin_unlock(&df->kvm_ref_lock); in vfio_df_get_kvm_safe() 83 long vfio_df_ioctl_bind_iommufd(struct vfio_device_file *df, in vfio_df_ioctl_bind_iommufd() argument [all …]
|
| H A D | vfio_main.c | 496 struct vfio_device_file *df; in vfio_allocate_device_file() local 498 df = kzalloc(sizeof(*df), GFP_KERNEL_ACCOUNT); in vfio_allocate_device_file() 499 if (!df) in vfio_allocate_device_file() 502 df->device = device; in vfio_allocate_device_file() 503 spin_lock_init(&df->kvm_ref_lock); in vfio_allocate_device_file() 505 return df; in vfio_allocate_device_file() 508 static int vfio_df_device_first_open(struct vfio_device_file *df) in vfio_df_device_first_open() argument 510 struct vfio_device *device = df->device; in vfio_df_device_first_open() 511 struct iommufd_ctx *iommufd = df->iommufd; in vfio_df_device_first_open() 520 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 | 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() 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()
|
| /linux/arch/s390/hypfs/ |
| H A D | hypfs_dbfs.c | 36 struct hypfs_dbfs_file *df; in dbfs_read() local 42 df = file_inode(file)->i_private; in dbfs_read() 43 if (mutex_lock_interruptible(&df->lock)) in dbfs_read() 46 data = hypfs_dbfs_data_alloc(df); in dbfs_read() 48 mutex_unlock(&df->lock); in dbfs_read() 51 rc = df->data_create(&data->buf, &data->buf_free_ptr, &data->size); in dbfs_read() 53 mutex_unlock(&df->lock); in dbfs_read() 57 mutex_unlock(&df->lock); in dbfs_read() 66 struct hypfs_dbfs_file *df = file_inode(file)->i_private; in dbfs_ioctl() local 69 mutex_lock(&df->lock); in dbfs_ioctl() [all …]
|
| H A D | hypfs.h | 79 extern void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df); 80 extern void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df);
|
| /linux/scripts/gendwarfksyms/ |
| H A D | die.c | 74 struct die_fragment *df; in reset_die() local 76 list_for_each_entry_safe(df, tmp, &cd->fragments, list) { in reset_die() 77 if (df->type == FRAGMENT_STRING) in reset_die() 78 free(df->data.str); in reset_die() 79 free(df); in reset_die() 124 struct die_fragment *df; in append_item() local 126 df = xmalloc(sizeof(*df)); in append_item() 127 df->type = FRAGMENT_EMPTY; in append_item() 128 list_add_tail(&df->list, &cd->fragments); in append_item() 129 return df; in append_item() [all …]
|
| H A D | types.c | 361 struct die_fragment *df; in __type_expand() local 365 list_for_each_entry(df, &cache->fragments, list) { in __type_expand() 366 switch (df->type) { in __type_expand() 368 type_expansion_append(type, df->data.str, NULL); in __type_expand() 372 if (__die_map_get(df->data.addr, DIE_COMPLETE, in __type_expand() 374 __die_map_get(df->data.addr, DIE_UNEXPANDED, in __type_expand() 377 df->data.addr); in __type_expand() 391 if (list_is_last(&df->list, &cache->fragments) || in __type_expand() 392 list_next_entry(df, list)->type != in __type_expand()
|
| H A D | dwarf.c | 807 struct die_fragment *df; in process_cached() local 810 list_for_each_entry(df, &cache->fragments, list) { in process_cached() 811 switch (df->type) { in process_cached() 814 df->data.str); in process_cached() 815 process(NULL, df->data.str); in process_cached() 818 process_linebreak(NULL, df->data.linebreak); in process_cached() 822 (void *)df->data.addr, &child)) in process_cached() 825 cache, df->data.addr, dwarf_tag(&child)); in process_cached()
|
| /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/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 | 1254 if (adev->df.funcs && in soc15_common_sw_init() 1255 adev->df.funcs->sw_init) in soc15_common_sw_init() 1256 adev->df.funcs->sw_init(adev); in soc15_common_sw_init() 1265 if (adev->df.funcs && in soc15_common_sw_fini() 1266 adev->df.funcs->sw_fini) in soc15_common_sw_fini() 1267 adev->df.funcs->sw_fini(adev); in soc15_common_sw_fini() 1437 adev->df.funcs->update_medium_grain_clock_gating(adev, in soc15_common_set_clockgating_state() 1498 if (adev->df.funcs && adev->df.funcs->get_clockgating_state) in soc15_common_get_clockgating_state() 1499 adev->df.funcs->get_clockgating_state(adev, flags); in soc15_common_get_clockgating_state()
|
| /linux/drivers/clk/rockchip/ |
| H A D | clk.h | 797 df, go, gs, gf) \ argument 811 .div_flags = df, \ 818 mf, do, ds, dw, df, go, gs, gf) \ argument 833 .div_flags = df, \ 839 #define COMPOSITE_NOMUX(_id, cname, pname, f, mo, ds, dw, df, \ argument 851 .div_flags = df, \ 858 df, dt, go, gs, gf) \ argument 869 .div_flags = df, \ 895 ds, dw, df) \ argument 909 .div_flags = df, \ [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | cmsg_ip.sh | 52 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/drivers/isdn/hardware/mISDN/ |
| H A D | hfcpci.c | 461 struct dfifo *df; in receive_dmsg() local 464 df = &((union fifo_area *)(hc->hw.fifos))->d_chan.d_rx; in receive_dmsg() 465 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg() 466 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg() 474 df->f1, df->f2, in receive_dmsg() 480 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg() 486 df->data[le16_to_cpu(zp->z1)]); in receive_dmsg() 490 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg() 492 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg() 512 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg() [all …]
|
| /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/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 | 237 u32 df; /* diff freq */ in plltv_fractional_div() local 253 df = df0 - df1; in plltv_fractional_div() 255 df = f * (nint) / pp[0]; in plltv_fractional_div() 258 df_quotient = df / m; in plltv_fractional_div() 259 df_remainder = ((df % m) * 1000) / m; in plltv_fractional_div() 279 fout = df / m; in plltv_fractional_div()
|
| /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()
|
| /linux/arch/parisc/math-emu/ |
| H A D | fpudispatch.c | 279 u_int df; /* for class 1 conversions */ in decode_0c() local 407 df = extru(ir,fpdfpos,2); /* get dest format */ in decode_0c() 408 if ((df & 2) || (fmt & 2)) { in decode_0c() 420 fmt = (fmt << 1) | df; in decode_0c() 726 u_int df; /* dest format for class 1 conversions */ local 840 df = extru(ir,fpdfpos,2); /* get dest format */ 845 if (df == DBL) { 848 if ((df & 2) || (fmt & 2)) 851 fmt = (fmt << 1) | df;
|
| /linux/drivers/ipack/devices/ |
| H A D | scc2698.h | 63 u8 df, cts; /* Stop counter timer of block */ member 81 u8 df, r3; /* reserved */ member
|
| /linux/net/ipv4/ |
| H A D | ip_tunnel.c | 513 struct rtable *rt, __be16 df, in tnl_update_pmtu() argument 525 if (df) { in tnl_update_pmtu() 581 __be16 df = 0; in ip_md_tunnel_xmit() local 630 df = htons(IP_DF); in ip_md_tunnel_xmit() 631 if (tnl_update_pmtu(dev, skb, rt, df, inner_iph, tunnel_hlen, in ip_md_tunnel_xmit() 657 df, !net_eq(tunnel->net, dev_net(dev)), 0); in ip_md_tunnel_xmit() 684 __be16 df; in ip_tunnel_xmit() local 801 df = tnl_params->frag_off; in ip_tunnel_xmit() 803 df |= (inner_iph->frag_off & htons(IP_DF)); in ip_tunnel_xmit() 805 if (tnl_update_pmtu(dev, skb, rt, df, inner_iph, 0, 0, false)) { in ip_tunnel_xmit() [all …]
|