Home
last modified time | relevance | path

Searched refs:rmh (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/sound/pci/lx6464es/
Dlx_core.c208 static void lx_message_init(struct lx_rmh *rmh, enum cmd_mb_opcodes cmd) in lx_message_init() argument
212 rmh->cmd[0] = dsp_commands[cmd].dcCodeOp; in lx_message_init()
213 rmh->cmd_len = dsp_commands[cmd].dcCmdLength; in lx_message_init()
214 rmh->stat_len = dsp_commands[cmd].dcStatusLength; in lx_message_init()
215 rmh->dsp_stat = dsp_commands[cmd].dcStatusType; in lx_message_init()
216 rmh->cmd_idx = cmd; in lx_message_init()
217 memset(&rmh->cmd[1], 0, (REG_CRM_NUMBER - 1) * sizeof(u32)); in lx_message_init()
220 memset(rmh->stat, 0, REG_CRM_NUMBER * sizeof(u32)); in lx_message_init()
223 rmh->cmd_idx = cmd; in lx_message_init()
229 static void lx_message_dump(struct lx_rmh *rmh) in lx_message_dump() argument
[all …]
Dlx6464es.h71 struct lx_rmh rmh; member
/kernel/linux/linux-5.10/sound/pci/pcxhr/
Dpcxhr_hwdep.c32 struct pcxhr_rmh rmh; in pcxhr_init_board() local
45 pcxhr_init_rmh(&rmh, CMD_SUPPORTED); in pcxhr_init_board()
46 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board()
50 if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2) in pcxhr_init_board()
53 if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) < in pcxhr_init_board()
57 if ((rmh.stat[1] & 0x5F) < card_streams) in pcxhr_init_board()
60 if (((rmh.stat[1] >> 7) & 0x5F) < PCXHR_PLAYBACK_STREAMS) in pcxhr_init_board()
64 rmh.stat[2], rmh.stat[3]); in pcxhr_init_board()
66 pcxhr_init_rmh(&rmh, CMD_VERSION); in pcxhr_init_board()
68 rmh.cmd[0] |= mgr->firmware_num; in pcxhr_init_board()
[all …]
Dpcxhr.c239 struct pcxhr_rmh rmh; in pcxhr_get_clock_reg() local
267 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_get_clock_reg()
268 rmh.cmd[0] |= IO_NUM_REG_GENCLK; in pcxhr_get_clock_reg()
269 rmh.cmd[1] = pllreg & MASK_DSP_WORD; in pcxhr_get_clock_reg()
270 rmh.cmd[2] = pllreg >> 24; in pcxhr_get_clock_reg()
271 rmh.cmd_len = 3; in pcxhr_get_clock_reg()
272 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_get_clock_reg()
313 struct pcxhr_rmh rmh; in pcxhr_sub_set_clock() local
328 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); /* mute outputs */ in pcxhr_sub_set_clock()
329 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock()
[all …]
Dpcxhr_mixer.c43 struct pcxhr_rmh rmh; in pcxhr_update_analog_audio_level() local
45 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_update_analog_audio_level()
47 rmh.cmd[0] |= IO_NUM_REG_IN_ANA_LEVEL; in pcxhr_update_analog_audio_level()
48 rmh.cmd[2] = chip->analog_capture_volume[channel]; in pcxhr_update_analog_audio_level()
50 rmh.cmd[0] |= IO_NUM_REG_OUT_ANA_LEVEL; in pcxhr_update_analog_audio_level()
56 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level()
58 rmh.cmd[1] = 1 << ((2 * chip->chip_idx) + channel); /* audio mask */ in pcxhr_update_analog_audio_level()
59 rmh.cmd_len = 3; in pcxhr_update_analog_audio_level()
60 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level()
249 struct pcxhr_rmh rmh; in pcxhr_update_playback_stream_level() local
[all …]
Dpcxhr_core.c532 static int pcxhr_read_rmh_status(struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh) in pcxhr_read_rmh_status() argument
541 if (rmh->stat_len < PCXHR_SIZE_MAX_STATUS) in pcxhr_read_rmh_status()
543 else max_stat_len = rmh->stat_len; in pcxhr_read_rmh_status()
545 for (i = 0; i < rmh->stat_len; i++) { in pcxhr_read_rmh_status()
564 if (rmh->dsp_stat != RMH_SSIZE_FIXED) { in pcxhr_read_rmh_status()
565 if (rmh->dsp_stat == RMH_SSIZE_ARG) { in pcxhr_read_rmh_status()
566 rmh->stat_len = (data & 0x0000ff) + 1; in pcxhr_read_rmh_status()
570 rmh->stat_len = 1; in pcxhr_read_rmh_status()
574 rmh->stat_len++; in pcxhr_read_rmh_status()
581 if (rmh->cmd_idx < CMD_LAST_INDEX) in pcxhr_read_rmh_status()
[all …]
Dpcxhr_core.h83 void pcxhr_init_rmh(struct pcxhr_rmh *rmh, int cmd);
85 void pcxhr_set_pipe_cmd_params(struct pcxhr_rmh* rmh, int capture, unsigned int param1,
93 int pcxhr_send_msg(struct pcxhr_mgr *mgr, struct pcxhr_rmh *rmh);
/kernel/linux/linux-5.10/sound/drivers/vx/
Dvx_pcm.c89 static int vx_set_differed_time(struct vx_core *chip, struct vx_rmh *rmh, in vx_set_differed_time() argument
97 rmh->Cmd[0] |= DSP_DIFFERED_COMMAND_MASK; in vx_set_differed_time()
100 vx_set_pcx_time(chip, &pipe->pcx_time, &rmh->Cmd[1]); in vx_set_differed_time()
104 rmh->Cmd[1] |= NOTIFY_MASK_TIME_HIGH ; in vx_set_differed_time()
108 rmh->Cmd[1] |= MULTIPLE_MASK_TIME_HIGH; in vx_set_differed_time()
112 rmh->Cmd[1] |= STREAM_MASK_TIME_HIGH; in vx_set_differed_time()
114 rmh->LgCmd += 2; in vx_set_differed_time()
126 struct vx_rmh rmh; in vx_set_stream_format() local
128 vx_init_rmh(&rmh, pipe->is_capture ? in vx_set_stream_format()
130 rmh.Cmd[0] |= pipe->number << FIELD_SIZE; in vx_set_stream_format()
[all …]
Dvx_core.c147 static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh) in vx_read_status() argument
152 if (rmh->DspStat == RMH_SSIZE_FIXED && rmh->LgStat == 0) in vx_read_status()
168 switch (rmh->DspStat) { in vx_read_status()
171 rmh->Stat[0] = val & 0xffff00; in vx_read_status()
172 rmh->LgStat = size + 1; in vx_read_status()
176 rmh->Stat[0] = val; in vx_read_status()
183 rmh->LgStat = size + 1; in vx_read_status()
187 size = rmh->LgStat; in vx_read_status()
188 rmh->Stat[0] = val; /* Val is the status 1st word */ in vx_read_status()
207 rmh->Stat[i] = vx_inb(chip, RXH) << 16; in vx_read_status()
[all …]
Dvx_cmd.h199 void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd);
208 static inline void vx_set_pipe_cmd_params(struct vx_rmh *rmh, int is_capture, in vx_set_pipe_cmd_params() argument
212 rmh->Cmd[0] |= COMMAND_RECORD_MASK; in vx_set_pipe_cmd_params()
213 rmh->Cmd[0] |= (((u32)param1 & MASK_FIRST_FIELD) << FIELD_SIZE) & MASK_DSP_WORD; in vx_set_pipe_cmd_params()
216 rmh->Cmd[0] |= ((u32)param2 & MASK_FIRST_FIELD) & MASK_DSP_WORD; in vx_set_pipe_cmd_params()
226 static inline void vx_set_stream_cmd_params(struct vx_rmh *rmh, int is_capture, int pipe) in vx_set_stream_cmd_params() argument
229 rmh->Cmd[0] |= COMMAND_RECORD_MASK; in vx_set_stream_cmd_params()
230 rmh->Cmd[0] |= (((u32)pipe & MASK_FIRST_FIELD) << FIELD_SIZE) & MASK_DSP_WORD; in vx_set_stream_cmd_params()
Dvx_mixer.c207 struct vx_rmh rmh; in vx_adjust_audio_level() local
212 vx_init_rmh(&rmh, CMD_AUDIO_LEVEL_ADJUST); in vx_adjust_audio_level()
214 rmh.Cmd[0] |= COMMAND_RECORD_MASK; in vx_adjust_audio_level()
216 rmh.Cmd[1] = 1 << audio; in vx_adjust_audio_level()
217 rmh.Cmd[2] = 0; in vx_adjust_audio_level()
219 rmh.Cmd[0] |= VALID_AUDIO_IO_DIGITAL_LEVEL; in vx_adjust_audio_level()
220 rmh.Cmd[2] |= info->level; in vx_adjust_audio_level()
223 rmh.Cmd[0] |= VALID_AUDIO_IO_MONITORING_LEVEL; in vx_adjust_audio_level()
224 rmh.Cmd[2] |= ((unsigned int)info->monitor_level << 10); in vx_adjust_audio_level()
227 rmh.Cmd[0] |= VALID_AUDIO_IO_MUTE_LEVEL; in vx_adjust_audio_level()
[all …]
Dvx_uer.c22 struct vx_rmh rmh; in vx_modify_board_clock() local
24 vx_init_rmh(&rmh, CMD_MODIFY_CLOCK); in vx_modify_board_clock()
27 rmh.Cmd[0] |= CMD_MODIFY_CLOCK_S_BIT; in vx_modify_board_clock()
28 return vx_send_msg(chip, &rmh); in vx_modify_board_clock()
36 struct vx_rmh rmh; in vx_modify_board_inputs() local
38 vx_init_rmh(&rmh, CMD_RESYNC_AUDIO_INPUTS); in vx_modify_board_inputs()
39 rmh.Cmd[0] |= 1 << 0; /* reference: AUDIO 0 */ in vx_modify_board_inputs()
40 return vx_send_msg(chip, &rmh); in vx_modify_board_inputs()
Dvx_cmd.c87 void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd) in vx_init_rmh() argument
91 rmh->LgCmd = vx_dsp_cmds[cmd].length; in vx_init_rmh()
92 rmh->LgStat = vx_dsp_cmds[cmd].st_length; in vx_init_rmh()
93 rmh->DspStat = vx_dsp_cmds[cmd].st_type; in vx_init_rmh()
94 rmh->Cmd[0] = vx_dsp_cmds[cmd].opcode; in vx_init_rmh()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsev-es.h98 extern int sev_es_setup_ap_jump_table(struct real_mode_header *rmh);
109 static inline int sev_es_setup_ap_jump_table(struct real_mode_header *rmh) { return 0; } in sev_es_setup_ap_jump_table() argument
/kernel/linux/linux-5.10/include/sound/
Dvx_core.h255 int vx_send_msg(struct vx_core *chip, struct vx_rmh *rmh);
256 int vx_send_msg_nolock(struct vx_core *chip, struct vx_rmh *rmh);
/kernel/linux/linux-5.10/arch/x86/kernel/
Dsev-es.c527 int sev_es_setup_ap_jump_table(struct real_mode_header *rmh) in sev_es_setup_ap_jump_table() argument
546 startup_cs = (u16)(rmh->trampoline_start >> 4); in sev_es_setup_ap_jump_table()
547 startup_ip = (u16)(rmh->sev_es_trampoline_start - in sev_es_setup_ap_jump_table()
548 rmh->trampoline_start); in sev_es_setup_ap_jump_table()