Lines Matching refs:hw_buffer
323 …dst_tag(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u32 length) in handle_dst_tag() argument
326 hw_buffer->msg[2] = p_ca_message->msg[1]; /* MSB */ in handle_dst_tag()
327 hw_buffer->msg[3] = p_ca_message->msg[2]; /* LSB */ in handle_dst_tag()
333 hw_buffer->msg[0] = (length & 0xff) + 7; in handle_dst_tag()
334 hw_buffer->msg[1] = 0x40; in handle_dst_tag()
335 hw_buffer->msg[2] = 0x03; in handle_dst_tag()
336 hw_buffer->msg[3] = 0x00; in handle_dst_tag()
337 hw_buffer->msg[4] = 0x03; in handle_dst_tag()
338 hw_buffer->msg[5] = length & 0xff; in handle_dst_tag()
339 hw_buffer->msg[6] = 0x00; in handle_dst_tag()
345 memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length); in handle_dst_tag()
351 static int write_to_8820(struct dst_state *state, struct ca_msg *hw_buffer, u8 length, u8 reply) in write_to_8820() argument
353 if ((dst_put_ci(state, hw_buffer->msg, length, hw_buffer->msg, reply)) < 0) { in write_to_8820()
398 …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
407 memset(hw_buffer->msg, '\0', length); in ca_set_pmt()
408 handle_dst_tag(state, p_ca_message, hw_buffer, length); in ca_set_pmt()
409 put_checksum(hw_buffer->msg, hw_buffer->msg[0]); in ca_set_pmt()
411 debug_string(hw_buffer->msg, (length + tag_length), 0); /* tags too */ in ca_set_pmt()
412 write_to_8820(state, hw_buffer, (length + tag_length), reply); in ca_set_pmt()
419 …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
428 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 1, GET_REPLY)) < 0) { in dst_check_ca_pmt()
439 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, NO_REPLY)) < 0) { in dst_check_ca_pmt()
454 struct ca_msg *hw_buffer; in ca_send_message() local
457 hw_buffer = kmalloc(sizeof(*hw_buffer), GFP_KERNEL); in ca_send_message()
458 if (!hw_buffer) in ca_send_message()
480 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, 0)) < 0) { // code simplification started in ca_send_message()
490 if ((dst_check_ca_pmt(state, p_ca_message, hw_buffer)) < 0) { in ca_send_message()
520 kfree (hw_buffer); in ca_send_message()