Lines Matching refs:hw_buffer

335 …dst_tag(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer, u32 length)  in handle_dst_tag()  argument
338 hw_buffer->msg[2] = p_ca_message->msg[1]; /* MSB */ in handle_dst_tag()
339 hw_buffer->msg[3] = p_ca_message->msg[2]; /* LSB */ in handle_dst_tag()
345 hw_buffer->msg[0] = (length & 0xff) + 7; in handle_dst_tag()
346 hw_buffer->msg[1] = 0x40; in handle_dst_tag()
347 hw_buffer->msg[2] = 0x03; in handle_dst_tag()
348 hw_buffer->msg[3] = 0x00; in handle_dst_tag()
349 hw_buffer->msg[4] = 0x03; in handle_dst_tag()
350 hw_buffer->msg[5] = length & 0xff; in handle_dst_tag()
351 hw_buffer->msg[6] = 0x00; in handle_dst_tag()
357 memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length); in handle_dst_tag()
363 static int write_to_8820(struct dst_state *state, struct ca_msg *hw_buffer, u8 length, u8 reply) in write_to_8820() argument
365 if ((dst_put_ci(state, hw_buffer->msg, length, hw_buffer->msg, reply)) < 0) { in write_to_8820()
410 …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
419 memset(hw_buffer->msg, '\0', length); in ca_set_pmt()
420 handle_dst_tag(state, p_ca_message, hw_buffer, length); in ca_set_pmt()
421 put_checksum(hw_buffer->msg, hw_buffer->msg[0]); in ca_set_pmt()
423 debug_string(hw_buffer->msg, (length + tag_length), 0); /* tags too */ in ca_set_pmt()
424 write_to_8820(state, hw_buffer, (length + tag_length), reply); in ca_set_pmt()
431 …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
440 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 1, GET_REPLY)) < 0) { in dst_check_ca_pmt()
451 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, NO_REPLY)) < 0) { in dst_check_ca_pmt()
466 struct ca_msg *hw_buffer; in ca_send_message() local
469 hw_buffer = kmalloc(sizeof(*hw_buffer), GFP_KERNEL); in ca_send_message()
470 if (!hw_buffer) in ca_send_message()
492 if ((ca_set_pmt(state, p_ca_message, hw_buffer, 0, 0)) < 0) { // code simplification started in ca_send_message()
502 if ((dst_check_ca_pmt(state, p_ca_message, hw_buffer)) < 0) { in ca_send_message()
532 kfree (hw_buffer); in ca_send_message()