| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-phy-db.c | 219 static int is_valid_channel(u16 ch_id) in is_valid_channel() argument 221 if (ch_id <= 14 || in is_valid_channel() 222 (36 <= ch_id && ch_id <= 64 && ch_id % 4 == 0) || in is_valid_channel() 223 (100 <= ch_id && ch_id <= 140 && ch_id % 4 == 0) || in is_valid_channel() 224 (145 <= ch_id && ch_id <= 165 && ch_id % 4 == 1)) in is_valid_channel() 229 static u8 ch_id_to_ch_index(u16 ch_id) in ch_id_to_ch_index() argument 231 if (WARN_ON(!is_valid_channel(ch_id))) in ch_id_to_ch_index() 234 if (ch_id <= 14) in ch_id_to_ch_index() 235 return ch_id - 1; in ch_id_to_ch_index() 236 if (ch_id <= 64) in ch_id_to_ch_index() [all …]
|
| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | grph_object_defs.h | 71 #define DECODE_CHANNEL_ID(ch_id) \ argument 72 (ch_id) == CHANNEL_ID_DDC1 ? "CHANNEL_ID_DDC1" : \ 73 (ch_id) == CHANNEL_ID_DDC2 ? "CHANNEL_ID_DDC2" : \ 74 (ch_id) == CHANNEL_ID_DDC3 ? "CHANNEL_ID_DDC3" : \ 75 (ch_id) == CHANNEL_ID_DDC4 ? "CHANNEL_ID_DDC4" : \ 76 (ch_id) == CHANNEL_ID_DDC5 ? "CHANNEL_ID_DDC5" : \ 77 (ch_id) == CHANNEL_ID_DDC6 ? "CHANNEL_ID_DDC6" : \ 78 (ch_id) == CHANNEL_ID_DDC_VGA ? "CHANNEL_ID_DDC_VGA" : \ 79 (ch_id) == CHANNEL_ID_I2C_PAD ? "CHANNEL_ID_I2C_PAD" : "Invalid"
|
| /linux/drivers/input/misc/ |
| H A D | iqs626a.c | 461 struct fwnode_handle *ch_node, enum iqs626_ch_id ch_id) in iqs626_parse_events() argument 470 switch (ch_id) { in iqs626_parse_events() 485 i = ch_id - IQS626_CH_GEN_0; in iqs626_parse_events() 500 if (!iqs626_channels[ch_id].events[i]) in iqs626_parse_events() 504 if (ch_id == IQS626_CH_TP_2 || ch_id == IQS626_CH_TP_3) { in iqs626_parse_events() 518 iqs626->kp_code[ch_id][i] = val; in iqs626_parse_events() 523 if (ch_id == IQS626_CH_HALL) in iqs626_parse_events() 536 iqs626->kp_type[ch_id][i] = val; in iqs626_parse_events() 561 if (ch_id != IQS626_CH_TP_2 && ch_id != IQS626_CH_TP_3 && in iqs626_parse_events() 570 if (ch_id == IQS626_CH_HALL) in iqs626_parse_events() [all …]
|
| /linux/drivers/bus/mhi/ep/ |
| H A D | main.c | 25 static int mhi_ep_create_device(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id); 99 event->dword[1] = MHI_TRE_EV_DWORD1(ring->ch_id, MHI_PKT_TYPE_TX_EVENT); in mhi_ep_send_completion_event() 170 u32 tmp, ch_id; in mhi_ep_process_cmd_ring() local 173 ch_id = MHI_TRE_GET_CMD_CHID(el); in mhi_ep_process_cmd_ring() 176 if ((ch_id >= mhi_cntrl->max_chan) || !mhi_cntrl->mhi_chan[ch_id].name) { in mhi_ep_process_cmd_ring() 177 dev_dbg(dev, "Channel (%u) not supported!\n", ch_id); in mhi_ep_process_cmd_ring() 181 mhi_chan = &mhi_cntrl->mhi_chan[ch_id]; in mhi_ep_process_cmd_ring() 182 ch_ring = &mhi_cntrl->mhi_chan[ch_id].ring; in mhi_ep_process_cmd_ring() 186 dev_dbg(dev, "Received START command for channel (%u)\n", ch_id); in mhi_ep_process_cmd_ring() 192 (union mhi_ep_ring_ctx *)&mhi_cntrl->ch_ctx_cache[ch_id]); in mhi_ep_process_cmd_ring() [all …]
|
| H A D | mmio.c | 54 static void mhi_ep_mmio_set_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id, bool enable) in mhi_ep_mmio_set_chdb() argument 58 chid_shift = ch_id % 32; in mhi_ep_mmio_set_chdb() 60 chdb_idx = ch_id / 32; in mhi_ep_mmio_set_chdb() 71 void mhi_ep_mmio_enable_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id) in mhi_ep_mmio_enable_chdb() argument 73 mhi_ep_mmio_set_chdb(mhi_cntrl, ch_id, true); in mhi_ep_mmio_enable_chdb() 76 void mhi_ep_mmio_disable_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id) in mhi_ep_mmio_disable_chdb() argument 78 mhi_ep_mmio_set_chdb(mhi_cntrl, ch_id, false); in mhi_ep_mmio_disable_chdb()
|
| H A D | internal.h | 136 u32 ch_id; member 192 void mhi_ep_mmio_enable_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id); 193 void mhi_ep_mmio_disable_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id);
|
| H A D | ring.c | 162 ring->ch_id = id; in mhi_ep_ring_init()
|
| /linux/drivers/staging/most/net/ |
| H A D | net.c | 58 int ch_id; member 193 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open() 199 if (most_start_channel(nd->iface, nd->tx.ch_id, &comp)) { in most_nd_open() 201 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_open() 213 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, on_netinfo); in most_nd_open() 226 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, NULL); in most_nd_stop() 227 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_stop() 228 most_stop_channel(nd->iface, nd->tx.ch_id, &comp); in most_nd_stop() 240 mbo = most_get_mbo(nd->iface, nd->tx.ch_id, &comp); in most_nd_start_xmit() 354 ch->ch_id = channel_idx; in comp_probe_channel() [all …]
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_wwan.c | 32 int ch_id; member 60 priv->ch_id = ipc_imem_sys_wwan_open(ipc_wwan->ipc_imem, if_id); in ipc_wwan_link_open() 62 if (priv->ch_id < 0) { in ipc_wwan_link_open() 73 priv->ch_id, priv->if_id); in ipc_wwan_link_open() 86 priv->ch_id); in ipc_wwan_link_stop() 87 priv->ch_id = -1; in ipc_wwan_link_stop() 111 if_id, priv->ch_id, skb); in ipc_wwan_link_transmit()
|
| H A D | iosm_ipc_imem_ops.c | 289 int ch_id; in ipc_imem_sys_port_open() local 298 ch_id = ipc_imem_channel_alloc(ipc_imem, chl_id, IPC_CTYPE_CTRL); in ipc_imem_sys_port_open() 300 if (ch_id < 0) { in ipc_imem_sys_port_open() 305 channel = ipc_imem_channel_open(ipc_imem, ch_id, hp_id); in ipc_imem_sys_port_open()
|
| /linux/drivers/net/wwan/t7xx/ |
| H A D | t7xx_cldma.c | 150 unsigned int ch_id; in t7xx_cldma_hw_tx_done() local 152 ch_id = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0); in t7xx_cldma_hw_tx_done() 153 ch_id &= bitmask; in t7xx_cldma_hw_tx_done() 155 iowrite32(ch_id, hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0); in t7xx_cldma_hw_tx_done() 161 unsigned int ch_id; in t7xx_cldma_hw_rx_done() local 163 ch_id = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0); in t7xx_cldma_hw_rx_done() 164 ch_id &= bitmask; in t7xx_cldma_hw_rx_done() 166 iowrite32(ch_id, hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0); in t7xx_cldma_hw_rx_done()
|
| H A D | t7xx_port_proxy.c | 372 u8 ch_id; in t7xx_proxy_setup_ch_mapping() local 374 ch_id = FIELD_GET(PORT_CH_ID_MASK, port_conf->rx_ch); in t7xx_proxy_setup_ch_mapping() 375 list_add_tail(&port->entry, &port_prox->rx_ch_ports[ch_id]); in t7xx_proxy_setup_ch_mapping() 420 u8 ch_id; in t7xx_port_proxy_find_port() local 422 ch_id = FIELD_GET(PORT_CH_ID_MASK, channel); in t7xx_port_proxy_find_port() 423 port_list = &port_prox->rx_ch_ports[ch_id]; in t7xx_port_proxy_find_port() 635 int t7xx_port_proxy_chl_enable_disable(struct port_proxy *port_prox, unsigned int ch_id, in t7xx_port_proxy_chl_enable_disable() argument 638 struct t7xx_port *port = t7xx_proxy_get_port_by_ch(port_prox, ch_id); in t7xx_port_proxy_chl_enable_disable()
|
| H A D | t7xx_port_ctrl_msg.c | 146 unsigned int ch_id; in t7xx_port_enum_msg_handler() local 149 ch_id = FIELD_GET(PORT_INFO_CH_ID, port_info); in t7xx_port_enum_msg_handler() 151 if (t7xx_port_proxy_chl_enable_disable(md->port_prox, ch_id, en_flag)) in t7xx_port_enum_msg_handler() 152 dev_dbg(dev, "Port:%x not found\n", ch_id); in t7xx_port_enum_msg_handler()
|
| /linux/drivers/dma/ |
| H A D | st_fdma.c | 102 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_ch_sta_update() local 110 dev_warn(fdev->dev, "chan:%d, error:%ld\n", ch_id, ch_err); in st_fdma_ch_sta_update() 352 int ch_id = fchan->vchan.chan.chan_id; in config_reqctrl() local 407 ch_id, addr, fchan->cfg.req_ctrl); in config_reqctrl() 625 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_pause() local 626 unsigned long cmd = FDMA_CMD_PAUSE(ch_id); in st_fdma_pause() 628 dev_dbg(fchan->fdev->dev, "pause chan:%d\n", ch_id); in st_fdma_pause() 643 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_resume() local 645 dev_dbg(fchan->fdev->dev, "resume chan:%d\n", ch_id); in st_fdma_resume() 663 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_terminate_all() local [all …]
|
| /linux/drivers/counter/ |
| H A D | rz-mtu3-cnt.c | 100 const size_t ch_id = rz_mtu3_get_hw_ch(id); in rz_mtu3_get_ch() local 102 return &priv->ch[ch_id]; in rz_mtu3_get_ch() 320 const size_t ch_id = rz_mtu3_get_hw_ch(count->id); in rz_mtu3_count_ceiling_read() local 330 *ceiling = priv->mtu_16bit_max[ch_id]; in rz_mtu3_count_ceiling_read() 351 const size_t ch_id = rz_mtu3_get_hw_ch(count->id); in rz_mtu3_count_ceiling_write() local 365 priv->mtu_16bit_max[ch_id] = ceiling; in rz_mtu3_count_ceiling_write()
|
| /linux/drivers/rapidio/ |
| H A D | rio_cm.c | 777 static int riocm_ch_send(u16 ch_id, void *buf, int len) in riocm_ch_send() argument 783 if (buf == NULL || ch_id == 0 || len == 0 || len > RIO_MAX_MSG_SIZE) in riocm_ch_send() 789 ch = riocm_get_channel(ch_id); in riocm_ch_send() 792 task_pid_nr(current), ch_id); in riocm_ch_send() 1070 static struct rio_channel *riocm_ch_accept(u16 ch_id, u16 *new_ch_id, in riocm_ch_accept() argument 1081 ch = riocm_get_channel(ch_id); in riocm_ch_accept() 1200 static int riocm_ch_listen(u16 ch_id) in riocm_ch_listen() argument 1205 riocm_debug(CHOP, "(ch_%d)", ch_id); in riocm_ch_listen() 1207 ch = riocm_get_channel(ch_id); in riocm_ch_listen() 1227 static int riocm_ch_bind(u16 ch_id, u8 mport_id, void *context) in riocm_ch_bind() argument [all …]
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-eth-debugfs.c | 108 "CH#", i, ch->ch_id, in dpaa2_dbg_ch_show()
|
| H A D | dpaa2-eth.h | 490 int ch_id; member
|
| H A D | dpaa2-eth.c | 1922 err = dpaa2_io_service_pull_channel(ch->dpio, ch->ch_id, in dpaa2_eth_pull_channel() 3146 channel->ch_id = attr.qbman_ch_id; in dpaa2_eth_alloc_channel() 3204 nctx->id = channel->ch_id; in dpaa2_eth_setup_dpio()
|
| /linux/drivers/rapidio/devices/ |
| H A D | tsi721.h | 714 int ch_id; /* BDMA channel number */ member
|
| H A D | tsi721.c | 115 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(priv->mdma.ch_id); in tsi721_maint_dma() 155 priv->mdma.ch_id, ch_stat); in tsi721_maint_dma() 1458 priv->mdma.ch_id = TSI721_DMACH_MAINT; in tsi721_bdma_maint_init() 1534 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(mdma->ch_id); in tsi721_bdma_maint_free()
|
| /linux/sound/soc/codecs/ |
| H A D | wcd937x.c | 1183 static int wcd937x_connect_port(struct wcd937x_sdw_priv *wcd, u8 port_idx, u8 ch_id, bool enable) in wcd937x_connect_port() argument 1186 const struct wcd_sdw_ch_info *ch_info = &wcd->ch_info[ch_id]; in wcd937x_connect_port()
|
| H A D | wcd938x.c | 416 static int wcd938x_connect_port(struct wcd938x_sdw_priv *wcd, u8 port_num, u8 ch_id, u8 enable) in wcd938x_connect_port() argument 418 return wcd938x_sdw_connect_port(&wcd->ch_info[ch_id], in wcd938x_connect_port()
|
| H A D | wcd939x.c | 435 static int wcd939x_connect_port(struct wcd939x_sdw_priv *wcd, u8 port_num, u8 ch_id, u8 enable) in wcd939x_connect_port() argument 437 return wcd939x_sdw_connect_port(&wcd->ch_info[ch_id], in wcd939x_connect_port()
|
| /linux/drivers/dma/stm32/ |
| H A D | stm32-dma3.c | 278 u32 ch_id; member
|