Lines Matching refs:h
234 …init_header(struct ncp_server *server, struct ncp_request_reply *req, struct ncp_request_header *h) in ncp_init_header() argument
237 h->conn_low = server->connection; in ncp_init_header()
238 h->conn_high = server->connection >> 8; in ncp_init_header()
239 h->sequence = ++server->sequence; in ncp_init_header()
245 struct ncp_request_header *h = req->tx_iov[1].iov_base; in ncpdgram_start_request() local
247 ncp_init_header(server, req, h); in ncpdgram_start_request()
273 struct ncp_request_header *h = req->tx_iov[1].iov_base; in ncptcp_start_request() local
275 ncp_init_header(server, req, h); in ncptcp_start_request()
770 struct ncp_request_header *h; in ncp_request2() local
774 h = (struct ncp_request_header *) (server->packet); in ncp_request2()
776 *(__u16 *) & (h->data[0]) = htons(server->current_size - sizeof(*h) - 2); in ncp_request2()
778 h->type = NCP_REQUEST; in ncp_request2()
783 h->task = 2; /* (current->pid) & 0xff; */ in ncp_request2()
784 h->function = function; in ncp_request2()
806 struct ncp_request_header *h; in ncp_connect() local
812 h = (struct ncp_request_header *) (server->packet); in ncp_connect()
813 h->type = NCP_ALLOC_SLOT_REQUEST; in ncp_connect()
814 h->task = 2; /* see above */ in ncp_connect()
815 h->function = 0; in ncp_connect()
817 result = ncp_do_request(server, sizeof(*h), server->packet, server->packet_size); in ncp_connect()
820 server->connection = h->conn_low + (h->conn_high * 256); in ncp_connect()
828 struct ncp_request_header *h; in ncp_disconnect() local
830 h = (struct ncp_request_header *) (server->packet); in ncp_disconnect()
831 h->type = NCP_DEALLOC_SLOT_REQUEST; in ncp_disconnect()
832 h->task = 2; /* see above */ in ncp_disconnect()
833 h->function = 0; in ncp_disconnect()
835 return ncp_do_request(server, sizeof(*h), server->packet, server->packet_size); in ncp_disconnect()