Lines Matching refs:u
249 } u; in rndis_query() local
252 u.buf = buf; in rndis_query()
254 memset(u.get, 0, sizeof *u.get + in_len); in rndis_query()
255 u.get->msg_type = cpu_to_le32(RNDIS_MSG_QUERY); in rndis_query()
256 u.get->msg_len = cpu_to_le32(sizeof *u.get + in_len); in rndis_query()
257 u.get->oid = cpu_to_le32(oid); in rndis_query()
258 u.get->len = cpu_to_le32(in_len); in rndis_query()
259 u.get->offset = cpu_to_le32(20); in rndis_query()
261 retval = rndis_command(dev, u.header, CONTROL_BUFFER_SIZE); in rndis_query()
268 off = le32_to_cpu(u.get_c->offset); in rndis_query()
269 len = le32_to_cpu(u.get_c->len); in rndis_query()
276 *reply = (unsigned char *) &u.get_c->request_id + off; in rndis_query()
314 } u; in generic_rndis_bind() local
321 u.buf = kmalloc(CONTROL_BUFFER_SIZE, GFP_KERNEL); in generic_rndis_bind()
322 if (!u.buf) in generic_rndis_bind()
328 u.init->msg_type = cpu_to_le32(RNDIS_MSG_INIT); in generic_rndis_bind()
329 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind()
330 u.init->major_version = cpu_to_le32(1); in generic_rndis_bind()
331 u.init->minor_version = cpu_to_le32(0); in generic_rndis_bind()
357 u.init->max_transfer_size = cpu_to_le32(dev->rx_urb_size); in generic_rndis_bind()
361 retval = rndis_command(dev, u.header, CONTROL_BUFFER_SIZE); in generic_rndis_bind()
367 tmp = le32_to_cpu(u.init_c->max_transfer_size); in generic_rndis_bind()
388 1 << le32_to_cpu(u.init_c->packet_alignment)); in generic_rndis_bind()
399 retval = rndis_query(dev, intf, u.buf, in generic_rndis_bind()
424 retval = rndis_query(dev, intf, u.buf, in generic_rndis_bind()
438 memset(u.set, 0, sizeof *u.set); in generic_rndis_bind()
439 u.set->msg_type = cpu_to_le32(RNDIS_MSG_SET); in generic_rndis_bind()
440 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind()
441 u.set->oid = cpu_to_le32(RNDIS_OID_GEN_CURRENT_PACKET_FILTER); in generic_rndis_bind()
442 u.set->len = cpu_to_le32(4); in generic_rndis_bind()
443 u.set->offset = cpu_to_le32((sizeof *u.set) - 8); in generic_rndis_bind()
444 *(__le32 *)(u.buf + sizeof *u.set) = cpu_to_le32(RNDIS_DEFAULT_FILTER); in generic_rndis_bind()
446 retval = rndis_command(dev, u.header, CONTROL_BUFFER_SIZE); in generic_rndis_bind()
454 kfree(u.buf); in generic_rndis_bind()
458 memset(u.halt, 0, sizeof *u.halt); in generic_rndis_bind()
459 u.halt->msg_type = cpu_to_le32(RNDIS_MSG_HALT); in generic_rndis_bind()
460 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind()
461 (void) rndis_command(dev, (void *)u.halt, CONTROL_BUFFER_SIZE); in generic_rndis_bind()
467 kfree(u.buf); in generic_rndis_bind()