/drivers/rtc/ |
H A D | rtc-pcf2123.c | 91 u8 txbuf[1], rxbuf[1]; local 101 txbuf[0] = PCF2123_READ | reg; 102 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); 113 u8 txbuf[2]; local 129 txbuf[0] = PCF2123_WRITE | reg; 130 txbuf[1] = val; 131 ret = spi_write(spi, txbuf, sizeof(txbuf)); 141 u8 txbuf[1], rxbuf[7]; local 144 txbuf[ 179 u8 txbuf[8]; local 231 u8 txbuf[2], rxbuf[2]; local [all...] |
H A D | rtc-rs5c348.c | 68 u8 txbuf[5+7], *txp; local 72 txp = txbuf; 73 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ 74 txbuf[1] = 0; /* dummy */ 75 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ 76 txbuf[3] = 0; /* dummy */ 77 txbuf[4] = RS5C348_CMD_MW(RS5C348_REG_SECS); /* cmd, sec, ... */ 78 txp = &txbuf[5]; 94 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), NUL 104 u8 txbuf[5], rxbuf[7]; local [all...] |
H A D | rtc-r9701.c | 57 u8 txbuf[1], rxbuf[1]; local 63 txbuf[0] = 0x80 | regs[k]; 64 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1);
|
/drivers/misc/ |
H A D | lattice-ecp3-config.c | 75 u8 txbuf[8]; local 93 txbuf[1] = 0x00; 94 txbuf[2] = 0x00; 95 txbuf[3] = 0x00; 98 txbuf[0] = FPGA_CMD_READ_ID; 99 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); 116 txbuf[0] = FPGA_CMD_READ_STATUS; 117 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); 136 txbuf[0] = FPGA_CMD_REFRESH; 137 ret = spi_write(spi, txbuf, [all...] |
/drivers/net/wireless/ath/ath10k/ |
H A D | htt_tx.c | 418 skb_cb->htt.txbuf = NULL; 482 skb_cb->htt.txbuf = dma_pool_alloc(htt->tx_pool, GFP_ATOMIC, 484 if (!skb_cb->htt.txbuf) 495 frags = skb_cb->htt.txbuf->frags; 529 skb_cb->htt.txbuf->htc_hdr.eid = htt->eid; 530 skb_cb->htt.txbuf->htc_hdr.len = __cpu_to_le16( 531 sizeof(skb_cb->htt.txbuf->cmd_hdr) + 532 sizeof(skb_cb->htt.txbuf->cmd_tx) + 534 skb_cb->htt.txbuf->htc_hdr.flags = 0; 552 skb_cb->htt.txbuf [all...] |
H A D | txrx.c | 72 if (skb_cb->htt.txbuf) 74 skb_cb->htt.txbuf,
|
/drivers/media/rc/ |
H A D | ir-lirc-codec.c | 107 unsigned int *txbuf; /* buffer with values to transmit */ local 128 txbuf = memdup_user(buf, n); 129 if (IS_ERR(txbuf)) 130 return PTR_ERR(txbuf); 144 if (txbuf[i] > IR_MAX_DURATION / 1000 - duration || !txbuf[i]) { 149 duration += txbuf[i]; 152 ret = dev->tx_ir(dev, txbuf, count); 157 duration += txbuf[i]; 173 kfree(txbuf); [all...] |
H A D | winbond-cir.c | 223 u32 *txbuf; member in struct:wbcir_data 416 if (!data->txbuf) 441 if (data->txbuf[data->txoff] == 0) { 445 byte = min((u32)0x80, data->txbuf[data->txoff]); 446 data->txbuf[data->txoff] -= byte; 452 while (data->txbuf[data->txoff] == 0 && data->txoff != data->txlen) 461 kfree(data->txbuf); 462 data->txbuf = NULL; 676 data->txbuf = buf; 993 kfree(data->txbuf); [all...] |
H A D | rc-loopback.c | 104 static int loop_tx_ir(struct rc_dev *dev, unsigned *txbuf, unsigned count) argument 129 rawir.duration = txbuf[i] * 1000;
|
H A D | mceusb.c | 818 static int mceusb_tx_ir(struct rc_dev *dev, unsigned *txbuf, unsigned count) argument 836 txbuf[i] = txbuf[i] / MCE_TIME_UNIT; 848 (txbuf[i] < MCE_PULSE_BIT ? 849 txbuf[i] : MCE_MAX_PULSE_LENGTH) | 856 } while ((txbuf[i] > MCE_MAX_PULSE_LENGTH) && 857 (txbuf[i] -= MCE_MAX_PULSE_LENGTH));
|
H A D | redrat3.c | 713 static int redrat3_transmit_ir(struct rc_dev *rcdev, unsigned *txbuf, argument 749 cur_sample_len = redrat3_us_to_len(txbuf[i]); 752 txbuf[i], redrat3_len_to_us(0xffff)); 760 dev_dbg(dev, "txbuf[%d]=%u, pos %d, enc %u\n", 761 i, txbuf[i], curlencheck, cur_sample_len);
|
H A D | iguanair.c | 350 static int iguanair_tx(struct rc_dev *dev, unsigned *txbuf, unsigned count) argument 361 periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000);
|
/drivers/spi/ |
H A D | spi-coldfire-qspi.c | 168 const u8 *txbuf, u8 *rxbuf) 179 if (txbuf) 181 mcfqspi_wr_qdr(mcfqspi, *txbuf++); 203 if (txbuf) { 207 mcfqspi_wr_qdr(mcfqspi, *txbuf++); 235 const u16 *txbuf, u16 *rxbuf) 246 if (txbuf) 248 mcfqspi_wr_qdr(mcfqspi, *txbuf++); 270 if (txbuf) { 274 mcfqspi_wr_qdr(mcfqspi, *txbuf 167 mcfqspi_transfer_msg8(struct mcfqspi *mcfqspi, unsigned count, const u8 *txbuf, u8 *rxbuf) argument 234 mcfqspi_transfer_msg16(struct mcfqspi *mcfqspi, unsigned count, const u16 *txbuf, u16 *rxbuf) argument [all...] |
H A D | spi-ti-qspi.c | 206 const u8 *txbuf; local 208 txbuf = t->tx_buf; 217 cmd, qspi->dc, *txbuf); 218 writeb(*txbuf, qspi->base + QSPI_SPI_DATA_REG); 222 cmd, qspi->dc, *txbuf); 223 writew(*((u16 *)txbuf), qspi->base + QSPI_SPI_DATA_REG); 227 cmd, qspi->dc, *txbuf); 228 writel(*((u32 *)txbuf), qspi->base + QSPI_SPI_DATA_REG); 239 txbuf += wlen;
|
H A D | spi-txx9.c | 179 const void *txbuf = t->tx_buf; local 226 if (txbuf) { 228 ? *(const u8 *)txbuf 229 : *(const u16 *)txbuf; 231 txbuf += wsize;
|
H A D | spi-cadence.c | 107 * @txbuf: Pointer to the TX buffer 119 const u8 *txbuf; member in struct:cdns_spi 310 if (xspi->txbuf) 312 *xspi->txbuf++); 410 xspi->txbuf = transfer->tx_buf;
|
/drivers/i2c/busses/ |
H A D | i2c-cpm.c | 117 u_char *txbuf[CPM_MAXBD]; member in struct:cpm_i2c 204 tb = cpm->txbuf[tx]; 260 tb = cpm->txbuf[tx]; 547 cpm->txbuf[i] = (unsigned char *)dma_alloc_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, &cpm->txdma[i], GFP_KERNEL); 548 if (!cpm->txbuf[i]) { 594 if (cpm->txbuf[i]) 596 cpm->txbuf[i], cpm->txdma[i]); 629 cpm->txbuf[i], cpm->txdma[i]);
|
/drivers/net/arcnet/ |
H A D | arcnet.c | 602 int txbuf; local 631 txbuf = get_arcbuf(dev); 633 txbuf = -1; 635 if (txbuf != -1) { 636 if (proto->prepare_tx(dev, pkt, skb->len, txbuf) && 651 proto->continue_tx(dev, txbuf)) { 658 lp->next_tx = txbuf; 895 int txbuf = get_arcbuf(dev); local 896 if (txbuf != -1) { 897 if (lp->outgoing.proto->continue_tx(dev, txbuf)) { [all...] |
/drivers/staging/ste_rmi4/ |
H A D | synaptics_i2c_rmi4.c | 201 unsigned char txbuf[PAGE_LEN]; local 208 txbuf[0] = MASK_8BIT; 209 txbuf[1] = page; 210 retval = i2c_master_send(i2c, txbuf, PAGE_LEN); 271 unsigned char txbuf[2]; local 281 txbuf[0] = address & MASK_8BIT; 282 txbuf[1] = data; 283 retval = i2c_master_send(pdata->i2c_client, txbuf, 2);
|
/drivers/net/wireless/ |
H A D | zd1201.c | 791 unsigned char *txbuf = zd->txdata; local 807 txbuf[0] = 0xAA; 808 txbuf[1] = 0xAA; 809 txbuf[2] = 0x03; 810 txbuf[3] = 0x00; /* rfc1042 */ 811 txbuf[4] = 0x00; 812 txbuf[5] = 0x00; 814 skb_copy_from_linear_data_offset(skb, 12, txbuf + 6, skb->len - 12); 816 txbuf[skb->len-12+6]=0; 817 skb_copy_from_linear_data(skb, txbuf [all...] |
/drivers/staging/dgnc/ |
H A D | digi.h | 317 unsigned long txbuf; member in struct:digi_getbuffer
|
/drivers/net/wan/ |
H A D | cosa.c | 115 char *txbuf; /* Transmit buffer */ member in struct:channel_data 161 char *txbuf, *rxbuf; member in struct:cosa_data 919 kfree(chan->txbuf); 1257 chan->txbuf = buf; 1719 cosa->chan[cosa->txchan].txbuf, cosa->txsize)) { 1720 cosa->txbuf = cosa->chan[cosa->txchan].txbuf; 1722 memcpy(cosa->bouncebuf, cosa->chan[cosa->txchan].txbuf, 1724 cosa->txbuf = cosa->bouncebuf; 1770 unsigned long addr = virt_to_bus(cosa->txbuf); [all...] |
/drivers/net/wireless/ath/ath5k/ |
H A D | base.c | 880 INIT_LIST_HEAD(&ah->txbuf); 885 list_add_tail(&bf->list, &ah->txbuf); 939 list_for_each_entry(bf, &ah->txbuf, list) 1113 list_move_tail(&bf->list, &ah->txbuf); 1620 if (list_empty(&ah->txbuf)) { 1621 ATH5K_ERR(ah, "no further txbuf available, dropping packet\n"); 1626 bf = list_first_entry(&ah->txbuf, struct ath5k_buf, list); 1629 if (list_empty(&ah->txbuf)) 1638 list_add_tail(&bf->list, &ah->txbuf); 1759 list_move_tail(&bf->list, &ah->txbuf); [all...] |
/drivers/net/ethernet/sfc/ |
H A D | ptp.c | 255 * @txbuf: Buffer for use when transmitting (PTP) packets to MC (avoids 309 MCDI_DECLARE_BUF(txbuf, MC_CMD_PTP_IN_TRANSMIT_LENMAX); 877 MCDI_SET_DWORD(ptp_data->txbuf, PTP_IN_OP, MC_CMD_PTP_OP_TRANSMIT); 878 MCDI_SET_DWORD(ptp_data->txbuf, PTP_IN_PERIPH_ID, 0); 879 MCDI_SET_DWORD(ptp_data->txbuf, PTP_IN_TRANSMIT_LENGTH, skb->len); 892 MCDI_PTR(ptp_data->txbuf, 896 ptp_data->txbuf, MC_CMD_PTP_IN_TRANSMIT_LEN(skb->len),
|
/drivers/tty/serial/ |
H A D | mrst_max3110.c | 88 const void *txbuf, void *rxbuf, unsigned len, int always_fast) 99 x.tx_buf = txbuf; 87 max3110_write_then_read(struct uart_max3110 *max, const void *txbuf, void *rxbuf, unsigned len, int always_fast) argument
|