/openbmc/linux/drivers/char/xillybus/ |
H A D | xillybus_core.c | 255 channel->wr_hangup = channel->wr_empty && in xillybus_isr() 458 if (!channel) in xilly_setupchannels() 763 (channel->wr_host_buf_idx == channel->wr_eof); in xillybus_read() 822 (channel->wr_synchronous && channel->wr_allow_partial))) in xillybus_read() 952 channel->wr_wait, in xillybus_read() 1269 tail = channel-> in xillybus_write() 1458 (channel->wr_synchronous || !channel->wr_allow_partial || in xillybus_open() 1466 (channel->rd_synchronous || !channel->rd_allow_partial)) { in xillybus_open() 1537 channel->rd_fpga_buf_idx = channel->num_rd_buffers - 1; in xillybus_open() 1755 if (!channel->wr_synchronous && channel->wr_supports_nonempty) { in xillybus_poll() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx_channels.c | 544 channel->channel = i; in efx_alloc_channel() 552 tx_queue->channel = channel; in efx_alloc_channel() 625 tx_queue->channel = channel; in efx_copy_channel() 687 number = channel->channel; in efx_get_channel_name() 709 channel->type->get_name(channel, in efx_siena_set_channel_names() 732 channel->channel); in efx_siena_probe_channels() 896 channel = efx->channel[i]; in efx_siena_realloc_channels() 898 channel = channel->type->copy(channel); in efx_siena_realloc_channels() 918 channel = efx->channel[i]; in efx_siena_realloc_channels() 978 channel->rx_queue.core_index = channel->channel; in efx_siena_set_channels() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | efx_channels.c | 542 channel->channel = i; in efx_alloc_channel() 550 tx_queue->channel = channel; in efx_alloc_channel() 622 tx_queue->channel = channel; in efx_copy_channel() 684 number = channel->channel; in efx_get_channel_name() 726 channel->channel); in efx_probe_channels() 864 channel = efx->channel[i]; in efx_realloc_channels() 866 channel = channel->type->copy(channel); in efx_realloc_channels() 883 channel = efx->channel[i]; in efx_realloc_channels() 946 channel->rx_queue.core_index = channel->channel; in efx_set_channels() 961 return channel->channel - channel->efx->tx_channel_offset < in efx_default_channel_want_txqs() [all …]
|
/openbmc/linux/drivers/phy/renesas/ |
H A D | r8a779f0-ether-serdes.c | 65 dev_dbg(&channel->phy->dev, in r8a779f0_eth_serdes_reg_wait() 79 channel = &dd->channel[i]; in r8a779f0_eth_serdes_common_init_ram() 148 if (channel->speed == 1000) in r8a779f0_eth_serdes_chan_setting() 173 if (channel->speed == 1000) in r8a779f0_eth_serdes_chan_speed() 261 *channel) in r8a779f0_eth_serdes_hw_init_late() 310 channel->speed = speed; in r8a779f0_eth_serdes_set_speed() 362 struct r8a779f0_eth_serdes_channel *channel = &dd->channel[i]; in r8a779f0_eth_serdes_probe() local 366 if (IS_ERR(channel->phy)) in r8a779f0_eth_serdes_probe() 369 channel->dd = dd; in r8a779f0_eth_serdes_probe() 370 channel->index = i; in r8a779f0_eth_serdes_probe() [all …]
|
/openbmc/linux/drivers/hsi/controllers/ |
H A D | omap_ssi_regs.h | 33 # define SSI_DATAACCEPT(channel) (1 << (channel)) argument 34 # define SSI_DATAAVAILABLE(channel) (1 << ((channel) + 8)) argument 35 # define SSI_DATAOVERRUN(channel) (1 << ((channel) + 16)) argument 40 # define SSI_GDD_LCH(channel) (1 << (channel)) argument 44 # define SSI_WAKE(channel) (1 << (channel)) argument 62 # define SSI_FULL(channel) (1 << (channel)) argument 71 #define SSI_SST_BUFFER_CH_REG(channel) (0x80 + ((channel) * 4)) argument 82 # define SSI_NOTEMPTY(channel) (1 << (channel)) argument 111 #define SSI_GDD_CSDP_REG(channel) (0x800 + ((channel) * 0x40)) argument 130 #define SSI_GDD_CCR_REG(channel) (0x802 + ((channel) * 0x40)) argument [all …]
|
/openbmc/linux/drivers/rpmsg/ |
H A D | qcom_smd.c | 407 channel->pkt_size = 0; in qcom_smd_channel_reset() 553 if (tail + channel->pkt_size >= channel->fifo_size) { in qcom_smd_channel_recv_single() 555 len = qcom_smd_channel_peek(channel, ptr, channel->pkt_size); in qcom_smd_channel_recv_single() 614 } else if (channel->pkt_size && avail >= channel->pkt_size) { in qcom_smd_channel_intr() 885 ret = channel; in qcom_smd_find_channel() 1135 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in qcom_smd_create_channel() 1136 if (!channel) in qcom_smd_create_channel() 1139 channel->edge = edge; in qcom_smd_create_channel() 1190 return channel; in qcom_smd_create_channel() 1195 kfree(channel); in qcom_smd_create_channel() [all …]
|
H A D | qcom_glink_native.c | 219 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in qcom_glink_alloc_channel() 220 if (!channel) in qcom_glink_alloc_channel() 231 kfree(channel); in qcom_glink_alloc_channel() 246 return channel; in qcom_glink_alloc_channel() 282 kfree(channel); in qcom_glink_channel_release() 430 if (!channel) { in qcom_glink_handle_intent_req_ack() 751 if (!channel) { in qcom_glink_handle_rx_done() 800 if (!channel) { in qcom_glink_handle_intent_req() 875 if (!channel) { in qcom_glink_rx_data() 935 channel->ept.cb(channel->ept.rpdev, in qcom_glink_rx_data() [all …]
|
/openbmc/u-boot/drivers/dma/ |
H A D | MCD_dmaApi.c | 312 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_dmaStatus() 375 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_startDma() 449 if (channel < 8 && channel >= 0) { in MCD_startDma() 474 channel); in MCD_startDma() 483 channel); in MCD_startDma() 636 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_XferProgrQuery() 808 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_killDma() 845 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_continDma() 899 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_pauseDma() 929 if ((channel < 0) || (channel >= NCHANNELS)) in MCD_resumeDma() [all …]
|
H A D | apbh_dma.c | 29 int mxs_dma_validate_chan(int channel) in mxs_dma_validate_chan() argument 33 if ((channel < 0) || (channel >= MXS_MAX_DMA_CHANNELS)) in mxs_dma_validate_chan() 36 pchan = mxs_dma_channels + channel; in mxs_dma_validate_chan() 72 ret = mxs_dma_validate_chan(channel); in mxs_dma_read_semaphore() 121 pchan = mxs_dma_channels + channel; in mxs_dma_enable() 285 if ((channel < 0) || (channel >= MXS_MAX_DMA_CHANNELS)) in mxs_dma_request() 313 int mxs_dma_release(int channel) in mxs_dma_release() argument 603 ret = mxs_dma_request(channel); in mxs_dma_init_channel() 607 channel); in mxs_dma_init_channel() 611 mxs_dma_reset(channel); in mxs_dma_init_channel() [all …]
|
/openbmc/linux/drivers/ipack/devices/ |
H A D | ipoctal.c | 63 channel->rx_enable = 0; in ipoctal_reset_channel() 81 channel->rx_enable = 1; in ipoctal_port_activate() 130 channel->nb_bytes = 0; in ipoctal_free_channel() 214 channel->stats.tx++; in ipoctal_irq_tx() 217 channel->nb_bytes--; in ipoctal_irq_tx() 328 struct ipoctal_channel *channel = &ipoctal->channel[i]; in ipoctal_inst_slot() local 398 channel = &ipoctal->channel[i]; in ipoctal_inst_slot() 452 channel->nb_bytes++; in ipoctal_copy_write_buffer() 637 if (channel == NULL) in ipoctal_hangup() 657 if (channel == NULL) in ipoctal_shutdown() [all …]
|
/openbmc/linux/drivers/dma/sh/ |
H A D | rz-dmac.c | 276 rz_dmac_ch_writel(channel, channel->chcfg, CHCFG, 1); in rz_dmac_enable_hw() 378 rz_dmac_set_dmars_register(dmac, channel->index, channel->mid_rid); in rz_dmac_prepare_descs_for_slave_sg() 452 list_splice_tail_init(&channel->ld_active, &channel->ld_free); in rz_dmac_free_chan_resources() 453 list_splice_tail_init(&channel->ld_queue, &channel->ld_free); in rz_dmac_free_chan_resources() 493 list_move_tail(channel->ld_free.next, &channel->ld_queue); in rz_dmac_prep_dma_memcpy() 529 list_move_tail(channel->ld_free.next, &channel->ld_queue); in rz_dmac_prep_slave_sg() 541 list_splice_tail_init(&channel->ld_active, &channel->ld_free); in rz_dmac_terminate_all() 542 list_splice_tail_init(&channel->ld_queue, &channel->ld_free); in rz_dmac_terminate_all() 679 if (channel) { in rz_dmac_irq_handler() 702 list_move_tail(channel->ld_active.next, &channel->ld_free); in rz_dmac_irq_handler_thread() [all …]
|
/openbmc/linux/drivers/most/ |
H A D | most_snd.c | 165 struct channel *channel; in get_channel() local 229 struct channel *const channel = data; in playback_thread() local 239 (mbo = most_get_mbo(channel->iface, channel->id, in playback_thread() 267 struct channel *channel = substream->private_data; in pcm_open() local 307 struct channel *channel = substream->private_data; in pcm_close() local 326 struct channel *channel = substream->private_data; in pcm_prepare() local 372 struct channel *channel = substream->private_data; in pcm_trigger() local 489 struct channel *channel, *tmp; in release_adapter() local 517 struct channel *channel; in audio_probe_channel() local 577 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in audio_probe_channel() [all …]
|
/openbmc/linux/drivers/staging/greybus/ |
H A D | light.c | 109 return channel; in get_channel_from_mode() 147 channel = get_channel_from_mode(channel->light, in __gb_lights_flash_brightness_set() 150 if (!channel) in __gb_lights_flash_brightness_set() 155 (channel->intensity_uA.step * channel->led->brightness); in __gb_lights_flash_brightness_set() 293 channel->attrs = kcalloc(size + 1, sizeof(*channel->attrs), GFP_KERNEL); in channel_attr_groups_set() 294 if (!channel->attrs) in channel_attr_groups_set() 296 channel->attr_group = kzalloc(sizeof(*channel->attr_group), GFP_KERNEL); in channel_attr_groups_set() 299 channel->attr_groups = kcalloc(2, sizeof(*channel->attr_groups), in channel_attr_groups_set() 311 channel->attr_group->attrs = channel->attrs; in channel_attr_groups_set() 313 channel->attr_groups[0] = channel->attr_group; in channel_attr_groups_set() [all …]
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_clockmatrix.c | 1040 err = channel->do_phase_pull_in(channel, delta, 0); in _idtcm_adjtime_deprecated() 1687 channel->configure_write_frequency(channel); in initialize_dco_operating_mode() 1722 err = channel->configure_write_phase(channel); in _idtcm_adjphase() 1749 err = channel->configure_write_frequency(channel); in _idtcm_adjfine() 1868 err = channel->do_phase_pull_in(channel, delta, 0); in idtcm_adjtime() 2239 channel = &idtcm->channel[index]; in idtcm_enable_channel() 2259 snprintf(channel->caps.name, sizeof(channel->caps.name), in idtcm_enable_channel() 2284 channel->dco_delay = idtcm_get_dco_delay(channel); in idtcm_enable_channel() 2311 channel = &idtcm->channel[index]; in idtcm_enable_extts_channel() 2351 channel = &idtcm->channel[i]; in idtcm_extts_check() [all …]
|
H A D | ptp_idt82p33.c | 123 channel->pll_mode = mode; in idt82p33_dpll_set_mode() 270 ref = ptp_find_pin(channel->ptp_clock, PTP_PF_EXTTS, channel->plln); in idt82p33_extts_enable() 595 err = _idt82p33_adjfine(channel, channel->current_freq); in idt82p33_stop_ddco() 599 channel->ddco = false; in idt82p33_stop_ddco() 633 channel->ddco = true; in idt82p33_start_ddco() 934 channel = &idt82p33->channel[i]; in idt82p33_ptp_clock_unregister_all() 1116 struct idt82p33_channel *channel = &idt82p33->channel[index]; in idt82p33_channel_init() local 1208 channel = &idt82p33->channel[index]; in idt82p33_enable_channel() 1221 channel->ptp_clock = ptp_clock_register(&channel->caps, NULL); in idt82p33_enable_channel() 1369 channel = &idt82p33->channel[i]; in idt82p33_extts_check() [all …]
|
/openbmc/linux/drivers/media/platform/allegro-dvt/ |
H A D | allegro-core.c | 1289 param->num_pixel = channel->width + channel->height; in fill_create_channel_param() 1807 channel->max_cu_size - channel->min_cu_size; in allegro_hevc_write_sps() 1811 channel->max_tu_size - channel->min_tu_size; in allegro_hevc_write_sps() 2183 channel->user_id, channel->mcu_channel_id); in allegro_handle_create_channel() 2250 channel->user_id, channel->mcu_channel_id); in allegro_handle_destroy_channel() 2566 (char *)&channel->codec, channel->width, channel->height, in allegro_create_channel() 2739 channel->stride = round_up(channel->width, 32); in allegro_set_default_params() 2748 channel->sizeimage_raw = channel->stride * channel->height * 3 / 2; in allegro_set_default_params() 3003 channel->bitrate = channel->mpeg_video_bitrate->val; in allegro_s_ctrl() 3046 channel = kzalloc(sizeof(*channel), GFP_KERNEL); in allegro_open() [all …]
|
/openbmc/linux/drivers/hsi/clients/ |
H A D | hsi_char.c | 204 msg->channel = channel->ch; in hsc_msgs_alloc() 231 hsc_add_tail(channel, msg, &channel->rx_msgs_queue); in hsc_rx_completed() 234 hsc_add_tail(channel, msg, &channel->free_msgs_list); in hsc_rx_completed() 251 hsc_add_tail(channel, msg, &channel->tx_msgs_queue); in hsc_tx_completed() 254 hsc_add_tail(channel, msg, &channel->free_msgs_list); in hsc_tx_completed() 291 hsc_add_tail(channel, msg2, &channel->rx_msgs_queue); in hsc_break_received() 439 hsc_add_tail(channel, msg, &channel->free_msgs_list); in hsc_read() 463 hsc_add_tail(channel, msg, &channel->free_msgs_list); in hsc_read() 643 hsc_reset_list(channel, &channel->rx_msgs_queue); in hsc_release() 644 hsc_reset_list(channel, &channel->tx_msgs_queue); in hsc_release() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | radio_2055.c | 476 { .channel = 32, 1172 { .channel = 1, 1180 { .channel = 2, 1188 { .channel = 3, 1196 { .channel = 4, 1204 { .channel = 5, 1212 { .channel = 6, 1220 { .channel = 7, 1228 { .channel = 8, 1236 { .channel = 9, [all …]
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | optee.c | 229 if (channel->tee_shm) in get_channel() 251 channel->caps = caps; in get_channel() 343 if (!channel->tee_shm) in scmi_optee_clear_channel() 421 channel = devm_kzalloc(dev, sizeof(*channel), GFP_KERNEL); in scmi_optee_chan_setup() 422 if (!channel) in scmi_optee_chan_setup() 431 channel->cinfo = cinfo; in scmi_optee_chan_setup() 459 if (channel->tee_shm) in scmi_optee_chan_setup() 474 if (!channel) in scmi_optee_chan_free() 489 channel->cinfo = NULL; in scmi_optee_chan_free() 521 if (channel->tee_shm) in scmi_optee_fetch_response() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | dma.txt | 17 - DMA channel nodes: 38 dma-channel@0 { 39 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 45 dma-channel@80 { 46 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 52 dma-channel@100 { 53 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 60 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 98 dma-channel@0 { 155 dma-channel@0 { [all …]
|
/openbmc/linux/sound/xen/ |
H A D | xen_snd_front_evtchnl.c | 151 page = channel->u.evt.page; in evtchnl_free() 163 if (channel->irq) in evtchnl_free() 164 unbind_from_irqhandler(channel->irq, channel); in evtchnl_free() 166 if (channel->port) in evtchnl_free() 172 memset(channel, 0, sizeof(*channel)); in evtchnl_free() 201 memset(channel, 0, sizeof(*channel)); in evtchnl_alloc() 202 channel->type = type; in evtchnl_alloc() 203 channel->index = index; in evtchnl_alloc() 230 channel->u.evt.page = page; in evtchnl_alloc() 246 channel->irq = ret; in evtchnl_alloc() [all …]
|
/openbmc/linux/drivers/tty/serial/jsm/ |
H A D | jsm_tty.c | 103 channel->ch_bd->bd_ops->assert_modem_signals(channel); in jsm_tty_set_mctrl() 120 channel->ch_bd->bd_ops->copy_data_from_queue_to_uart(channel); in jsm_tty_write() 158 channel->ch_bd->bd_ops->send_start_character(channel); in jsm_tty_send_xchar() 161 channel->ch_bd->bd_ops->send_stop_character(channel); in jsm_tty_send_xchar() 170 channel->ch_bd->bd_ops->disable_receiver(channel); in jsm_tty_stop_rx() 181 channel->ch_bd->bd_ops->send_break(channel); in jsm_tty_break() 183 channel->ch_bd->bd_ops->clear_break(channel); in jsm_tty_break() 234 channel->ch_r_head = channel->ch_r_tail = 0; in jsm_tty_open() 235 channel->ch_e_head = channel->ch_e_tail = 0; in jsm_tty_open() 297 channel->ch_bd->bd_ops->uart_off(channel); in jsm_tty_close() [all …]
|
/openbmc/linux/arch/sh/drivers/dma/ |
H A D | dma-api.c | 76 struct dma_channel *channel; in get_dma_channel() local 84 if (channel->vchan == chan) in get_dma_channel() 85 return channel; in get_dma_channel() 156 return channel->chan; in request_dma_bycap() 172 if (unlikely(!channel)) in dmac_search_free_channel() 185 return channel->chan; in dmac_search_free_channel() 201 strscpy(channel->dev_id, dev_id, sizeof(channel->dev_id)); in request_dma() 288 channel->sar = from; in dma_xfer() 289 channel->dar = to; in dma_xfer() 290 channel->count = size; in dma_xfer() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_main.h | 151 #define FCT_RX_CTL_EN_(channel) BIT(28 + (channel)) argument 152 #define FCT_RX_CTL_DIS_(channel) BIT(24 + (channel)) argument 153 #define FCT_RX_CTL_RESET_(channel) BIT(20 + (channel)) argument 156 #define FCT_TX_CTL_EN_(channel) BIT(28 + (channel)) argument 157 #define FCT_TX_CTL_DIS_(channel) BIT(24 + (channel)) argument 158 #define FCT_TX_CTL_RESET_(channel) BIT(20 + (channel)) argument 403 #define INT_BIT_DMA_RX_(channel) BIT(24 + (channel)) argument 405 #define INT_BIT_DMA_TX_(channel) BIT(16 + (channel)) argument 516 #define PTP_INT_EN_TIMER_SET_(channel) BIT(channel) argument 663 #define DMAC_CMD_RX_SWR_(channel) BIT(8 + (channel)) argument [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | efx.c | 431 channel->channel = i; in ef4_alloc_channel() 438 tx_queue->channel = channel; in ef4_alloc_channel() 474 tx_queue->channel = channel; in ef4_copy_channel() 530 number = channel->channel; in ef4_get_channel_name() 547 channel->type->get_name(channel, in ef4_set_channel_names() 570 channel->channel); in ef4_probe_channels() 746 channel->type->post_remove(channel); in ef4_remove_channel() 798 channel = efx->channel[i]; in ef4_realloc_channels() 800 channel = channel->type->copy(channel); in ef4_realloc_channels() 821 channel = efx->channel[i]; in ef4_realloc_channels() [all …]
|