Lines Matching refs:rd
172 struct rt2x00_async_read_data *rd = urb->context; in rt2x00usb_register_read_async_cb() local
173 if (rd->callback(rd->rt2x00dev, urb->status, le32_to_cpu(rd->reg))) { in rt2x00usb_register_read_async_cb()
175 kfree(rd); in rt2x00usb_register_read_async_cb()
177 kfree(rd); in rt2x00usb_register_read_async_cb()
186 struct rt2x00_async_read_data *rd; in rt2x00usb_register_read_async() local
188 rd = kmalloc(sizeof(*rd), GFP_ATOMIC); in rt2x00usb_register_read_async()
189 if (!rd) in rt2x00usb_register_read_async()
194 kfree(rd); in rt2x00usb_register_read_async()
198 rd->rt2x00dev = rt2x00dev; in rt2x00usb_register_read_async()
199 rd->callback = callback; in rt2x00usb_register_read_async()
200 rd->cr.bRequestType = USB_VENDOR_REQUEST_IN; in rt2x00usb_register_read_async()
201 rd->cr.bRequest = USB_MULTI_READ; in rt2x00usb_register_read_async()
202 rd->cr.wValue = 0; in rt2x00usb_register_read_async()
203 rd->cr.wIndex = cpu_to_le16(offset); in rt2x00usb_register_read_async()
204 rd->cr.wLength = cpu_to_le16(sizeof(u32)); in rt2x00usb_register_read_async()
207 (unsigned char *)(&rd->cr), &rd->reg, sizeof(rd->reg), in rt2x00usb_register_read_async()
208 rt2x00usb_register_read_async_cb, rd); in rt2x00usb_register_read_async()
210 kfree(rd); in rt2x00usb_register_read_async()