Lines Matching refs:cmd
144 u8 *cmd; in vp702x_fe_set_frontend() local
148 cmd = dst->buf; in vp702x_fe_set_frontend()
149 memset(cmd, 0, 10); in vp702x_fe_set_frontend()
151 cmd[0] = (freq >> 8) & 0x7f; in vp702x_fe_set_frontend()
152 cmd[1] = freq & 0xff; in vp702x_fe_set_frontend()
153 cmd[2] = 1; /* divrate == 4 -> frequencyRef[1] -> 1 here */ in vp702x_fe_set_frontend()
157 cmd[3] = (sr >> 12) & 0xff; in vp702x_fe_set_frontend()
158 cmd[4] = (sr >> 4) & 0xff; in vp702x_fe_set_frontend()
159 cmd[5] = (sr << 4) & 0xf0; in vp702x_fe_set_frontend()
169 cmd[6] |= 0x40; in vp702x_fe_set_frontend()
180 cmd[7] = vp702x_chksum(cmd,0,7); in vp702x_fe_set_frontend()
185 vp702x_usb_inout_op(st->d, cmd, 8, cmd, 10, 100); in vp702x_fe_set_frontend()
187 if (cmd[2] == 0 && cmd[3] == 0) in vp702x_fe_set_frontend()
214 u8 *cmd; in vp702x_fe_send_diseqc_msg() local
225 cmd = dst->buf; in vp702x_fe_send_diseqc_msg()
226 cmd[1] = SET_DISEQC_CMD; in vp702x_fe_send_diseqc_msg()
227 cmd[2] = m->msg_len; in vp702x_fe_send_diseqc_msg()
228 memcpy(&cmd[3], m->msg, m->msg_len); in vp702x_fe_send_diseqc_msg()
229 cmd[7] = vp702x_chksum(cmd, 0, 7); in vp702x_fe_send_diseqc_msg()
231 vp702x_usb_inout_op(st->d, cmd, 8, cmd, 10, 100); in vp702x_fe_send_diseqc_msg()
233 if (cmd[2] == 0 && cmd[3] == 0) in vp702x_fe_send_diseqc_msg()