Home
last modified time | relevance | path

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

12345678910>>...13

/drivers/infiniband/hw/qib/
Dqib_dma.c54 size_t size, enum dma_data_direction direction) in qib_dma_map_single() argument
56 BUG_ON(!valid_dma_direction(direction)); in qib_dma_map_single()
61 enum dma_data_direction direction) in qib_dma_unmap_single() argument
63 BUG_ON(!valid_dma_direction(direction)); in qib_dma_unmap_single()
68 enum dma_data_direction direction) in qib_dma_map_page() argument
72 BUG_ON(!valid_dma_direction(direction)); in qib_dma_map_page()
89 enum dma_data_direction direction) in qib_dma_unmap_page() argument
91 BUG_ON(!valid_dma_direction(direction)); in qib_dma_unmap_page()
95 int nents, enum dma_data_direction direction) in qib_map_sg() argument
102 BUG_ON(!valid_dma_direction(direction)); in qib_map_sg()
[all …]
/drivers/staging/rdma/ipath/
Dipath_dma.c57 enum dma_data_direction direction) in ipath_dma_map_single() argument
59 BUG_ON(!valid_dma_direction(direction)); in ipath_dma_map_single()
65 enum dma_data_direction direction) in ipath_dma_unmap_single() argument
67 BUG_ON(!valid_dma_direction(direction)); in ipath_dma_unmap_single()
74 enum dma_data_direction direction) in ipath_dma_map_page() argument
78 BUG_ON(!valid_dma_direction(direction)); in ipath_dma_map_page()
96 enum dma_data_direction direction) in ipath_dma_unmap_page() argument
98 BUG_ON(!valid_dma_direction(direction)); in ipath_dma_unmap_page()
102 int nents, enum dma_data_direction direction) in ipath_map_sg() argument
109 BUG_ON(!valid_dma_direction(direction)); in ipath_map_sg()
[all …]
Dipath_user_pages.c106 unsigned long offset, size_t size, int direction) in ipath_map_page() argument
110 phys = pci_map_page(hwdev, page, offset, size, direction); in ipath_map_page()
113 pci_unmap_page(hwdev, phys, size, direction); in ipath_map_page()
114 phys = pci_map_page(hwdev, page, offset, size, direction); in ipath_map_page()
130 int direction) in ipath_map_single() argument
134 phys = pci_map_single(hwdev, ptr, size, direction); in ipath_map_single()
137 pci_unmap_single(hwdev, phys, size, direction); in ipath_map_single()
138 phys = pci_map_single(hwdev, ptr, size, direction); in ipath_map_single()
/drivers/char/xillybus/
Dxillybus_of.c45 int direction) in xilly_dma_sync_single_for_cpu_of() argument
47 dma_sync_single_for_cpu(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_cpu_of()
53 int direction) in xilly_dma_sync_single_for_device_of() argument
55 dma_sync_single_for_device(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_device_of()
61 int direction) in xilly_dma_sync_single_nop() argument
70 data->size, data->direction); in xilly_of_unmap()
78 int direction, in xilly_map_single_of() argument
90 addr = dma_map_single(ep->dev, ptr, size, direction); in xilly_map_single_of()
100 this->direction = direction; in xilly_map_single_of()
107 dma_unmap_single(ep->dev, addr, size, direction); in xilly_map_single_of()
Dxillybus_pcie.c41 static int xilly_pci_direction(int direction) in xilly_pci_direction() argument
43 switch (direction) { in xilly_pci_direction()
56 int direction) in xilly_dma_sync_single_for_cpu_pci() argument
61 xilly_pci_direction(direction)); in xilly_dma_sync_single_for_cpu_pci()
67 int direction) in xilly_dma_sync_single_for_device_pci() argument
72 xilly_pci_direction(direction)); in xilly_dma_sync_single_for_device_pci()
80 data->size, data->direction); in xilly_pci_unmap()
94 int direction, in xilly_map_single_pci() argument
107 pci_direction = xilly_pci_direction(direction); in xilly_map_single_pci()
119 this->direction = pci_direction; in xilly_map_single_pci()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c84 int max_frame, u8 direction) in ixgbe_dcb_calculate_tc_credits() argument
105 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits()
106 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits()
127 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits()
128 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits()
155 if (direction == DCB_TX_CONFIG) { in ixgbe_dcb_calculate_tc_credits()
188 void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_refill() argument
195 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill()
207 void ixgbe_dcb_unpack_bwgid(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_bwgid() argument
214 bwgid[tc] = tc_config[tc].path[direction].bwg_id; in ixgbe_dcb_unpack_bwgid()
[all …]
/drivers/staging/rdma/hfi1/
Ddma.c72 size_t size, enum dma_data_direction direction) in hfi1_dma_map_single() argument
74 if (WARN_ON(!valid_dma_direction(direction))) in hfi1_dma_map_single()
81 enum dma_data_direction direction) in hfi1_dma_unmap_single() argument
88 enum dma_data_direction direction) in hfi1_dma_map_page() argument
92 if (WARN_ON(!valid_dma_direction(direction))) in hfi1_dma_map_page()
106 enum dma_data_direction direction) in hfi1_dma_unmap_page() argument
112 int nents, enum dma_data_direction direction) in hfi1_map_sg() argument
119 if (WARN_ON(!valid_dma_direction(direction))) in hfi1_map_sg()
138 enum dma_data_direction direction) in hfi1_unmap_sg() argument
/drivers/parisc/
Dccio-rm-dma.c103 int direction) in ccio_map_single() argument
109 size_t size, int direction) in ccio_unmap_single() argument
115 static int ccio_map_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) in ccio_map_sg() argument
121 sg_dma_address(sglist) = ccio_map_single(dev, sglist->address, sglist->length, direction); in ccio_map_sg()
131 static void ccio_unmap_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) in ccio_unmap_sg() argument
135 ccio_unmap_single(dev, sg_dma_address(sglist), sg_dma_len(sglist), direction); in ccio_unmap_sg()
/drivers/input/
Dff-memless.c228 static u16 ml_calculate_direction(u16 direction, u16 force, in ml_calculate_direction() argument
234 return direction; in ml_calculate_direction()
235 return (((u32)(direction >> 1) * force + in ml_calculate_direction()
266 i = new->direction * 360 / 0xffff; in ml_combine_effects()
288 effect->direction = ml_calculate_direction( in ml_combine_effects()
289 effect->direction, in ml_combine_effects()
291 new->direction, strong); in ml_combine_effects()
293 effect->direction = ml_calculate_direction( in ml_combine_effects()
294 effect->direction, in ml_combine_effects()
296 new->direction, weak); in ml_combine_effects()
[all …]
/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c155 int direction, unsigned long data, unsigned long size) in videobuf_dma_init_user_locked() argument
161 dma->direction = direction; in videobuf_dma_init_user_locked()
162 switch (dma->direction) { in videobuf_dma_init_user_locked()
200 static int videobuf_dma_init_user(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_user() argument
206 ret = videobuf_dma_init_user_locked(dma, direction, data, size); in videobuf_dma_init_user()
212 static int videobuf_dma_init_kernel(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_kernel() argument
219 dma->direction = direction; in videobuf_dma_init_kernel()
272 static int videobuf_dma_init_overlay(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_overlay() argument
277 dma->direction = direction; in videobuf_dma_init_overlay()
317 dma->nr_pages, dma->direction); in videobuf_dma_map()
[all …]
/drivers/dma/
Ddma-axi-dmac.c100 enum dma_transfer_direction direction; member
340 unsigned int sg_len, enum dma_transfer_direction direction, in axi_dmac_prep_slave_sg() argument
348 if (direction != chan->direction) in axi_dmac_prep_slave_sg()
362 if (direction == DMA_DEV_TO_MEM) in axi_dmac_prep_slave_sg()
377 size_t period_len, enum dma_transfer_direction direction, in axi_dmac_prep_dma_cyclic() argument
384 if (direction != chan->direction) in axi_dmac_prep_dma_cyclic()
401 if (direction == DMA_DEV_TO_MEM) in axi_dmac_prep_dma_cyclic()
426 if (xt->dir != chan->direction) in axi_dmac_prep_interleaved()
548 chan->direction = DMA_MEM_TO_MEM; in axi_dmac_parse_chan_dt()
550 chan->direction = DMA_MEM_TO_DEV; in axi_dmac_parse_chan_dt()
[all …]
/drivers/usb/gadget/udc/
Dmv_udc_core.c45 ((ep)->udc->ep0_dir) : ((ep)->direction))
133 int i, direction; in process_ep_req() local
139 direction = index % 2; in process_ep_req()
160 if (direction) { in process_ep_req()
171 index >> 1, direction ? "SEND" : "RECV", in process_ep_req()
189 if (direction == EP_DIR_OUT) in process_ep_req()
262 u32 bit_pos, direction; in queue_dtd() local
268 direction = ep_dir(ep); in queue_dtd()
269 dqh = &(udc->ep_dqh[ep->ep_num * 2 + direction]); in queue_dtd()
270 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd()
[all …]
Dmv_u3d_core.c125 int direction, ep_num; in mv_u3d_process_ep_req() local
130 direction = index % 2; in mv_u3d_process_ep_req()
146 if (direction == MV_U3D_EP_DIR_OUT) { in mv_u3d_process_ep_req()
161 direction == MV_U3D_EP_DIR_OUT)) { in mv_u3d_process_ep_req()
167 index >> 1, direction ? "SEND" : "RECV", in mv_u3d_process_ep_req()
233 u32 tmp, direction; in mv_u3d_queue_trb() local
239 direction = mv_u3d_ep_dir(ep); in mv_u3d_queue_trb()
245 ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); in mv_u3d_queue_trb()
273 + ((direction == MV_U3D_EP_DIR_OUT) ? 0 : 1); in mv_u3d_queue_trb()
284 unsigned int direction; in mv_u3d_build_trb_one() local
[all …]
/drivers/gpu/drm/gma500/
Daccel_2d.c183 uint32_t direction; in psb_accel_2d_copy() local
187 direction = in psb_accel_2d_copy()
190 if (direction == PSB_2D_COPYORDER_BR2TL || in psb_accel_2d_copy()
191 direction == PSB_2D_COPYORDER_TR2BL) { in psb_accel_2d_copy()
195 if (direction == PSB_2D_COPYORDER_BR2TL || in psb_accel_2d_copy()
196 direction == PSB_2D_COPYORDER_BL2TR) { in psb_accel_2d_copy()
206 PSB_2D_USE_PAT | PSB_2D_ROP3_SRCCOPY | direction; in psb_accel_2d_copy()
/drivers/usb/core/
Dendpoint.c132 char *direction; in direction_show() local
135 direction = "both"; in direction_show()
137 direction = "in"; in direction_show()
139 direction = "out"; in direction_show()
140 return sprintf(buf, "%s\n", direction); in direction_show()
142 static DEVICE_ATTR_RO(direction);
/drivers/staging/rtl8188eu/hal/
Drf.c57 u8 direction; in rtl88eu_phy_rf6052_set_cck_txpower() local
104 rtl88eu_dm_txpower_track_adjust(&hal_data->odmpriv, 1, &direction, in rtl88eu_phy_rf6052_set_cck_txpower()
107 if (direction == 1) { in rtl88eu_phy_rf6052_set_cck_txpower()
111 } else if (direction == 2) { in rtl88eu_phy_rf6052_set_cck_txpower()
295 u8 direction; in rtl88eu_phy_rf6052_set_ofdm_txpower() local
301 rtl88eu_dm_txpower_track_adjust(&hal_data->odmpriv, 0, &direction, in rtl88eu_phy_rf6052_set_ofdm_txpower()
309 if (direction == 1) { in rtl88eu_phy_rf6052_set_ofdm_txpower()
312 } else if (direction == 2) { in rtl88eu_phy_rf6052_set_ofdm_txpower()
/drivers/media/pci/ivtv/
Divtv-cards.c224 .gpio_init = { .direction = 0x1f01, .initial_value = 0x26f3 },
255 .gpio_init = { .direction = 0xe380, .initial_value = 0x8290 },
298 .gpio_init = { .direction = 0x3080, .initial_value = 0x0004 },
340 .gpio_init = { .direction = 0x7080, .initial_value = 0x400c },
491 .gpio_init = { .direction = 0xe080, .initial_value = 0x8000 },
568 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 },
600 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 },
630 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 },
672 .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 },
709 .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 },
[all …]
/drivers/dma/hsu/
Dhsu.c49 if (hsuc->direction == DMA_MEM_TO_DEV) in hsu_chan_enable()
51 else if (hsuc->direction == DMA_DEV_TO_MEM) in hsu_chan_enable()
65 if (hsuc->direction == DMA_MEM_TO_DEV) { in hsu_dma_chan_start()
68 } else if (hsuc->direction == DMA_DEV_TO_MEM) { in hsu_dma_chan_start()
163 if (hsuc->direction == DMA_DEV_TO_MEM && (sr & HSU_CH_SR_DESCTO_ANY)) in hsu_dma_irq()
216 unsigned int sg_len, enum dma_transfer_direction direction, in hsu_dma_prep_slave_sg() argument
234 desc->direction = direction; in hsu_dma_prep_slave_sg()
311 if (!is_slave_direction(config->direction)) in hsu_dma_slave_config()
403 hsuc->direction = (i & 0x1) ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; in hsu_dma_probe()
/drivers/infiniband/core/
Dsmi.c48 u8 direction, in __smi_handle_dr_smp_send() argument
57 if (!direction) { in __smi_handle_dr_smp_send()
160 u8 direction, in __smi_handle_dr_smp_recv() argument
169 if (!direction) { in __smi_handle_dr_smp_recv()
271 u8 direction, in __smi_check_forward_dr_smp() argument
275 if (!direction) { in __smi_check_forward_dr_smp()
/drivers/dma/sh/
Dshdma-base.c506 struct shdma_desc **first, enum dma_transfer_direction direction) in shdma_add_desc() argument
541 new->direction = direction; in shdma_add_desc()
545 if (direction == DMA_MEM_TO_MEM || direction == DMA_MEM_TO_DEV) in shdma_add_desc()
547 if (direction == DMA_MEM_TO_MEM || direction == DMA_DEV_TO_MEM) in shdma_add_desc()
565 enum dma_transfer_direction direction, unsigned long flags, bool cyclic) in shdma_prep_sg() argument
602 if (direction == DMA_DEV_TO_MEM) in shdma_prep_sg()
605 direction); in shdma_prep_sg()
609 direction); in shdma_prep_sg()
666 enum dma_transfer_direction direction, unsigned long flags, void *context) in shdma_prep_slave_sg() argument
689 direction, flags, false); in shdma_prep_slave_sg()
[all …]
/drivers/crypto/amcc/
Dcrypto4xx_alg.c77 ctx->direction = DIR_OUTBOUND; in crypto4xx_encrypt()
91 ctx->direction = DIR_INBOUND; in crypto4xx_decrypt()
158 ctx->direction = DIR_INBOUND; in crypto4xx_setkey_aes()
225 ctx->direction = DIR_INBOUND; in crypto4xx_hash_alg_init()
249 ctx->direction = DIR_INBOUND; in crypto4xx_hash_init()
261 ctx->direction = DIR_INBOUND; in crypto4xx_hash_update()
279 ctx->direction = DIR_INBOUND; in crypto4xx_hash_digest()
/drivers/firewire/
Dcore-iso.c68 enum dma_data_direction direction) in fw_iso_buffer_map_dma() argument
73 buffer->direction = direction; in fw_iso_buffer_map_dma()
77 0, PAGE_SIZE, direction); in fw_iso_buffer_map_dma()
91 int page_count, enum dma_data_direction direction) in fw_iso_buffer_init() argument
99 ret = fw_iso_buffer_map_dma(buffer, card, direction); in fw_iso_buffer_init()
134 PAGE_SIZE, buffer->direction); in fw_iso_buffer_destroy()
/drivers/input/misc/
Dtwl6040-vibra.c56 int direction; member
136 int speed, int direction) in twl6040_vibra_code() argument
154 vibdat *= direction; in twl6040_vibra_code()
169 info->weak_speed, info->direction); in twl6040_vibra_set_effect()
175 info->strong_speed, info->direction); in twl6040_vibra_set_effect()
214 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 1 : -1; in vibra_play()
/drivers/staging/most/aim-sound/
Dsound.c193 if (channel->cfg->direction & MOST_CH_RX) in copy_data()
283 if (cfg->direction == MOST_CH_TX) { in pcm_open()
294 if (cfg->direction == MOST_CH_TX) in pcm_open()
317 if (channel->cfg->direction == MOST_CH_TX) in pcm_close()
382 if (cfg->direction == MOST_CH_TX) { in pcm_prepare()
572 int direction; in audio_probe_channel() local
590 if (cfg->direction == MOST_CH_TX) { in audio_probe_channel()
592 direction = SNDRV_PCM_STREAM_PLAYBACK; in audio_probe_channel()
595 direction = SNDRV_PCM_STREAM_CAPTURE; in audio_probe_channel()
632 snd_pcm_set_ops(pcm, direction, &pcm_ops); in audio_probe_channel()
/drivers/soc/ti/
Dknav_dma.c116 enum dma_transfer_direction direction; member
132 #define chan_number(ch) ((ch->direction == DMA_MEM_TO_DEV) ? \
151 if ((chan->direction == DMA_MEM_TO_DEV) && chan->reg_chan) { in chan_start()
318 ((chan->direction == DMA_MEM_TO_DEV) ? "tx chan" : "rx flow"), in dma_debug_show_channels()
321 if (chan->direction == DMA_MEM_TO_DEV) { in dma_debug_show_channels()
439 config->direction == DMA_MEM_TO_DEV ? "transmit" : in knav_dma_open_channel()
440 config->direction == DMA_DEV_TO_MEM ? "receive" : in knav_dma_open_channel()
443 if (config->direction != DMA_MEM_TO_DEV && in knav_dma_open_channel()
444 config->direction != DMA_DEV_TO_MEM) { in knav_dma_open_channel()
464 if (config->direction == DMA_MEM_TO_DEV) { in knav_dma_open_channel()
[all …]

12345678910>>...13