• Home
  • Raw
  • Download

Lines Matching refs:u

237 	} u;  in rndis_query()  local
240 u.buf = buf; in rndis_query()
242 memset(u.get, 0, sizeof *u.get + in_len); in rndis_query()
243 u.get->msg_type = cpu_to_le32(RNDIS_MSG_QUERY); in rndis_query()
244 u.get->msg_len = cpu_to_le32(sizeof *u.get + in_len); in rndis_query()
245 u.get->oid = cpu_to_le32(oid); in rndis_query()
246 u.get->len = cpu_to_le32(in_len); in rndis_query()
247 u.get->offset = cpu_to_le32(20); in rndis_query()
249 retval = rndis_command(dev, u.header, CONTROL_BUFFER_SIZE); in rndis_query()
256 off = le32_to_cpu(u.get_c->offset); in rndis_query()
257 len = le32_to_cpu(u.get_c->len); in rndis_query()
265 *reply = (unsigned char *) &u.get_c->request_id + off; in rndis_query()
304 } u; in generic_rndis_bind() local
311 u.buf = kmalloc(CONTROL_BUFFER_SIZE, GFP_KERNEL); in generic_rndis_bind()
312 if (!u.buf) in generic_rndis_bind()
318 u.init->msg_type = cpu_to_le32(RNDIS_MSG_INIT); in generic_rndis_bind()
319 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind()
320 u.init->major_version = cpu_to_le32(1); in generic_rndis_bind()
321 u.init->minor_version = cpu_to_le32(0); in generic_rndis_bind()
347 u.init->max_transfer_size = cpu_to_le32(dev->rx_urb_size); in generic_rndis_bind()
351 retval = rndis_command(dev, u.header, CONTROL_BUFFER_SIZE); in generic_rndis_bind()
357 tmp = le32_to_cpu(u.init_c->max_transfer_size); in generic_rndis_bind()
378 1 << le32_to_cpu(u.init_c->packet_alignment)); in generic_rndis_bind()
389 retval = rndis_query(dev, intf, u.buf, in generic_rndis_bind()
414 retval = rndis_query(dev, intf, u.buf, in generic_rndis_bind()
428 memset(u.set, 0, sizeof *u.set); in generic_rndis_bind()
429 u.set->msg_type = cpu_to_le32(RNDIS_MSG_SET); in generic_rndis_bind()
430 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind()
431 u.set->oid = cpu_to_le32(RNDIS_OID_GEN_CURRENT_PACKET_FILTER); in generic_rndis_bind()
432 u.set->len = cpu_to_le32(4); in generic_rndis_bind()
433 u.set->offset = cpu_to_le32((sizeof *u.set) - 8); in generic_rndis_bind()
434 *(__le32 *)(u.buf + sizeof *u.set) = cpu_to_le32(RNDIS_DEFAULT_FILTER); in generic_rndis_bind()
436 retval = rndis_command(dev, u.header, CONTROL_BUFFER_SIZE); in generic_rndis_bind()
444 kfree(u.buf); in generic_rndis_bind()
448 memset(u.halt, 0, sizeof *u.halt); in generic_rndis_bind()
449 u.halt->msg_type = cpu_to_le32(RNDIS_MSG_HALT); in generic_rndis_bind()
450 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind()
451 (void) rndis_command(dev, (void *)u.halt, CONTROL_BUFFER_SIZE); in generic_rndis_bind()
457 kfree(u.buf); in generic_rndis_bind()