Home
last modified time | relevance | path

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

12345678910>>...18

/drivers/net/ethernet/netronome/nfp/crypto/
Dtls.c47 enum tls_offload_ctx_dir direction) in __nfp_net_tls_conn_cnt_changed() argument
52 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in __nfp_net_tls_conn_cnt_changed()
73 enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_cnt_changed() argument
79 if (__nfp_net_tls_conn_cnt_changed(nn, add, direction)) { in nfp_net_tls_conn_cnt_changed()
83 __nfp_net_tls_conn_cnt_changed(nn, -add, direction); in nfp_net_tls_conn_cnt_changed()
91 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add() argument
93 return nfp_net_tls_conn_cnt_changed(nn, 1, direction); in nfp_net_tls_conn_add()
97 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove() argument
99 return nfp_net_tls_conn_cnt_changed(nn, -1, direction); in nfp_net_tls_conn_remove()
176 struct sock *sk, int direction) in nfp_net_tls_set_ipv4() argument
[all …]
/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()
/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 …]
/drivers/staging/android/ion/
Dion_dma_buf.c102 enum dma_data_direction direction) in ion_map_dma_buf() argument
111 return heap->buf_ops.map_dma_buf(attachment, direction); in ion_map_dma_buf()
120 direction, attrs)) in ion_map_dma_buf()
130 enum dma_data_direction direction) in ion_unmap_dma_buf() argument
139 direction); in ion_unmap_dma_buf()
147 direction, attrs); in ion_unmap_dma_buf()
162 enum dma_data_direction direction) in ion_dma_buf_begin_cpu_access() argument
169 return heap->buf_ops.begin_cpu_access(dmabuf, direction); in ion_dma_buf_begin_cpu_access()
179 direction); in ion_dma_buf_begin_cpu_access()
189 enum dma_data_direction direction, in ion_dma_buf_begin_cpu_access_partial() argument
[all …]
/drivers/dma-buf/
Dudmabuf.c55 enum dma_data_direction direction) in get_sg_table() argument
69 ret = dma_map_sgtable(dev, sg, direction, 0); in get_sg_table()
81 enum dma_data_direction direction) in put_sg_table() argument
83 dma_unmap_sgtable(dev, sg, direction, 0); in put_sg_table()
89 enum dma_data_direction direction) in map_udmabuf() argument
91 return get_sg_table(at->dev, at->dmabuf, direction); in map_udmabuf()
96 enum dma_data_direction direction) in unmap_udmabuf() argument
98 return put_sg_table(at->dev, sg, direction); in unmap_udmabuf()
117 enum dma_data_direction direction) in begin_cpu_udmabuf() argument
124 ubuf->sg = get_sg_table(dev, buf, direction); in begin_cpu_udmabuf()
[all …]
Ddma-buf.c411 enum dma_data_direction direction; in dma_buf_ioctl() local
426 direction = DMA_FROM_DEVICE; in dma_buf_ioctl()
429 direction = DMA_TO_DEVICE; in dma_buf_ioctl()
432 direction = DMA_BIDIRECTIONAL; in dma_buf_ioctl()
439 ret = dma_buf_end_cpu_access(dmabuf, direction); in dma_buf_ioctl()
441 ret = dma_buf_begin_cpu_access(dmabuf, direction); in dma_buf_ioctl()
935 enum dma_data_direction direction) in dma_buf_map_attachment() argument
953 if (attach->dir != direction && in dma_buf_map_attachment()
969 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in dma_buf_map_attachment()
979 attach->dir = direction; in dma_buf_map_attachment()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls.c10 enum tls_offload_ctx_dir direction, in mlx5e_ktls_add() argument
21 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in mlx5e_ktls_add()
31 enum tls_offload_ctx_dir direction) in mlx5e_ktls_del() argument
33 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in mlx5e_ktls_del()
41 enum tls_offload_ctx_dir direction) in mlx5e_ktls_resync() argument
43 if (unlikely(direction != TLS_OFFLOAD_CTX_DIR_RX)) in mlx5e_ktls_resync()
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()
/drivers/gpio/
Dgpio-reg.c16 u32 direction; member
29 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN : in gpio_reg_get_direction()
38 if (r->direction & BIT(offset)) in gpio_reg_direction_output()
49 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input()
74 if (r->direction & mask) { in gpio_reg_get()
132 int base, int num, const char *label, u32 direction, u32 def_out, in gpio_reg_init() argument
160 r->direction = direction; in gpio_reg_init()
/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 …]
/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 …]
/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 …]
/drivers/usb/core/
Dendpoint.c106 char *direction; in direction_show() local
109 direction = "both"; in direction_show()
111 direction = "in"; in direction_show()
113 direction = "out"; in direction_show()
114 return sprintf(buf, "%s\n", direction); in direction_show()
116 static DEVICE_ATTR_RO(direction);
/drivers/net/ipa/
Dipa_cmd.c379 enum dma_data_direction direction = DMA_TO_DEVICE; in ipa_cmd_table_init_add() local
410 direction, opcode); in ipa_cmd_table_init_add()
419 enum dma_data_direction direction = DMA_TO_DEVICE; in ipa_cmd_hdr_init_local_add() local
441 direction, opcode); in ipa_cmd_hdr_init_local_add()
502 enum dma_data_direction direction = DMA_TO_DEVICE; in ipa_cmd_ip_packet_init_add() local
517 direction, opcode); in ipa_cmd_ip_packet_init_add()
528 enum dma_data_direction direction; in ipa_cmd_dma_shared_mem_add() local
558 direction = toward_ipa ? DMA_TO_DEVICE : DMA_FROM_DEVICE; in ipa_cmd_dma_shared_mem_add()
561 direction, opcode); in ipa_cmd_dma_shared_mem_add()
568 enum dma_data_direction direction = DMA_TO_DEVICE; in ipa_cmd_ip_tag_status_add() local
[all …]
/drivers/gpu/drm/gma500/
Daccel_2d.c170 uint32_t direction; in psb_accel_2d_copy() local
174 direction = in psb_accel_2d_copy()
177 if (direction == PSB_2D_COPYORDER_BR2TL || in psb_accel_2d_copy()
178 direction == PSB_2D_COPYORDER_TR2BL) { in psb_accel_2d_copy()
182 if (direction == PSB_2D_COPYORDER_BR2TL || in psb_accel_2d_copy()
183 direction == PSB_2D_COPYORDER_BL2TR) { in psb_accel_2d_copy()
193 PSB_2D_USE_PAT | PSB_2D_ROP3_SRCCOPY | direction; in psb_accel_2d_copy()
/drivers/usb/gadget/udc/
Dmv_udc_core.c40 ((ep)->udc->ep0_dir) : ((ep)->direction))
127 int i, direction; in process_ep_req() local
133 direction = index % 2; in process_ep_req()
153 if (direction) { in process_ep_req()
164 index >> 1, direction ? "SEND" : "RECV", in process_ep_req()
182 if (direction == EP_DIR_OUT) in process_ep_req()
255 u32 bit_pos, direction; in queue_dtd() local
261 direction = ep_dir(ep); in queue_dtd()
262 dqh = &(udc->ep_dqh[ep->ep_num * 2 + direction]); in queue_dtd()
263 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd()
[all …]
Dmv_u3d_core.c119 int direction, ep_num; in mv_u3d_process_ep_req() local
123 direction = index % 2; in mv_u3d_process_ep_req()
138 if (direction == MV_U3D_EP_DIR_OUT) in mv_u3d_process_ep_req()
148 direction == MV_U3D_EP_DIR_OUT)) { in mv_u3d_process_ep_req()
154 index >> 1, direction ? "SEND" : "RECV", in mv_u3d_process_ep_req()
220 u32 tmp, direction; in mv_u3d_queue_trb() local
226 direction = mv_u3d_ep_dir(ep); in mv_u3d_queue_trb()
232 ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); in mv_u3d_queue_trb()
260 + ((direction == MV_U3D_EP_DIR_OUT) ? 0 : 1); in mv_u3d_queue_trb()
271 unsigned int direction; in mv_u3d_build_trb_one() local
[all …]
/drivers/iio/imu/
Dadis_trigger.c38 unsigned long direction = adis->irq_flag & IRQF_TRIGGER_MASK; in adis_validate_irq_flag() local
50 if (direction == IRQF_TRIGGER_NONE) { in adis_validate_irq_flag()
53 } else if (direction != IRQF_TRIGGER_RISING && in adis_validate_irq_flag()
54 direction != IRQF_TRIGGER_FALLING) { in adis_validate_irq_flag()
/drivers/staging/greybus/
Dgpio.c24 direction: 1, /* 0 = output, 1 = input */ member
112 u8 direction; in gb_gpio_get_direction_operation() local
121 direction = response.direction; in gb_gpio_get_direction_operation()
122 if (direction && direction != 1) { in gb_gpio_get_direction_operation()
124 which, direction); in gb_gpio_get_direction_operation()
126 ggc->lines[which].direction = direction ? 1 : 0; in gb_gpio_get_direction_operation()
140 ggc->lines[which].direction = 1; in gb_gpio_direction_in_operation()
155 ggc->lines[which].direction = 0; in gb_gpio_direction_out_operation()
193 if (ggc->lines[which].direction == 1) { in gb_gpio_set_value_operation()
429 return ggc->lines[which].direction ? 1 : 0; in gb_gpio_get_direction()
/drivers/staging/rtl8188eu/hal/
Drf.c45 u8 direction; in rtl88eu_phy_rf6052_set_cck_txpower() local
89 rtl88eu_dm_txpower_track_adjust(&hal_data->odmpriv, 1, &direction, in rtl88eu_phy_rf6052_set_cck_txpower()
92 if (direction == 1) { in rtl88eu_phy_rf6052_set_cck_txpower()
96 } else if (direction == 2) { in rtl88eu_phy_rf6052_set_cck_txpower()
266 u8 direction; in rtl88eu_phy_rf6052_set_ofdm_txpower() local
273 &direction, &pwrtrac_value); in rtl88eu_phy_rf6052_set_ofdm_txpower()
280 if (direction == 1) { in rtl88eu_phy_rf6052_set_ofdm_txpower()
283 } else if (direction == 2) { in rtl88eu_phy_rf6052_set_ofdm_txpower()
/drivers/staging/media/rkisp1/
Drkisp1-isp.c61 .direction = RKISP1_ISP_SD_SRC,
68 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
75 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
82 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
89 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
96 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
103 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
110 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
117 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
124 .direction = RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC,
[all …]
/drivers/media/pci/ivtv/
Divtv-cards.c212 .gpio_init = { .direction = 0x1f01, .initial_value = 0x26f3 },
243 .gpio_init = { .direction = 0xe380, .initial_value = 0x8290 },
286 .gpio_init = { .direction = 0x3080, .initial_value = 0x0004 },
328 .gpio_init = { .direction = 0x7080, .initial_value = 0x400c },
479 .gpio_init = { .direction = 0xe080, .initial_value = 0x8000 },
556 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 },
588 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 },
618 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 },
660 .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 },
697 .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 },
[all …]
/drivers/dma/dw/
Ddw.c17 u32 cfghi = is_slave_direction(dwc->direction) ? 0 : DWC_CFGH_FIFO_MODE; in dw_dma_initialize_chan()
70 u8 smsize = (dwc->direction == DMA_DEV_TO_MEM) ? sconfig->src_maxburst : 0; in dw_dma_prepare_ctllo()
71 u8 dmsize = (dwc->direction == DMA_MEM_TO_DEV) ? sconfig->dst_maxburst : 0; in dw_dma_prepare_ctllo()
74 u8 dms = (dwc->direction == DMA_MEM_TO_DEV) ? p_master : m_master; in dw_dma_prepare_ctllo()
75 u8 sms = (dwc->direction == DMA_DEV_TO_MEM) ? p_master : m_master; in dw_dma_prepare_ctllo()
/drivers/dma/
Ddma-axi-dmac.c124 enum dma_transfer_direction direction; member
493 enum dma_transfer_direction direction, dma_addr_t addr, in axi_dmac_fill_linear_sg() argument
511 if (direction == DMA_DEV_TO_MEM) in axi_dmac_fill_linear_sg()
522 if (direction == DMA_DEV_TO_MEM) in axi_dmac_fill_linear_sg()
537 unsigned int sg_len, enum dma_transfer_direction direction, in axi_dmac_prep_slave_sg() argument
547 if (direction != chan->direction) in axi_dmac_prep_slave_sg()
567 dsg = axi_dmac_fill_linear_sg(chan, direction, sg_dma_address(sg), 1, in axi_dmac_prep_slave_sg()
578 size_t period_len, enum dma_transfer_direction direction, in axi_dmac_prep_dma_cyclic() argument
585 if (direction != chan->direction) in axi_dmac_prep_dma_cyclic()
602 axi_dmac_fill_linear_sg(chan, direction, buf_addr, num_periods, in axi_dmac_prep_dma_cyclic()
[all …]

12345678910>>...18