Lines Matching refs:cpu_to_le32

67 static const __le32 rndis_driver_version = cpu_to_le32(1);
199 resp->InformationBufferOffset = cpu_to_le32(16); in gen_ndis_query_resp()
214 outbuf[i] = cpu_to_le32(oid_supported_list[i]); in gen_ndis_query_resp()
227 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
234 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
242 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
250 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
260 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
262 *outbuf = cpu_to_le32(params->speed); in gen_ndis_query_resp()
270 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
279 *outbuf = cpu_to_le32(params->dev->mtu); in gen_ndis_query_resp()
287 *outbuf = cpu_to_le32(params->vendorID); in gen_ndis_query_resp()
313 *outbuf = cpu_to_le32(*params->filter); in gen_ndis_query_resp()
320 *outbuf = cpu_to_le32(RNDIS_MAX_TOTAL_SIZE); in gen_ndis_query_resp()
328 *outbuf = cpu_to_le32(params->media_state); in gen_ndis_query_resp()
334 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
344 *outbuf = cpu_to_le32( in gen_ndis_query_resp()
357 *outbuf = cpu_to_le32(stats->tx_packets in gen_ndis_query_resp()
368 *outbuf = cpu_to_le32(stats->rx_packets in gen_ndis_query_resp()
379 *outbuf = cpu_to_le32(stats->tx_errors); in gen_ndis_query_resp()
389 *outbuf = cpu_to_le32(stats->rx_errors); in gen_ndis_query_resp()
398 *outbuf = cpu_to_le32(stats->rx_dropped); in gen_ndis_query_resp()
429 *outbuf = cpu_to_le32(0xE0000000); in gen_ndis_query_resp()
437 *outbuf = cpu_to_le32(1); in gen_ndis_query_resp()
443 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
453 *outbuf = cpu_to_le32(stats->rx_frame_errors); in gen_ndis_query_resp()
461 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
468 *outbuf = cpu_to_le32(0); in gen_ndis_query_resp()
478 resp->InformationBufferLength = cpu_to_le32(length); in gen_ndis_query_resp()
480 resp->MessageLength = cpu_to_le32(r->length); in gen_ndis_query_resp()
569 resp->MessageType = cpu_to_le32(RNDIS_MSG_INIT_C); in rndis_init_response()
570 resp->MessageLength = cpu_to_le32(52); in rndis_init_response()
572 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_init_response()
573 resp->MajorVersion = cpu_to_le32(RNDIS_MAJOR_VERSION); in rndis_init_response()
574 resp->MinorVersion = cpu_to_le32(RNDIS_MINOR_VERSION); in rndis_init_response()
575 resp->DeviceFlags = cpu_to_le32(RNDIS_DF_CONNECTIONLESS); in rndis_init_response()
576 resp->Medium = cpu_to_le32(RNDIS_MEDIUM_802_3); in rndis_init_response()
577 resp->MaxPacketsPerTransfer = cpu_to_le32(1); in rndis_init_response()
578 resp->MaxTransferSize = cpu_to_le32( in rndis_init_response()
583 resp->PacketAlignmentFactor = cpu_to_le32(0); in rndis_init_response()
584 resp->AFListOffset = cpu_to_le32(0); in rndis_init_response()
585 resp->AFListSize = cpu_to_le32(0); in rndis_init_response()
613 resp->MessageType = cpu_to_le32(RNDIS_MSG_QUERY_C); in rndis_query_response()
622 resp->Status = cpu_to_le32(RNDIS_STATUS_NOT_SUPPORTED); in rndis_query_response()
623 resp->MessageLength = cpu_to_le32(sizeof *resp); in rndis_query_response()
624 resp->InformationBufferLength = cpu_to_le32(0); in rndis_query_response()
625 resp->InformationBufferOffset = cpu_to_le32(0); in rndis_query_response()
627 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_query_response()
660 resp->MessageType = cpu_to_le32(RNDIS_MSG_SET_C); in rndis_set_response()
661 resp->MessageLength = cpu_to_le32(16); in rndis_set_response()
665 resp->Status = cpu_to_le32(RNDIS_STATUS_NOT_SUPPORTED); in rndis_set_response()
667 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_set_response()
690 resp->MessageType = cpu_to_le32(RNDIS_MSG_RESET_C); in rndis_reset_response()
691 resp->MessageLength = cpu_to_le32(16); in rndis_reset_response()
692 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_reset_response()
694 resp->AddressingReset = cpu_to_le32(1); in rndis_reset_response()
713 resp->MessageType = cpu_to_le32(RNDIS_MSG_KEEPALIVE_C); in rndis_keepalive_response()
714 resp->MessageLength = cpu_to_le32(16); in rndis_keepalive_response()
716 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_keepalive_response()
739 resp->MessageType = cpu_to_le32(RNDIS_MSG_INDICATE); in rndis_indicate_status_msg()
740 resp->MessageLength = cpu_to_le32(20); in rndis_indicate_status_msg()
741 resp->Status = cpu_to_le32(status); in rndis_indicate_status_msg()
742 resp->StatusBufferLength = cpu_to_le32(0); in rndis_indicate_status_msg()
743 resp->StatusBufferOffset = cpu_to_le32(0); in rndis_indicate_status_msg()
1004 header->MessageType = cpu_to_le32(RNDIS_MSG_PACKET); in rndis_add_hdr()
1005 header->MessageLength = cpu_to_le32(skb->len); in rndis_add_hdr()
1006 header->DataOffset = cpu_to_le32(36); in rndis_add_hdr()
1007 header->DataLength = cpu_to_le32(skb->len - sizeof(*header)); in rndis_add_hdr()
1066 if (cpu_to_le32(RNDIS_MSG_PACKET) in rndis_rm_hdr()