/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_mgmt.c | 120 * @direction: the direction of the message 129 enum mgmt_direction_type direction, 141 HINIC_MSG_HEADER_SET(direction, DIRECTION) | 195 * @direction: the direction of the original message 204 enum mgmt_direction_type direction, 213 if (direction == MGMT_RESP) { 215 direction, cmd, resp_msg_id); 219 direction, cm 126 prepare_header(struct hinic_pf_to_mgmt *pf_to_mgmt, u16 msg_len, enum hinic_mod_type mod, enum msg_ack_type ack_type, enum mgmt_direction_type direction, u16 cmd, u16 msg_id) argument 200 send_msg_to_mgmt(struct hinic_pf_to_mgmt *pf_to_mgmt, enum hinic_mod_type mod, u8 cmd, u8 *data, u16 data_len, enum msg_ack_type ack_type, enum mgmt_direction_type direction, u16 resp_msg_id) argument 245 msg_to_mgmt_sync(struct hinic_pf_to_mgmt *pf_to_mgmt, enum hinic_mod_type mod, u8 cmd, u8 *buf_in, u16 in_size, u8 *buf_out, u16 *out_size, enum mgmt_direction_type direction, u16 resp_msg_id, u32 timeout) argument 319 msg_to_mgmt_async(struct hinic_pf_to_mgmt *pf_to_mgmt, enum hinic_mod_type mod, u8 cmd, u8 *buf_in, u16 in_size, enum mgmt_direction_type direction, u16 resp_msg_id) argument [all...] |
/linux-master/sound/usb/line6/ |
H A D | pcm.c | 138 get_stream(struct snd_line6_pcm *line6pcm, int direction) argument 140 return (direction == SNDRV_PCM_STREAM_PLAYBACK) ? 148 struct line6_pcm_stream *pstr, int direction, int type) 151 (direction == SNDRV_PCM_STREAM_PLAYBACK) ? 182 static int line6_stream_start(struct snd_line6_pcm *line6pcm, int direction, argument 186 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); 194 if (direction == SNDRV_PCM_STREAM_PLAYBACK) 207 static void line6_stream_stop(struct snd_line6_pcm *line6pcm, int direction, argument 211 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); 219 if (direction 147 line6_buffer_acquire(struct snd_line6_pcm *line6pcm, struct line6_pcm_stream *pstr, int direction, int type) argument [all...] |
/linux-master/drivers/most/ |
H A D | most_snd.c | 189 if (channel->cfg->direction & MOST_CH_RX) 274 if (cfg->direction == MOST_CH_TX) { 286 if (cfg->direction == MOST_CH_TX) 309 if (channel->cfg->direction == MOST_CH_TX) 333 if (cfg->direction == MOST_CH_TX) { 523 int direction; local 570 if (cfg->direction == MOST_CH_TX) { 572 direction = SNDRV_PCM_STREAM_PLAYBACK; 575 direction = SNDRV_PCM_STREAM_CAPTURE; 602 snd_pcm_set_ops(pcm, direction, [all...] |
/linux-master/sound/soc/sprd/ |
H A D | sprd-pcm-compress.c | 204 if (cstream->direction == SND_COMPRESS_PLAYBACK) { 292 compr_params.direction = cstream->direction; 300 ret = stream->compr_ops->set_params(cstream->direction, &compr_params); 324 int stream_id = cstream->direction, ret; 398 int stream_id = cstream->direction, i; 426 int stream_id = cstream->direction; 428 if (cstream->direction != SND_COMPRESS_PLAYBACK) { 429 dev_err(dev, "unsupported compress direction\n"); 611 caps->direction [all...] |
/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-cards.c | 212 .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 [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sharedbuffer_configuration.py | 55 def _get_pool(self, direction): 63 if direction == "ingress": 185 def get_pools(dlname, direction=None): 189 if not direction or direction == pooldict["type"]:
|
/linux-master/sound/core/ |
H A D | pcm_dmaengine.c | 76 slave_config->direction = DMA_MEM_TO_DEV; 79 slave_config->direction = DMA_DEV_TO_MEM; 99 * direction of the substream. If the substream is a playback stream the dst 153 enum dma_transfer_direction direction; local 156 direction = snd_pcm_substream_to_dma_direction(substream); 165 snd_pcm_lib_period_bytes(substream), direction, flags);
|
H A D | compress_offload.c | 102 if (dirn != compr->direction) { 103 pr_err("this device doesn't support this direction\n"); 117 data->stream.direction = dirn; 173 if (stream->direction == SND_COMPRESS_PLAYBACK) 189 stream->direction == SND_COMPRESS_PLAYBACK) { 198 if (stream->direction == SND_COMPRESS_PLAYBACK) { 209 if (stream->direction == SND_COMPRESS_PLAYBACK) 378 if (stream->direction == SND_COMPRESS_PLAYBACK) 739 if (stream->direction != SND_COMPRESS_CAPTURE) 889 if (stream->direction [all...] |
/linux-master/drivers/gpu/drm/tegra/ |
H A D | uapi.c | 191 enum dma_data_direction direction; local 227 direction = DMA_BIDIRECTIONAL; 231 direction = DMA_FROM_DEVICE; 235 direction = DMA_TO_DEVICE; 243 mapping->map = host1x_bo_pin(mapping_dev, mapping->bo, direction, NULL);
|
/linux-master/drivers/staging/most/i2c/ |
H A D | i2c.c | 81 if (channel_config->direction != dev->capabilities[ch_idx].direction) { 82 pr_err("bad direction for channel %d\n", ch_idx); 86 if (channel_config->direction == MOST_CH_RX) { 164 * If channel direction is RX, complete the buffers in list with 308 dev->capabilities[CH_RX].direction = MOST_CH_RX; 310 dev->capabilities[CH_TX].direction = MOST_CH_TX;
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | fault.c | 235 ibd->fault->direction = HFI1_FAULT_DIR_TXRX; 262 debugfs_create_u8("direction", 0600, fault_dir, &ibd->fault->direction); 275 u8 direction) 281 if (!(ibd->fault->direction & direction)) 274 __hfi1_should_fault(struct hfi1_ibdev *ibd, u32 opcode, u8 direction) argument
|
/linux-master/drivers/usb/dwc3/ |
H A D | ep0.c | 110 unsigned int direction; local 112 direction = !!(dep->flags & DWC3_EP0_DIR_IN); 119 __dwc3_ep0_do_control_data(dwc, dwc->eps[direction], req); 132 unsigned int direction; local 134 direction = !dwc->ep0_expect_in; 139 __dwc3_ep0_do_control_status(dwc, dwc->eps[direction]); 177 unsigned int direction; local 179 direction = dwc->ep0_expect_in; 182 __dwc3_ep0_do_control_data(dwc, dwc->eps[direction], req); 758 * aligned transfers on the OUT direction, s 1093 unsigned int direction = !dwc->ep0_expect_in; local [all...] |
/linux-master/sound/soc/ux500/ |
H A D | ux500_msp_i2s.c | 197 if (config->direction & MSP_DIR_TX) 199 if (config->direction & MSP_DIR_RX) 364 if (config->direction & MSP_DIR_RX) 366 if (config->direction & MSP_DIR_TX) 428 tx_sel = (config->direction & MSP_DIR_TX) > 0; 429 rx_sel = (config->direction & MSP_DIR_RX) > 0; 431 dev_err(msp->dev, "%s: Error: No direction selected!\n", 554 int ux500_msp_i2s_trigger(struct ux500_msp *msp, int cmd, int direction) argument 568 if (direction == SNDRV_PCM_STREAM_PLAYBACK) 579 if (direction [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | floppy_64.h | 151 * underruns. If non-zero, doing_pdma encodes the direction of 295 int direction; member in struct:sun_pci_dma_op 361 (0 == sun_pci_dma_pending.direction)); 365 sun_pci_dma_current.direction = sun_pci_dma_pending.direction; 369 sun_pci_dma_pending.direction = 0; 376 sun_pci_dma_current.direction); 393 sun_pci_dma_current.direction); 400 sun_pci_dma_pending.direction = DMA_TO_DEVICE; 402 sun_pci_dma_pending.direction [all...] |
/linux-master/drivers/soc/ti/ |
H A D | knav_dma.c | 12 #include <linux/dma-direction.h> 108 enum dma_transfer_direction direction; member in struct:knav_dma_chan 124 #define chan_number(ch) ((ch->direction == DMA_MEM_TO_DEV) ? \ 150 if ((chan->direction == DMA_MEM_TO_DEV) && chan->reg_chan) { 317 ((chan->direction == DMA_MEM_TO_DEV) ? "tx chan" : "rx flow"), 320 if (chan->direction == DMA_MEM_TO_DEV) { 427 config->direction == DMA_MEM_TO_DEV ? "transmit" : 428 config->direction == DMA_DEV_TO_MEM ? "receive" : 431 if (config->direction != DMA_MEM_TO_DEV && 432 config->direction ! [all...] |
/linux-master/drivers/dma/ |
H A D | imx-dma.c | 127 enum dma_transfer_direction direction; member in struct:imxdma_desc 272 if (d->direction == DMA_DEV_TO_MEM) 558 if (d->direction == DMA_DEV_TO_MEM) { 569 } else if (d->direction == DMA_MEM_TO_DEV) { 660 enum dma_transfer_direction direction) 666 if (direction == DMA_DEV_TO_MEM) { 796 unsigned int sg_len, enum dma_transfer_direction direction, 814 imxdma_config_write(chan, &imxdmac->config, direction); 835 desc->direction = direction; 658 imxdma_config_write(struct dma_chan *chan, struct dma_slave_config *dmaengine_cfg, enum dma_transfer_direction direction) argument 794 imxdma_prep_slave_sg( struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument 847 imxdma_prep_dma_cyclic( struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, size_t period_len, enum dma_transfer_direction direction, unsigned long flags) argument [all...] |
H A D | dma-axi-dmac.c | 147 enum dma_transfer_direction direction; member in struct:axi_dmac_chan 583 enum dma_transfer_direction direction, dma_addr_t addr, 599 if (direction == DMA_DEV_TO_MEM) 610 if (direction == DMA_DEV_TO_MEM) 625 unsigned int sg_len, enum dma_transfer_direction direction, 635 if (direction != chan->direction) 655 dsg = axi_dmac_fill_linear_sg(chan, direction, sg_dma_address(sg), 1, 666 size_t period_len, enum dma_transfer_direction direction, 673 if (direction ! 582 axi_dmac_fill_linear_sg(struct axi_dmac_chan *chan, enum dma_transfer_direction direction, dma_addr_t addr, unsigned int num_periods, unsigned int period_len, struct axi_dmac_sg *sg) argument 623 axi_dmac_prep_slave_sg( struct dma_chan *c, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument 664 axi_dmac_prep_dma_cyclic( struct dma_chan *c, dma_addr_t buf_addr, size_t buf_len, size_t period_len, enum dma_transfer_direction direction, unsigned long flags) argument [all...] |
H A D | bcm2835-dma.c | 284 * @direction: the direction in which we transfer 301 struct dma_chan *chan, enum dma_transfer_direction direction, 322 d->dir = direction; 385 enum dma_transfer_direction direction, 401 if (direction == DMA_DEV_TO_MEM) 643 enum dma_transfer_direction direction, 653 if (!is_slave_direction(direction)) { 655 "%s: bad direction?\n", __func__); 662 if (direction 300 bcm2835_dma_create_cb_chain( struct dma_chan *chan, enum dma_transfer_direction direction, bool cyclic, u32 info, u32 finalextrainfo, size_t frames, dma_addr_t src, dma_addr_t dst, size_t buf_len, size_t period_len, gfp_t gfp) argument 383 bcm2835_dma_fill_cb_chain_with_sg( struct dma_chan *chan, enum dma_transfer_direction direction, struct bcm2835_cb_entry *cb, struct scatterlist *sgl, unsigned int sg_len) argument 640 bcm2835_dma_prep_slave_sg( struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, enum dma_transfer_direction direction, unsigned long flags, void *context) argument 692 bcm2835_dma_prep_dma_cyclic( struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, size_t period_len, enum dma_transfer_direction direction, unsigned long flags) argument [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda-tce.c | 125 unsigned long uaddr, enum dma_data_direction direction, 128 u64 proto_tce = iommu_direction_to_tce_perm(direction); 148 unsigned long *hpa, enum dma_data_direction *direction) 150 u64 proto_tce = iommu_direction_to_tce_perm(*direction); 157 if (*direction == DMA_NONE) { 176 *direction = iommu_tce_direction(oldtce); 124 pnv_tce_build(struct iommu_table *tbl, long index, long npages, unsigned long uaddr, enum dma_data_direction direction, unsigned long attrs) argument 147 pnv_tce_xchg(struct iommu_table *tbl, long index, unsigned long *hpa, enum dma_data_direction *direction) argument
|
/linux-master/sound/virtio/ |
H A D | virtio_pcm.c | 373 switch (info[i].direction) { 375 vss->direction = SNDRV_PCM_STREAM_PLAYBACK; 378 vss->direction = SNDRV_PCM_STREAM_CAPTURE; 381 dev_err(&vdev->dev, "SID %u: unknown direction (%u)\n", 382 vss->sid, info[i].direction); 387 vpcm->streams[vss->direction].nsubstreams++; 460 vs = &vpcm->streams[vss->direction];
|
/linux-master/drivers/usb/gadget/udc/ |
H A D | mv_u3d_core.c | 119 int direction, ep_num; local 123 direction = index % 2; 138 if (direction == MV_U3D_EP_DIR_OUT) 148 direction == MV_U3D_EP_DIR_OUT)) { 154 index >> 1, direction ? "SEND" : "RECV", 220 u32 tmp, direction; local 226 direction = mv_u3d_ep_dir(ep); 232 ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); 260 + ((direction == MV_U3D_EP_DIR_OUT) ? 0 : 1); 271 unsigned int direction; local 336 unsigned int direction; local 527 u32 epxcr, direction; local 627 u32 epxcr, direction; local 689 u32 direction; local 920 mv_u3d_ep_set_stall(struct mv_u3d *u3d, u8 ep_num, u8 direction, int stall) argument 1614 int i, ep_num = 0, direction = 0; local [all...] |
/linux-master/include/linux/ |
H A D | most.h | 33 * Channel direction. 61 * @direction: Supported channel directions. 96 u16 direction; member in struct:most_channel_capability 107 * @direction: direction of the channel 124 enum most_channel_direction direction; member in struct:most_channel_config 157 * channel direction, set "processed_length" and "status" and completes 171 * de-registers an interface or gets unloaded from the kernel. If this direction 211 * configurable. Parameter channel_config describes direction and data
|
H A D | tifm.h | 145 int direction); 147 int direction);
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-stm32.c | 39 dma_sconfig.direction = DMA_MEM_TO_DEV; 61 dma_sconfig.direction = DMA_DEV_TO_MEM;
|
/linux-master/sound/soc/sof/intel/ |
H A D | hda-probes.c | 35 hext_stream = hda_dsp_stream_get(sdev, cstream->direction, 0); 56 ret = hda_dsp_stream_put(sdev, cstream->direction,
|