| /Linux-v5.4/drivers/net/wireless/intel/iwlwifi/ |
| D | iwl-phy-db.c | 265 static int is_valid_channel(u16 ch_id) in is_valid_channel() argument 267 if (ch_id <= 14 || in is_valid_channel() 268 (36 <= ch_id && ch_id <= 64 && ch_id % 4 == 0) || in is_valid_channel() 269 (100 <= ch_id && ch_id <= 140 && ch_id % 4 == 0) || in is_valid_channel() 270 (145 <= ch_id && ch_id <= 165 && ch_id % 4 == 1)) in is_valid_channel() 275 static u8 ch_id_to_ch_index(u16 ch_id) in ch_id_to_ch_index() argument 277 if (WARN_ON(!is_valid_channel(ch_id))) in ch_id_to_ch_index() 280 if (ch_id <= 14) in ch_id_to_ch_index() 281 return ch_id - 1; in ch_id_to_ch_index() 282 if (ch_id <= 64) in ch_id_to_ch_index() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/include/ |
| 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-v5.4/drivers/staging/most/net/ |
| D | net.c | 58 int ch_id; member 183 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open() 189 if (most_start_channel(nd->iface, nd->tx.ch_id, &comp)) { in most_nd_open() 191 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_open() 203 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, on_netinfo); in most_nd_open() 216 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, NULL); in most_nd_stop() 217 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_stop() 218 most_stop_channel(nd->iface, nd->tx.ch_id, &comp); in most_nd_stop() 230 mbo = most_get_mbo(nd->iface, nd->tx.ch_id, &comp); in most_nd_start_xmit() 344 ch->ch_id = channel_idx; in comp_probe_channel() [all …]
|
| /Linux-v5.4/drivers/dma/ |
| D | st_fdma.c | 100 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_ch_sta_update() local 108 dev_warn(fdev->dev, "chan:%d, error:%ld\n", ch_id, ch_err); in st_fdma_ch_sta_update() 350 int ch_id = fchan->vchan.chan.chan_id; in config_reqctrl() local 405 ch_id, addr, fchan->cfg.req_ctrl); in config_reqctrl() 623 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_pause() local 624 unsigned long cmd = FDMA_CMD_PAUSE(ch_id); in st_fdma_pause() 626 dev_dbg(fchan->fdev->dev, "pause chan:%d\n", ch_id); in st_fdma_pause() 641 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_resume() local 643 dev_dbg(fchan->fdev->dev, "resume chan:%d\n", ch_id); in st_fdma_resume() 661 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_terminate_all() local [all …]
|
| /Linux-v5.4/drivers/net/can/ |
| D | kvaser_pciefd.c | 1145 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_data_packet() local 1147 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_data_packet() 1150 priv = &pcie->can[ch_id]->can; in kvaser_pciefd_handle_data_packet() 1312 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_error_packet() local 1314 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_error_packet() 1317 can = pcie->can[ch_id]; in kvaser_pciefd_handle_error_packet() 1391 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_status_packet() local 1393 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_status_packet() 1396 can = pcie->can[ch_id]; in kvaser_pciefd_handle_status_packet() 1451 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_eack_packet() local [all …]
|
| /Linux-v5.4/drivers/rapidio/ |
| D | rio_cm.c | 781 static int riocm_ch_send(u16 ch_id, void *buf, int len) in riocm_ch_send() argument 787 if (buf == NULL || ch_id == 0 || len == 0 || len > RIO_MAX_MSG_SIZE) in riocm_ch_send() 790 ch = riocm_get_channel(ch_id); in riocm_ch_send() 793 task_pid_nr(current), ch_id); in riocm_ch_send() 1071 static struct rio_channel *riocm_ch_accept(u16 ch_id, u16 *new_ch_id, in riocm_ch_accept() argument 1082 ch = riocm_get_channel(ch_id); in riocm_ch_accept() 1201 static int riocm_ch_listen(u16 ch_id) in riocm_ch_listen() argument 1206 riocm_debug(CHOP, "(ch_%d)", ch_id); in riocm_ch_listen() 1208 ch = riocm_get_channel(ch_id); in riocm_ch_listen() 1228 static int riocm_ch_bind(u16 ch_id, u8 mport_id, void *context) in riocm_ch_bind() argument [all …]
|
| /Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/ |
| D | dpaa2-eth-debugfs.c | 136 ch->ch_id, in dpaa2_dbg_ch_show()
|
| D | dpaa2-eth.h | 332 int ch_id; member
|
| D | dpaa2-eth.c | 1093 err = dpaa2_io_service_pull_channel(ch->dpio, ch->ch_id, in pull_channel() 2130 channel->ch_id = attr.qbman_ch_id; in alloc_channel() 2186 nctx->id = channel->ch_id; in setup_dpio()
|
| /Linux-v5.4/drivers/rapidio/devices/ |
| D | tsi721.h | 714 int ch_id; /* BDMA channel number */ member
|
| D | tsi721.c | 113 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(priv->mdma.ch_id); in tsi721_maint_dma() 153 priv->mdma.ch_id, ch_stat); in tsi721_maint_dma() 1433 priv->mdma.ch_id = TSI721_DMACH_MAINT; in tsi721_bdma_maint_init() 1509 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(mdma->ch_id); in tsi721_bdma_maint_free()
|