Home
last modified time | relevance | path

Searched refs:fl (Results 1 – 25 of 52) sorted by relevance

123

/linux-2.4.37.9/fs/
Dlocks.c144 static inline void locks_free_lock(struct file_lock *fl) in locks_free_lock() argument
146 if (fl == NULL) { in locks_free_lock()
150 if (waitqueue_active(&fl->fl_wait)) in locks_free_lock()
153 if (!list_empty(&fl->fl_block)) in locks_free_lock()
156 if (!list_empty(&fl->fl_link)) in locks_free_lock()
159 kmem_cache_free(filelock_cache, fl); in locks_free_lock()
162 void locks_init_lock(struct file_lock *fl) in locks_init_lock() argument
164 INIT_LIST_HEAD(&fl->fl_link); in locks_init_lock()
165 INIT_LIST_HEAD(&fl->fl_block); in locks_init_lock()
166 init_waitqueue_head(&fl->fl_wait); in locks_init_lock()
[all …]
/linux-2.4.37.9/net/ipv6/
Dip6_flowlabel.c64 struct ip6_flowlabel *fl; in __fl_lookup() local
66 for (fl=fl_ht[FL_HASH(label)]; fl; fl = fl->next) { in __fl_lookup()
67 if (fl->label == label) in __fl_lookup()
68 return fl; in __fl_lookup()
75 struct ip6_flowlabel *fl; in fl_lookup() local
78 fl = __fl_lookup(label); in fl_lookup()
79 if (fl) in fl_lookup()
80 atomic_inc(&fl->users); in fl_lookup()
82 return fl; in fl_lookup()
86 static void fl_free(struct ip6_flowlabel *fl) in fl_free() argument
[all …]
Dip6_output.c143 struct flowi fl; in ip6_route_me_harder() local
145 fl.proto = iph->nexthdr; in ip6_route_me_harder()
146 fl.fl6_dst = &iph->daddr; in ip6_route_me_harder()
147 fl.fl6_src = &iph->saddr; in ip6_route_me_harder()
148 fl.oif = skb->sk ? skb->sk->bound_dev_if : 0; in ip6_route_me_harder()
149 fl.fl6_flowlabel = 0; in ip6_route_me_harder()
150 fl.uli_u.ports.dport = 0; in ip6_route_me_harder()
151 fl.uli_u.ports.sport = 0; in ip6_route_me_harder()
153 dst = ip6_route_output(skb->sk, &fl); in ip6_route_me_harder()
187 int ip6_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl, in ip6_xmit() argument
[all …]
Dtcp_ipv6.c557 struct flowi fl; in tcp_v6_connect() local
568 fl.fl6_flowlabel = 0; in tcp_v6_connect()
570 fl.fl6_flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect()
571 IP6_ECN_flow_init(fl.fl6_flowlabel); in tcp_v6_connect()
572 if (fl.fl6_flowlabel&IPV6_FLOWLABEL_MASK) { in tcp_v6_connect()
574 flowlabel = fl6_sock_lookup(sk, fl.fl6_flowlabel); in tcp_v6_connect()
619 np->flow_label = fl.fl6_flowlabel; in tcp_v6_connect()
661 fl.proto = IPPROTO_TCP; in tcp_v6_connect()
662 fl.fl6_dst = &np->daddr; in tcp_v6_connect()
663 fl.fl6_src = saddr; in tcp_v6_connect()
[all …]
Dudp.c233 struct flowi fl; in udpv6_connect() local
251 fl.fl6_flowlabel = 0; in udpv6_connect()
253 fl.fl6_flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in udpv6_connect()
254 if (fl.fl6_flowlabel&IPV6_FLOWLABEL_MASK) { in udpv6_connect()
255 flowlabel = fl6_sock_lookup(sk, fl.fl6_flowlabel); in udpv6_connect()
316 fl.oif = np->mcast_oif; in udpv6_connect()
325 np->flow_label = fl.fl6_flowlabel; in udpv6_connect()
334 fl.proto = IPPROTO_UDP; in udpv6_connect()
335 fl.fl6_dst = &np->daddr; in udpv6_connect()
336 fl.fl6_src = &saddr; in udpv6_connect()
[all …]
Dicmp.c201 struct flowi *fl) in icmpv6_xrlim_allow() argument
219 dst = ip6_route_output(sk, fl); in icmpv6_xrlim_allow()
267 struct flowi fl; in icmpv6_send() local
327 fl.proto = IPPROTO_ICMPV6; in icmpv6_send()
328 fl.nl_u.ip6_u.daddr = &hdr->saddr; in icmpv6_send()
329 fl.nl_u.ip6_u.saddr = saddr; in icmpv6_send()
330 fl.oif = iif; in icmpv6_send()
331 fl.fl6_flowlabel = 0; in icmpv6_send()
332 fl.uli_u.icmpt.type = type; in icmpv6_send()
333 fl.uli_u.icmpt.code = code; in icmpv6_send()
[all …]
Draw.c518 struct flowi fl; in rawv6_sendmsg() local
540 fl.fl6_flowlabel = 0; in rawv6_sendmsg()
541 fl.oif = 0; in rawv6_sendmsg()
561 fl.fl6_flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in rawv6_sendmsg()
562 if (fl.fl6_flowlabel&IPV6_FLOWLABEL_MASK) { in rawv6_sendmsg()
563 flowlabel = fl6_sock_lookup(sk, fl.fl6_flowlabel); in rawv6_sendmsg()
578 fl.oif = sin6->sin6_scope_id; in rawv6_sendmsg()
585 fl.fl6_flowlabel = np->flow_label; in rawv6_sendmsg()
596 if (fl.oif == 0) in rawv6_sendmsg()
597 fl.oif = sk->bound_dev_if; in rawv6_sendmsg()
[all …]
Ddatagram.c66 void ipv6_local_error(struct sock *sk, int err, struct flowi *fl, u32 info) in ipv6_local_error() argument
81 memcpy(&iph->daddr, fl->fl6_dst, 16); in ipv6_local_error()
92 serr->port = fl->uli_u.ports.dport; in ipv6_local_error()
250 int datagram_send_ctl(struct msghdr *msg, struct flowi *fl, in datagram_send_ctl() argument
281 if (fl->oif && src_info->ipi6_ifindex != fl->oif) in datagram_send_ctl()
283 fl->oif = src_info->ipi6_ifindex; in datagram_send_ctl()
292 fl->fl6_src = &src_info->ipi6_addr; in datagram_send_ctl()
303 if (fl->fl6_flowlabel&IPV6_FLOWINFO_MASK) { in datagram_send_ctl()
304 if ((fl->fl6_flowlabel^*(u32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in datagram_send_ctl()
309 fl->fl6_flowlabel = IPV6_FLOWINFO_MASK & *(u32 *)CMSG_DATA(cmsg); in datagram_send_ctl()
/linux-2.4.37.9/fs/lockd/
Dsvclock.c108 struct file_lock *fl; in nlmsvc_lookup_block() local
111 file, lock->fl.fl_pid, in nlmsvc_lookup_block()
112 (long long)lock->fl.fl_start, in nlmsvc_lookup_block()
113 (long long)lock->fl.fl_end, lock->fl.fl_type); in nlmsvc_lookup_block()
115 fl = &block->b_call.a_args.lock.fl; in nlmsvc_lookup_block()
117 block->b_file, fl->fl_pid, in nlmsvc_lookup_block()
118 (long long)fl->fl_start, in nlmsvc_lookup_block()
119 (long long)fl->fl_end, fl->fl_type, in nlmsvc_lookup_block()
121 if (block->b_file == file && nlm_compare_locks(fl, &lock->fl)) { in nlmsvc_lookup_block()
189 locks_init_lock(&block->b_call.a_args.lock.fl); in nlmsvc_create_block()
[all …]
Dclntproc.c48 nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs() argument
55 memcpy(&lock->fh, NFS_FH(fl->fl_file->f_dentry->d_inode), sizeof(struct nfs_fh)); in nlmclnt_setlockargs()
60 locks_copy_lock(&lock->fl, fl); in nlmclnt_setlockargs()
70 locks_copy_lock(&call->a_args.lock.fl, &lock->fl); in nlmclnt_setgrantargs()
104 nlmclnt_proc(struct inode *inode, int cmd, struct file_lock *fl) in nlmclnt_proc() argument
148 && fl->fl_type == F_UNLCK in nlmclnt_proc()
163 locks_init_lock(&call->a_args.lock.fl); in nlmclnt_proc()
164 locks_init_lock(&call->a_res.lock.fl); in nlmclnt_proc()
169 nlmclnt_setlockargs(call, fl); in nlmclnt_proc()
172 if (fl->fl_type != F_UNLCK) { in nlmclnt_proc()
[all …]
Dxdr4.c125 struct file_lock *fl = &lock->fl; in nlm4_decode_lock() local
134 locks_init_lock(fl); in nlm4_decode_lock()
135 fl->fl_owner = current->files; in nlm4_decode_lock()
136 fl->fl_pid = ntohl(*p++); in nlm4_decode_lock()
137 fl->fl_flags = FL_POSIX; in nlm4_decode_lock()
138 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm4_decode_lock()
143 fl->fl_start = s64_to_loff_t(start); in nlm4_decode_lock()
146 fl->fl_end = OFFSET_MAX; in nlm4_decode_lock()
148 fl->fl_end = s64_to_loff_t(end); in nlm4_decode_lock()
158 struct file_lock *fl = &lock->fl; in nlm4_encode_lock() local
[all …]
Dclntlock.c51 nlmclnt_block(struct nlm_host *host, struct file_lock *fl, u32 *statp) in nlmclnt_block() argument
58 block.b_lock = fl; in nlmclnt_block()
92 if (pstate == host->h_state && (err = nlmclnt_cancel(host, fl)) < 0) in nlmclnt_block()
112 if (nlm_compare_locks(block->b_lock, &lock->fl)) in nlmclnt_grant()
142 struct file_lock *fl; in nlmclnt_mark_reclaim() local
147 fl = list_entry(tmp, struct file_lock, fl_link); in nlmclnt_mark_reclaim()
149 inode = fl->fl_file->f_dentry->d_inode; in nlmclnt_mark_reclaim()
152 if (fl->fl_u.nfs_fl.host != host) in nlmclnt_mark_reclaim()
154 if (!(fl->fl_u.nfs_fl.flags & NFS_LCK_GRANTED)) in nlmclnt_mark_reclaim()
156 fl->fl_u.nfs_fl.flags |= NFS_LCK_RECLAIM; in nlmclnt_mark_reclaim()
[all …]
Dxdr.c125 struct file_lock *fl = &lock->fl; in nlm_decode_lock() local
135 locks_init_lock(fl); in nlm_decode_lock()
136 fl->fl_owner = current->files; in nlm_decode_lock()
137 fl->fl_pid = ntohl(*p++); in nlm_decode_lock()
138 fl->fl_flags = FL_POSIX; in nlm_decode_lock()
139 fl->fl_type = F_RDLCK; /* as good as anything else */ in nlm_decode_lock()
144 fl->fl_start = s32_to_loff_t(start); in nlm_decode_lock()
147 fl->fl_end = OFFSET_MAX; in nlm_decode_lock()
149 fl->fl_end = s32_to_loff_t(end); in nlm_decode_lock()
159 struct file_lock *fl = &lock->fl; in nlm_encode_lock() local
[all …]
Dsvcsubs.c154 struct file_lock *fl; in nlm_traverse_locks() local
159 for (fl = inode->i_flock; fl; fl = fl->fl_next) { in nlm_traverse_locks()
160 if (!(fl->fl_flags & FL_LOCKD)) in nlm_traverse_locks()
165 lockhost = (struct nlm_host *) fl->fl_owner; in nlm_traverse_locks()
171 struct file_lock lock = *fl; in nlm_traverse_locks()
/linux-2.4.37.9/drivers/mtd/
Dredboot.c42 struct fis_list *fl = NULL, *tmp_fl; in parse_redboot_partitions() local
98 prev = &fl; in parse_redboot_partitions()
106 if (fl->img->flash_base) in parse_redboot_partitions()
109 for (tmp_fl = fl; tmp_fl->next; tmp_fl = tmp_fl->next) { in parse_redboot_partitions()
123 if (fl->img->flash_base) { in parse_redboot_partitions()
125 parts[0].size = fl->img->flash_base; in parse_redboot_partitions()
129 parts[i].size = fl->img->size; in parse_redboot_partitions()
130 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions()
133 strcpy(names, fl->img->name); in parse_redboot_partitions()
136 …if(fl->next && fl->img->flash_base + fl->img->size + master->erasesize < fl->next->img->flash_base… in parse_redboot_partitions()
[all …]
/linux-2.4.37.9/fs/nfs/
Dfile.c245 do_getlk(struct inode *inode, int cmd, struct file_lock *fl) in do_getlk() argument
250 status = nlmclnt_proc(inode, cmd, fl); in do_getlk()
256 do_unlk(struct inode *inode, int cmd, struct file_lock *fl) in do_unlk() argument
277 status = nlmclnt_proc(inode, cmd, fl); in do_unlk()
284 do_setlk(struct file *filp, int cmd, struct file_lock *fl) in do_setlk() argument
305 status = nlmclnt_proc(inode, cmd, fl); in do_setlk()
313 posix_lock_file(filp, fl, 0); in do_setlk()
335 nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument
341 fl->fl_type, fl->fl_flags, in nfs_lock()
342 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_mount.h113 #define XFS_SEND_DATA(mp, ev,vp,off,len,fl,lock) \ argument
114 (*(mp)->m_dm_ops.xfs_send_data)(ev,vp,off,len,fl,lock)
115 #define XFS_SEND_MMAP(mp, vma,fl) \ argument
116 (*(mp)->m_dm_ops.xfs_send_mmap)(vma,fl)
119 #define XFS_SEND_NAMESP(mp, ev,b1,r1,b2,r2,n1,n2,mode,rval,fl) \ argument
120 (*(mp)->m_dm_ops.xfs_send_namesp)(ev,NULL,b1,r1,b2,r2,n1,n2,mode,rval,fl)
121 #define XFS_SEND_PREUNMOUNT(mp, vfs,b1,r1,b2,r2,n1,n2,mode,rval,fl) \ argument
122 (*(mp)->m_dm_ops.xfs_send_namesp)(DM_EVENT_PREUNMOUNT,vfs,b1,r1,b2,r2,n1,n2,mode,rval,fl)
123 #define XFS_SEND_UNMOUNT(mp, vfsp,vp,right,mode,rval,fl) \ argument
124 (*(mp)->m_dm_ops.xfs_send_unmount)(vfsp,vp,right,mode,rval,fl)
[all …]
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dxfs_vfs.h160 #define VFS_MNTUPDATE(v, fl, args, rv) ((rv) = vfs_mntupdate(VHEAD(v), fl, args)) argument
167 #define VFS_GET_INODE(v, ino, fl) ( vfs_get_inode(VHEAD(v), ino,fl) ) argument
169 #define VFS_FORCE_SHUTDOWN(v, fl,f,l) ( vfs_force_shutdown(VHEAD(v), fl,f,l) ) argument
179 #define PVFS_MNTUPDATE(b, fl, args, rv) ((rv) = vfs_mntupdate(b, fl, args)) argument
186 #define PVFS_GET_INODE(b, ino,fl) ( vfs_get_inode(b, ino,fl) ) argument
188 #define PVFS_FORCE_SHUTDOWN(b, fl,f,l) ( vfs_force_shutdown(b, fl,f,l) ) argument
Dxfs_vfs.c95 int fl, in vfs_unmount() argument
103 return ((*bhvtovfsops(next)->vfs_unmount)(next, fl, cr)); in vfs_unmount()
109 int *fl, in vfs_mntupdate() argument
117 return ((*bhvtovfsops(next)->vfs_mntupdate)(next, fl, args)); in vfs_mntupdate()
150 int fl, in vfs_sync() argument
158 return ((*bhvtovfsops(next)->vfs_sync)(next, fl, cr)); in vfs_sync()
207 int fl) in vfs_get_inode() argument
213 return ((*bhvtovfsops(next)->vfs_get_inode)(next, ino, fl)); in vfs_get_inode()
234 int fl, in vfs_force_shutdown() argument
243 ((*bhvtovfsops(next)->vfs_force_shutdown)(next, fl, file, line)); in vfs_force_shutdown()
Dxfs_vnode.h321 #define VOP_READLINK(vp,uiop,fl,cr,rv) \ argument
322 rv = _VOP_(vop_readlink, vp)((vp)->v_fbhv,uiop,fl,cr)
337 #define VOP_FRLOCK(vp,c,fl,flags,offset,fr,rv) \ argument
338 rv = _VOP_(vop_frlock, vp)((vp)->v_fbhv,c,fl,flags,offset,fr)
341 #define VOP_ATTR_GET(vp, name, val, vallenp, fl, cred, rv) \ argument
342 rv = _VOP_(vop_attr_get, vp)((vp)->v_fbhv,name,val,vallenp,fl,cred)
343 #define VOP_ATTR_SET(vp, name, val, vallen, fl, cred, rv) \ argument
344 rv = _VOP_(vop_attr_set, vp)((vp)->v_fbhv,name,val,vallen,fl,cred)
347 #define VOP_ATTR_LIST(vp, buf, buflen, fl, cursor, cred, rv) \ argument
348 rv = _VOP_(vop_attr_list, vp)((vp)->v_fbhv,buf,buflen,fl,cursor,cred)
[all …]
/linux-2.4.37.9/net/sctp/
Dipv6.c168 struct flowi fl; in sctp_v6_xmit() local
170 memset(&fl, 0, sizeof(fl)); in sctp_v6_xmit()
172 fl.proto = sk->protocol; in sctp_v6_xmit()
177 fl.fl6_dst = &transport->ipaddr.v6.sin6_addr; in sctp_v6_xmit()
178 fl.fl6_src = &transport->saddr.v6.sin6_addr; in sctp_v6_xmit()
180 fl.fl6_flowlabel = np->flow_label; in sctp_v6_xmit()
181 IP6_ECN_flow_xmit(sk, fl.fl6_flowlabel); in sctp_v6_xmit()
182 if (ipv6_addr_type(fl.fl6_src) & IPV6_ADDR_LINKLOCAL) in sctp_v6_xmit()
183 fl.oif = transport->saddr.v6.sin6_scope_id; in sctp_v6_xmit()
185 fl.oif = sk->bound_dev_if; in sctp_v6_xmit()
[all …]
/linux-2.4.37.9/arch/sparc64/solaris/
Dsocket.c175 int fl = flags & (MSG_OOB|MSG_PEEK|MSG_DONTROUTE); in solaris_to_linux_msgflags() local
177 if (flags & MSG_SOL_EOR) fl |= MSG_EOR; in solaris_to_linux_msgflags()
178 if (flags & MSG_SOL_CTRUNC) fl |= MSG_CTRUNC; in solaris_to_linux_msgflags()
179 if (flags & MSG_SOL_TRUNC) fl |= MSG_TRUNC; in solaris_to_linux_msgflags()
180 if (flags & MSG_SOL_WAITALL) fl |= MSG_WAITALL; in solaris_to_linux_msgflags()
181 if (flags & MSG_SOL_DONTWAIT) fl |= MSG_DONTWAIT; in solaris_to_linux_msgflags()
182 return fl; in solaris_to_linux_msgflags()
187 int fl = flags & (MSG_OOB|MSG_PEEK|MSG_DONTROUTE); in linux_to_solaris_msgflags() local
189 if (flags & MSG_EOR) fl |= MSG_SOL_EOR; in linux_to_solaris_msgflags()
190 if (flags & MSG_CTRUNC) fl |= MSG_SOL_CTRUNC; in linux_to_solaris_msgflags()
[all …]
/linux-2.4.37.9/include/net/
Dipv6.h179 struct ip6_flowlabel *fl; member
184 struct ip6_flowlabel * fl,
191 static inline void fl6_sock_release(struct ip6_flowlabel *fl) in fl6_sock_release() argument
193 if (fl) in fl6_sock_release()
194 atomic_dec(&fl->users); in fl6_sock_release()
278 struct flowi *fl,
291 struct flowi *fl,
356 extern void ipv6_local_error(struct sock *sk, int err, struct flowi *fl, u32 info);
/linux-2.4.37.9/arch/ppc64/kernel/
Drtas_flash.c267 struct flash_block_list *fl; in rtas_flash_write() local
284 fl = uf->flist; in rtas_flash_write()
285 while (fl->next) in rtas_flash_write()
286 fl = fl->next; /* seek to last block_list for append */ in rtas_flash_write()
287 next_free = fl->num_blocks; in rtas_flash_write()
290 fl->next = (struct flash_block_list *)get_free_page(GFP_KERNEL); in rtas_flash_write()
291 if (!fl->next) in rtas_flash_write()
293 fl = fl->next; in rtas_flash_write()
307 fl->blocks[next_free].data = p; in rtas_flash_write()
308 fl->blocks[next_free].length = count; in rtas_flash_write()
[all …]
/linux-2.4.37.9/net/802/
Dllc_sendpdu.c114 unsigned short int fl; /* frame length == 802.3 "length" value */ in llc_sendpdu() local
117 fl = data_len + fr_length_encode[(int)type]; in llc_sendpdu()
118 skb = alloc_skb(16 + fl, GFP_ATOMIC); in llc_sendpdu()
123 fr = (frameptr) skb_put(skb, fl); in llc_sendpdu()
124 memset(fr, 0, fl); in llc_sendpdu()
163 lp->remote_mac, NULL, fl); in llc_sendpdu()

123