Lines Matching defs:packet

39 	struct send_packet *packet;
64 struct packet {
71 struct packet header;
184 /* if we sent an nop packet, do not expect a response */
185 if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP)
211 * On cold boot, the iguanair initializes on the first packet
212 * received but does not process that packet. Send an empty
213 * packet.
215 ir->packet->header.start = 0;
216 ir->packet->header.direction = DIR_OUT;
217 ir->packet->header.cmd = CMD_NOP;
218 iguanair_send(ir, sizeof(ir->packet->header));
220 ir->packet->header.cmd = CMD_GET_VERSION;
221 rc = iguanair_send(ir, sizeof(ir->packet->header));
236 ir->packet->header.cmd = CMD_GET_BUFSIZE;
238 rc = iguanair_send(ir, sizeof(ir->packet->header));
250 ir->packet->header.cmd = CMD_GET_FEATURES;
252 rc = iguanair_send(ir, sizeof(ir->packet->header));
261 ir->packet->header.start = 0;
262 ir->packet->header.direction = DIR_OUT;
263 ir->packet->header.cmd = enable ? CMD_RECEIVER_ON : CMD_RECEIVER_OFF;
268 return iguanair_send(ir, sizeof(ir->packet->header));
308 ir->packet->busy7 = (4 - sevens) * 2;
309 ir->packet->busy4 = 110 - fours;
322 ir->packet->channels = mask << 4;
342 ir->packet->payload[size++] = p | ((i & 1) ? 0x80 : 0);
347 ir->packet->header.start = 0;
348 ir->packet->header.direction = DIR_OUT;
349 ir->packet->header.cmd = CMD_SEND;
350 ir->packet->length = size;
354 rc = iguanair_send(ir, sizeof(*ir->packet) + size);
408 ir->packet = usb_alloc_coherent(udev, MAX_OUT_PACKET, GFP_KERNEL,
413 if (!ir->buf_in || !ir->packet || !ir->urb_in || !ir->urb_out ||
427 usb_fill_int_urb(ir->urb_out, udev, pipeout, ir->packet, MAX_OUT_PACKET,
491 usb_free_coherent(udev, MAX_OUT_PACKET, ir->packet,
510 usb_free_coherent(ir->udev, MAX_OUT_PACKET, ir->packet, ir->dma_out);