| /linux/net/ipv6/ |
| A D | ip6_flowlabel.c | 63 fl = rcu_dereference(fl->next)) 65 for (fl = rcu_dereference(fl->next); \ 67 fl = rcu_dereference(fl->next)) 91 if (fl && !atomic_inc_not_zero(&fl->users)) in fl_lookup() 120 if (fl_shared_exclusive(fl) || fl->opt) in fl_free() 250 fl->next = fl_ht[FL_HASH(fl->label)]; in fl_intern() 271 struct ip6_flowlabel *fl = sfl->fl; in __fl6_sock_lookup() local 369 fl->expires = fl->lastuse + expires; in fl6_renew() 390 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in fl_create() 404 memset(fl->opt, 0, sizeof(*fl->opt)); in fl_create() [all …]
|
| /linux/tools/testing/selftests/filelock/ |
| A D | ofdlocks.c | 49 fl.l_start = 5; in main() 50 fl.l_len = 3; in main() 61 fl.l_start = 5; in main() 62 fl.l_len = 1; in main() 72 fl.l_start = 5; in main() 73 fl.l_len = 1; in main() 88 fl.l_len = 1; in main() 98 fl.l_type, fl.l_pid, fl.l_len); in main() 114 if (memcmp(&fl, &fl2, sizeof(fl))) { in main() 117 fl.l_type, fl.l_pid, fl.l_len); in main() [all …]
|
| /linux/include/trace/events/ |
| A D | filelock.h | 82 __entry->fl = fl ? fl : NULL; 86 __entry->owner = fl ? fl->c.flc_owner : NULL; 87 __entry->pid = fl ? fl->c.flc_pid : 0; 88 __entry->flags = fl ? fl->c.flc_flags : 0; 89 __entry->type = fl ? fl->c.flc_type : 0; 90 __entry->fl_start = fl ? fl->fl_start : 0; 91 __entry->fl_end = fl ? fl->fl_end : 0; 137 __entry->fl = fl ? fl : NULL; 141 __entry->owner = fl ? fl->c.flc_owner : NULL; 142 __entry->flags = fl ? fl->c.flc_flags : 0; [all …]
|
| /linux/fs/ |
| A D | locks.c | 277 if (fl) in locks_alloc_lock() 289 if (fl) in locks_alloc_lease() 308 fl->fl_ops->fl_release_private(fl); in locks_release_private() 388 memset(fl, 0, sizeof(*fl)); in locks_init_lease() 427 fl->fl_ops->fl_copy_lock(new, fl); in locks_copy_lock() 523 fl->fl_end = fl->fl_start - 1; in flock64_to_posix_lock() 713 fl->fl_lmops->lm_notify(fl); in __locks_wake_up_blocks() 1592 if (fl->fl_lmops->lm_break(fl)) in __break_lease() 2257 fl->fl_end - fl->fl_start + 1; in posix_lock_to_flock() 2269 fl->fl_end - fl->fl_start + 1; in posix_lock_to_flock64() [all …]
|
| /linux/fs/afs/ |
| A D | flock.c | 466 fl->fl_start, fl->fl_end, fl->c.flc_type, mode); in afs_do_setlk() 472 partial = (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX); in afs_do_setlk() 647 if (fl->fl_u.afs.state >= 0 && fl->fl_u.afs.state != AFS_LOCK_GRANTED) { in afs_do_setlk() 707 fl->c.flc_type); in afs_do_unlk() 749 fl->fl_start = 0; in afs_do_getlk() 751 fl->c.flc_pid = 0; in afs_do_getlk() 772 fl->c.flc_type, fl->c.flc_flags, in afs_lock() 773 (long long) fl->fl_start, (long long) fl->fl_end); in afs_lock() 781 if (lock_is_unlock(fl)) in afs_lock() 807 fl->c.flc_type, fl->c.flc_flags); in afs_flock() [all …]
|
| /linux/fs/lockd/ |
| A D | clntproc.c | 144 lock->fl.fl_start = fl->fl_start; in nlmclnt_setlockargs() 145 lock->fl.fl_end = fl->fl_end; in nlmclnt_setlockargs() 146 lock->fl.c.flc_type = fl->c.flc_type; in nlmclnt_setlockargs() 195 fl->fl_ops->fl_release_private(fl); in nlmclnt_proc() 196 fl->fl_ops = NULL; in nlmclnt_proc() 449 fl->fl_start = req->a_res.lock.fl.fl_start; in nlmclnt_test() 450 fl->fl_end = req->a_res.lock.fl.fl_end; in nlmclnt_test() 451 fl->c.flc_type = req->a_res.lock.fl.c.flc_type; in nlmclnt_test() 452 fl->c.flc_pid = -req->a_res.lock.fl.c.flc_pid; in nlmclnt_test() 498 return locks_lock_file_wait(fl->c.flc_file, fl); in do_vfs_lock() [all …]
|
| A D | svclock.c | 159 fl = &block->b_call->a_args.lock.fl; in nlmsvc_lookup_block() 163 (long long)fl->fl_end, fl->c.flc_type, in nlmsvc_lookup_block() 165 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) { in nlmsvc_lookup_block() 422 locks_copy_lock(&call->a_args.lock.fl, &lock->fl); in nlmsvc_setgrantargs() 647 lock->fl.c.flc_type, (long long)lock->fl.fl_start, in nlmsvc_testlock() 653 conflock->fl.c.flc_type = lock->fl.c.flc_type; in nlmsvc_testlock() 654 conflock->fl.fl_start = lock->fl.fl_start; in nlmsvc_testlock() 655 conflock->fl.fl_end = lock->fl.fl_end; in nlmsvc_testlock() 726 struct file_lock *fl = &block->b_call->a_args.lock.fl; in nlmsvc_cancel_blocked() local 997 fl = &block->b_call->a_args.lock.fl; in nlmsvc_grant_reply() [all …]
|
| A D | xdr4.c | 40 fl->fl_start = off; in nlm4svc_set_file_lock_range() 42 fl->fl_end = OFFSET_MAX; in nlm4svc_set_file_lock_range() 44 fl->fl_end = end; in nlm4svc_set_file_lock_range() 76 struct file_lock *fl = &lock->fl; in svcxdr_decode_lock() local 91 locks_init_lock(fl); in svcxdr_decode_lock() 92 fl->c.flc_flags = FL_POSIX; in svcxdr_decode_lock() 93 fl->c.flc_type = F_RDLCK; in svcxdr_decode_lock() 101 const struct file_lock *fl = &lock->fl; in svcxdr_encode_holder() local 112 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder() 115 len = loff_t_to_s64(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder() [all …]
|
| A D | xdr.c | 74 struct file_lock *fl = &lock->fl; in svcxdr_decode_lock() local 90 locks_init_lock(fl); in svcxdr_decode_lock() 91 fl->c.flc_flags = FL_POSIX; in svcxdr_decode_lock() 92 fl->c.flc_type = F_RDLCK; in svcxdr_decode_lock() 94 fl->fl_start = s32_to_loff_t(start); in svcxdr_decode_lock() 96 fl->fl_end = OFFSET_MAX; in svcxdr_decode_lock() 98 fl->fl_end = s32_to_loff_t(end); in svcxdr_decode_lock() 106 const struct file_lock *fl = &lock->fl; in svcxdr_encode_holder() local 117 if (fl->fl_end == OFFSET_MAX) in svcxdr_encode_holder() 120 len = loff_t_to_s32(fl->fl_end - fl->fl_start + 1); in svcxdr_encode_holder() [all …]
|
| /linux/fs/ceph/ |
| A D | locks.c | 64 fl->fl_u.ceph.inode = NULL; in ceph_fl_release_lock() 94 fl->fl_ops->fl_copy_lock(fl, NULL); in ceph_lock_message() 111 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message() 118 (u64) fl->c.flc_pid, in ceph_lock_message() 119 fl->fl_start, length, wait, fl->c.flc_type); in ceph_lock_message() 146 fl->fl_end = length -1; in ceph_lock_message() 148 fl->fl_end = 0; in ceph_lock_message() 155 fl->fl_start, length, wait, fl->c.flc_type, err); in ceph_lock_message() 282 if (lock_is_read(fl)) in ceph_lock() 337 if (lock_is_unlock(fl)) in ceph_flock() [all …]
|
| A D | util.c | 34 fl->stripe_unit = le32_to_cpu(legacy->fl_stripe_unit); in ceph_file_layout_from_legacy() 35 fl->stripe_count = le32_to_cpu(legacy->fl_stripe_count); in ceph_file_layout_from_legacy() 36 fl->object_size = le32_to_cpu(legacy->fl_object_size); in ceph_file_layout_from_legacy() 37 fl->pool_id = le32_to_cpu(legacy->fl_pg_pool); in ceph_file_layout_from_legacy() 38 if (fl->pool_id == 0 && fl->stripe_unit == 0 && in ceph_file_layout_from_legacy() 39 fl->stripe_count == 0 && fl->object_size == 0) in ceph_file_layout_from_legacy() 40 fl->pool_id = -1; in ceph_file_layout_from_legacy() 46 legacy->fl_stripe_unit = cpu_to_le32(fl->stripe_unit); in ceph_file_layout_to_legacy() 48 legacy->fl_object_size = cpu_to_le32(fl->object_size); in ceph_file_layout_to_legacy() 49 if (fl->pool_id >= 0) in ceph_file_layout_to_legacy() [all …]
|
| /linux/fs/dlm/ |
| A D | plock.c | 26 void *fl; member 150 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in dlm_posix_lock() 161 op_data->fl = fl; in dlm_posix_lock() 242 struct file_lock *fl; in dlm_plock_callback() local 252 fl = op_data->fl; in dlm_plock_callback() 275 rv = notify(fl, 0); in dlm_plock_callback() 370 if (WARN_ON_ONCE(!fl->fl_lmops || !fl->fl_lmops->lm_grant)) in dlm_posix_cancel() 384 info.end = fl->fl_end; in dlm_posix_cancel() 423 struct file_lock *fl) in dlm_posix_get() argument 462 locks_init_lock(fl); in dlm_posix_get() [all …]
|
| /linux/fs/9p/ |
| A D | vfs_file.c | 138 switch (fl->c.flc_type) { in v9fs_file_do_lock() 153 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock() 212 fl->c.flc_type = F_UNLCK; in v9fs_file_do_lock() 215 fl->c.flc_type = type; in v9fs_file_do_lock() 232 posix_test_lock(filp, fl); in v9fs_file_getlock() 247 glock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_getlock() 257 fl->c.flc_type = F_RDLCK; in v9fs_file_getlock() 260 fl->c.flc_type = F_WRLCK; in v9fs_file_getlock() 294 filp, cmd, fl, filp); in v9fs_file_lock_dotl() 319 struct file_lock *fl) in v9fs_file_flock_dotl() argument [all …]
|
| /linux/drivers/misc/ |
| A D | fastrpc.c | 415 buf->fl = fl; in __fastrpc_buf_alloc() 447 if (fl->sctx && fl->sctx->sid) in fastrpc_buf_alloc() 773 map->fl = fl; in fastrpc_map_create() 1068 struct fastrpc_user *fl = ctx->fl; in fastrpc_put_args() local 1113 struct fastrpc_user *fl = ctx->fl; in fastrpc_invoke_send() local 1222 if (!fl->is_secure_dev && fl->cctx->secure) { in is_session_rejected() 1286 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_init_create_static_process() 1414 err = fastrpc_buf_alloc(fl, fl->sctx->dev, memlen, in fastrpc_init_create_process() 1552 kfree(fl); in fastrpc_device_release() 1568 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in fastrpc_device_open() [all …]
|
| /linux/include/linux/ |
| A D | thread_info.h | 149 #define set_syscall_work(fl) \ argument 151 #define test_syscall_work(fl) \ argument 153 #define clear_syscall_work(fl) \ argument 156 #define set_task_syscall_work(t, fl) \ argument 158 #define test_task_syscall_work(t, fl) \ argument 160 #define clear_task_syscall_work(t, fl) \ argument 165 #define set_syscall_work(fl) \ argument 167 #define test_syscall_work(fl) \ argument 169 #define clear_syscall_work(fl) \ argument 172 #define set_task_syscall_work(t, fl) \ argument [all …]
|
| A D | filelock.h | 165 return fl->c.flc_type == F_UNLCK; in lock_is_unlock() 168 static inline bool lock_is_read(struct file_lock *fl) in lock_is_read() argument 170 return fl->c.flc_type == F_RDLCK; in lock_is_read() 173 static inline bool lock_is_write(struct file_lock *fl) in lock_is_write() argument 175 return fl->c.flc_type == F_WRLCK; in lock_is_write() 180 wake_up(&fl->c.flc_wait); in locks_wake_up() 185 void locks_free_lock(struct file_lock *fl); 203 void locks_free_lease(struct file_lease *fl); 269 static inline bool lock_is_read(struct file_lock *fl) in lock_is_read() argument 340 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file() argument [all …]
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| A D | dpu_hw_catalog.c | 591 {.fl = 4, .lut = 0x1b}, 592 {.fl = 5, .lut = 0x5b}, 593 {.fl = 6, .lut = 0x15b}, 594 {.fl = 7, .lut = 0x55b}, 595 {.fl = 8, .lut = 0x155b}, 596 {.fl = 9, .lut = 0x555b}, 604 {.fl = 4, .lut = 0x357}, 605 {.fl = 5, .lut = 0x3357}, 663 {.fl = 0, .lut = 0x0}, 667 {.fl = 0, .lut = 0x0}, [all …]
|
| /linux/fs/nfs/filelayout/ |
| A D | filelayout.c | 568 fl->num_fh > 1 && fl->num_fh != dsaddr->ds_num) || in filelayout_check_deviceid() 630 if (fl->fh_array) { in _filelayout_free_lseg() 638 kfree(fl); in _filelayout_free_lseg() 669 memcpy(&fl->deviceid, p, sizeof(fl->deviceid)); in filelayout_decode_layout() 687 __func__, nfl_util, fl->num_fh, fl->first_stripe_index, in filelayout_decode_layout() 692 if (fl->num_fh > in filelayout_decode_layout() 697 fl->fh_array = kcalloc(fl->num_fh, sizeof(fl->fh_array[0]), in filelayout_decode_layout() 722 memcpy(fl->fh_array[i]->data, p, fl->fh_array[i]->size); in filelayout_decode_layout() 766 fl = kzalloc(sizeof(*fl), gfp_flags); in filelayout_alloc_lseg() 767 if (!fl) in filelayout_alloc_lseg() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| A D | sge.c | 484 if (++fl->cidx == fl->size) in free_rx_bufs() 512 if (++fl->cidx == fl->size) in unmap_rx_buf() 611 __be64 *d = &fl->desc[fl->pidx]; in refill_fl() 667 if (++fl->pidx == fl->size) { in refill_fl() 696 if (++fl->pidx == fl->size) { in refill_fl() 1715 fl->cidx = fl->size - 1; in restore_rx_bufs() 1718 sdesc = &fl->sdesc[fl->cidx]; in restore_rx_bufs() 2391 if (fl && fl->desc) { in t4vf_sge_alloc_rxq() 2395 fl->desc, fl->addr); in t4vf_sge_alloc_rxq() 2544 free_rx_bufs(adapter, fl, fl->avail); in free_rspq_fl() [all …]
|
| /linux/fs/ocfs2/ |
| A D | locks.c | 24 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument 30 if (lock_is_write(fl)) in ocfs2_do_flock() 72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock() 89 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock() 103 if (!(fl->c.flc_flags & FL_FLOCK)) in ocfs2_flock() 108 return locks_lock_file_wait(file, fl); in ocfs2_flock() 110 if (lock_is_unlock(fl)) in ocfs2_flock() 111 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock() 113 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock() 116 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument [all …]
|
| /linux/fs/nfsd/ |
| A D | flexfilelayout.c | 31 struct pnfs_ff_layout *fl; in nfsd4_ff_proc_layoutget() local 39 fl = kzalloc(sizeof(*fl), GFP_KERNEL); in nfsd4_ff_proc_layoutget() 40 if (!fl) in nfsd4_ff_proc_layoutget() 42 args->lg_content = fl; in nfsd4_ff_proc_layoutget() 49 fl->flags = FF_FLAGS_NO_LAYOUTCOMMIT | FF_FLAGS_NO_IO_THRU_MDS | in nfsd4_ff_proc_layoutget() 55 fl->uid = make_kuid(&init_user_ns, u); in nfsd4_ff_proc_layoutget() 57 fl->uid = inode->i_uid; in nfsd4_ff_proc_layoutget() 58 fl->gid = inode->i_gid; in nfsd4_ff_proc_layoutget() 60 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget() 64 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget() [all …]
|
| A D | flexfilelayoutxdr.c | 22 const struct pnfs_ff_layout *fl = lgp->lg_content; in nfsd4_ff_encode_layoutget() local 33 fh_len = 4 + fl->fh.size; in nfsd4_ff_encode_layoutget() 35 uid.len = sprintf(uid.buf, "%u", from_kuid(&init_user_ns, fl->uid)); in nfsd4_ff_encode_layoutget() 36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); in nfsd4_ff_encode_layoutget() 57 p = xdr_encode_opaque_fixed(p, &fl->deviceid, in nfsd4_ff_encode_layoutget() 62 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget() 63 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget() 67 p = xdr_encode_opaque(p, fl->fh.data, fl->fh.size); in nfsd4_ff_encode_layoutget() 72 *p++ = cpu_to_be32(fl->flags); in nfsd4_ff_encode_layoutget()
|
| /linux/drivers/mtd/parsers/ |
| A D | redboot.c | 221 prev = &fl; in parse_redboot_partitions() 230 if (fl->img->flash_base) { in parse_redboot_partitions() 259 if (fl->img->flash_base) { in parse_redboot_partitions() 267 parts[i].size = fl->img->size; in parse_redboot_partitions() 271 strcpy(names, fl->img->name); in parse_redboot_partitions() 282 …if (fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_ba… in parse_redboot_partitions() 289 tmp_fl = fl; in parse_redboot_partitions() 290 fl = fl->next; in parse_redboot_partitions() 296 while (fl) { in parse_redboot_partitions() 297 struct fis_list *old = fl; in parse_redboot_partitions() [all …]
|
| /linux/drivers/net/wireguard/ |
| A D | socket.c | 23 struct flowi4 fl = { in send4() local 46 fl.fl4_sport = inet_sk(sock)->inet_sport; in send4() 49 rt = dst_cache_get_ip4(cache, &fl.saddr); in send4() 54 fl.saddr, RT_SCOPE_HOST))) { in send4() 57 fl.saddr = 0; in send4() 67 fl.saddr = 0; in send4() 85 udp_tunnel_xmit_skb(rt, sock, skb, fl.saddr, fl.daddr, ds, in send4() 87 fl.fl4_dport, false, false); in send4() 101 struct flowi6 fl = { in send6() local 152 udp_tunnel6_xmit_skb(dst, sock, skb, skb->dev, &fl.saddr, &fl.daddr, ds, in send6() [all …]
|
| /linux/net/l3mdev/ |
| A D | l3mdev.c | 254 if (!fl->flowi_l3mdev) in l3mdev_fib_rule_match() 259 dev = dev_get_by_index_rcu(net, fl->flowi_l3mdev); in l3mdev_fib_rule_match() 271 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow() argument 277 if (fl->flowi_oif) { in l3mdev_update_flow() 278 dev = dev_get_by_index_rcu(net, fl->flowi_oif); in l3mdev_update_flow() 280 if (!fl->flowi_l3mdev) in l3mdev_update_flow() 281 fl->flowi_l3mdev = l3mdev_master_ifindex_rcu(dev); in l3mdev_update_flow() 287 fl->flowi_oif = 0; in l3mdev_update_flow() 292 if (fl->flowi_iif > LOOPBACK_IFINDEX && !fl->flowi_l3mdev) { in l3mdev_update_flow() 293 dev = dev_get_by_index_rcu(net, fl->flowi_iif); in l3mdev_update_flow() [all …]
|