Lines Matching defs:tx_buf
340 u8 tx_buf[2] = { st->setupbyte, st->configbyte };
342 return st->send(st->client, tx_buf, 2);
821 u8 *tx_buf;
853 tx_buf = kmalloc(len, GFP_KERNEL);
854 if (!tx_buf) {
858 tx_buf[0] = st->configbyte;
859 tx_buf[1] = st->setupbyte;
860 tx_buf[2] = (st->monitor_speed << 1);
870 tx_buf[i] = (st->thresh_low[j] >> 4) & 0xFF;
871 tx_buf[i + 1] = (st->thresh_low[j] << 4) & 0xF0;
873 tx_buf[i] = 0;
874 tx_buf[i + 1] = 0;
876 tx_buf[i] = 0x80;
877 tx_buf[i + 1] = 0;
880 tx_buf[i + 1] |=
882 tx_buf[i + 2] = st->thresh_high[j] & 0xFF;
884 tx_buf[i + 1] |= 0x0F;
885 tx_buf[i + 2] = 0xFF;
887 tx_buf[i + 1] |= 0x07;
888 tx_buf[i + 2] = 0xFF;
894 ret = st->send(st->client, tx_buf, len);
909 tx_buf[0] = st->setupbyte;
910 tx_buf[1] = MAX1363_MON_INT_ENABLE | (st->monitor_speed << 1) | 0xF0;
911 ret = st->send(st->client, tx_buf, 2);
922 kfree(tx_buf);