Lines Matching refs:ircount
937 int ircount = 0; in mceusb_tx_ir() local
952 if (ircount % MCE_PACKET_SIZE == 0) { in mceusb_tx_ir()
954 if (ircount >= MCE_IRBUF_SIZE - 1) { in mceusb_tx_ir()
956 ret = mce_write(ir, irbuf, ircount); in mceusb_tx_ir()
959 ircount = 0; in mceusb_tx_ir()
961 irbuf[ircount++] = MCE_IRDATA_HEADER; in mceusb_tx_ir()
966 irbuf[ircount] = irsample; in mceusb_tx_ir()
969 irbuf[ircount] = MCE_MAX_PULSE_LENGTH; in mceusb_tx_ir()
976 irbuf[ircount] |= (i & 1 ? 0 : MCE_PULSE_BIT); in mceusb_tx_ir()
977 ircount++; in mceusb_tx_ir()
980 if (ircount >= MCE_IRBUF_SIZE) { in mceusb_tx_ir()
982 length = ircount % MCE_PACKET_SIZE; in mceusb_tx_ir()
984 irbuf[ircount - length] -= in mceusb_tx_ir()
987 ret = mce_write(ir, irbuf, ircount); in mceusb_tx_ir()
990 ircount = 0; in mceusb_tx_ir()
996 length = ircount % MCE_PACKET_SIZE; in mceusb_tx_ir()
998 irbuf[ircount - length] -= MCE_PACKET_SIZE - length; in mceusb_tx_ir()
1001 irbuf[ircount++] = MCE_IRDATA_TRAILER; in mceusb_tx_ir()
1004 ret = mce_write(ir, irbuf, ircount); in mceusb_tx_ir()