Lines Matching refs:cpu_to_le32

67 static const __le32 rndis_driver_version = cpu_to_le32(1);
199 resp->InformationBufferOffset = cpu_to_le32(16);
214 outbuf[i] = cpu_to_le32(oid_supported_list[i]);
227 *outbuf = cpu_to_le32(0);
234 *outbuf = cpu_to_le32(params->medium);
242 *outbuf = cpu_to_le32(params->medium);
250 *outbuf = cpu_to_le32(params->dev->mtu);
260 *outbuf = cpu_to_le32(0);
262 *outbuf = cpu_to_le32(params->speed);
270 *outbuf = cpu_to_le32(params->dev->mtu);
279 *outbuf = cpu_to_le32(params->dev->mtu);
287 *outbuf = cpu_to_le32(params->vendorID);
313 *outbuf = cpu_to_le32(*params->filter);
320 *outbuf = cpu_to_le32(RNDIS_MAX_TOTAL_SIZE);
328 *outbuf = cpu_to_le32(params->media_state);
334 *outbuf = cpu_to_le32(0);
344 *outbuf = cpu_to_le32(
357 *outbuf = cpu_to_le32(stats->tx_packets
368 *outbuf = cpu_to_le32(stats->rx_packets
379 *outbuf = cpu_to_le32(stats->tx_errors);
389 *outbuf = cpu_to_le32(stats->rx_errors);
398 *outbuf = cpu_to_le32(stats->rx_dropped);
429 *outbuf = cpu_to_le32(0xE0000000);
437 *outbuf = cpu_to_le32(1);
443 *outbuf = cpu_to_le32(0);
453 *outbuf = cpu_to_le32(stats->rx_frame_errors);
461 *outbuf = cpu_to_le32(0);
468 *outbuf = cpu_to_le32(0);
478 resp->InformationBufferLength = cpu_to_le32(length);
480 resp->MessageLength = cpu_to_le32(r->length);
569 resp->MessageType = cpu_to_le32(RNDIS_MSG_INIT_C);
570 resp->MessageLength = cpu_to_le32(52);
572 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS);
573 resp->MajorVersion = cpu_to_le32(RNDIS_MAJOR_VERSION);
574 resp->MinorVersion = cpu_to_le32(RNDIS_MINOR_VERSION);
575 resp->DeviceFlags = cpu_to_le32(RNDIS_DF_CONNECTIONLESS);
576 resp->Medium = cpu_to_le32(RNDIS_MEDIUM_802_3);
577 resp->MaxPacketsPerTransfer = cpu_to_le32(1);
578 resp->MaxTransferSize = cpu_to_le32(
583 resp->PacketAlignmentFactor = cpu_to_le32(0);
584 resp->AFListOffset = cpu_to_le32(0);
585 resp->AFListSize = cpu_to_le32(0);
597 /* pr_debug("%s: OID = %08X\n", __func__, cpu_to_le32(buf->OID)); */
613 resp->MessageType = cpu_to_le32(RNDIS_MSG_QUERY_C);
622 resp->Status = cpu_to_le32(RNDIS_STATUS_NOT_SUPPORTED);
623 resp->MessageLength = cpu_to_le32(sizeof *resp);
624 resp->InformationBufferLength = cpu_to_le32(0);
625 resp->InformationBufferOffset = cpu_to_le32(0);
627 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS);
664 resp->MessageType = cpu_to_le32(RNDIS_MSG_SET_C);
665 resp->MessageLength = cpu_to_le32(16);
669 resp->Status = cpu_to_le32(RNDIS_STATUS_NOT_SUPPORTED);
671 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS);
694 resp->MessageType = cpu_to_le32(RNDIS_MSG_RESET_C);
695 resp->MessageLength = cpu_to_le32(16);
696 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS);
698 resp->AddressingReset = cpu_to_le32(1);
717 resp->MessageType = cpu_to_le32(RNDIS_MSG_KEEPALIVE_C);
718 resp->MessageLength = cpu_to_le32(16);
720 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS);
743 resp->MessageType = cpu_to_le32(RNDIS_MSG_INDICATE);
744 resp->MessageLength = cpu_to_le32(20);
745 resp->Status = cpu_to_le32(status);
746 resp->StatusBufferLength = cpu_to_le32(0);
747 resp->StatusBufferOffset = cpu_to_le32(0);
1009 header->MessageType = cpu_to_le32(RNDIS_MSG_PACKET);
1010 header->MessageLength = cpu_to_le32(skb->len);
1011 header->DataOffset = cpu_to_le32(36);
1012 header->DataLength = cpu_to_le32(skb->len - sizeof(*header));
1078 if (cpu_to_le32(RNDIS_MSG_PACKET)