Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 1218) sorted by relevance

12345678910>>...49

/drivers/char/xillybus/
Dxillybus_core.c134 struct xilly_channel *channel; in xillybus_isr() local
194 channel = ep->channels[msg_channel]; in xillybus_isr()
197 if (msg_bufno >= channel->num_wr_buffers) { in xillybus_isr()
201 spin_lock(&channel->wr_spinlock); in xillybus_isr()
202 channel->wr_buffers[msg_bufno]->end_offset = in xillybus_isr()
204 channel->wr_fpga_buf_idx = msg_bufno; in xillybus_isr()
205 channel->wr_empty = 0; in xillybus_isr()
206 channel->wr_sleepy = 0; in xillybus_isr()
207 spin_unlock(&channel->wr_spinlock); in xillybus_isr()
209 wake_up_interruptible(&channel->wr_wait); in xillybus_isr()
[all …]
/drivers/soc/qcom/
Dsmd.c249 #define GET_RX_CHANNEL_FLAG(channel, param) \ argument
251 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u8)); \
252 channel->info_word ? \
253 le32_to_cpu(channel->info_word->rx.param) : \
254 channel->info->rx.param; \
257 #define GET_RX_CHANNEL_INFO(channel, param) \ argument
259 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u32)); \
260 le32_to_cpu(channel->info_word ? \
261 channel->info_word->rx.param : \
262 channel->info->rx.param); \
[all …]
/drivers/staging/unisys/visorbus/
Dvisorchannel.c58 visorchannel_destroy(struct visorchannel *channel) in visorchannel_destroy() argument
60 if (!channel) in visorchannel_destroy()
62 if (channel->mapped) { in visorchannel_destroy()
63 memunmap(channel->mapped); in visorchannel_destroy()
64 if (channel->requested) in visorchannel_destroy()
65 release_mem_region(channel->physaddr, channel->nbytes); in visorchannel_destroy()
67 kfree(channel); in visorchannel_destroy()
71 visorchannel_get_physaddr(struct visorchannel *channel) in visorchannel_get_physaddr() argument
73 return channel->physaddr; in visorchannel_get_physaddr()
77 visorchannel_get_nbytes(struct visorchannel *channel) in visorchannel_get_nbytes() argument
[all …]
/drivers/rpmsg/
Dqcom_smd.c266 #define GET_RX_CHANNEL_FLAG(channel, param) \ argument
268 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u8)); \
269 channel->info_word ? \
270 le32_to_cpu(channel->info_word->rx.param) : \
271 channel->info->rx.param; \
274 #define GET_RX_CHANNEL_INFO(channel, param) \ argument
276 BUILD_BUG_ON(sizeof(channel->info->rx.param) != sizeof(u32)); \
277 le32_to_cpu(channel->info_word ? \
278 channel->info_word->rx.param : \
279 channel->info->rx.param); \
[all …]
/drivers/staging/most/aim-sound/
Dsound.c47 struct channel { struct
163 static struct channel *get_channel(struct most_interface *iface, in get_channel()
166 struct channel *channel, *tmp; in get_channel() local
168 list_for_each_entry_safe(channel, tmp, &dev_list, list) { in get_channel()
169 if ((channel->iface == iface) && (channel->id == channel_id)) in get_channel()
170 return channel; in get_channel()
183 static bool copy_data(struct channel *channel, struct mbo *mbo) in copy_data() argument
185 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data()
186 unsigned int const frame_bytes = channel->cfg->subbuffer_size; in copy_data()
191 if (channel->cfg->direction & MOST_CH_RX) in copy_data()
[all …]
/drivers/ipack/devices/
Dipoctal.c52 struct ipoctal_channel channel[NR_CHANNELS]; member
61 return container_of(chan, struct ipoctal, channel[index]); in chan_to_ipoctal()
64 static void ipoctal_reset_channel(struct ipoctal_channel *channel) in ipoctal_reset_channel() argument
66 iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
67 channel->rx_enable = 0; in ipoctal_reset_channel()
68 iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr); in ipoctal_reset_channel()
69 iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
70 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_reset_channel()
71 iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr); in ipoctal_reset_channel()
76 struct ipoctal_channel *channel; in ipoctal_port_activate() local
[all …]
/drivers/staging/greybus/
Dlight.c72 static void gb_lights_channel_free(struct gb_channel *channel);
74 static struct gb_connection *get_conn_from_channel(struct gb_channel *channel) in get_conn_from_channel() argument
76 return channel->light->glights->connection; in get_conn_from_channel()
84 static bool is_channel_flash(struct gb_channel *channel) in is_channel_flash() argument
86 return !!(channel->mode & (GB_CHANNEL_MODE_FLASH | GB_CHANNEL_MODE_TORCH in is_channel_flash()
98 static struct led_classdev *get_channel_cdev(struct gb_channel *channel) in get_channel_cdev() argument
100 return &channel->fled.led_cdev; in get_channel_cdev()
106 struct gb_channel *channel = NULL; in get_channel_from_mode() local
110 channel = &light->channels[i]; in get_channel_from_mode()
111 if (channel && channel->mode == mode) in get_channel_from_mode()
[all …]
/drivers/hsi/controllers/
Domap_ssi_regs.h46 # define SSI_DATAACCEPT(channel) (1 << (channel)) argument
47 # define SSI_DATAAVAILABLE(channel) (1 << ((channel) + 8)) argument
48 # define SSI_DATAOVERRUN(channel) (1 << ((channel) + 16)) argument
53 # define SSI_GDD_LCH(channel) (1 << (channel)) argument
57 # define SSI_WAKE(channel) (1 << (channel)) argument
75 # define SSI_FULL(channel) (1 << (channel)) argument
84 #define SSI_SST_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument
85 #define SSI_SST_SWAPBUF_CH_REG(channel) (0xc0 + ((channel) * 4)) argument
95 # define SSI_NOTEMPTY(channel) (1 << (channel)) argument
104 #define SSI_SSR_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument
[all …]
/drivers/hsi/clients/
Dhsi_char.c129 static void hsc_add_tail(struct hsc_channel *channel, struct hsi_msg *msg, in hsc_add_tail() argument
134 spin_lock_irqsave(&channel->lock, flags); in hsc_add_tail()
136 spin_unlock_irqrestore(&channel->lock, flags); in hsc_add_tail()
139 static struct hsi_msg *hsc_get_first_msg(struct hsc_channel *channel, in hsc_get_first_msg() argument
145 spin_lock_irqsave(&channel->lock, flags); in hsc_get_first_msg()
153 spin_unlock_irqrestore(&channel->lock, flags); in hsc_get_first_msg()
174 static void hsc_reset_list(struct hsc_channel *channel, struct list_head *l) in hsc_reset_list() argument
179 spin_lock_irqsave(&channel->lock, flags); in hsc_reset_list()
181 spin_unlock_irqrestore(&channel->lock, flags); in hsc_reset_list()
208 static inline int hsc_msgs_alloc(struct hsc_channel *channel) in hsc_msgs_alloc() argument
[all …]
/drivers/net/wireless/broadcom/b43/
Dradio_2055.c305 { .channel = 184,
313 { .channel = 186,
321 { .channel = 188,
329 { .channel = 190,
337 { .channel = 192,
345 { .channel = 194,
353 { .channel = 196,
361 { .channel = 198,
369 { .channel = 200,
377 { .channel = 202,
[all …]
/drivers/gpu/host1x/
Dchannel.c42 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit()
48 struct host1x_channel *host1x_channel_get(struct host1x_channel *channel) in host1x_channel_get() argument
52 mutex_lock(&channel->reflock); in host1x_channel_get()
54 if (channel->refcount == 0) in host1x_channel_get()
55 err = host1x_cdma_init(&channel->cdma); in host1x_channel_get()
58 channel->refcount++; in host1x_channel_get()
60 mutex_unlock(&channel->reflock); in host1x_channel_get()
62 return err ? NULL : channel; in host1x_channel_get()
66 void host1x_channel_put(struct host1x_channel *channel) in host1x_channel_put() argument
68 mutex_lock(&channel->reflock); in host1x_channel_put()
[all …]
/drivers/tty/serial/jsm/
Djsm_tty.c75 struct jsm_channel *channel = in jsm_tty_get_mctrl() local
78 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_get_mctrl()
80 result = jsm_get_mstat(channel); in jsm_tty_get_mctrl()
85 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); in jsm_tty_get_mctrl()
97 struct jsm_channel *channel = in jsm_tty_set_mctrl() local
100 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); in jsm_tty_set_mctrl()
103 channel->ch_mostat |= UART_MCR_RTS; in jsm_tty_set_mctrl()
105 channel->ch_mostat &= ~UART_MCR_RTS; in jsm_tty_set_mctrl()
108 channel->ch_mostat |= UART_MCR_DTR; in jsm_tty_set_mctrl()
110 channel->ch_mostat &= ~UART_MCR_DTR; in jsm_tty_set_mctrl()
[all …]
/drivers/net/ethernet/sfc/
Defx.c204 static void efx_remove_channel(struct efx_channel *channel);
208 static void efx_init_napi_channel(struct efx_channel *channel);
210 static void efx_fini_napi_channel(struct efx_channel *channel);
246 static int efx_process_channel(struct efx_channel *channel, int budget) in efx_process_channel() argument
251 if (unlikely(!channel->enabled)) in efx_process_channel()
254 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_process_channel()
259 spent = efx_nic_process_eventq(channel, budget); in efx_process_channel()
260 if (spent && efx_channel_has_rx_queue(channel)) { in efx_process_channel()
262 efx_channel_get_rx_queue(channel); in efx_process_channel()
264 efx_rx_flush_packet(channel); in efx_process_channel()
[all …]
/drivers/tty/serial/
Dip22zilog.c54 #define ZS_WSYNC(channel) do { } while (0) argument
112 static unsigned char read_zsreg(struct zilog_channel *channel, in read_zsreg() argument
117 writeb(reg, &channel->control); in read_zsreg()
119 retval = readb(&channel->control); in read_zsreg()
125 static void write_zsreg(struct zilog_channel *channel, in write_zsreg() argument
128 writeb(reg, &channel->control); in write_zsreg()
130 writeb(value, &channel->control); in write_zsreg()
134 static void ip22zilog_clear_fifo(struct zilog_channel *channel) in ip22zilog_clear_fifo() argument
141 regval = readb(&channel->control); in ip22zilog_clear_fifo()
146 regval = read_zsreg(channel, R1); in ip22zilog_clear_fifo()
[all …]
/drivers/media/pci/tw5864/
Dtw5864-reg.h349 #define TW5864_RT_CNTR_CH_FRM(channel, frame) \ argument
350 (0x0c00 | (channel << 4) | (frame << 2))
995 #define TW5864_H264EN_RATE_CNTL_LO_WORD(bus, channel) \ argument
996 (0x9100 + bus * 0x20 + channel * 0x08)
997 #define TW5864_H264EN_RATE_CNTL_HI_WORD(bus, channel) \ argument
998 (0x9104 + bus * 0x20 + channel * 0x08)
1464 #define TW5864_INDIR_VIN_0(channel) (0x000 + channel * 0x010) argument
1505 #define TW5864_INDIR_VIN_1(channel) (0x001 + channel * 0x010) argument
1533 #define TW5864_INDIR_VIN_2_HDELAY_XY_LO(channel) (0x002 + channel * 0x010) argument
1535 #define TW5864_INDIR_VIN_3_HACTIVE_XY_LO(channel) (0x003 + channel * 0x010) argument
[all …]
/drivers/usb/musb/
Dmusbhsdma.c40 static void dma_channel_release(struct dma_channel *channel);
45 struct dma_channel *channel; in dma_controller_stop() local
54 channel = &controller->channel[bit].channel; in dma_controller_stop()
55 dma_channel_release(channel); in dma_controller_stop()
70 struct dma_channel *channel = NULL; in dma_channel_allocate() local
76 musb_channel = &(controller->channel[bit]); in dma_channel_allocate()
81 channel = &(musb_channel->channel); in dma_channel_allocate()
82 channel->private_data = musb_channel; in dma_channel_allocate()
83 channel->status = MUSB_DMA_STATUS_FREE; in dma_channel_allocate()
84 channel->max_len = 0x100000; in dma_channel_allocate()
[all …]
/drivers/pwm/
Dpwm-meson.c123 struct meson_pwm_channel *channel = pwm_get_chip_data(pwm); in meson_pwm_request() local
127 if (!channel) in meson_pwm_request()
130 if (channel->clk_parent) { in meson_pwm_request()
131 err = clk_set_parent(channel->clk, channel->clk_parent); in meson_pwm_request()
134 __clk_get_name(channel->clk_parent), in meson_pwm_request()
135 __clk_get_name(channel->clk), err); in meson_pwm_request()
140 err = clk_prepare_enable(channel->clk); in meson_pwm_request()
143 __clk_get_name(channel->clk), err); in meson_pwm_request()
147 chip->ops->get_state(chip, pwm, &channel->state); in meson_pwm_request()
154 struct meson_pwm_channel *channel = pwm_get_chip_data(pwm); in meson_pwm_free() local
[all …]
/drivers/hv/
Dchannel_mgmt.c37 static void init_vp_index(struct vmbus_channel *channel, u16 dev_type);
154 static void vmbus_rescind_cleanup(struct vmbus_channel *channel) in vmbus_rescind_cleanup() argument
165 if (msginfo->waiting_channel == channel) { in vmbus_rescind_cleanup()
183 static u16 hv_get_dev_type(const struct vmbus_channel *channel) in hv_get_dev_type() argument
185 const uuid_le *guid = &channel->offermsg.offer.if_type; in hv_get_dev_type()
188 if (is_hvsock_channel(channel) || is_unsupported_vmbus_devs(guid)) in hv_get_dev_type()
300 struct vmbus_channel *channel; in alloc_channel() local
302 channel = kzalloc(sizeof(*channel), GFP_ATOMIC); in alloc_channel()
303 if (!channel) in alloc_channel()
306 channel->acquire_ring_lock = true; in alloc_channel()
[all …]
/drivers/staging/comedi/drivers/
Djr3_pci.c103 struct jr3_channel __iomem *channel; member
134 static int is_complete(struct jr3_channel __iomem *channel) in is_complete() argument
136 return get_s16(&channel->command_word0) == 0; in is_complete()
139 static void set_transforms(struct jr3_channel __iomem *channel, in set_transforms() argument
146 set_u16(&channel->transforms[num].link[i].link_type, in set_transforms()
149 set_s16(&channel->transforms[num].link[i].link_amount, in set_transforms()
157 static void use_transform(struct jr3_channel __iomem *channel, in use_transform() argument
160 set_s16(&channel->command_word0, 0x0500 + (transf_num & 0x000f)); in use_transform()
163 static void use_offset(struct jr3_channel __iomem *channel, short offset_num) in use_offset() argument
165 set_s16(&channel->command_word0, 0x0600 + (offset_num & 0x000f)); in use_offset()
[all …]
/drivers/uwb/
Dradio.c42 static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) in uwb_radio_channel_changed() argument
47 if (pal->channel && channel != pal->channel) { in uwb_radio_channel_changed()
48 pal->channel = channel; in uwb_radio_channel_changed()
50 pal->channel_changed(pal, pal->channel); in uwb_radio_channel_changed()
62 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) in uwb_radio_change_channel() argument
68 channel, rc->beaconing); in uwb_radio_change_channel()
70 if (channel == -1) in uwb_radio_change_channel()
71 uwb_radio_channel_changed(rc, channel); in uwb_radio_change_channel()
73 if (channel != rc->beaconing) { in uwb_radio_change_channel()
74 if (rc->beaconing != -1 && channel != -1) { in uwb_radio_change_channel()
[all …]
/drivers/iio/adc/
Dtwl6030-gpadc.c98 int channel; member
121 int (*start_conversion)(int channel);
122 u8 (*channel_to_reg)(int channel);
154 .channel = 0,
161 .channel = 1,
168 .channel = 2,
175 .channel = 3,
182 .channel = 4,
189 .channel = 5,
196 .channel = 6,
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c89 static int vmw_open_channel(struct rpc_channel *channel, unsigned int protocol) in vmw_open_channel() argument
102 channel->channel_id = HIGH_WORD(edx); in vmw_open_channel()
103 channel->cookie_high = si; in vmw_open_channel()
104 channel->cookie_low = di; in vmw_open_channel()
118 static int vmw_close_channel(struct rpc_channel *channel) in vmw_close_channel() argument
123 si = channel->cookie_high; in vmw_close_channel()
124 di = channel->cookie_low; in vmw_close_channel()
128 (VMW_HYPERVISOR_PORT | (channel->channel_id << 16)), in vmw_close_channel()
148 static int vmw_send_msg(struct rpc_channel *channel, const char *msg) in vmw_send_msg() argument
159 si = channel->cookie_high; in vmw_send_msg()
[all …]
/drivers/phy/
Dphy-rcar-gen3-usb2.c199 struct rcar_gen3_chan *channel = phy_get_drvdata(p); in rcar_gen3_phy_usb2_init() local
200 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_init()
208 if (channel->has_otg) in rcar_gen3_phy_usb2_init()
209 rcar_gen3_init_otg(channel); in rcar_gen3_phy_usb2_init()
216 struct rcar_gen3_chan *channel = phy_get_drvdata(p); in rcar_gen3_phy_usb2_exit() local
218 writel(0, channel->base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_exit()
225 struct rcar_gen3_chan *channel = phy_get_drvdata(p); in rcar_gen3_phy_usb2_power_on() local
226 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_power_on()
230 if (channel->vbus) { in rcar_gen3_phy_usb2_power_on()
231 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on()
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c135 struct xgbe_channel *channel_mem, *channel; in xgbe_alloc_channels() local
156 for (i = 0, channel = channel_mem; i < count; i++, channel++) { in xgbe_alloc_channels()
157 snprintf(channel->name, sizeof(channel->name), "channel-%u", i); in xgbe_alloc_channels()
158 channel->pdata = pdata; in xgbe_alloc_channels()
159 channel->queue_index = i; in xgbe_alloc_channels()
160 channel->dma_regs = pdata->xgmac_regs + DMA_CH_BASE + in xgbe_alloc_channels()
173 channel->dma_irq = ret; in xgbe_alloc_channels()
178 channel->tx_ring = tx_ring++; in xgbe_alloc_channels()
183 channel->rx_ring = rx_ring++; in xgbe_alloc_channels()
188 channel->name, channel->dma_regs, channel->dma_irq, in xgbe_alloc_channels()
[all …]
/drivers/mailbox/
Dmailbox-sti.c87 unsigned int channel; member
95 unsigned int channel = chan_info->channel; in sti_mbox_channel_is_enabled() local
97 return mdev->enabled[instance] & BIT(channel); in sti_mbox_channel_is_enabled()
103 unsigned int channel) in sti_mbox_to_channel() argument
112 chan_info->channel == channel) in sti_mbox_to_channel()
118 instance, channel); in sti_mbox_to_channel()
128 unsigned int channel = chan_info->channel; in sti_mbox_enable_channel() local
133 mdev->enabled[instance] |= BIT(channel); in sti_mbox_enable_channel()
134 writel_relaxed(BIT(channel), base + STI_ENA_SET_OFFSET); in sti_mbox_enable_channel()
143 unsigned int channel = chan_info->channel; in sti_mbox_disable_channel() local
[all …]

12345678910>>...49