Home
last modified time | relevance | path

Searched refs:ch_id (Results 1 – 25 of 35) sorted by relevance

12

/drivers/net/wireless/intel/iwlwifi/
Diwl-phy-db.c221 static int is_valid_channel(u16 ch_id) in is_valid_channel() argument
223 if (ch_id <= 14 || in is_valid_channel()
224 (36 <= ch_id && ch_id <= 64 && ch_id % 4 == 0) || in is_valid_channel()
225 (100 <= ch_id && ch_id <= 140 && ch_id % 4 == 0) || in is_valid_channel()
226 (145 <= ch_id && ch_id <= 165 && ch_id % 4 == 1)) in is_valid_channel()
231 static u8 ch_id_to_ch_index(u16 ch_id) in ch_id_to_ch_index() argument
233 if (WARN_ON(!is_valid_channel(ch_id))) in ch_id_to_ch_index()
236 if (ch_id <= 14) in ch_id_to_ch_index()
237 return ch_id - 1; in ch_id_to_ch_index()
238 if (ch_id <= 64) in ch_id_to_ch_index()
[all …]
/drivers/staging/media/atomisp/pci/runtime/inputfifo/src/
Dinputfifo.c66 unsigned int ch_id; member
177 unsigned int ch_id, in inputfifo_send_ch_id_and_fmt_type() argument
182 inputfifo_curr_ch_id = ch_id & _HIVE_ISP_CH_ID_MASK; in inputfifo_send_ch_id_and_fmt_type()
203 unsigned int ch_id, in inputfifo_start_frame() argument
206 inputfifo_send_ch_id_and_fmt_type(ch_id, fmt_type); in inputfifo_start_frame()
360 unsigned int ch_id, in inputfifo_send_frame() argument
370 inputfifo_start_frame(ch_id, fmt_type); in inputfifo_send_frame()
415 unsigned int ch_id) in inputfifo_get_inst() argument
417 return &inputfifo_inst_admin[ch_id]; in inputfifo_get_inst()
424 unsigned int ch_id, in ia_css_inputfifo_send_input_frame() argument
[all …]
/drivers/gpu/drm/amd/display/include/
Dgrph_object_defs.h71 #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"
/drivers/staging/media/atomisp/pci/
Disp2400_input_system_public.h273 u32 ch_id,
280 u32 ch_id,
292 u32 ch_id,
303 u32 ch_id,
315 u32 ch_id,
326 u32 ch_id,
338 u32 ch_id,
349 u32 ch_id,
364 u32 ch_id,
Dinput_switch_2400_defs.h19 #define _HIVE_INPUT_SWITCH_GET_LUT_REG_ID(ch_id, fmt_type) (((ch_id) * 2) + ((fmt_type) >= 16)) argument
Disp2400_input_system_global.h87 u32 ch_id; member
Dsh_css_sp.h167 int ch_id,
Datomisp_compat_css20.h77 unsigned int ch_id; /* virtual channel ID */ member
Disp2401_input_system_global.h125 s32 ch_id; member
/drivers/staging/media/atomisp/pci/runtime/inputfifo/interface/
Dia_css_inputfifo.h29 unsigned int ch_id,
34 unsigned int ch_id,
39 unsigned int ch_id,
46 unsigned int ch_id,
52 unsigned int ch_id);
/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dinput_system.c105 const unsigned int ch_id,
184 unsigned int ch_id; in receiver_get_state() local
216 for (ch_id = 0U; ch_id < N_RX_CHANNEL_ID; ch_id++) { in receiver_get_state()
217 rx_channel_get_state(ID, ch_id, in receiver_get_state()
218 &state->rx_channel_state[ch_id]); in receiver_get_state()
269 const unsigned int ch_id = cfg_ID / N_MIPI_FORMAT_CUSTOM; in receiver_set_compression() local
277 assert(ch_id < N_RX_CHANNEL_ID); in receiver_set_compression()
283 switch (ch_id) { in receiver_set_compression()
589 const unsigned int ch_id, in rx_channel_get_state() argument
595 assert(ch_id < N_RX_CHANNEL_ID); in rx_channel_get_state()
[all …]
Dfifo_monitor.c534 fifo_channel_t ch_id; in fifo_monitor_get_state() local
540 for (ch_id = 0; ch_id < N_FIFO_CHANNEL; ch_id++) { in fifo_monitor_get_state()
541 fifo_channel_get_state(ID, ch_id, in fifo_monitor_get_state()
542 &state->fifo_channels[ch_id]); in fifo_monitor_get_state()
/drivers/input/misc/
Diqs626a.c462 enum iqs626_ch_id ch_id) in iqs626_parse_events() argument
471 int num_ch = iqs626_channels[ch_id].num_ch; in iqs626_parse_events()
474 switch (ch_id) { in iqs626_parse_events()
489 i = ch_id - IQS626_CH_GEN_0; in iqs626_parse_events()
504 if (!iqs626_channels[ch_id].events[i]) in iqs626_parse_events()
507 if (ch_id == IQS626_CH_TP_2 || ch_id == IQS626_CH_TP_3) { in iqs626_parse_events()
521 iqs626->kp_code[ch_id][i] = val; in iqs626_parse_events()
526 if (ch_id == IQS626_CH_HALL) in iqs626_parse_events()
539 iqs626->kp_type[ch_id][i] = val; in iqs626_parse_events()
564 if (ch_id != IQS626_CH_TP_2 && ch_id != IQS626_CH_TP_3 && in iqs626_parse_events()
[all …]
/drivers/staging/most/net/
Dnet.c58 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 …]
/drivers/net/wwan/iosm/
Diosm_ipc_wwan.c33 int ch_id; member
66 priv->ch_id = ipc_imem_sys_wwan_open(ipc_wwan->ipc_imem, if_id); in ipc_wwan_link_open()
68 if (priv->ch_id < 0) { in ipc_wwan_link_open()
80 priv->ch_id, priv->if_id); in ipc_wwan_link_open()
97 priv->ch_id); in ipc_wwan_link_stop()
98 priv->ch_id = -1; in ipc_wwan_link_stop()
123 if_id, priv->ch_id, skb); in ipc_wwan_link_transmit()
Diosm_ipc_imem_ops.c279 int ch_id; in ipc_imem_sys_port_open() local
288 ch_id = ipc_imem_channel_alloc(ipc_imem, chl_id, IPC_CTYPE_CTRL); in ipc_imem_sys_port_open()
290 if (ch_id < 0) { in ipc_imem_sys_port_open()
295 channel = ipc_imem_channel_open(ipc_imem, ch_id, hp_id); in ipc_imem_sys_port_open()
Diosm_ipc_imem.c575 int ch_id, i; in ipc_imem_handle_irq() local
702 ch_id = ipc_imem->flash_channel_id; in ipc_imem_handle_irq()
703 complete(&ipc_imem->channels[ch_id].ul_sem); in ipc_imem_handle_irq()
/drivers/dma/
Dst_fdma.c101 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_ch_sta_update() local
109 dev_warn(fdev->dev, "chan:%d, error:%ld\n", ch_id, ch_err); in st_fdma_ch_sta_update()
351 int ch_id = fchan->vchan.chan.chan_id; in config_reqctrl() local
406 ch_id, addr, fchan->cfg.req_ctrl); in config_reqctrl()
624 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_pause() local
625 unsigned long cmd = FDMA_CMD_PAUSE(ch_id); in st_fdma_pause()
627 dev_dbg(fchan->fdev->dev, "pause chan:%d\n", ch_id); in st_fdma_pause()
642 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_resume() local
644 dev_dbg(fchan->fdev->dev, "resume chan:%d\n", ch_id); in st_fdma_resume()
662 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_terminate_all() local
[all …]
/drivers/net/can/
Dkvaser_pciefd.c1171 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_data_packet() local
1173 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_data_packet()
1176 priv = &pcie->can[ch_id]->can; in kvaser_pciefd_handle_data_packet()
1341 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_error_packet() local
1343 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_error_packet()
1346 can = pcie->can[ch_id]; in kvaser_pciefd_handle_error_packet()
1420 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_status_packet() local
1422 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_status_packet()
1425 can = pcie->can[ch_id]; in kvaser_pciefd_handle_status_packet()
1477 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7; in kvaser_pciefd_handle_eack_packet() local
[all …]
/drivers/staging/media/atomisp/pci/hive_isp_css_common/
Dinput_formatter_global.h28 #define _HIVE_INPUT_SWITCH_GET_FSYNC_REG_LSB(ch_id) ((ch_id) * 3) argument
/drivers/rapidio/
Drio_cm.c781 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 …]
/drivers/staging/media/atomisp/pci/runtime/debug/src/
Dia_css_debug.c885 int i, ch_id; in ia_css_debug_dump_dma_state() local
913 ch_id = state.last_command_channel; in ia_css_debug_dump_dma_state()
918 "Read 2D Block [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
922 "Write 2D Block [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
925 snprintf(last_cmd_str, 64, "Set Channel [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
930 state.last_command_param, ch_id); in ia_css_debug_dump_dma_state()
934 "Read Specific 2D Block [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
938 "Write Specific 2D Block [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
942 "Init 2D Block on Device A [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
946 "Init Specific 2D Block [Channel: %d]", ch_id); in ia_css_debug_dump_dma_state()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-debugfs.c108 ch->ch_id, in dpaa2_dbg_ch_show()
/drivers/staging/media/atomisp/include/linux/
Datomisp_platform.h177 u8 ch_id; member
/drivers/net/wireless/intel/iwlwifi/mvm/
Dscan.c1526 u8 ch_id, u8 band, u8 *ch_bitmap, in iwl_mvm_scan_ch_add_n_aps_override() argument
1535 if (p2p_go_friendly_chs[i] == ch_id) { in iwl_mvm_scan_ch_add_n_aps_override()
1538 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1554 static u32 iwl_mvm_scan_ch_n_aps_flag(enum nl80211_iftype vif_type, u8 ch_id) in iwl_mvm_scan_ch_n_aps_flag() argument
1563 if (p2p_go_friendly_chs[i] == ch_id) { in iwl_mvm_scan_ch_n_aps_flag()
1573 if (social_chs[i] == ch_id) { in iwl_mvm_scan_ch_n_aps_flag()

12