/openbmc/linux/arch/arm64/mm/ |
H A D | dma-mapping.c | 17 enum dma_data_direction dir) in arch_sync_dma_for_device() argument 25 enum dma_data_direction dir) in arch_sync_dma_for_cpu() argument 29 if (dir == DMA_TO_DEVICE) in arch_sync_dma_for_cpu()
|
/openbmc/linux/include/linux/ |
H A D | swiotlb.h | 47 unsigned int alloc_aligned_mask, enum dma_data_direction dir, 53 enum dma_data_direction dir, 57 size_t size, enum dma_data_direction dir); 59 size_t size, enum dma_data_direction dir); 61 size_t size, enum dma_data_direction dir, unsigned long attrs);
|
H A D | kmsan.h | 196 enum dma_data_direction dir); 210 enum dma_data_direction dir); 315 size_t size, enum dma_data_direction dir) in kmsan_handle_dma() argument 320 enum dma_data_direction dir) in kmsan_handle_dma_sg() argument
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | floppy.h | 134 int dir; in hard_dma_setup() local 137 dir = (mode == DMA_MODE_READ) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in hard_dma_setup() 140 && (addr != prev_addr || size != prev_size || dir != prev_dir)) { in hard_dma_setup() 149 dir); in hard_dma_setup() 154 prev_dir = dir; in hard_dma_setup()
|
/openbmc/linux/arch/sparc/mm/ |
H A D | iommu.c | 236 enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_map_page_gflush() argument 244 enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_map_page_pflush() argument 250 int nents, enum dma_data_direction dir, unsigned long attrs, in __sbus_iommu_map_sg() argument 268 int nents, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_map_sg_gflush() argument 271 return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, false); in sbus_iommu_map_sg_gflush() 275 int nents, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_map_sg_pflush() argument 277 return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, true); in sbus_iommu_map_sg_pflush() 281 size_t len, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_unmap_page() argument 300 int nents, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_unmap_sg() argument 306 sbus_iommu_unmap_page(dev, sg->dma_address, sg->length, dir, in sbus_iommu_unmap_sg()
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_conntrack_acct.h | 68 void nf_ct_acct_add(struct nf_conn *ct, u32 dir, unsigned int packets, 71 static inline void nf_ct_acct_update(struct nf_conn *ct, u32 dir, in nf_ct_acct_update() argument 75 nf_ct_acct_add(ct, dir, 1, bytes); in nf_ct_acct_update()
|
/openbmc/linux/sound/soc/amd/acp/ |
H A D | acp-i2s.c | 90 if (tx_mask && stream->dir == SNDRV_PCM_STREAM_PLAYBACK) in acp_i2s_set_tdm_slot() 398 unsigned int dir = substream->stream; in acp_i2s_prepare() local 402 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_prepare() 422 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_prepare() 443 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_prepare() 491 unsigned int dir = substream->stream; in acp_i2s_startup() local 496 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_startup() 507 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_startup() 518 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_startup() 534 stream->id = dai->driver->id + dir; in acp_i2s_startup() [all …]
|
/openbmc/linux/sound/usb/ |
H A D | midi2.c | 336 ump_to_endpoint(struct snd_ump_endpoint *ump, int dir) in ump_to_endpoint() argument 340 return rmidi->eps[dir]; in ump_to_endpoint() 437 int endpoint, dir; in create_midi2_endpoint() local 451 dir = (endpoint & USB_DIR_IN) ? STR_IN : STR_OUT; in create_midi2_endpoint() 454 ep->direction = dir; in create_midi2_endpoint() 460 if (dir == STR_IN) { in create_midi2_endpoint() 886 int i, blk, err, dir; in create_blocks_from_gtb() local 897 for (dir = 0; dir < 2; dir++) { in create_blocks_from_gtb() 898 if (!rmidi->eps[dir]) in create_blocks_from_gtb() 901 blk = rmidi->eps[dir]->ms_ep->baAssoGrpTrmBlkID[i]; in create_blocks_from_gtb() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 157 req->dir = dir; in cn10k_mcs_alloc_rsrc() 166 req->rsrc_type != rsp->rsrc_type || req->dir != rsp->dir) { in cn10k_mcs_alloc_rsrc() 215 clear_req->dir = dir; in cn10k_mcs_free_rsrc() 223 req->dir = dir; in cn10k_mcs_free_rsrc() 739 req->dir = dir; in cn10k_mcs_ena_dis_flowid() 767 req->dir = dir; in cn10k_mcs_sa_stats() 778 clear_req->dir = dir; in cn10k_mcs_sa_stats() 822 req->dir = dir; in cn10k_mcs_sc_stats() 833 clear_req->dir = dir; in cn10k_mcs_sc_stats() 877 req->dir = dir; in cn10k_mcs_secy_stats() [all …]
|
/openbmc/linux/arch/m68k/kernel/ |
H A D | dma.c | 62 enum dma_data_direction dir) in arch_sync_dma_for_device() argument 64 switch (dir) { in arch_sync_dma_for_device() 74 dir); in arch_sync_dma_for_device()
|
/openbmc/linux/fs/reiserfs/ |
H A D | acl.h | 56 struct inode *dir, struct dentry *dentry, 58 int reiserfs_cache_default_acl(struct inode *dir); 73 const struct inode *dir, struct dentry *dentry, in reiserfs_inherit_default_acl() argument
|
/openbmc/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_sds.c | 132 int err = asd_read_ocm_seg(asd_ha, dir, offs, sizeof(*dir)); in asd_read_ocm_dir() 138 if (dir->sig[0] != 'M' || dir->sig[1] != 'O') { in asd_read_ocm_dir() 140 dir->sig[0], dir->sig[1]); in asd_read_ocm_dir() 143 if (dir->major != 0) { in asd_read_ocm_dir() 145 dir->major); in asd_read_ocm_dir() 148 dir->num_de &= 0xf; in asd_read_ocm_dir() 186 if (i >= dir->num_de) in asd_find_dir_entry() 188 ent = &dir->entry[i]; in asd_find_dir_entry() 344 dir = kmalloc(sizeof(*dir), GFP_KERNEL); in asd_read_ocm() 345 if (!dir) { in asd_read_ocm() [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | cache_lib.c | 119 struct dentry *dir; in nfs_cache_register_sb() local 121 dir = rpc_d_lookup_sb(sb, "cache"); in nfs_cache_register_sb() 122 ret = sunrpc_cache_register_pipefs(dir, cd->name, 0600, cd); in nfs_cache_register_sb() 123 dput(dir); in nfs_cache_register_sb()
|
/openbmc/u-boot/fs/btrfs/ |
H A D | dir-item.c | 63 int btrfs_lookup_dir_item(const struct btrfs_root *root, u64 dir, in btrfs_lookup_dir_item() argument 71 key.objectid = dir; in btrfs_lookup_dir_item() 89 int btrfs_readdir(const struct btrfs_root *root, u64 dir, in btrfs_readdir() argument 97 key.objectid = dir; in btrfs_readdir()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | mpc83xx_gpio.c | 65 clrbits_be32(&im->gpio[ctrlr].dir, line_mask); in gpio_direction_input() 93 setbits_be32(&im->gpio[ctrlr].dir, line_mask); in gpio_direction_output() 154 out_be32(&im->gpio[0].dir, CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION); in mpc83xx_gpio_init_f() 163 out_be32(&im->gpio[1].dir, CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION); in mpc83xx_gpio_init_f()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_nat_ftp.c | 73 int dir = CTINFO2DIR(ctinfo); in nf_nat_ftp() local 81 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in nf_nat_ftp() 83 exp->dir = !dir; in nf_nat_ftp()
|
H A D | nf_conntrack_bpf.c | 53 u8 dir; member 62 u32 tuple_len, u8 protonum, u8 dir, in bpf_nf_ct_tuple_parse() argument 65 union nf_inet_addr *src = dir ? &tuple->dst.u3 : &tuple->src.u3; in bpf_nf_ct_tuple_parse() 66 union nf_inet_addr *dst = dir ? &tuple->src.u3 : &tuple->dst.u3; in bpf_nf_ct_tuple_parse() 67 union nf_conntrack_man_proto *sport = dir ? (void *)&tuple->dst.u in bpf_nf_ct_tuple_parse() 69 union nf_conntrack_man_proto *dport = dir ? &tuple->src.u in bpf_nf_ct_tuple_parse() 96 tuple->dst.dir = dir; in bpf_nf_ct_tuple_parse() 184 opts->dir = NF_CT_DIRECTION(hash); in __bpf_nf_ct_lookup()
|
/openbmc/linux/drivers/infiniband/ulp/rtrs/ |
H A D | rtrs-srv.h | 35 } dir[2]; member 54 u8 dir; member 139 this_cpu_inc(s->rdma_stats->dir[d].cnt); in rtrs_srv_update_rdma_stats() 140 this_cpu_add(s->rdma_stats->dir[d].size_total, size); in rtrs_srv_update_rdma_stats()
|
/openbmc/linux/fs/kernfs/ |
H A D | kernfs-internal.h | 72 return kn->dir.root; in kernfs_root() 110 dentry->d_time = parent->dir.rev; in kernfs_set_rev() 115 parent->dir.rev++; in kernfs_inc_rev() 121 if (parent->dir.rev != dentry->d_time) in kernfs_dir_changed()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-xscom.c | 159 struct dentry *dir; in scom_debug_init_one() local 175 dir = debugfs_create_dir(ent->name, root); in scom_debug_init_one() 176 if (IS_ERR(dir)) { in scom_debug_init_one() 182 debugfs_create_blob("devspec", 0400, dir, &ent->path); in scom_debug_init_one() 183 debugfs_create_file("access", 0600, dir, ent, &scom_debug_fops); in scom_debug_init_one()
|
/openbmc/linux/fs/ext4/ |
H A D | crypto.c | 22 int ext4_fname_setup_filename(struct inode *dir, const struct qstr *iname, in ext4_fname_setup_filename() argument 28 err = fscrypt_setup_filename(dir, iname, lookup, &name); in ext4_fname_setup_filename() 35 err = ext4_fname_setup_ci_filename(dir, iname, fname); in ext4_fname_setup_filename() 42 int ext4_fname_prepare_lookup(struct inode *dir, struct dentry *dentry, in ext4_fname_prepare_lookup() argument 48 err = fscrypt_prepare_lookup(dir, dentry, &name); in ext4_fname_prepare_lookup() 55 err = ext4_fname_setup_ci_filename(dir, &dentry->d_name, fname); in ext4_fname_prepare_lookup()
|
/openbmc/linux/drivers/iio/proximity/ |
H A D | cros_ec_mkbp_proximity.c | 38 .dir = IIO_EV_DIR_EITHER, 101 int dir; in cros_ec_mkbp_proximity_push_event() local 112 dir = state ? IIO_EV_DIR_FALLING : IIO_EV_DIR_RISING; in cros_ec_mkbp_proximity_push_event() 114 IIO_EV_TYPE_THRESH, dir); in cros_ec_mkbp_proximity_push_event() 160 enum iio_event_direction dir) in cros_ec_mkbp_proximity_read_event_config() argument 170 enum iio_event_direction dir, int state) in cros_ec_mkbp_proximity_write_event_config() argument
|
/openbmc/linux/drivers/input/misc/ |
H A D | rotary_encoder.c | 51 signed char dir; /* 1 - clockwise, -1 - CCW */ member 78 encoder->axis, encoder->dir); in rotary_encoder_report_event() 82 if (encoder->dir < 0) { in rotary_encoder_report_event() 124 encoder->dir = 2 - state; in rotary_encoder_irq() 147 encoder->dir = ((encoder->last_stable - state + 1) % 4) - 1; in rotary_encoder_half_period_irq() 170 encoder->dir = 1; in rotary_encoder_quarter_period_irq() 172 encoder->dir = -1; in rotary_encoder_quarter_period_irq()
|
/openbmc/linux/drivers/iio/light/ |
H A D | iqs621-als.c | 241 enum iio_event_direction dir) in iqs621_als_read_event_config() argument 273 enum iio_event_direction dir, in iqs621_als_write_event_config() argument 333 enum iio_event_direction dir, in iqs621_als_read_event_value() argument 342 switch (dir) { in iqs621_als_read_event_value() 370 enum iio_event_direction dir, in iqs621_als_write_event_value() argument 382 switch (dir) { in iqs621_als_write_event_value() 466 .dir = IIO_EV_DIR_EITHER, 474 .dir = IIO_EV_DIR_EITHER, 479 .dir = IIO_EV_DIR_RISING, 484 .dir = IIO_EV_DIR_FALLING, [all …]
|
/openbmc/linux/sound/firewire/dice/ |
H A D | dice-stream.c | 135 static void stop_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, in stop_streams() argument 143 if (dir == AMDTP_IN_STREAM) { in stop_streams() 198 enum amdtp_stream_direction dir, in keep_dual_resources() argument 217 if (dir == AMDTP_IN_STREAM) { in keep_dual_resources() 338 if (dir == AMDTP_IN_STREAM) { in start_streams() 347 if (dir == AMDTP_IN_STREAM) { in start_streams() 359 if (dir == AMDTP_IN_STREAM) { in start_streams() 495 if (dir == AMDTP_IN_STREAM) { in init_stream() 508 err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING); in init_stream() 522 enum amdtp_stream_direction dir, in destroy_stream() argument [all …]
|