| /linux/net/ipv6/ |
| H A D | ip6_flowlabel.c | 60 #define for_each_fl_rcu(hash, fl) \ argument 61 for (fl = rcu_dereference(fl_ht[(hash)]); \ 62 fl != NULL; \ 63 fl = rcu_dereference(fl->next)) 64 #define for_each_fl_continue_rcu(fl) \ argument 65 for (fl = rcu_dereference(fl->next); \ 66 fl != NULL; \ 67 fl = rcu_dereference(fl->next)) 76 struct ip6_flowlabel *fl; in __fl_lookup() local 78 for_each_fl_rcu(FL_HASH(label), fl) { in __fl_lookup() [all …]
|
| /linux/tools/testing/selftests/filelock/ |
| H A D | ofdlocks.c | 11 static int lock_set(int fd, struct flock *fl) in lock_set() argument 15 fl->l_pid = 0; // needed for OFD locks in lock_set() 16 fl->l_whence = SEEK_SET; in lock_set() 17 ret = fcntl(fd, F_OFD_SETLK, fl); in lock_set() 23 static int lock_get(int fd, struct flock *fl) in lock_get() argument 27 fl->l_pid = 0; // needed for OFD locks in lock_get() 28 fl->l_whence = SEEK_SET; in lock_get() 29 ret = fcntl(fd, F_OFD_GETLK, fl); in lock_get() 38 struct flock fl, fl2; in main() local 48 fl.l_type = F_RDLCK; in main() [all …]
|
| /linux/fs/afs/ |
| H A D | flock.c | 17 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl); 18 static void afs_fl_release_private(struct file_lock *fl); 451 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk() argument 466 fl->fl_start, fl->fl_end, fl->c.flc_type, mode); in afs_do_setlk() 468 fl->fl_ops = &afs_lock_ops; in afs_do_setlk() 469 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk() 470 fl->fl_u.afs.state = AFS_LOCK_PENDING; in afs_do_setlk() 472 partial = (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX); in afs_do_setlk() 473 type = lock_is_read(fl) ? AFS_LOCK_READ : AFS_LOCK_WRITE; in afs_do_setlk() 481 trace_afs_flock_op(vnode, fl, afs_flock_op_set_lock); in afs_do_setlk() [all …]
|
| /linux/fs/ceph/ |
| H A D | locks.c | 45 static void ceph_fl_release_lock(struct file_lock *fl) in ceph_fl_release_lock() argument 47 struct inode *inode = fl->fl_u.ceph.inode; in ceph_fl_release_lock() 64 fl->fl_u.ceph.inode = NULL; in ceph_fl_release_lock() 77 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument 93 fl->fl_ops = &ceph_fl_lock_ops; in ceph_lock_message() 94 fl->fl_ops->fl_copy_lock(fl, NULL); in ceph_lock_message() 108 if (LLONG_MAX == fl->fl_end) in ceph_lock_message() 111 length = fl->fl_end - fl->fl_start + 1; in ceph_lock_message() 113 owner = secure_addr(fl->c.flc_owner); in ceph_lock_message() 118 (u64) fl->c.flc_pid, in ceph_lock_message() [all …]
|
| H A D | util.c | 31 void ceph_file_layout_from_legacy(struct ceph_file_layout *fl, in ceph_file_layout_from_legacy() argument 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() 43 void ceph_file_layout_to_legacy(struct ceph_file_layout *fl, in ceph_file_layout_to_legacy() argument 46 legacy->fl_stripe_unit = cpu_to_le32(fl->stripe_unit); in ceph_file_layout_to_legacy() [all …]
|
| /linux/fs/dlm/ |
| H A D | plock.c | 26 void *fl; member 29 int (*callback)(struct file_lock *fl, int result); 123 int cmd, struct file_lock *fl) in dlm_posix_lock() argument 141 op->info.pid = fl->c.flc_pid; in dlm_posix_lock() 142 op->info.ex = lock_is_write(fl); in dlm_posix_lock() 143 op->info.wait = !!(fl->c.flc_flags & FL_SLEEP); in dlm_posix_lock() 146 op->info.start = fl->fl_start; in dlm_posix_lock() 147 op->info.end = fl->fl_end; in dlm_posix_lock() 148 op->info.owner = (__u64)(long) fl->c.flc_owner; in dlm_posix_lock() 150 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in dlm_posix_lock() [all …]
|
| /linux/drivers/misc/ |
| H A D | fastrpc.c | 193 struct fastrpc_user *fl; member 215 struct fastrpc_user *fl; member 244 struct fastrpc_user *fl; member 342 int vmid = map->fl->cctx->vmperms[0].vmid; in fastrpc_free_map() 351 dev_err(map->fl->sctx->dev, in fastrpc_free_map() 363 if (map->fl) { in fastrpc_free_map() 364 spin_lock(&map->fl->lock); in fastrpc_free_map() 366 spin_unlock(&map->fl->lock); in fastrpc_free_map() 367 map->fl = NULL; in fastrpc_free_map() 388 static int fastrpc_map_lookup(struct fastrpc_user *fl, int fd, in fastrpc_map_lookup() argument [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| H A D | sge.c | 247 static inline unsigned int fl_cap(const struct sge_fl *fl) in fl_cap() argument 249 return fl->size - FL_PER_EQ_UNIT; in fl_cap() 262 const struct sge_fl *fl) in fl_starving() argument 266 return fl->avail - fl->pend_cred <= s->fl_starve_thres; in fl_starving() 473 static void free_rx_bufs(struct adapter *adapter, struct sge_fl *fl, int n) in free_rx_bufs() argument 476 struct rx_sw_desc *sdesc = &fl->sdesc[fl->cidx]; in free_rx_bufs() 484 if (++fl->cidx == fl->size) in free_rx_bufs() 485 fl->cidx = 0; in free_rx_bufs() 486 fl->avail--; in free_rx_bufs() 503 static void unmap_rx_buf(struct adapter *adapter, struct sge_fl *fl) in unmap_rx_buf() argument [all …]
|
| /linux/fs/ocfs2/ |
| H 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() 82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 89 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock() 98 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument 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() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_flow_table_path.c | 212 struct flowi fl = {}; in nft_flow_tunnel_update_route() local 216 fl.u.ip4.daddr = tun->dst_v4.s_addr; in nft_flow_tunnel_update_route() 217 fl.u.ip4.saddr = tun->src_v4.s_addr; in nft_flow_tunnel_update_route() 218 fl.u.ip4.flowi4_iif = nft_in(pkt)->ifindex; in nft_flow_tunnel_update_route() 219 fl.u.ip4.flowi4_dscp = ip4h_dscp(ip_hdr(pkt->skb)); in nft_flow_tunnel_update_route() 220 fl.u.ip4.flowi4_mark = pkt->skb->mark; in nft_flow_tunnel_update_route() 221 fl.u.ip4.flowi4_flags = FLOWI_FLAG_ANYSRC; in nft_flow_tunnel_update_route() 224 fl.u.ip6.daddr = tun->dst_v6; in nft_flow_tunnel_update_route() 225 fl.u.ip6.saddr = tun->src_v6; in nft_flow_tunnel_update_route() 226 fl.u.ip6.flowi6_iif = nft_in(pkt)->ifindex; in nft_flow_tunnel_update_route() [all …]
|
| /linux/drivers/mtd/parsers/ |
| H A D | redboot.c | 79 struct fis_list *fl = NULL, *tmp_fl; in parse_redboot_partitions() local 221 prev = &fl; in parse_redboot_partitions() 230 if (fl->img->flash_base) { in parse_redboot_partitions() 235 for (tmp_fl = fl; tmp_fl->next; tmp_fl = tmp_fl->next) { in parse_redboot_partitions() 259 if (fl->img->flash_base) { in parse_redboot_partitions() 261 parts[0].size = fl->img->flash_base; in parse_redboot_partitions() 267 parts[i].size = fl->img->size; in parse_redboot_partitions() 268 parts[i].offset = fl->img->flash_base; 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() [all …]
|
| /linux/drivers/net/ovpn/ |
| H A D | udp.c | 149 struct flowi4 fl = { in ovpn_udp4_output() local 160 rt = dst_cache_get_ip4(cache, &fl.saddr); in ovpn_udp4_output() 164 if (unlikely(!inet_confirm_addr(sock_net(sk), NULL, 0, fl.saddr, in ovpn_udp4_output() 170 fl.saddr = 0; in ovpn_udp4_output() 177 rt = ip_route_output_flow(sock_net(sk), &fl, sk); in ovpn_udp4_output() 179 fl.saddr = 0; in ovpn_udp4_output() 185 rt = ip_route_output_flow(sock_net(sk), &fl, sk); in ovpn_udp4_output() 196 dst_cache_set_ip4(cache, &rt->dst, fl.saddr); in ovpn_udp4_output() 199 udp_tunnel_xmit_skb(rt, sk, skb, fl.saddr, fl.daddr, 0, in ovpn_udp4_output() 200 ip4_dst_hoplimit(&rt->dst), 0, fl.fl4_sport, in ovpn_udp4_output() [all …]
|
| /linux/fs/nfsd/ |
| H A D | flexfilelayout.c | 31 struct pnfs_ff_layout *fl; in nfsd4_ff_proc_layoutget() local 39 fl = kzalloc_obj(*fl); 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 …]
|
| H 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 = svcxdr_encode_deviceid4(p, &fl->deviceid); in nfsd4_ff_encode_layoutget() 61 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget() 62 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget() 66 p = xdr_encode_opaque(p, fl->fh.data, fl->fh.size); in nfsd4_ff_encode_layoutget() 71 *p++ = cpu_to_be32(fl->flags); in nfsd4_ff_encode_layoutget()
|
| /linux/net/l3mdev/ |
| H A D | l3mdev.c | 247 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() argument 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() 282 fl->flowi_flags |= FLOWI_FLAG_L3MDEV_OIF; in l3mdev_update_flow() 289 fl->flowi_oif = 0; in l3mdev_update_flow() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | sge.c | 559 static inline void __refill_fl(struct adapter *adap, struct sge_fl *fl) in __refill_fl() argument 561 refill_fl(adap, fl, min(MAX_RX_REFILL, fl->size - fl->credits), in __refill_fl() 653 memset(q->fl, 0, sizeof(struct sge_fl) * SGE_RXQ_PER_SET); in t3_reset_qset() 678 if (q->fl[i].desc) { in t3_free_qset() 680 t3_sge_disable_fl(adapter, q->fl[i].cntxt_id); in t3_free_qset() 682 free_rx_bufs(pdev, &q->fl[i]); in t3_free_qset() 683 kfree(q->fl[i].sdesc); in t3_free_qset() 685 q->fl[i].size * in t3_free_qset() 686 sizeof(struct rx_desc), q->fl[i].desc, in t3_free_qset() 687 q->fl[i].phys_addr); in t3_free_qset() [all …]
|
| /linux/net/xfrm/ |
| H A D | xfrm_policy.c | 217 __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_selector_match() argument 219 const struct flowi4 *fl4 = &fl->u.ip4; in __xfrm4_selector_match() 223 !((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm4_selector_match() 224 !((xfrm_flowi_sport(fl, &fl4->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm4_selector_match() 230 __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_selector_match() argument 232 const struct flowi6 *fl6 = &fl->u.ip6; in __xfrm6_selector_match() 236 !((xfrm_flowi_dport(fl, &fl6->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm6_selector_match() 237 !((xfrm_flowi_sport(fl, &fl6->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm6_selector_match() 242 bool xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl, in xfrm_selector_match() argument 247 return __xfrm4_selector_match(sel, fl); in xfrm_selector_match() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | rtlx.c | 244 size_t lx_write, fl = 0L; in rtlx_read() local 263 fl = min(count, (size_t)lx->buffer_size - lx->lx_read); in rtlx_read() 265 failed = copy_to_user(buff, lx->lx_buffer + lx->lx_read, fl); in rtlx_read() 270 if (count - fl) in rtlx_read() 271 failed = copy_to_user(buff + fl, lx->lx_buffer, count - fl); in rtlx_read() 289 size_t fl; in rtlx_write() local 305 fl = min(count, (size_t) rt->buffer_size - rt->rt_write); in rtlx_write() 307 failed = copy_from_user(rt->rt_buffer + rt->rt_write, buffer, fl); in rtlx_write() 312 if (count - fl) in rtlx_write() 313 failed = copy_from_user(rt->rt_buffer, buffer + fl, count - fl); in rtlx_write()
|
| /linux/include/linux/ |
| H A D | dlm_plock.h | 11 int cmd, struct file_lock *fl); 13 struct file_lock *fl); 15 struct file_lock *fl); 17 struct file_lock *fl);
|
| /linux/drivers/iio/adc/ |
| H A D | stm32-dfsdm-adc.c | 195 static int stm32_dfsdm_compute_osrs(struct stm32_dfsdm_filter *fl, in stm32_dfsdm_compute_osrs() argument 202 unsigned int p = fl->ford; /* filter order (ford) */ in stm32_dfsdm_compute_osrs() 203 struct stm32_dfsdm_filter_osr *flo = &fl->flo[fast]; in stm32_dfsdm_compute_osrs() 215 if (fl->ford == DFSDM_FASTSINC_ORDER) { in stm32_dfsdm_compute_osrs() 228 else if (fl->ford == DFSDM_FASTSINC_ORDER) in stm32_dfsdm_compute_osrs() 320 struct stm32_dfsdm_filter *fl = &adc->dfsdm->fl_list[adc->fl_id]; in stm32_dfsdm_compute_all_osrs() local 323 memset(&fl->flo[0], 0, sizeof(fl->flo[0])); in stm32_dfsdm_compute_all_osrs() 324 memset(&fl->flo[1], 0, sizeof(fl->flo[1])); in stm32_dfsdm_compute_all_osrs() 326 ret0 = stm32_dfsdm_compute_osrs(fl, 0, oversamp); in stm32_dfsdm_compute_all_osrs() 327 ret1 = stm32_dfsdm_compute_osrs(fl, 1, oversamp); in stm32_dfsdm_compute_all_osrs() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | sge.c | 1003 static void recycle_fl_buf(struct freelQ *fl, int idx) in recycle_fl_buf() argument 1005 struct freelQ_e *from = &fl->entries[idx]; in recycle_fl_buf() 1006 struct freelQ_e *to = &fl->entries[fl->pidx]; in recycle_fl_buf() 1008 fl->centries[fl->pidx] = fl->centries[idx]; in recycle_fl_buf() 1011 to->len_gen = G_CMD_LEN(from->len_gen) | V_CMD_GEN1(fl->genbit); in recycle_fl_buf() 1013 to->gen2 = V_CMD_GEN2(fl->genbit); in recycle_fl_buf() 1014 fl->credits++; in recycle_fl_buf() 1016 if (++fl->pidx == fl->size) { in recycle_fl_buf() 1017 fl->pidx = 0; in recycle_fl_buf() 1018 fl->genbit ^= 1; in recycle_fl_buf() [all …]
|
| /linux/net/ipv4/ |
| H A D | ip_vti.c | 170 struct flowi *fl) in vti_xmit() argument 185 fl->u.ip4.flowi4_oif = dev->ifindex; in vti_xmit() 186 fl->u.ip4.flowi4_flags |= FLOWI_FLAG_ANYSRC; in vti_xmit() 187 rt = __ip_route_output_key(dev_net(dev), &fl->u.ip4); in vti_xmit() 198 fl->u.ip6.flowi6_oif = dev->ifindex; in vti_xmit() 199 fl->u.ip6.flowi6_flags |= FLOWI_FLAG_ANYSRC; in vti_xmit() 200 dst = ip6_route_output(dev_net(dev), NULL, &fl->u.ip6); in vti_xmit() 217 dst = xfrm_lookup_route(tunnel->net, dst, fl, NULL, 0); in vti_xmit() 284 struct flowi fl; in vti_tunnel_xmit() local 289 memset(&fl, 0, sizeof(fl)); in vti_tunnel_xmit() [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | rtas_flash.c | 316 struct flash_block_list *fl; in rtas_flash_write() local 333 fl = uf->flist; in rtas_flash_write() 334 while (fl->next) in rtas_flash_write() 335 fl = fl->next; /* seek to last block_list for append */ in rtas_flash_write() 336 next_free = fl->num_blocks; in rtas_flash_write() 339 fl->next = kmem_cache_zalloc(flash_block_cache, GFP_KERNEL); in rtas_flash_write() 340 if (!fl->next) in rtas_flash_write() 342 fl = fl->next; in rtas_flash_write() 356 fl->blocks[next_free].data = p; in rtas_flash_write() 357 fl->blocks[next_free].length = count; in rtas_flash_write() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | sge.c | 221 static inline unsigned int fl_cap(const struct sge_fl *fl) in fl_cap() argument 223 return fl->size - 8; /* 1 descriptor = 8 buffers */ in fl_cap() 236 const struct sge_fl *fl) in fl_starving() argument 240 return fl->avail - fl->pend_cred <= s->fl_starve_thres; in fl_starving() 632 static inline void __refill_fl(struct adapter *adap, struct sge_fl *fl) in __refill_fl() argument 634 refill_fl(adap, fl, min(MAX_RX_REFILL, fl_cap(fl) - fl->avail), in __refill_fl() 3903 free_rx_bufs(q->adap, &rxq->fl, 1); in process_responses() 3912 rsd = &rxq->fl.sdesc[rxq->fl.cidx]; in process_responses() 3920 unmap_rx_buf(q->adap, &rxq->fl); in process_responses() 3942 restore_rx_bufs(&si, &rxq->fl, frags); in process_responses() [all …]
|
| H A D | cxgb4_debugfs.c | 2715 R("FL ID:", fl.cntxt_id); in sge_qinfo_show() 2716 R("FL size:", fl.size - 8); in sge_qinfo_show() 2717 R("FL pend:", fl.pend_cred); in sge_qinfo_show() 2718 R("FL avail:", fl.avail); in sge_qinfo_show() 2719 R("FL PIDX:", fl.pidx); in sge_qinfo_show() 2720 R("FL CIDX:", fl.cidx); in sge_qinfo_show() 2735 RL("FLAllocErr:", fl.alloc_failed); in sge_qinfo_show() 2736 RL("FLLrgAlcErr:", fl.large_alloc_failed); in sge_qinfo_show() 2737 RL("FLMapErr:", fl.mapping_err); in sge_qinfo_show() 2738 RL("FLLow:", fl.low); in sge_qinfo_show() [all …]
|