Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 787) sorted by relevance

12345678910>>...32

/Linux-v5.4/include/linux/
Dpci-dma-compat.h38 pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) in pci_map_single() argument
40 return dma_map_single(&hwdev->dev, ptr, size, (enum dma_data_direction)direction); in pci_map_single()
45 size_t size, int direction) in pci_unmap_single() argument
47 dma_unmap_single(&hwdev->dev, dma_addr, size, (enum dma_data_direction)direction); in pci_unmap_single()
52 unsigned long offset, size_t size, int direction) in pci_map_page() argument
54 return dma_map_page(&hwdev->dev, page, offset, size, (enum dma_data_direction)direction); in pci_map_page()
59 size_t size, int direction) in pci_unmap_page() argument
61 dma_unmap_page(&hwdev->dev, dma_address, size, (enum dma_data_direction)direction); in pci_unmap_page()
66 int nents, int direction) in pci_map_sg() argument
68 return dma_map_sg(&hwdev->dev, sg, nents, (enum dma_data_direction)direction); in pci_map_sg()
[all …]
Ddma-debug.h26 int direction, dma_addr_t dma_addr);
31 size_t size, int direction);
34 int nents, int mapped_ents, int direction);
46 size_t size, int direction,
50 size_t size, int direction);
54 int direction);
58 size_t size, int direction);
62 int nelems, int direction);
66 int nelems, int direction);
85 int direction, dma_addr_t dma_addr) in debug_dma_map_page() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/crypto/
Dtls.c46 enum tls_offload_ctx_dir direction) in __nfp_net_tls_conn_cnt_changed() argument
51 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in __nfp_net_tls_conn_cnt_changed()
72 enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_cnt_changed() argument
78 if (__nfp_net_tls_conn_cnt_changed(nn, add, direction)) { in nfp_net_tls_conn_cnt_changed()
82 __nfp_net_tls_conn_cnt_changed(nn, -add, direction); in nfp_net_tls_conn_cnt_changed()
90 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add() argument
92 return nfp_net_tls_conn_cnt_changed(nn, 1, direction); in nfp_net_tls_conn_add()
96 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove() argument
98 return nfp_net_tls_conn_cnt_changed(nn, -1, direction); in nfp_net_tls_conn_remove()
175 struct sock *sk, int direction) in nfp_net_tls_set_ipv4() argument
[all …]
/Linux-v5.4/net/sunrpc/auth_gss/
Dgss_krb5_seqnum.c43 krb5_make_rc4_seq_num(struct krb5_ctx *kctx, int direction, s32 seqnum, in krb5_make_rc4_seq_num() argument
63 plain[4] = direction; in krb5_make_rc4_seq_num()
64 plain[5] = direction; in krb5_make_rc4_seq_num()
65 plain[6] = direction; in krb5_make_rc4_seq_num()
66 plain[7] = direction; in krb5_make_rc4_seq_num()
81 int direction, in krb5_make_seq_num() argument
89 return krb5_make_rc4_seq_num(kctx, direction, seqnum, in krb5_make_seq_num()
101 plain[4] = direction; in krb5_make_seq_num()
102 plain[5] = direction; in krb5_make_seq_num()
103 plain[6] = direction; in krb5_make_seq_num()
[all …]
/Linux-v5.4/tools/testing/selftests/net/forwarding/
Dmirror_vlan.sh60 local direction=$1; shift
66 mirror_install $swp1 $direction $swp3.555 "matchall $tcflags"
67 test_span_dir "$h3.555" "$direction" "$forward_type" "$backward_type"
68 mirror_uninstall $swp1 $direction
70 log_test "$direction mirror to vlan ($tcflags)"
81 local direction=$1; shift
87 mirror_install $swp1 $direction $swp3.555 "matchall $tcflags"
88 do_test_span_vlan_dir_ips 10 "$h3.555" 111 "$direction" \
90 do_test_span_vlan_dir_ips 0 "$h3.555" 555 "$direction" \
92 mirror_uninstall $swp1 $direction
[all …]
Dmirror_gre_lib.sh29 local direction=$1; shift
38 mirror_install $swp1 $direction $tundev "matchall $tcflags"
39 test_span_dir_ips "h3-$tundev" "$direction" "$forward_type" \
41 mirror_uninstall $swp1 $direction
43 log_test "$direction $what ($tcflags)"
49 local direction=$1; shift
59 mirror_install $swp1 $direction $tundev "matchall $tcflags"
61 test_span_dir_ips "h3-$tundev" "$direction" "$forward_type" \
70 mirror_uninstall $swp1 $direction
72 log_test "$direction $what ($tcflags)"
Dmirror_lib.sh6 local direction=$1; shift
10 tc filter add dev $from_dev $direction \
18 local direction=$1; shift
20 tc filter del dev $swp1 $direction pref 1000
49 local direction=$1; shift
72 local direction=$1; shift
78 quick_test_span_dir_ips "$dev" "$direction" "$ip1" "$ip2"
104 local direction=$1; shift
Dmirror_gre_flower.sh78 local direction=$1; shift
86 mirror_install $swp1 $direction $tundev \
88 fail_test_span_gre_dir $tundev $direction
89 test_span_gre_dir_acl "$tundev" "$direction" \
91 mirror_uninstall $swp1 $direction
94 fail_test_span_gre_dir_acl "$tundev" "$direction"
96 log_test "$direction $what ($tcflags)"
/Linux-v5.4/kernel/dma/
Ddebug.c75 int direction; member
313 entry->direction == ref->direction ? ++match_lvl : 0; in __hash_bucket_find()
417 dir2name[entry->direction], in debug_dma_dump_mappings()
521 if (entry->direction == DMA_TO_DEVICE) in active_cacheline_insert()
539 if (entry->direction == DMA_TO_DEVICE) in active_cacheline_remove()
836 dir2name[entry->direction], in dump_show()
901 dir2name[entry->direction], type2name[entry->type]); in dma_debug_device_change()
1059 if (ref->direction != entry->direction) { in check_unmap()
1065 dir2name[entry->direction], in check_unmap()
1066 dir2name[ref->direction]); in check_unmap()
[all …]
/Linux-v5.4/drivers/char/xillybus/
Dxillybus_of.c38 int direction) in xilly_dma_sync_single_for_cpu_of() argument
40 dma_sync_single_for_cpu(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_cpu_of()
46 int direction) in xilly_dma_sync_single_for_device_of() argument
48 dma_sync_single_for_device(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_device_of()
54 int direction) in xilly_dma_sync_single_nop() argument
63 data->size, data->direction); in xilly_of_unmap()
71 int direction, in xilly_map_single_of() argument
82 addr = dma_map_single(ep->dev, ptr, size, direction); in xilly_map_single_of()
92 this->direction = direction; in xilly_map_single_of()
Dxillybus_pcie.c36 static int xilly_pci_direction(int direction) in xilly_pci_direction() argument
38 switch (direction) { in xilly_pci_direction()
51 int direction) in xilly_dma_sync_single_for_cpu_pci() argument
56 xilly_pci_direction(direction)); in xilly_dma_sync_single_for_cpu_pci()
62 int direction) in xilly_dma_sync_single_for_device_pci() argument
67 xilly_pci_direction(direction)); in xilly_dma_sync_single_for_device_pci()
75 data->size, data->direction); in xilly_pci_unmap()
89 int direction, in xilly_map_single_pci() argument
101 pci_direction = xilly_pci_direction(direction); in xilly_map_single_pci()
113 this->direction = pci_direction; in xilly_map_single_pci()
/Linux-v5.4/include/linux/iio/
Devents.h24 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ argument
27 ((u64)direction << 48) | ((u64)modifier << 40) | \
42 type, direction) \ argument
43 IIO_EVENT_CODE(chan_type, 0, modifier, direction, type, number, 0, 0)
53 #define IIO_UNMOD_EVENT_CODE(chan_type, number, type, direction) \ argument
54 IIO_EVENT_CODE(chan_type, 0, 0, direction, type, number, 0, 0)
/Linux-v5.4/arch/powerpc/kernel/
Ddma-iommu.c67 enum dma_data_direction direction, in dma_iommu_map_page() argument
71 return dma_direct_map_page(dev, page, offset, size, direction, in dma_iommu_map_page()
74 size, dma_get_mask(dev), direction, attrs); in dma_iommu_map_page()
79 size_t size, enum dma_data_direction direction, in dma_iommu_unmap_page() argument
84 direction, attrs); in dma_iommu_unmap_page()
86 dma_direct_unmap_page(dev, dma_handle, size, direction, attrs); in dma_iommu_unmap_page()
91 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg() argument
95 return dma_direct_map_sg(dev, sglist, nelems, direction, attrs); in dma_iommu_map_sg()
97 dma_get_mask(dev), direction, attrs); in dma_iommu_map_sg()
101 int nelems, enum dma_data_direction direction, in dma_iommu_unmap_sg() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c64 int max_frame, u8 direction) in ixgbe_dcb_calculate_tc_credits() argument
85 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits()
86 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits()
107 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits()
108 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits()
140 if (direction == DCB_TX_CONFIG) { in ixgbe_dcb_calculate_tc_credits()
173 void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_refill() argument
180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill()
192 void ixgbe_dcb_unpack_bwgid(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_bwgid() argument
199 bwgid[tc] = tc_config[tc].path[direction].bwg_id; in ixgbe_dcb_unpack_bwgid()
[all …]
/Linux-v5.4/sound/pci/hda/
Dhda_local.h44 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
45 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0)
47 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
48 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
50 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
51 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
53 #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ argument
54 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, 3, xindex, direction, \
57 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
63 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
[all …]
/Linux-v5.4/drivers/gpio/
Dgpio-reg.c16 u32 direction; member
29 return r->direction & BIT(offset) ? 1 : 0; in gpio_reg_get_direction()
37 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
48 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
73 if (r->direction & mask) { in gpio_reg_get()
131 int base, int num, const char *label, u32 direction, u32 def_out, in gpio_reg_init() argument
159 r->direction = direction; in gpio_reg_init()
/Linux-v5.4/Documentation/devicetree/bindings/input/
Dpwm-vibrator.txt7 The binding supports an optional direction PWM channel, that can be
13 - pwm-names: Should contain "enable" and optionally "direction"
18 - direction-duty-cycle-ns: Duty cycle of the direction PWM channel in
63 pwm-names = "enable", "direction";
64 direction-duty-cycle-ns = <1000000000>;
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls.c103 enum tls_offload_ctx_dir direction, in mlx5e_tls_add() argument
125 direction == TLS_OFFLOAD_CTX_DIR_TX); in mlx5e_tls_add()
129 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in mlx5e_tls_add()
150 enum tls_offload_ctx_dir direction) in mlx5e_tls_del() argument
155 handle = ntohl((direction == TLS_OFFLOAD_CTX_DIR_TX) ? in mlx5e_tls_del()
160 direction == TLS_OFFLOAD_CTX_DIR_TX); in mlx5e_tls_del()
165 enum tls_offload_ctx_dir direction) in mlx5e_tls_resync() argument
172 if (WARN_ON_ONCE(direction != TLS_OFFLOAD_CTX_DIR_RX)) in mlx5e_tls_resync()
/Linux-v5.4/drivers/staging/ralink-gdma/
Dralink-gdma.c99 enum dma_transfer_direction direction; member
192 switch (config->direction) { in gdma_dma_config()
213 config->direction); in gdma_dma_config()
287 if (chan->desc->direction == DMA_MEM_TO_DEV) { in rt305x_gdma_start_transfer()
293 } else if (chan->desc->direction == DMA_DEV_TO_MEM) { in rt305x_gdma_start_transfer()
299 } else if (chan->desc->direction == DMA_MEM_TO_MEM) { in rt305x_gdma_start_transfer()
311 chan->desc->direction); in rt305x_gdma_start_transfer()
364 if (chan->desc->direction == DMA_MEM_TO_DEV) { in rt3883_gdma_start_transfer()
370 } else if (chan->desc->direction == DMA_DEV_TO_MEM) { in rt3883_gdma_start_transfer()
377 } else if (chan->desc->direction == DMA_MEM_TO_MEM) { in rt3883_gdma_start_transfer()
[all …]
/Linux-v5.4/arch/arm/kernel/
Ddma-isa.c66 enum dma_data_direction direction; in isa_enable_dma() local
71 direction = DMA_FROM_DEVICE; in isa_enable_dma()
75 direction = DMA_TO_DEVICE; in isa_enable_dma()
79 direction = DMA_BIDIRECTIONAL; in isa_enable_dma()
83 direction = DMA_NONE; in isa_enable_dma()
97 direction); in isa_enable_dma()
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-bus-counter30 Counting is continuous in either direction.
39 counting is resumed only when the count direction is
68 What: /sys/bus/counter/devices/counterX/countY/direction
72 Read-only attribute that indicates the count direction of Count
75 Some counter devices are able to determine the direction of
77 determine the direction of movement by evaluating the leading
116 pulse-direction:
118 The input level of signal B determines direction.
121 If direction is forward, rising edges on quadrature pair
122 signal A updates the respective count; if the direction
[all …]
/Linux-v5.4/drivers/input/
Dff-memless.c216 static u16 ml_calculate_direction(u16 direction, u16 force, in ml_calculate_direction() argument
222 return direction; in ml_calculate_direction()
223 return (((u32)(direction >> 1) * force + in ml_calculate_direction()
254 i = new->direction * 360 / 0xffff; in ml_combine_effects()
276 effect->direction = ml_calculate_direction( in ml_combine_effects()
277 effect->direction, in ml_combine_effects()
279 new->direction, strong); in ml_combine_effects()
281 effect->direction = ml_calculate_direction( in ml_combine_effects()
282 effect->direction, in ml_combine_effects()
284 new->direction, weak); in ml_combine_effects()
[all …]
/Linux-v5.4/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh9 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction`
39 direction=$2
43 echo $direction > $GPIO_SYSFS/gpio$nr/direction
45 if [ $direction = "out" ]; then
/Linux-v5.4/net/netfilter/
Dxt_connbytes.c43 switch (sinfo->direction) { in connbytes_mt()
57 switch (sinfo->direction) { in connbytes_mt()
71 switch (sinfo->direction) { in connbytes_mt()
108 if (sinfo->direction != XT_CONNBYTES_DIR_ORIGINAL && in connbytes_mt_check()
109 sinfo->direction != XT_CONNBYTES_DIR_REPLY && in connbytes_mt_check()
110 sinfo->direction != XT_CONNBYTES_DIR_BOTH) in connbytes_mt_check()
/Linux-v5.4/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c152 int direction, unsigned long data, unsigned long size) in videobuf_dma_init_user_locked() argument
158 dma->direction = direction; in videobuf_dma_init_user_locked()
159 switch (dma->direction) { in videobuf_dma_init_user_locked()
198 static int videobuf_dma_init_user(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_user() argument
204 ret = videobuf_dma_init_user_locked(dma, direction, data, size); in videobuf_dma_init_user()
210 static int videobuf_dma_init_kernel(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_kernel() argument
217 dma->direction = direction; in videobuf_dma_init_kernel()
269 static int videobuf_dma_init_overlay(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_overlay() argument
274 dma->direction = direction; in videobuf_dma_init_overlay()
314 dma->nr_pages, dma->direction); in videobuf_dma_map()
[all …]

12345678910>>...32