Lines Matching refs:length

87 static rndis_resp_t *rndis_add_response (int configNr, u32 length);
94 u32 length = 0; in gen_ndis_query_resp() local
111 length = sizeof (oid_supported_list); in gen_ndis_query_resp()
112 count = length / sizeof (u32); in gen_ndis_query_resp()
122 length = 4; in gen_ndis_query_resp()
136 length = 4; in gen_ndis_query_resp()
145 length = 4; in gen_ndis_query_resp()
156 length = 4; in gen_ndis_query_resp()
169 length = 4; in gen_ndis_query_resp()
183 length = 4; in gen_ndis_query_resp()
194 length = 4; in gen_ndis_query_resp()
204 length = 4; in gen_ndis_query_resp()
213 length = strlen (rndis_per_dev_params [configNr].vendorDescr); in gen_ndis_query_resp()
215 rndis_per_dev_params [configNr].vendorDescr, length); in gen_ndis_query_resp()
221 length = 4; in gen_ndis_query_resp()
230 length = 4; in gen_ndis_query_resp()
239 length = 4; in gen_ndis_query_resp()
248 length = 4; in gen_ndis_query_resp()
257 length = 4; in gen_ndis_query_resp()
268 length = 4; in gen_ndis_query_resp()
281 length = 4; in gen_ndis_query_resp()
297 length = 4; in gen_ndis_query_resp()
313 length = 4; in gen_ndis_query_resp()
361 length = 4; in gen_ndis_query_resp()
381 length = 4; in gen_ndis_query_resp()
539 length = ETH_ALEN; in gen_ndis_query_resp()
542 length); in gen_ndis_query_resp()
554 length = ETH_ALEN; in gen_ndis_query_resp()
557 length); in gen_ndis_query_resp()
565 length = 4; in gen_ndis_query_resp()
574 length = 4; in gen_ndis_query_resp()
591 length = 4; in gen_ndis_query_resp()
602 length = 4; in gen_ndis_query_resp()
610 length = 4; in gen_ndis_query_resp()
660 length = sizeof (struct NDIS_PNP_CAPABILITIES); in gen_ndis_query_resp()
661 memset (resp, 0, length); in gen_ndis_query_resp()
688 resp->InformationBufferLength = cpu_to_le32 (length); in gen_ndis_query_resp()
689 resp->MessageLength = cpu_to_le32 (24 + length); in gen_ndis_query_resp()
690 r->length = 24 + length; in gen_ndis_query_resp()
1220 u8 *rndis_get_next_response (int configNr, u32 *length) in rndis_get_next_response() argument
1225 if (!length) return NULL; in rndis_get_next_response()
1233 *length = r->length; in rndis_get_next_response()
1241 static rndis_resp_t *rndis_add_response (int configNr, u32 length) in rndis_add_response() argument
1245 r = kmalloc (sizeof (rndis_resp_t) + length, GFP_ATOMIC); in rndis_add_response()
1249 r->length = length; in rndis_add_response()
1257 int rndis_rm_hdr (u8 *buf, u32 *length) in rndis_rm_hdr() argument
1263 if (!buf || !length) return -1; in rndis_rm_hdr()
1269 if (messageLen < dataOffset || messageLen > *length) return -1; in rndis_rm_hdr()
1274 *length = messageLen - dataOffset; in rndis_rm_hdr()