/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-phy-db.c | 270 static int is_valid_channel(u16 ch_id) in is_valid_channel() argument 272 if (ch_id <= 14 || in is_valid_channel() 273 (36 <= ch_id && ch_id <= 64 && ch_id % 4 == 0) || in is_valid_channel() 274 (100 <= ch_id && ch_id <= 140 && ch_id % 4 == 0) || in is_valid_channel() 275 (145 <= ch_id && ch_id <= 165 && ch_id % 4 == 1)) in is_valid_channel() 280 static u8 ch_id_to_ch_index(u16 ch_id) in ch_id_to_ch_index() argument 282 if (WARN_ON(!is_valid_channel(ch_id))) in ch_id_to_ch_index() 285 if (ch_id <= 14) in ch_id_to_ch_index() 286 return ch_id - 1; in ch_id_to_ch_index() 287 if (ch_id <= 64) in ch_id_to_ch_index() [all …]
|
/Linux-v4.19/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-v4.19/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() 343 ch->ch_id = channel_idx; in comp_probe_channel() [all …]
|
/Linux-v4.19/drivers/dma/ |
D | st_fdma.c | 104 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_ch_sta_update() local 112 dev_warn(fdev->dev, "chan:%d, error:%ld\n", ch_id, ch_err); in st_fdma_ch_sta_update() 357 int ch_id = fchan->vchan.chan.chan_id; in config_reqctrl() local 412 ch_id, addr, fchan->cfg.req_ctrl); in config_reqctrl() 631 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_pause() local 632 unsigned long cmd = FDMA_CMD_PAUSE(ch_id); in st_fdma_pause() 634 dev_dbg(fchan->fdev->dev, "pause chan:%d\n", ch_id); in st_fdma_pause() 649 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_resume() local 651 dev_dbg(fchan->fdev->dev, "resume chan:%d\n", ch_id); in st_fdma_resume() 669 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_terminate_all() local [all …]
|
/Linux-v4.19/drivers/isdn/hardware/eicon/ |
D | maintidi.c | 862 dword ch_id; in process_idi_event() local 863 if (!diva_trace_read_variable(pVar, &ch_id)) { in process_idi_event() 869 } else if (ch_id && ch_id <= pLib->Channels) { in process_idi_event() 870 return (diva_line_event(pLib, (int)ch_id)); in process_idi_event() 878 dword ch_id; in process_idi_event() local 879 if (!diva_trace_read_variable(pVar, &ch_id)) { in process_idi_event() 885 } else if (ch_id && ch_id <= pLib->Channels) { in process_idi_event() 886 return (diva_fax_event(pLib, (int)ch_id)); in process_idi_event() 894 dword ch_id; in process_idi_event() local 895 if (!diva_trace_read_variable(pVar, &ch_id)) { in process_idi_event() [all …]
|
/Linux-v4.19/drivers/rapidio/ |
D | rio_cm.c | 790 static int riocm_ch_send(u16 ch_id, void *buf, int len) in riocm_ch_send() argument 796 if (buf == NULL || ch_id == 0 || len == 0 || len > RIO_MAX_MSG_SIZE) in riocm_ch_send() 799 ch = riocm_get_channel(ch_id); in riocm_ch_send() 802 task_pid_nr(current), ch_id); in riocm_ch_send() 1080 static struct rio_channel *riocm_ch_accept(u16 ch_id, u16 *new_ch_id, in riocm_ch_accept() argument 1091 ch = riocm_get_channel(ch_id); in riocm_ch_accept() 1210 static int riocm_ch_listen(u16 ch_id) in riocm_ch_listen() argument 1215 riocm_debug(CHOP, "(ch_%d)", ch_id); in riocm_ch_listen() 1217 ch = riocm_get_channel(ch_id); in riocm_ch_listen() 1235 static int riocm_ch_bind(u16 ch_id, u8 mport_id, void *context) in riocm_ch_bind() argument [all …]
|
/Linux-v4.19/drivers/iio/adc/ |
D | stm32-dfsdm-adc.c | 204 unsigned int ch_id) in stm32_dfsdm_start_channel() argument 206 return regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(ch_id), in stm32_dfsdm_start_channel() 212 unsigned int ch_id) in stm32_dfsdm_stop_channel() argument 214 regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(ch_id), in stm32_dfsdm_stop_channel() 266 unsigned int fl_id, unsigned int ch_id) in stm32_dfsdm_filter_configure() argument 291 DFSDM_CR1_RCH(ch_id)); in stm32_dfsdm_filter_configure()
|
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethernet/ |
D | dpaa2-eth.h | 284 int ch_id; member
|
D | dpaa2-eth.c | 902 err = dpaa2_io_service_pull_channel(ch->dpio, ch->ch_id, in pull_channel() 1522 channel->ch_id = attr.qbman_ch_id; in alloc_channel() 1577 nctx->id = channel->ch_id; in setup_dpio()
|
/Linux-v4.19/drivers/rapidio/devices/ |
D | tsi721.h | 727 int ch_id; /* BDMA channel number */ member
|
D | tsi721.c | 126 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(priv->mdma.ch_id); in tsi721_maint_dma() 166 priv->mdma.ch_id, ch_stat); in tsi721_maint_dma() 1446 priv->mdma.ch_id = TSI721_DMACH_MAINT; in tsi721_bdma_maint_init() 1522 void __iomem *regs = priv->regs + TSI721_DMAC_BASE(mdma->ch_id); in tsi721_bdma_maint_free()
|