Lines Matching defs:packet
39 struct send_packet *packet;
64 struct packet {
71 struct packet header;
181 /* if we sent an nop packet, do not expect a response */
182 if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP)
208 * On cold boot, the iguanair initializes on the first packet
209 * received but does not process that packet. Send an empty
210 * packet.
212 ir->packet->header.start = 0;
213 ir->packet->header.direction = DIR_OUT;
214 ir->packet->header.cmd = CMD_NOP;
215 iguanair_send(ir, sizeof(ir->packet->header));
217 ir->packet->header.cmd = CMD_GET_VERSION;
218 rc = iguanair_send(ir, sizeof(ir->packet->header));
233 ir->packet->header.cmd = CMD_GET_BUFSIZE;
235 rc = iguanair_send(ir, sizeof(ir->packet->header));
247 ir->packet->header.cmd = CMD_GET_FEATURES;
249 rc = iguanair_send(ir, sizeof(ir->packet->header));
258 ir->packet->header.start = 0;
259 ir->packet->header.direction = DIR_OUT;
260 ir->packet->header.cmd = enable ? CMD_RECEIVER_ON : CMD_RECEIVER_OFF;
262 return iguanair_send(ir, sizeof(ir->packet->header));
302 ir->packet->busy7 = (4 - sevens) * 2;
303 ir->packet->busy4 = 110 - fours;
316 ir->packet->channels = mask << 4;
336 ir->packet->payload[size++] = p | ((i & 1) ? 0x80 : 0);
341 ir->packet->header.start = 0;
342 ir->packet->header.direction = DIR_OUT;
343 ir->packet->header.cmd = CMD_SEND;
344 ir->packet->length = size;
348 rc = iguanair_send(ir, sizeof(*ir->packet) + size);
402 ir->packet = usb_alloc_coherent(udev, MAX_OUT_PACKET, GFP_KERNEL,
407 if (!ir->buf_in || !ir->packet || !ir->urb_in || !ir->urb_out ||
421 usb_fill_int_urb(ir->urb_out, udev, pipeout, ir->packet, MAX_OUT_PACKET,
485 usb_free_coherent(udev, MAX_OUT_PACKET, ir->packet,
504 usb_free_coherent(ir->udev, MAX_OUT_PACKET, ir->packet, ir->dma_out);