p_ca_message      243 drivers/media/pci/bt8xx/dst_ca.c static int ca_get_slot_descr(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg)
p_ca_message      289 drivers/media/pci/bt8xx/dst_ca.c static int ca_get_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg)
p_ca_message      294 drivers/media/pci/bt8xx/dst_ca.c 	if (copy_from_user(p_ca_message, arg, sizeof (struct ca_msg)))
p_ca_message      298 drivers/media/pci/bt8xx/dst_ca.c 		3, p_ca_message->msg);
p_ca_message      301 drivers/media/pci/bt8xx/dst_ca.c 		command = command | p_ca_message->msg[i];
p_ca_message      309 drivers/media/pci/bt8xx/dst_ca.c 		memcpy(p_ca_message->msg, state->messages, 128);
p_ca_message      310 drivers/media/pci/bt8xx/dst_ca.c 		if (copy_to_user(arg, p_ca_message, sizeof (struct ca_msg)) )
p_ca_message      314 drivers/media/pci/bt8xx/dst_ca.c 		memcpy(p_ca_message->msg, state->messages, 128);
p_ca_message      315 drivers/media/pci/bt8xx/dst_ca.c 		if (copy_to_user(arg, p_ca_message, sizeof (struct ca_msg)) )
p_ca_message      323 drivers/media/pci/bt8xx/dst_ca.c static int handle_dst_tag(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u32 length)
p_ca_message      326 drivers/media/pci/bt8xx/dst_ca.c 		hw_buffer->msg[2] = p_ca_message->msg[1];	/*	MSB	*/
p_ca_message      327 drivers/media/pci/bt8xx/dst_ca.c 		hw_buffer->msg[3] = p_ca_message->msg[2];	/*	LSB	*/
p_ca_message      345 drivers/media/pci/bt8xx/dst_ca.c 		memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length);
p_ca_message      398 drivers/media/pci/bt8xx/dst_ca.c static int ca_set_pmt(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u8 reply, u8 query)
p_ca_message      403 drivers/media/pci/bt8xx/dst_ca.c 	length = asn_1_decode(&p_ca_message->msg[3]);
p_ca_message      405 drivers/media/pci/bt8xx/dst_ca.c 	debug_string(&p_ca_message->msg[4], length, 0); /*	length is excluding tag & length	*/
p_ca_message      408 drivers/media/pci/bt8xx/dst_ca.c 	handle_dst_tag(state, p_ca_message, hw_buffer, length);
p_ca_message      419 drivers/media/pci/bt8xx/dst_ca.c static int dst_check_ca_pmt(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer)
p_ca_message      428 drivers/media/pci/bt8xx/dst_ca.c 		if ((ca_set_pmt(state, p_ca_message, hw_buffer, 1, GET_REPLY)) < 0) {
p_ca_message      439 drivers/media/pci/bt8xx/dst_ca.c 		if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, NO_REPLY)) < 0) {
p_ca_message      450 drivers/media/pci/bt8xx/dst_ca.c static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg)
p_ca_message      462 drivers/media/pci/bt8xx/dst_ca.c 	if (copy_from_user(p_ca_message, arg, sizeof (struct ca_msg))) {
p_ca_message      471 drivers/media/pci/bt8xx/dst_ca.c 		command = command | p_ca_message->msg[i];
p_ca_message      480 drivers/media/pci/bt8xx/dst_ca.c 		if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, 0)) < 0) {	// code simplification started
p_ca_message      490 drivers/media/pci/bt8xx/dst_ca.c 		if ((dst_check_ca_pmt(state, p_ca_message, hw_buffer)) < 0) {
p_ca_message      531 drivers/media/pci/bt8xx/dst_ca.c 	struct ca_msg *p_ca_message;
p_ca_message      538 drivers/media/pci/bt8xx/dst_ca.c 	p_ca_message = kmalloc(sizeof (struct ca_msg), GFP_KERNEL);
p_ca_message      541 drivers/media/pci/bt8xx/dst_ca.c 	if (!p_ca_message || !p_ca_slot_info || !p_ca_caps) {
p_ca_message      550 drivers/media/pci/bt8xx/dst_ca.c 		result = ca_send_message(state, p_ca_message, arg);
p_ca_message      559 drivers/media/pci/bt8xx/dst_ca.c 		result = ca_get_message(state, p_ca_message, arg);
p_ca_message      592 drivers/media/pci/bt8xx/dst_ca.c 		result = ca_get_slot_descr(state, p_ca_message, arg);
p_ca_message      603 drivers/media/pci/bt8xx/dst_ca.c 	kfree (p_ca_message);