/linux-master/sound/usb/line6/ |
H A D | pcm.c | 304 int ret = 0, dir; local 308 for (dir = 0; dir < 2; dir++) { 309 pstr = get_stream(line6pcm, dir); 310 ret = line6_buffer_acquire(line6pcm, pstr, dir, type); 317 for (dir = 0; dir < 2; dir++) { 318 ret = line6_stream_start(line6pcm, dir, typ 335 int dir; local [all...] |
/linux-master/drivers/iio/light/ |
H A D | max44009.c | 87 .dir = IIO_EV_DIR_RISING, 93 .dir = IIO_EV_DIR_FALLING, 326 static int max44009_get_thr_reg(enum iio_event_direction dir) argument 328 switch (dir) { 341 enum iio_event_direction dir, 355 reg = max44009_get_thr_reg(dir); 363 enum iio_event_direction dir) 369 reg = max44009_get_thr_reg(dir); 384 if (dir == IIO_EV_DIR_RISING) 400 enum iio_event_direction dir, 338 max44009_write_event_value(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, enum iio_event_info info, int val, int val2) argument 362 max44009_read_threshold(struct iio_dev *indio_dev, enum iio_event_direction dir) argument 397 max44009_read_event_value(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, enum iio_event_info info, int *val, int *val2) argument 421 max44009_write_event_config(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, int state) argument 446 max44009_read_event_config(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir) argument [all...] |
H A D | cm3605.c | 42 * @dir: proximity direction: start as FALLING 51 enum iio_event_direction dir; member in struct:cm3605 62 IIO_EV_TYPE_THRESH, cm3605->dir); 66 if (cm3605->dir == IIO_EV_DIR_RISING) 67 cm3605->dir = IIO_EV_DIR_FALLING; 69 cm3605->dir = IIO_EV_DIR_RISING; 137 .dir = IIO_EV_DIR_EITHER, 172 cm3605->dir = IIO_EV_DIR_FALLING;
|
/linux-master/fs/affs/ |
H A D | inode.c | 291 affs_new_inode(struct inode *dir) argument 293 struct super_block *sb = dir->i_sb; 301 if (!(block = affs_alloc_block(dir, dir->i_ino))) 348 affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s32 type) argument 350 struct super_block *sb = dir->i_sb; 356 pr_debug("%s(dir=%lu, inode=%lu, \"%pd\", type=%d)\n", __func__, 357 dir->i_ino, inode->i_ino, dentry, type); 369 block = affs_alloc_block(dir, dir [all...] |
/linux-master/fs/btrfs/ |
H A D | dir-item.c | 11 #include "dir-item.h" 19 * The name is not copied into the dir item, you have to do that yourself. 103 * both indexes. 'dir' indicates which objectid to insert it into, 110 const struct fscrypt_str *name, struct btrfs_inode *dir, 115 struct btrfs_root *root = dir->root; 124 key.objectid = btrfs_ino(dir); 144 if (IS_ENCRYPTED(&dir->vfs_inode)) 166 ret2 = btrfs_insert_delayed_dir_index(trans, name->name, name->len, dir, 202 * @dir: The inode number (objectid) of the directory. 209 * Returns: NULL if the dir ite 109 btrfs_insert_dir_item(struct btrfs_trans_handle *trans, const struct fscrypt_str *name, struct btrfs_inode *dir, struct btrfs_key *location, u8 type, u64 index) argument 212 btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const struct fscrypt_str *name, int mod) argument 233 btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, const struct fscrypt_str *name) argument 308 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, u64 index, const struct fscrypt_str *name, int mod) argument 356 btrfs_lookup_xattr(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod) argument [all...] |
H A D | export.c | 148 struct inode *dir = d_inode(child); local 149 struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); 150 struct btrfs_root *root = BTRFS_I(dir)->root; 162 if (btrfs_ino(BTRFS_I(dir)) == BTRFS_FIRST_FREE_OBJECTID) { 168 key.objectid = btrfs_ino(BTRFS_I(dir)); 223 struct inode *dir = d_inode(parent); local 226 struct btrfs_root *root = BTRFS_I(dir)->root; 236 if (!S_ISDIR(dir->i_mode)) 252 key.offset = btrfs_ino(BTRFS_I(dir));
|
/linux-master/fs/crypto/ |
H A D | fname.c | 417 * @dir: the directory that will be searched 438 int fscrypt_setup_filename(struct inode *dir, const struct qstr *iname, argument 447 if (!IS_ENCRYPTED(dir) || fscrypt_is_dot_dotdot(iname)) { 452 ret = fscrypt_get_encryption_info(dir, lookup); 456 if (fscrypt_has_encryption_key(dir)) { 457 if (!fscrypt_fname_encrypted_size(dir, iname->len, NAME_MAX, 465 ret = fscrypt_fname_encrypt(dir, iname, fname->crypto_buf.name, 554 * @dir: the parent directory 557 * Given a plaintext filename @name and a directory @dir which uses SipHash as 561 * Return: the SipHash of @name using the hash key of @dir 563 fscrypt_fname_siphash(const struct inode *dir, const struct qstr *name) argument 579 struct dentry *dir; local [all...] |
/linux-master/net/netfilter/ |
H A D | nf_nat_proto.c | 421 enum ip_conntrack_dir dir) 426 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); 568 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); local 595 if (dir == IP_CT_DIR_REPLY) 602 &ct->tuplehash[!dir].tuple, !manip)) 615 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); 703 enum ip_conntrack_dir dir; local 718 dir = CTINFO2DIR(ctinfo); 719 if (dir != IP_CT_DIR_ORIGINAL) 722 return ct->tuplehash[!dir] 419 nf_nat_manip_pkt(struct sk_buff *skb, struct nf_conn *ct, enum nf_nat_manip_type mtype, enum ip_conntrack_dir dir) argument 775 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); local 806 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); local 883 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); local 1034 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); local 1066 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); local [all...] |
/linux-master/fs/ |
H A D | namei.c | 1565 struct dentry *dir, 1568 struct dentry *dentry = d_lookup(dir, name); 1594 struct inode *dir = base->d_inode; local 1600 if (unlikely(IS_DEADDIR(dir))) 1607 old = dir->i_op->lookup(dir, dentry, flags); 1666 struct dentry *dir, 1670 struct inode *inode = dir->d_inode; 1677 dentry = d_alloc_parallel(dir, name, &wq); 1703 struct dentry *dir, 1564 lookup_dcache(const struct qstr *name, struct dentry *dir, unsigned int flags) argument 1665 __lookup_slow(const struct qstr *name, struct dentry *dir, unsigned int flags) argument 1702 lookup_slow(const struct qstr *name, struct dentry *dir, unsigned int flags) argument 2936 __check_sticky(struct mnt_idmap *idmap, struct inode *dir, struct inode *inode) argument 2969 may_delete(struct mnt_idmap *idmap, struct inode *dir, struct dentry *victim, bool isdir) argument 3021 may_create(struct mnt_idmap *idmap, struct inode *dir, struct dentry *child) argument 3158 vfs_prepare_mode(struct mnt_idmap *idmap, const struct inode *dir, umode_t mode, umode_t mask_perms, umode_t type) argument 3191 vfs_create(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, bool want_excl) argument 3218 struct inode *dir = dentry->d_parent->d_inode; local 3323 may_o_create(struct mnt_idmap *idmap, const struct path *dir, struct dentry *dentry, umode_t mode) argument 3360 struct inode *dir = nd->path.dentry->d_inode; local 3415 struct dentry *dir = nd->path.dentry; local 3524 struct dentry *dir = nd->path.dentry; local 3684 struct inode *dir = d_inode(parentpath->dentry); local 3984 vfs_mknod(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) argument 4110 vfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode) argument 4191 vfs_rmdir(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry) argument 4320 vfs_unlink(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, struct inode **delegated_inode) argument 4473 vfs_symlink(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, const char *oldname) argument 4565 vfs_link(struct dentry *old_dentry, struct mnt_idmap *idmap, struct inode *dir, struct dentry *new_dentry, struct inode **delegated_inode) argument [all...] |
/linux-master/tools/hv/ |
H A D | hv_vss_daemon.c | 34 static int vss_do_freeze(char *dir, unsigned int cmd) argument 36 int ret, fd = open(dir, O_RDONLY); 67 DIR *dir; local 87 dir = opendir(buffer); 88 if (!dir) { 95 while ((entry = readdir(dir)) != NULL) { 107 closedir(dir);
|
/linux-master/drivers/usb/gadget/function/ |
H A D | u_uac1_legacy.c | 41 int dir) 46 if (val == 0 && dir < 0) { 50 if (dir > 0) 52 else if (dir < 0) 59 if (val == 0 && dir < 0) { 62 } else if (dir == 0) 70 if (dir < 0) { 39 _snd_pcm_hw_param_set(struct snd_pcm_hw_params *params, snd_pcm_hw_param_t var, unsigned int val, int dir) argument
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mcs_cnf10kb.c | 73 void cnf10kb_mcs_flowid_secy_map(struct mcs *mcs, struct secy_mem_map *map, int dir) argument 78 if (dir == MCS_RX) { 220 enum mcs_direction dir) 239 event.intr_mask = (dir == MCS_RX) ? 243 event.intr_mask = (dir == MCS_RX) ? 254 enum mcs_direction dir) 269 event.intr_mask = (dir == MCS_RX) ? 219 cnf10kb_mcs_bbe_intr_handler(struct mcs *mcs, u64 intr, enum mcs_direction dir) argument 253 cnf10kb_mcs_pab_intr_handler(struct mcs *mcs, u64 intr, enum mcs_direction dir) argument
|
/linux-master/drivers/spi/ |
H A D | spi-rpc-if.c | 44 switch (spi_op->data.dir) { 46 rpc_op.data.dir = RPCIF_DATA_IN; 50 rpc_op.data.dir = RPCIF_DATA_OUT; 54 rpc_op.data.dir = RPCIF_NO_DATA; 58 rpc_op.data.dir = RPCIF_NO_DATA; 103 if (!rpc->dirmap && desc->info.op_tmpl.data.dir == SPI_MEM_DATA_IN) 106 if (desc->info.op_tmpl.data.dir == SPI_MEM_DATA_OUT)
|
/linux-master/arch/powerpc/include/asm/book3s/64/ |
H A D | kup.h | 357 unsigned long size, unsigned long dir) 362 BUILD_BUG_ON(!__builtin_constant_p(dir)); 367 if (dir == KUAP_READ) 369 else if (dir == KUAP_WRITE) 371 else if (dir == KUAP_READ_WRITE) 387 unsigned long size, unsigned long dir) 392 static __always_inline void prevent_user_access(unsigned long dir)
|
/linux-master/drivers/input/misc/ |
H A D | rotary_encoder.c | 51 signed char dir; /* 1 - clockwise, -1 - CCW */ member in struct:rotary_encoder 78 encoder->axis, encoder->dir); 82 if (encoder->dir < 0) { 124 encoder->dir = 2 - state; 147 encoder->dir = ((encoder->last_stable - state + 1) % 4) - 1; 170 encoder->dir = 1; 172 encoder->dir = -1;
|
/linux-master/drivers/comedi/drivers/ |
H A D | comedi_8255.c | 37 int (*io)(struct comedi_device *dev, int dir, int port, int data, 44 int dir, int port, int data, unsigned long regbase) 46 if (dir) { 56 int dir, int port, int data, unsigned long regbase) 58 if (dir) { 148 int dir, int port, int data, 226 * int my_8255_callback(struct comedi_device *dev, int dir, int port, 230 * 'port' is the 8255 port number 0 to 3 (including the control port), 'dir' 238 int (*io)(struct comedi_device *dev, int dir, int port, 43 subdev_8255_io(struct comedi_device *dev, int dir, int port, int data, unsigned long regbase) argument 55 subdev_8255_mmio(struct comedi_device *dev, int dir, int port, int data, unsigned long regbase) argument 145 __subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, int (*io)(struct comedi_device *dev, int dir, int port, int data, unsigned long context), unsigned long context) argument 237 subdev_8255_cb_init(struct comedi_device *dev, struct comedi_subdevice *s, int (*io)(struct comedi_device *dev, int dir, int port, int data, unsigned long context), unsigned long context) argument
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_mirror.c | 80 static void sparx5_mirror_dir_set(struct sparx5 *sparx5, u32 idx, u32 dir) argument 82 spx5_rmw(ANA_AC_PROBE_CFG_PROBE_DIRECTION_SET(dir), 114 struct sparx5_port *mport, u32 dir, u32 *idx) 128 if (sparx5_mirror_dir_get(sparx5, i) == dir && 148 u32 mirror_idx, dir = sparx5_mirror_to_dir(entry->ingress); local 162 err = sparx5_mirror_get(sport, mport, dir, &mirror_idx); 173 sparx5_mirror_dir_set(sparx5, mirror_idx, dir); 113 sparx5_mirror_get(struct sparx5_port *sport, struct sparx5_port *mport, u32 dir, u32 *idx) argument
|
/linux-master/include/trace/events/ |
H A D | asoc.h | 13 #define DAPM_ARROW(dir) (((dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-") 167 enum snd_soc_dapm_direction dir, 170 TP_ARGS(widget, dir, path), 175 __string( pnname, path->node[dir]->name ) 186 __entry->path_node = (long)path->node[dir]; 187 __entry->path_dir = dir;
|
/linux-master/fs/gfs2/ |
H A D | inode.c | 27 #include "dir.h" 296 * @dir: The inode of the directory containing the inode to look-up 308 struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, argument 311 struct super_block *sb = dir->i_sb; 312 struct gfs2_inode *dip = GFS2_I(dir); 323 dir == d_inode(sb->s_root))) { 324 igrab(dir); 325 return dir; 335 error = gfs2_permission(&nop_mnt_idmap, dir, MAY_EXEC); 340 inode = gfs2_dir_search(dir, nam 620 gfs2_create_inode(struct inode *dir, struct dentry *dentry, struct file *file, umode_t mode, dev_t dev, const char *symname, unsigned int size, int excl) argument 871 gfs2_create(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) argument 887 __gfs2_lookup(struct inode *dir, struct dentry *dentry, struct file *file) argument 927 gfs2_lookup(struct inode *dir, struct dentry *dentry, unsigned flags) argument 945 gfs2_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) argument 1148 gfs2_unlink(struct inode *dir, struct dentry *dentry) argument 1231 gfs2_symlink(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, const char *symname) argument 1253 gfs2_mkdir(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode) argument 1270 gfs2_mknod(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) argument 1287 gfs2_atomic_open(struct inode *dir, struct dentry *dentry, struct file *file, unsigned flags, umode_t mode) argument 1331 struct inode *dir = &to->i_inode; local [all...] |
/linux-master/drivers/platform/x86/ |
H A D | msi-wmi-platform.c | 275 struct dentry *dir = data; local 277 debugfs_remove_recursive(dir); 280 static void msi_wmi_platform_debugfs_add(struct wmi_device *wdev, struct dentry *dir, argument 299 entry = debugfs_create_file(name, 0600, dir, data, &msi_wmi_platform_debugfs_fops); 306 struct dentry *dir; local 312 dir = debugfs_create_dir(dir_name, NULL); 313 if (IS_ERR(dir)) 316 ret = devm_add_action_or_reset(&wdev->dev, msi_wmi_platform_debugfs_remove, dir); 321 msi_wmi_platform_debugfs_add(wdev, dir, msi_wmi_platform_debugfs_names[method - 1],
|
/linux-master/drivers/usb/storage/ |
H A D | protocol.c | 123 unsigned int *offset, enum xfer_buf_dir dir) 135 sg_miter_start(&miter, sg, nents, dir == FROM_XFER_BUF ? 145 if (dir == FROM_XFER_BUF) 121 usb_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) argument
|
/linux-master/fs/efs/ |
H A D | namei.c | 35 pr_err("%s(): failed to read dir block %d\n", 65 struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) argument 70 inodenum = efs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); 72 inode = efs_iget(dir->i_sb, inodenum);
|
/linux-master/tools/thermal/tmon/ |
H A D | sysfs.c | 282 DIR *dir; local 294 dir = opendir(tz_name); 295 if (!dir) { 329 closedir(dir); 340 DIR *dir; local 353 dir = opendir(cdev_name); 354 if (!dir) { 376 closedir(dir); 385 DIR *dir; local 389 dir [all...] |
/linux-master/tools/lib/symbol/ |
H A D | Makefile | 6 srctree := $(patsubst %/,%,$(dir $(CURDIR))) 7 srctree := $(patsubst %/,%,$(dir $(srctree))) 8 srctree := $(patsubst %/,%,$(dir $(srctree)))
|
/linux-master/samples/hid/ |
H A D | hid_mouse.c | 57 const char *str_id, *dir; local 70 dir = basename((char *)path); 72 str_id = dir + sizeof("0003:0001:0A37.");
|