Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 1556) sorted by relevance

12345678910>>...63

/linux/include/linux/
H A Dref_tracker.h30 void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir);
31 void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...);
35 static inline void ref_tracker_dir_debugfs(struct ref_tracker_dir *dir) in ref_tracker_dir_debugfs() argument
40 void ref_tracker_dir_symlink(struct ref_tracker_dir *dir, const char *fmt, ...) in ref_tracker_dir_symlink() argument
58 static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, in ref_tracker_dir_init() argument
62 INIT_LIST_HEAD(&dir->list); in ref_tracker_dir_init()
63 INIT_LIST_HEAD(&dir->quarantine); in ref_tracker_dir_init()
64 spin_lock_init(&dir->lock); in ref_tracker_dir_init()
65 dir->quarantine_avail = quarantine_count; in ref_tracker_dir_init()
66 dir->dead = false; in ref_tracker_dir_init()
[all …]
H A Ddma-mapping.h170 size_t offset, size_t size, enum dma_data_direction dir,
173 enum dma_data_direction dir, unsigned long attrs);
175 enum dma_data_direction dir, unsigned long attrs);
177 enum dma_data_direction dir, unsigned long attrs);
179 int nents, enum dma_data_direction dir, unsigned long attrs);
181 int nents, enum dma_data_direction dir,
184 enum dma_data_direction dir, unsigned long attrs);
186 size_t size, enum dma_data_direction dir, unsigned long attrs);
188 enum dma_data_direction dir, unsigned long attrs);
213 enum dma_data_direction dir, gfp_t gfp, unsigned long attrs);
[all …]
/linux/lib/
H A Dref_tracker.c51 static inline void ref_tracker_debugfs_mark(struct ref_tracker_dir *dir) in ref_tracker_debugfs_mark() argument
56 __xa_set_mark(&debugfs_dentries, (unsigned long)dir, REF_TRACKER_DIR_DEAD); in ref_tracker_debugfs_mark()
60 __xa_set_mark(&debugfs_symlinks, (unsigned long)dir, REF_TRACKER_DIR_DEAD); in ref_tracker_debugfs_mark()
66 static inline void ref_tracker_debugfs_mark(struct ref_tracker_dir *dir) in ref_tracker_debugfs_mark() argument
72 ref_tracker_get_stats(struct ref_tracker_dir *dir, unsigned int limit) in ref_tracker_get_stats() argument
83 list_for_each_entry(tracker, &dir->list, head) { in ref_tracker_get_stats()
141 __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir, in __ref_tracker_dir_pr_ostream() argument
149 lockdep_assert_held(&dir->lock); in __ref_tracker_dir_pr_ostream()
151 if (list_empty(&dir->list)) in __ref_tracker_dir_pr_ostream()
154 stats = ref_tracker_get_stats(dir, display_limit); in __ref_tracker_dir_pr_ostream()
[all …]
/linux/include/trace/events/
H A Ddma.h18 #define decode_dma_data_direction(dir) \ argument
19 __print_symbolic(dir, \
43 size_t size, enum dma_data_direction dir, unsigned long attrs),
44 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs),
51 __field(enum dma_data_direction, dir)
60 __entry->dir = dir;
66 decode_dma_data_direction(__entry->dir),
76 size_t size, enum dma_data_direction dir, unsigned long attrs), \
77 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs))
83 enum dma_data_direction dir, unsigned long attrs),
[all …]
/linux/fs/adfs/
H A Ddir_fplus.c70 static u8 adfs_fplus_checkbyte(struct adfs_dir *dir) in adfs_fplus_checkbyte() argument
72 struct adfs_bigdirheader *h = dir->bighead; in adfs_fplus_checkbyte()
73 struct adfs_bigdirtail *t = dir->bigtail; in adfs_fplus_checkbyte()
83 bp = (void *)dir->bhs[bi]->b_data; in adfs_fplus_checkbyte()
84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte()
104 unsigned int size, struct adfs_dir *dir) in adfs_fplus_read() argument
112 ret = adfs_dir_read_buffers(sb, indaddr, sb->s_blocksize, dir); in adfs_fplus_read()
116 dir->bighead = h = (void *)dir->bhs[0]->b_data; in adfs_fplus_read()
131 ret = adfs_dir_read_buffers(sb, indaddr, dirsize, dir); in adfs_fplus_read()
135 dir->bigtail = t = (struct adfs_bigdirtail *) in adfs_fplus_read()
[all …]
H A Ddir_f.c70 adfs_dir_checkbyte(const struct adfs_dir *dir) in adfs_dir_checkbyte() argument
72 struct buffer_head * const *bh = dir->bh; in adfs_dir_checkbyte()
73 const int blocksize_bits = dir->sb->s_blocksize_bits; in adfs_dir_checkbyte()
124 static int adfs_f_validate(struct adfs_dir *dir) in adfs_f_validate() argument
126 struct adfs_dirheader *head = dir->dirhead; in adfs_f_validate()
127 struct adfs_newdirtail *tail = dir->newtail; in adfs_f_validate()
134 adfs_dir_checkbyte(dir) != tail->dircheckbyte) in adfs_f_validate()
142 struct adfs_dir *dir) in adfs_f_read() argument
150 ret = adfs_dir_read_buffers(sb, indaddr, ADFS_NEWDIR_SIZE, dir); in adfs_f_read()
154 dir->dirhead = bufoff(dir->bh, 0); in adfs_f_read()
[all …]
/linux/fs/f2fs/
H A Ddir.c21 static inline bool f2fs_should_fallback_to_linear(struct inode *dir) in f2fs_should_fallback_to_linear() argument
23 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_should_fallback_to_linear()
64 int f2fs_init_casefolded_name(const struct inode *dir, in f2fs_init_casefolded_name() argument
67 struct super_block *sb = dir->i_sb; in f2fs_init_casefolded_name()
71 if (IS_CASEFOLDED(dir) && in f2fs_init_casefolded_name()
105 static int __f2fs_setup_filename(const struct inode *dir, in __f2fs_setup_filename() argument
122 err = f2fs_init_casefolded_name(dir, fname); in __f2fs_setup_filename()
127 f2fs_hash_filename(dir, fname); in __f2fs_setup_filename()
138 int f2fs_setup_filename(struct inode *dir, const struct qstr *iname, in f2fs_setup_filename() argument
144 err = fscrypt_setup_filename(dir, iname, lookup, &crypt_name); in f2fs_setup_filename()
[all …]
H A Dinline.c356 struct f2fs_dir_entry *f2fs_find_in_inline_dir(struct inode *dir, in f2fs_find_in_inline_dir() argument
361 struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb); in f2fs_find_in_inline_dir()
367 ifolio = f2fs_get_inode_folio(sbi, dir->i_ino); in f2fs_find_in_inline_dir()
373 inline_dentry = inline_data_addr(dir, ifolio); in f2fs_find_in_inline_dir()
375 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_find_in_inline_dir()
413 static int f2fs_move_inline_dirents(struct inode *dir, struct folio *ifolio, in f2fs_move_inline_dirents() argument
422 folio = f2fs_grab_cache_folio(dir->i_mapping, 0, true); in f2fs_move_inline_dirents()
428 set_new_dnode(&dn, dir, ifolio, NULL, 0); in f2fs_move_inline_dirents()
437 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()
454 make_dentry_ptr_inline(dir, &src, inline_dentry); in f2fs_move_inline_dirents()
[all …]
/linux/fs/ext4/
H A Dnamei.c294 static struct buffer_head * ext4_dx_find_entry(struct inode *dir,
298 struct inode *dir, struct inode *inode);
577 static inline unsigned dx_root_limit(struct inode *dir, unsigned infosize) in dx_root_limit() argument
579 unsigned int entry_space = dir->i_sb->s_blocksize - in dx_root_limit()
583 if (ext4_has_feature_metadata_csum(dir->i_sb)) in dx_root_limit()
588 static inline unsigned dx_node_limit(struct inode *dir) in dx_node_limit() argument
590 unsigned int entry_space = dir->i_sb->s_blocksize - in dx_node_limit()
591 ext4_dir_rec_len(0, dir); in dx_node_limit()
593 if (ext4_has_feature_metadata_csum(dir->i_sb)) in dx_node_limit()
621 static struct stats dx_show_leaf(struct inode *dir, in dx_show_leaf() argument
[all …]
/linux/drivers/dma/dw-edma/
H A Ddw-edma-v0-core.c42 #define SET_RW_32(dw, dir, name, value) \ argument
44 if ((dir) == EDMA_DIR_WRITE) \
50 #define GET_RW_32(dw, dir, name) \ argument
51 ((dir) == EDMA_DIR_WRITE \
67 #define SET_RW_64(dw, dir, name, value) \ argument
69 if ((dir) == EDMA_DIR_WRITE) \
75 #define GET_RW_64(dw, dir, name) \ argument
76 ((dir) == EDMA_DIR_WRITE \
89 #define SET_RW_COMPAT(dw, dir, name, value) \ argument
91 if ((dir) == EDMA_DIR_WRITE) \
[all …]
H A Ddw-hdma-v0-debugfs.c35 #define CTX_REGISTER(dw, name, dir, ch) \ argument
36 {#name, REGS_CH_ADDR(dw, name, dir, ch)}
79 static void dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, in dw_hdma_debugfs_regs_ch() argument
83 CTX_REGISTER(dw, ch_en, dir, ch), in dw_hdma_debugfs_regs_ch()
84 CTX_REGISTER(dw, doorbell, dir, ch), in dw_hdma_debugfs_regs_ch()
85 CTX_REGISTER(dw, prefetch, dir, ch), in dw_hdma_debugfs_regs_ch()
86 CTX_REGISTER(dw, handshake, dir, ch), in dw_hdma_debugfs_regs_ch()
87 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
89 CTX_REGISTER(dw, cycle_sync, dir, ch), in dw_hdma_debugfs_regs_ch()
[all …]
H A Ddw-hdma-v0-core.c32 __dw_ch_regs(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch) in __dw_ch_regs() argument
34 if (dir == EDMA_DIR_WRITE) in __dw_ch_regs()
40 #define SET_CH_32(dw, dir, ch, name, value) \ argument
41 writel(value, &(__dw_ch_regs(dw, dir, ch)->name))
43 #define GET_CH_32(dw, dir, ch, name) \ argument
44 readl(&(__dw_ch_regs(dw, dir, ch)->name))
75 static void dw_hdma_v0_core_ch_off(struct dw_edma *dw, enum dw_edma_dir dir, in dw_hdma_v0_core_ch_off() argument
78 SET_CH_32(dw, dir, id, int_setup, in dw_hdma_v0_core_ch_off()
80 SET_CH_32(dw, dir, id, ch_en, 0); in dw_hdma_v0_core_ch_off()
81 SET_CH_32(dw, dir, id, int_clear, in dw_hdma_v0_core_ch_off()
[all …]
/linux/kernel/dma/
H A Dmapping.c154 enum dma_data_direction dir, unsigned long attrs) in dma_map_phys() argument
161 BUG_ON(!valid_dma_direction(dir)); in dma_map_phys()
172 addr = dma_direct_map_phys(dev, phys, size, dir, attrs, true); in dma_map_phys()
176 addr = iommu_dma_map_phys(dev, phys, size, dir, attrs); in dma_map_phys()
178 addr = ops->map_phys(dev, phys, size, dir, attrs); in dma_map_phys()
181 kmsan_handle_dma(phys, size, dir); in dma_map_phys()
182 trace_dma_map_phys(dev, phys, addr, size, dir, attrs); in dma_map_phys()
183 debug_dma_map_phys(dev, phys, size, dir, addr, attrs); in dma_map_phys()
190 size_t offset, size_t size, enum dma_data_direction dir, in dma_map_page_attrs() argument
202 return dma_map_phys(dev, phys, size, dir, attrs); in dma_map_page_attrs()
[all …]
H A Ddirect.h21 size_t size, enum dma_data_direction dir,
25 enum dma_data_direction dir, unsigned long attrs);
32 int nents, enum dma_data_direction dir);
35 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument
44 int nents, enum dma_data_direction dir, unsigned long attrs);
46 struct scatterlist *sgl, int nents, enum dma_data_direction dir);
49 struct scatterlist *sgl, int nents, enum dma_data_direction dir, in dma_direct_unmap_sg() argument
54 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument
60 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_device() argument
64 swiotlb_sync_single_for_device(dev, paddr, size, dir); in dma_direct_sync_single_for_device()
[all …]
/linux/net/ipv4/netfilter/
H A Dnf_nat_h323.c98 int dir = CTINFO2DIR(ctinfo); in set_sig_addr() local
108 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr()
109 port == info->sig_port[dir]) { in set_sig_addr()
121 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr()
122 info->sig_port[!dir]); in set_sig_addr()
125 &ct->tuplehash[!dir]. in set_sig_addr()
127 info->sig_port[!dir]); in set_sig_addr()
128 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr()
129 port == info->sig_port[dir]) { in set_sig_addr()
133 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr()
[all …]
/linux/kernel/
H A Dsysctl.c76 static int _proc_do_string(char *data, int maxlen, int dir, in _proc_do_string() argument
87 if (SYSCTL_USER_TO_KERN(dir)) { in _proc_do_string()
175 * @dir: %TRUE if this is a write to the sysctl file
189 int proc_dostring(const struct ctl_table *table, int dir, in proc_dostring() argument
192 if (SYSCTL_USER_TO_KERN(dir)) in proc_dostring()
195 return _proc_do_string(table->data, table->maxlen, dir, buffer, lenp, in proc_dostring()
408 * @dir: %TRUE if this is a write to the sysctl file
419 int proc_uint_conv(ulong *u_ptr, uint *k_ptr, int dir, in proc_uint_conv() argument
424 if (SYSCTL_KERN_TO_USER(dir)) in proc_uint_conv()
452 static int do_proc_uint_conv(bool *negp, ulong *u_ptr, uint *k_ptr, int dir, in do_proc_uint_conv() argument
460 do_proc_uint_conv_minmax(bool * negp,ulong * u_ptr,uint * k_ptr,int dir,const struct ctl_table * tbl) do_proc_uint_conv_minmax() argument
540 proc_int_conv(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl,bool k_ptr_range_check,int (* user_to_kern)(const bool * negp,const ulong * u_ptr,int * k_ptr),int (* kern_to_user)(bool * negp,ulong * u_ptr,const int * k_ptr)) proc_int_conv() argument
579 do_proc_int_conv(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv() argument
588 do_proc_int_conv_minmax(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_minmax() argument
626 proc_vec_conv(enum proc_vec_type type,union proc_vec_conv conv,bool * negp,ulong * u_ptr,char * k_ptr,int dir,const struct ctl_table * table) proc_vec_conv() argument
646 do_proc_vec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,enum proc_vec_type type,union proc_vec_conv conv) do_proc_vec() argument
754 proc_douintvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,uint * k_ptr,int dir,const struct ctl_table * table)) proc_douintvec_conv() argument
783 proc_dobool(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument
820 proc_dointvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument
840 proc_douintvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument
864 proc_dointvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument
891 proc_douintvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument
916 proc_dou8vec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument
964 proc_ulong_conv(ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * tbl,bool k_ptr_range_check,int (* user_to_kern)(const ulong * u_ptr,ulong * k_ptr),int (* kern_to_user)(ulong * u_ptr,const ulong * k_ptr)) proc_ulong_conv() argument
1041 do_proc_ulong_conv(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * tbl) do_proc_ulong_conv() argument
1064 proc_doulongvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * table)) proc_doulongvec_conv() argument
1089 proc_doulongvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument
1110 proc_dointvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * table)) proc_dointvec_conv() argument
1138 proc_do_large_bitmap(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument
1270 proc_dostring(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument
1276 proc_dobool(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument
1282 proc_dointvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument
1288 proc_douintvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument
1294 proc_dointvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument
1300 proc_douintvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument
1325 proc_uint_conv(ulong * u_ptr,uint * k_ptr,int dir,const struct ctl_table * tbl,bool k_ptr_range_check,int (* user_to_kern)(const ulong * u_ptr,uint * k_ptr),int (* kern_to_user)(ulong * u_ptr,const uint * k_ptr)) proc_uint_conv() argument
1333 proc_dou8vec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument
1339 proc_doulongvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument
1345 proc_doulongvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * table)) proc_doulongvec_conv() argument
1353 proc_dointvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * table)) proc_dointvec_conv() argument
1361 proc_do_large_bitmap(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument
1370 proc_do_static_key(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_static_key() argument
[all...]
/linux/tools/power/cpupower/bench/
H A Dcpufreq-bench_plot.sh9 dir=`mktemp -d`
63 echo "set terminal $picture_type" >> $dir/plot_script.gpl
64 echo "set output \"$output_file\"" >> $dir/plot_script.gpl
65 echo "set title \"$global_title\"" >> $dir/plot_script.gpl
66 echo "set xlabel \"sleep/load time\"" >> $dir/plot_script.gpl
67 echo "set ylabel \"Performance (%)\"" >> $dir/plot_script.gpl
78 cat ${file[$plot]} |grep -v "^#" |awk '{printf "%lu %.1f\n",$2/1000, $6}' >$dir/data_$plot
81 echo -n "plot " >> $dir/plot_script.gpl
83 echo -n "\"$dir/data_$plot\" title \"${title[$plot]}\" with lines" >> $dir/plot_script.gpl
85 echo -n ", " >> $dir/plot_script.gpl
[all …]
/linux/fs/ufs/
H A Ddir.c49 struct inode *dir = mapping->host; in ufs_commit_chunk() local
51 inode_inc_iversion(dir); in ufs_commit_chunk()
53 if (pos+len > dir->i_size) { in ufs_commit_chunk()
54 i_size_write(dir, pos+len); in ufs_commit_chunk()
55 mark_inode_dirty(dir); in ufs_commit_chunk()
60 static int ufs_handle_dirsync(struct inode *dir) in ufs_handle_dirsync() argument
64 err = filemap_write_and_wait(dir->i_mapping); in ufs_handle_dirsync()
66 err = sync_inode_metadata(dir, 1); in ufs_handle_dirsync()
70 ino_t ufs_inode_by_name(struct inode *dir, const struct qstr *qstr) in ufs_inode_by_name() argument
76 de = ufs_find_entry(dir, qstr, &folio); in ufs_inode_by_name()
[all …]
/linux/fs/ceph/
H A Dcrypto.c102 int ceph_fscrypt_prepare_context(struct inode *dir, struct inode *inode, in ceph_fscrypt_prepare_context() argument
109 ret = fscrypt_prepare_new_inode(dir, inode, &encrypted); in ceph_fscrypt_prepare_context()
165 struct inode *dir = NULL; in parse_longname() local
196 dir = ceph_find_inode(parent->i_sb, vino); in parse_longname()
197 if (!dir) { in parse_longname()
199 dir = ceph_get_inode(parent->i_sb, vino, NULL); in parse_longname()
200 if (IS_ERR(dir)) in parse_longname()
203 return dir; in parse_longname()
209 struct inode *dir = parent; in ceph_encode_encrypted_dname() local
217 if (ceph_snap(dir) == CEPH_SNAPDIR && *p == '_') { in ceph_encode_encrypted_dname()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_nat.sh124 for dir in "in" "out" ; do
126 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}" | grep -q "$expect";then
127 bad_counter "$ns0" "$ns${dir}" "$expect" "check_ns0_counters 4"
132 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}6" | grep -q "$expect";then
133 bad_counter "$ns0" "$ns${dir}6" "$expect" "check_ns0_counters 5"
179 for dir in "in6" "out6" ; do
180 if ! ip netns exec "$ns0" nft list counter inet filter "ns1${dir}" | grep -q "$expect";then
181 bad_counter "$ns0" ns1$dir "$expect" "test_local_dnat6 1"
187 for dir in "in6" "out6" ; do
188 if ! ip netns exec "$ns0" nft list counter inet filter "ns2${dir}" | gre
[all...]
/linux/net/netfilter/
H A Dnf_flow_table_path.c29 enum ip_conntrack_dir dir) in nft_default_forward_path() argument
31 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path()
32 route->tuple[dir].dst = dst_cache; in nft_default_forward_path()
33 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path()
47 enum ip_conntrack_dir dir, in nft_dev_fill_forward_path() argument
51 const void *daddr = &ct->tuplehash[!dir].tuple.src.u3; in nft_dev_fill_forward_path()
227 enum ip_conntrack_dir dir, in nft_dev_forward_path()
230 const struct dst_entry *dst = route->tuple[dir].dst; in nft_dev_forward_path()
236 if (nft_dev_fill_forward_path(dst, ct, dir, ha, pkt->ethertype, &stack) < 0 || in nft_dev_forward_path()
240 route->tuple[!dir] in nft_dev_forward_path()
224 nft_dev_forward_path(const struct nft_pktinfo * pkt,struct nf_flow_route * route,const struct nf_conn * ct,enum ip_conntrack_dir dir,struct nft_flowtable * ft) nft_dev_forward_path() argument
268 nft_flow_route(const struct nft_pktinfo * pkt,const struct nf_conn * ct,struct nf_flow_route * route,enum ip_conntrack_dir dir,struct nft_flowtable * ft) nft_flow_route() argument
[all...]
/linux/tools/perf/trace/beauty/
H A Dioctl.c21 static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_tty_cmd() argument
44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd()
47 static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_drm_cmd() argument
55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd()
58 static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_pcm_cmd() argument
66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd()
69 static size_t ioctl__scnprintf_sndrv_ctl_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_ctl_cmd() argument
77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd()
80 static size_t ioctl__scnprintf_kvm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_kvm_cmd() argument
88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd()
[all …]
/linux/kernel/time/
H A Djiffies.c162 int dir, const struct ctl_table *tbl) in do_proc_int_conv_jiffies()
164 return proc_int_conv(negp, u_ptr, k_ptr, dir, tbl, false, in do_proc_int_conv_jiffies()
169 int *k_ptr, int dir, in do_proc_int_conv_userhz_jiffies()
172 return proc_int_conv(negp, u_ptr, k_ptr, dir, tbl, false, in do_proc_int_conv_userhz_jiffies()
178 int dir, const struct ctl_table *tbl) in do_proc_int_conv_ms_jiffies()
180 return proc_int_conv(negp, u_ptr, k_ptr, dir, tbl, false, in do_proc_int_conv_ms_jiffies()
185 int *k_ptr, int dir, in do_proc_int_conv_ms_jiffies_minmax()
188 return proc_int_conv(negp, u_ptr, k_ptr, dir, tbl, true, in do_proc_int_conv_ms_jiffies_minmax()
203 int dir, const struct ctl_table *tbl) in do_proc_ulong_conv_ms_jiffies_minmax()
205 return proc_ulong_conv(u_ptr, k_ptr, dir, tb in do_proc_ulong_conv_ms_jiffies_minmax()
160 do_proc_int_conv_jiffies(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_jiffies() argument
167 do_proc_int_conv_userhz_jiffies(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_userhz_jiffies() argument
176 do_proc_int_conv_ms_jiffies(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_ms_jiffies() argument
183 do_proc_int_conv_ms_jiffies_minmax(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_ms_jiffies_minmax() argument
201 do_proc_ulong_conv_ms_jiffies_minmax(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * tbl) do_proc_ulong_conv_ms_jiffies_minmax() argument
209 do_proc_int_conv_jiffies(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_jiffies() argument
215 do_proc_int_conv_userhz_jiffies(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_userhz_jiffies() argument
222 do_proc_int_conv_ms_jiffies(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_ms_jiffies() argument
228 do_proc_int_conv_ms_jiffies_minmax(bool * negp,ulong * u_ptr,int * k_ptr,int dir,const struct ctl_table * tbl) do_proc_int_conv_ms_jiffies_minmax() argument
235 do_proc_ulong_conv_ms_jiffies_minmax(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * tbl) do_proc_ulong_conv_ms_jiffies_minmax() argument
256 proc_dointvec_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_jiffies() argument
279 proc_dointvec_userhz_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_userhz_jiffies() argument
302 proc_dointvec_ms_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies() argument
310 proc_dointvec_ms_jiffies_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies_minmax() argument
334 proc_doulongvec_ms_jiffies_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_ms_jiffies_minmax() argument
[all...]
/linux/drivers/soundwire/
H A Dsysfs_slave_dpn.c15 int dir; member
29 int N, int dir, \
38 dpn_attr->dir = dir; \
54 int dir, \
63 if (dir) { \
91 dpn_attr->N, dpn_attr->dir, \
114 int dir, \
125 if (dir) { \
156 dpn_attr->N, dpn_attr->dir, \
166 static int add_all_attributes(struct device *dev, int N, int dir) in add_all_attributes() argument
[all …]
/linux/fs/nfs/
H A Ddir.c58 static int nfs_do_create(struct inode *dir, struct dentry *dentry,
77 alloc_nfs_open_dir_context(struct inode *dir) in alloc_nfs_open_dir_context() argument
79 struct nfs_inode *nfsi = NFS_I(dir); in alloc_nfs_open_dir_context()
85 ctx->dtsize = min(NFS_SERVER(dir)->dtsize, NFS_INIT_DTSIZE); in alloc_nfs_open_dir_context()
86 spin_lock(&dir->i_lock); in alloc_nfs_open_dir_context()
89 nfs_set_cache_invalid(dir, in alloc_nfs_open_dir_context()
94 spin_unlock(&dir->i_lock); in alloc_nfs_open_dir_context()
100 static void put_nfs_open_dir_context(struct inode *dir, struct nfs_open_dir_context *ctx) in put_nfs_open_dir_context() argument
102 spin_lock(&dir->i_lock); in put_nfs_open_dir_context()
104 spin_unlock(&dir->i_lock); in put_nfs_open_dir_context()
[all …]

12345678910>>...63