Lines Matching refs:hw_buffer
351 …dst_tag(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u32 length) in handle_dst_tag() argument
354 hw_buffer->msg[2] = p_ca_message->msg[1]; /* MSB */ in handle_dst_tag()
355 hw_buffer->msg[3] = p_ca_message->msg[2]; /* LSB */ in handle_dst_tag()
361 hw_buffer->msg[0] = (length & 0xff) + 7; in handle_dst_tag()
362 hw_buffer->msg[1] = 0x40; in handle_dst_tag()
363 hw_buffer->msg[2] = 0x03; in handle_dst_tag()
364 hw_buffer->msg[3] = 0x00; in handle_dst_tag()
365 hw_buffer->msg[4] = 0x03; in handle_dst_tag()
366 hw_buffer->msg[5] = length & 0xff; in handle_dst_tag()
367 hw_buffer->msg[6] = 0x00; in handle_dst_tag()
373 memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length); in handle_dst_tag()
379 static int write_to_8820(struct dst_state *state, struct ca_msg *hw_buffer, u8 length, u8 reply) in write_to_8820() argument
381 if ((dst_put_ci(state, hw_buffer->msg, length, hw_buffer->msg, reply)) < 0) { in write_to_8820()
426 …mt(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u8 reply, u8 qu… in ca_set_pmt() argument
435 memset(hw_buffer->msg, '\0', length); in ca_set_pmt()
436 handle_dst_tag(state, p_ca_message, hw_buffer, length); in ca_set_pmt()
437 put_checksum(hw_buffer->msg, hw_buffer->msg[0]); in ca_set_pmt()
439 debug_string(hw_buffer->msg, (length + tag_length), 0); /* tags too */ in ca_set_pmt()
440 write_to_8820(state, hw_buffer, (length + tag_length), reply); in ca_set_pmt()
447 …nt dst_check_ca_pmt(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer) in dst_check_ca_pmt() argument
456 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 1, GET_REPLY)) < 0) { in dst_check_ca_pmt()
467 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, NO_REPLY)) < 0) { in dst_check_ca_pmt()
483 struct ca_msg *hw_buffer; in ca_send_message() local
486 if ((hw_buffer = kmalloc(sizeof (struct ca_msg), GFP_KERNEL)) == NULL) { in ca_send_message()
512 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, 0)) < 0) { // code simplification started in ca_send_message()
522 if ((dst_check_ca_pmt(state, p_ca_message, hw_buffer)) < 0) { in ca_send_message()
552 kfree (hw_buffer); in ca_send_message()