Lines Matching refs:pcmd
21 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_on() local
23 pcmd = adap->cmd; in as10x_cmd_turn_on()
27 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_on()
28 sizeof(pcmd->body.turn_on.req)); in as10x_cmd_turn_on()
31 pcmd->body.turn_on.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNON); in as10x_cmd_turn_on()
35 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_turn_on()
36 sizeof(pcmd->body.turn_on.req) + in as10x_cmd_turn_on()
62 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_off() local
64 pcmd = adap->cmd; in as10x_cmd_turn_off()
68 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_off()
69 sizeof(pcmd->body.turn_off.req)); in as10x_cmd_turn_off()
72 pcmd->body.turn_off.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNOFF); in as10x_cmd_turn_off()
77 adap, (uint8_t *) pcmd, in as10x_cmd_turn_off()
78 sizeof(pcmd->body.turn_off.req) + HEADER_SIZE, in as10x_cmd_turn_off()
211 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_get_tps() local
213 pcmd = adap->cmd; in as10x_cmd_get_tps()
217 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_get_tps()
218 sizeof(pcmd->body.get_tps.req)); in as10x_cmd_get_tps()
221 pcmd->body.get_tune_status.req.proc_id = in as10x_cmd_get_tps()
227 (uint8_t *) pcmd, in as10x_cmd_get_tps()
228 sizeof(pcmd->body.get_tps.req) + in as10x_cmd_get_tps()
270 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_get_demod_stats() local
272 pcmd = adap->cmd; in as10x_cmd_get_demod_stats()
276 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_get_demod_stats()
277 sizeof(pcmd->body.get_demod_stats.req)); in as10x_cmd_get_demod_stats()
280 pcmd->body.get_demod_stats.req.proc_id = in as10x_cmd_get_demod_stats()
286 (uint8_t *) pcmd, in as10x_cmd_get_demod_stats()
287 sizeof(pcmd->body.get_demod_stats.req) in as10x_cmd_get_demod_stats()
330 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_get_impulse_resp() local
332 pcmd = adap->cmd; in as10x_cmd_get_impulse_resp()
336 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_get_impulse_resp()
337 sizeof(pcmd->body.get_impulse_rsp.req)); in as10x_cmd_get_impulse_resp()
340 pcmd->body.get_impulse_rsp.req.proc_id = in as10x_cmd_get_impulse_resp()
346 (uint8_t *) pcmd, in as10x_cmd_get_impulse_resp()
347 sizeof(pcmd->body.get_impulse_rsp.req) in as10x_cmd_get_impulse_resp()
375 void as10x_cmd_build(struct as10x_cmd_t *pcmd, in as10x_cmd_build() argument
378 pcmd->header.req_id = cpu_to_le16(xid); in as10x_cmd_build()
379 pcmd->header.prog = cpu_to_le16(SERVICE_PROG_ID); in as10x_cmd_build()
380 pcmd->header.version = cpu_to_le16(SERVICE_PROG_VERSION); in as10x_cmd_build()
381 pcmd->header.data_len = cpu_to_le16(cmd_len); in as10x_cmd_build()