/linux-master/drivers/iio/light/ |
H A D | veml6030.c | 165 .dir = IIO_EV_DIR_RISING, 169 .dir = IIO_EV_DIR_FALLING, 173 .dir = IIO_EV_DIR_EITHER, 458 int *val, int *val2, int dir) 463 if (dir == IIO_EV_DIR_RISING) 478 int val, int val2, int dir) 486 if (dir == IIO_EV_DIR_RISING) { 586 enum iio_event_direction dir, enum iio_event_info info, 591 switch (dir) { 594 return veml6030_read_thresh(indio_dev, val, val2, dir); 457 veml6030_read_thresh(struct iio_dev *indio_dev, int *val, int *val2, int dir) argument 477 veml6030_write_thresh(struct iio_dev *indio_dev, int val, int val2, int dir) argument 584 veml6030_read_event_val(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 606 veml6030_write_event_val(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 621 veml6030_read_interrupt_config(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir) argument 648 veml6030_write_interrupt_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 [all...] |
H A D | stk3310.c | 126 .dir = IIO_EV_DIR_RISING, 133 .dir = IIO_EV_DIR_FALLING, 216 enum iio_event_direction dir, 229 if (dir == IIO_EV_DIR_RISING) 231 else if (dir == IIO_EV_DIR_FALLING) 251 enum iio_event_direction dir, 269 if (dir == IIO_EV_DIR_RISING) 271 else if (dir == IIO_EV_DIR_FALLING) 287 enum iio_event_direction dir) 303 enum iio_event_direction dir, 213 stk3310_read_event(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 248 stk3310_write_event(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 284 stk3310_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 300 stk3310_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 560 unsigned int dir; local [all...] |
/linux-master/fs/afs/ |
H A D | dir.c | 2 /* dir.c: AFS filesystem directory handling 20 static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry, 31 static int afs_create(struct mnt_idmap *idmap, struct inode *dir, 33 static int afs_mkdir(struct mnt_idmap *idmap, struct inode *dir, 35 static int afs_rmdir(struct inode *dir, struct dentry *dentry); 36 static int afs_unlink(struct inode *dir, struct dentry *dentry); 37 static int afs_link(struct dentry *from, struct inode *dir, 39 static int afs_symlink(struct mnt_idmap *idmap, struct inode *dir, 451 " %u extends beyond end dir block" 497 static int afs_dir_iterate(struct inode *dir, struc argument 608 afs_do_lookup_one(struct inode *dir, struct dentry *dentry, struct afs_fid *fid, struct key *key, afs_dataversion_t *_dir_version) argument 790 afs_do_lookup(struct inode *dir, struct dentry *dentry, struct key *key) argument 928 afs_lookup_atsys(struct inode *dir, struct dentry *dentry, struct key *key) argument 984 afs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) argument 1057 struct inode *dir; local 1097 struct afs_vnode *vnode, *dir; local 1353 afs_mkdir(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode) argument 1438 afs_rmdir(struct inode *dir, struct dentry *dentry) argument 1571 afs_unlink(struct inode *dir, struct dentry *dentry) argument 1652 afs_create(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) argument 1724 afs_link(struct dentry *from, struct inode *dir, struct dentry *dentry) argument 1783 afs_symlink(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, const char *content) argument [all...] |
/linux-master/drivers/hsi/controllers/ |
H A D | omap_ssi_core.c | 115 struct dentry *dir; local 118 omap_ssi->dir = debugfs_create_dir(dev_name(&ssi->device), NULL); 119 if (!omap_ssi->dir) 122 debugfs_create_file("regs", S_IRUGO, omap_ssi->dir, ssi, 125 dir = debugfs_create_dir("gdd", omap_ssi->dir); 126 if (!dir) 128 debugfs_create_file("regs", S_IRUGO, dir, ssi, &ssi_gdd_regs_fops); 132 debugfs_remove_recursive(omap_ssi->dir); 141 debugfs_remove_recursive(omap_ssi->dir); 175 unsigned int dir; local [all...] |
/linux-master/drivers/usb/chipidea/ |
H A D | udc.c | 57 * @dir: endpoint direction 61 static inline int hw_ep_bit(int num, int dir) argument 63 return num + ((dir == TX) ? 16 : 0); 100 * @dir: endpoint direction 104 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) argument 106 int n = hw_ep_bit(num, dir); 122 * @dir: endpoint direction 126 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) argument 129 (dir == TX) ? ENDPTCTRL_TXE : ENDPTCTRL_RXE, 0); 137 * @dir 142 hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) argument 177 hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) argument 193 hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) argument 224 hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) argument 992 int dir, num, retval; variable 1150 int type, num, dir, err = -EINVAL; variable [all...] |
/linux-master/fs/hostfs/ |
H A D | hostfs_user.c | 93 DIR *dir; local 95 dir = opendir(path); 98 return dir; 103 DIR *dir = stream; local 105 seekdir(dir, pos); 112 DIR *dir = stream; local 115 ent = readdir(dir);
|
/linux-master/include/linux/ |
H A D | mhi.h | 209 * @dir: Direction that data may flow on this channel 227 enum dma_data_direction dir; member in struct:mhi_channel_config 481 * @dir: Channel direction 487 enum dma_data_direction dir; member in struct:mhi_result 606 * @dir: Direction of the channel 609 enum dma_data_direction dir); 781 * @dir: DMA direction for the channel 786 int mhi_queue_dma(struct mhi_device *mhi_dev, enum dma_data_direction dir, 793 * @dir: DMA direction for the channel 798 int mhi_queue_buf(struct mhi_device *mhi_dev, enum dma_data_direction dir, [all...] |
/linux-master/include/trace/events/ |
H A D | erofs.h | 36 TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), 38 TP_ARGS(dir, dentry, flags), 48 __entry->dev = dir->i_sb->s_dev; 49 __entry->nid = EROFS_I(dir)->nid; 92 __field(int, dir ) 101 __entry->dir = S_ISDIR(folio->mapping->host->i_mode); 110 show_file_type(__entry->dir),
|
/linux-master/kernel/dma/ |
H A D | map_benchmark.c | 26 enum dma_data_direction dir; member in struct:map_benchmark_data 58 if (map->dir != DMA_FROM_DEVICE) 62 dma_addr = dma_map_single(map->dev, buf, size, map->dir); 76 dma_unmap_single(map->dev, dma_addr, size, map->dir); 227 map->dir = DMA_BIDIRECTIONAL; 230 map->dir = DMA_FROM_DEVICE; 233 map->dir = DMA_TO_DEVICE;
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 141 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, argument 157 req->dir = dir; 166 req->rsrc_type != rsp->rsrc_type || req->dir != rsp->dir) { 194 dir == MCS_TX ? "TX" : "RX", rsrc_name(type)); 199 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, argument 215 clear_req->dir = dir; 223 req->dir 722 cn10k_mcs_ena_dis_flowid(struct otx2_nic *pfvf, u16 hw_flow_id, bool enable, enum mcs_direction dir) argument 748 cn10k_mcs_sa_stats(struct otx2_nic *pfvf, u8 hw_sa_id, struct mcs_sa_stats *rsp_p, enum mcs_direction dir, bool clear) argument 803 cn10k_mcs_sc_stats(struct otx2_nic *pfvf, u8 hw_sc_id, struct mcs_sc_stats *rsp_p, enum mcs_direction dir, bool clear) argument 858 cn10k_mcs_secy_stats(struct otx2_nic *pfvf, u8 hw_secy_id, struct mcs_secy_stats *rsp_p, enum mcs_direction dir, bool clear) argument [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | debugfs.c | 791 struct dentry *dir; local 793 dir = mt76_register_debugfs_fops(phy->mt76, NULL); 794 if (!dir) 796 debugfs_create_file("hw-queues", 0400, dir, phy, 798 debugfs_create_file("xmit-queues", 0400, dir, phy, 800 debugfs_create_file("tx_stats", 0400, dir, phy, &mt7996_tx_stats_fops); 801 debugfs_create_file("sys_recovery", 0600, dir, phy, 803 debugfs_create_file("fw_debug_wm", 0600, dir, dev, &fops_fw_debug_wm); 804 debugfs_create_file("fw_debug_wa", 0600, dir, dev, &fops_fw_debug_wa); 805 debugfs_create_file("fw_debug_bin", 0600, dir, de 970 mt7996_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct dentry *dir) argument [all...] |
/linux-master/security/landlock/ |
H A D | fs.c | 989 * @dir: Directory to start the walk from. 992 * This helper is useful to begin a path walk from the @dir directory to a 995 * file. While walking from @dir to @mnt_root, we record all the domain's 1003 * - true if all the domain access rights are allowed for @dir; 1008 const struct dentry *const mnt_root, struct dentry *dir, 1014 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) 1016 if (is_nouser_or_private(dir)) 1023 dget(dir); 1028 if (landlock_unmask_layers(find_rule(domain, dir), access_dom, 1040 if (dir 1006 collect_domain_accesses( const struct landlock_ruleset *const domain, const struct dentry *const mnt_root, struct dentry *dir, layer_mask_t (*const layer_masks_dom)[LANDLOCK_NUM_ACCESS_FS]) argument 1420 hook_path_mkdir(const struct path *const dir, struct dentry *const dentry, const umode_t mode) argument 1426 hook_path_mknod(const struct path *const dir, struct dentry *const dentry, const umode_t mode, const unsigned int dev) argument 1437 hook_path_symlink(const struct path *const dir, struct dentry *const dentry, const char *const old_name) argument 1444 hook_path_unlink(const struct path *const dir, struct dentry *const dentry) argument 1450 hook_path_rmdir(const struct path *const dir, struct dentry *const dentry) argument [all...] |
/linux-master/drivers/tty/vt/ |
H A D | consolemap.c | 203 #define UNI(dir, row, glyph) (FIELD_PREP(UNI_DIR_BITS, (dir)) | \ 271 u16 **dir = dict->uni_pgdir[d]; local 272 if (!dir) 275 u16 *row = dir[r]; 434 u16 **dir = dict->uni_pgdir[d]; local 435 if (dir != NULL) { 437 kfree(dir[r]); 438 kfree(dir); 511 u16 **dir, *ro local 601 u16 **dir = old->uni_pgdir[d]; local 806 u16 **dir = dict->uni_pgdir[d]; local 866 u16 **dir, *row, glyph; local [all...] |
/linux-master/sound/firewire/dice/ |
H A D | dice-stream.c | 135 static void stop_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, argument 143 if (dir == AMDTP_IN_STREAM) { 198 enum amdtp_stream_direction dir, 217 if (dir == AMDTP_IN_STREAM) { 326 static int start_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, argument 338 if (dir == AMDTP_IN_STREAM) { 347 if (dir == AMDTP_IN_STREAM) { 359 if (dir == AMDTP_IN_STREAM) { 488 static int init_stream(struct snd_dice *dice, enum amdtp_stream_direction dir, argument 495 if (dir 197 keep_dual_resources(struct snd_dice *dice, unsigned int rate, enum amdtp_stream_direction dir, struct reg_params *params) argument 521 destroy_stream(struct snd_dice *dice, enum amdtp_stream_direction dir, unsigned int index) argument [all...] |
/linux-master/fs/ext2/ |
H A D | ialloc.c | 66 static void ext2_release_inode(struct super_block *sb, int group, int dir) argument 80 if (dir) 84 if (dir) 419 struct inode *ext2_new_inode(struct inode *dir, umode_t mode, argument 434 sb = dir->i_sb; 444 group = find_group_dir(sb, dir); 446 group = find_group_orlov(sb, dir); 448 group = find_group_other(sb, dir); 543 inode->i_gid = dir->i_gid; 545 inode_init_owner(&nop_mnt_idmap, inode, dir, mod [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-xilinx.c | 52 * @dir: GPIO direction shadow register 67 DECLARE_BITMAP(dir, 64); 242 __set_bit(bit, chip->dir); 243 xgpio_write_ch(chip, XGPIO_TRI_OFFSET, bit, chip->dir); 275 __clear_bit(bit, chip->dir); 276 xgpio_write_ch(chip, XGPIO_TRI_OFFSET, bit, chip->dir); 290 xgpio_write_ch_all(chip, XGPIO_TRI_OFFSET, chip->dir); 573 u32 dir[2]; local 589 memset32(dir, 0xFFFFFFFF, ARRAY_SIZE(dir)); [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | port.c | 139 int mlx5e_port_query_sbpr(struct mlx5_core_dev *mdev, u32 desc, u8 dir, argument 145 MLX5_SET(sbpr_reg, in, dir, dir); 151 int mlx5e_port_set_sbpr(struct mlx5_core_dev *mdev, u32 desc, u8 dir, argument 158 MLX5_SET(sbpr_reg, in, dir, dir); 168 u8 pg_buff_idx, u8 dir, void *out, 176 MLX5_SET(sbcm_reg, in, dir, dir); 182 u8 dir, u 167 mlx5e_port_query_sbcm(struct mlx5_core_dev *mdev, u32 desc, u8 pg_buff_idx, u8 dir, void *out, int size_out) argument 181 mlx5e_port_set_sbcm(struct mlx5_core_dev *mdev, u32 desc, u8 pg_buff_idx, u8 dir, u8 infi_size, u32 max_buff, u8 pool_idx) argument [all...] |
/linux-master/sound/soc/sof/ |
H A D | compress.c | 84 int dir = cstream->direction; local 92 spcm->stream[dir].page_table.area, size); 102 int dir; local 114 dir = cstream->direction; 116 if (spcm->stream[dir].cstream) { 121 spcm->stream[dir].cstream = cstream; 122 spcm->stream[dir].posn.host_posn = 0; 123 spcm->stream[dir].posn.dai_posn = 0; 124 spcm->prepared[dir] = false;
|
/linux-master/drivers/iio/proximity/ |
H A D | vcnl3020.c | 291 enum iio_event_direction dir, 300 switch (dir) { 326 enum iio_event_direction dir, 337 switch (dir) { 451 enum iio_event_direction dir, 465 enum iio_event_direction dir) 480 .dir = IIO_EV_DIR_RISING, 484 .dir = IIO_EV_DIR_FALLING, 488 .dir = IIO_EV_DIR_EITHER, 288 vcnl3020_read_event(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 323 vcnl3020_write_event(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 448 vcnl3020_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 462 vcnl3020_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
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_bpf.c | 44 * @dir: - connection tracking tuple direction. 53 u8 dir; member in struct:bpf_ct_opts 62 u32 tuple_len, u8 protonum, u8 dir, 65 union nf_inet_addr *src = dir ? &tuple->dst.u3 : &tuple->src.u3; 66 union nf_inet_addr *dst = dir ? &tuple->src.u3 : &tuple->dst.u3; 67 union nf_conntrack_man_proto *sport = dir ? (void *)&tuple->dst.u 69 union nf_conntrack_man_proto *dport = dir ? &tuple->src.u 96 tuple->dst.dir = dir; 184 opts->dir 61 bpf_nf_ct_tuple_parse(struct bpf_sock_tuple *bpf_tuple, u32 tuple_len, u8 protonum, u8 dir, struct nf_conntrack_tuple *tuple) argument [all...] |
H A D | nf_conntrack_irc.c | 116 int dir = CTINFO2DIR(ctinfo); local 128 if (dir == IP_CT_DIR_REPLY) 218 tuple = &ct->tuplehash[dir].tuple; 220 ct->tuplehash[!dir].tuple.dst.u3.ip != dcc_ip) || 235 tuple = &ct->tuplehash[!dir].tuple;
|
/linux-master/net/sunrpc/ |
H A D | debugfs.c | 156 /* make the per-client dir */ 232 /* make the per-client dir */ 255 struct dentry *dir; local 257 dir = fault_create_debugfs_attr("fail_sunrpc", NULL, 260 debugfs_create_bool("ignore-client-disconnect", S_IFREG | 0600, dir, 263 debugfs_create_bool("ignore-server-disconnect", S_IFREG | 0600, dir, 266 debugfs_create_bool("ignore-cache-wait", S_IFREG | 0600, dir,
|
/linux-master/fs/configfs/ |
H A D | symlink.c | 140 int configfs_symlink(struct mnt_idmap *idmap, struct inode *dir, argument 152 * Fake invisibility if dir belongs to a group/default groups hierarchy 190 inode_unlock(dir); 192 inode_lock(dir); 199 ret = inode_permission(&nop_mnt_idmap, dir, 220 int configfs_unlink(struct inode *dir, struct dentry *dentry) argument
|
/linux-master/fs/autofs/ |
H A D | root.c | 493 static struct dentry *autofs_lookup(struct inode *dir, argument 506 sbi = autofs_sbi(dir->i_sb); 567 struct inode *dir, struct dentry *dentry, 590 inode = autofs_get_inode(dir->i_sb, S_IFLNK | 0555); 603 inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)); 623 static int autofs_dir_unlink(struct inode *dir, struct dentry *dentry) argument 625 struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); 636 inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)); 566 autofs_dir_symlink(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, const char *symname) argument 692 autofs_dir_rmdir(struct inode *dir, struct dentry *dentry) argument 723 autofs_dir_mkdir(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode) argument [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal-xscom.c | 159 struct dentry *dir; local 175 dir = debugfs_create_dir(ent->name, root); 176 if (IS_ERR(dir)) { 182 debugfs_create_blob("devspec", 0400, dir, &ent->path); 183 debugfs_create_file("access", 0600, dir, ent, &scom_debug_fops);
|