Lines Matching refs:smb_swap16

325 static unsigned short smb_swap16(unsigned short x)  in smb_swap16()  function
343 # define smb_swap16(x) (x) macro
548 h->flags2 = smb_swap16(SMB_FLAGS2_IS_LONG_NAME | SMB_FLAGS2_KNOWS_LONG_NAME); in smb_format_message()
549 h->uid = smb_swap16(smbc->uid); in smb_format_message()
550 h->tid = smb_swap16(req->tid); in smb_format_message()
552 h->pid_high = smb_swap16((unsigned short)(pid >> 16)); in smb_format_message()
553 h->pid = smb_swap16((unsigned short) pid); in smb_format_message()
648 msg.max_buffer_size = smb_swap16(MAX_MESSAGE_SIZE); in smb_send_setup()
649 msg.max_mpx_count = smb_swap16(1); in smb_send_setup()
650 msg.vc_number = smb_swap16(1); in smb_send_setup()
653 msg.lengths[0] = smb_swap16(sizeof(lm)); in smb_send_setup()
654 msg.lengths[1] = smb_swap16(sizeof(nt)); in smb_send_setup()
667 msg.byte_count = smb_swap16((unsigned short)byte_count); in smb_send_setup()
697 msg.byte_count = smb_swap16((unsigned short)byte_count); in smb_send_tree_connect()
715 msg.name_length = smb_swap16((unsigned short)(byte_count - 1)); in smb_send_open()
725 msg.byte_count = smb_swap16((unsigned short) byte_count); in smb_send_open()
739 msg.fid = smb_swap16(req->fid); in smb_send_close()
762 msg.fid = smb_swap16(req->fid); in smb_send_read()
765 msg.min_bytes = smb_swap16(MAX_PAYLOAD_SIZE); in smb_send_read()
766 msg.max_bytes = smb_swap16(MAX_PAYLOAD_SIZE); in smb_send_read()
787 msg->fid = smb_swap16(req->fid); in smb_send_write()
790 msg->data_length = smb_swap16((unsigned short) upload_size); in smb_send_write()
791 msg->data_offset = smb_swap16(sizeof(*msg) - sizeof(unsigned int)); in smb_send_write()
792 msg->byte_count = smb_swap16((unsigned short) (upload_size + 1)); in smb_send_write()
903 smbc->uid = smb_swap16(h->uid); in smb_connection_state()
985 req->tid = smb_swap16(h->tid); in smb_request_state()
998 req->fid = smb_swap16(smb_m->fid); in smb_request_state()