Home
last modified time | relevance | path

Searched refs:tx_buff (Results 1 – 25 of 36) sorted by relevance

12

/linux-2.6.39/drivers/net/irda/
Dsir_dev.c365 if (unlikely(len > dev->tx_buff.truesize)) in sirdev_raw_write()
369 while (dev->tx_buff.len > 0) { /* wait until tx idle */ in sirdev_raw_write()
375 dev->tx_buff.data = dev->tx_buff.head; in sirdev_raw_write()
376 memcpy(dev->tx_buff.data, buf, len); in sirdev_raw_write()
377 dev->tx_buff.len = len; in sirdev_raw_write()
379 ret = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_raw_write()
383 dev->tx_buff.data += ret; in sirdev_raw_write()
384 dev->tx_buff.len -= ret; in sirdev_raw_write()
442 __func__, dev->tx_buff.len); in sirdev_write_complete()
444 if (likely(dev->tx_buff.len > 0)) { in sirdev_write_complete()
[all …]
Dbfin_sir.c183 if (self->tx_buff.len != 0) { in bfin_sir_tx_chars()
184 chr = *(self->tx_buff.data); in bfin_sir_tx_chars()
186 self->tx_buff.data++; in bfin_sir_tx_chars()
187 self->tx_buff.len--; in bfin_sir_tx_chars()
190 self->stats.tx_bytes += self->tx_buff.data - self->tx_buff.head; in bfin_sir_tx_chars()
254 if (self->tx_buff.len == 0) { in bfin_sir_dma_tx_chars()
267 blackfin_dcache_flush_range((unsigned long)(self->tx_buff.data), in bfin_sir_dma_tx_chars()
268 (unsigned long)(self->tx_buff.data+self->tx_buff.len)); in bfin_sir_dma_tx_chars()
274 (unsigned long)(self->tx_buff.data)); in bfin_sir_dma_tx_chars()
275 set_dma_x_count(port->tx_dma_channel, self->tx_buff.len); in bfin_sir_dma_tx_chars()
[all …]
Dw83977af_ir.c213 self->tx_buff.truesize = 4000; in w83977af_open()
226 self->tx_buff.head = in w83977af_open()
227 dma_alloc_coherent(NULL, self->tx_buff.truesize, in w83977af_open()
229 if (self->tx_buff.head == NULL) { in w83977af_open()
233 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in w83977af_open()
237 self->tx_buff.data = self->tx_buff.head; in w83977af_open()
255 dma_free_coherent(NULL, self->tx_buff.truesize, in w83977af_open()
256 self->tx_buff.head, self->tx_buff_dma); in w83977af_open()
301 if (self->tx_buff.head) in w83977af_close()
302 dma_free_coherent(NULL, self->tx_buff.truesize, in w83977af_close()
[all …]
Dsh_irda.c153 iobuff_t tx_buff; member
586 self->tx_buff.head = NULL; in sh_irda_remove_iobuf()
587 self->tx_buff.data = NULL; in sh_irda_remove_iobuf()
595 self->tx_buff.head) { in sh_irda_init_iobuf()
611 self->tx_buff.head = self->membase + IRDARAM; in sh_irda_init_iobuf()
612 self->tx_buff.truesize = IRDARAM_LEN; in sh_irda_init_iobuf()
640 self->tx_buff.len = 0; in sh_irda_hard_xmit()
645 self->tx_buff.len = async_wrap_skb(skb, in sh_irda_hard_xmit()
646 self->tx_buff.head, in sh_irda_hard_xmit()
647 self->tx_buff.truesize); in sh_irda_hard_xmit()
[all …]
Dsh_sir.c114 iobuff_t tx_buff; member
400 kfree(self->tx_buff.head); in sh_sir_remove_iobuf()
403 self->tx_buff.head = NULL; in sh_sir_remove_iobuf()
411 self->tx_buff.head) { in sh_sir_init_iobuf()
420 err = __sh_sir_init_iobuf(&self->tx_buff, txsize); in sh_sir_init_iobuf()
494 if (0 >= self->tx_buff.len) { in sh_sir_tx()
497 sh_sir_write(self, IRIF_UART3, self->tx_buff.data[0]); in sh_sir_tx()
498 self->tx_buff.len--; in sh_sir_tx()
499 self->tx_buff.data++; in sh_sir_tx()
606 self->tx_buff.data = self->tx_buff.head; in sh_sir_hard_xmit()
[all …]
Dsa1100_ir.c68 iobuff_t tx_buff; member
417 if (status & UTSR0_TFS && si->tx_buff.len) { in sa1100_irda_hpsir_irq()
422 Ser2UTDR = *si->tx_buff.data++; in sa1100_irda_hpsir_irq()
423 si->tx_buff.len -= 1; in sa1100_irda_hpsir_irq()
424 } while (Ser2UTSR1 & UTSR1_TNF && si->tx_buff.len); in sa1100_irda_hpsir_irq()
426 if (si->tx_buff.len == 0) { in sa1100_irda_hpsir_irq()
428 dev->stats.tx_bytes += si->tx_buff.data - in sa1100_irda_hpsir_irq()
429 si->tx_buff.head; in sa1100_irda_hpsir_irq()
678 si->tx_buff.data = si->tx_buff.head; in sa1100_irda_hard_xmit()
679 si->tx_buff.len = async_wrap_skb(skb, si->tx_buff.data, in sa1100_irda_hard_xmit()
[all …]
Dpxaficp_ir.c116 iobuff_t tx_buff; member
305 while ((si->tx_buff.len) && (STLSR & LSR_TDRQ)) { in pxa_irda_sir_irq()
306 STTHR = *si->tx_buff.data++; in pxa_irda_sir_irq()
307 si->tx_buff.len -= 1; in pxa_irda_sir_irq()
310 if (si->tx_buff.len == 0) { in pxa_irda_sir_irq()
312 dev->stats.tx_bytes += si->tx_buff.data - si->tx_buff.head; in pxa_irda_sir_irq()
531 si->tx_buff.data = si->tx_buff.head; in pxa_irda_hard_xmit()
532 si->tx_buff.len = async_wrap_skb(skb, si->tx_buff.data, si->tx_buff.truesize); in pxa_irda_hard_xmit()
865 err = pxa_irda_init_iobuf(&si->tx_buff, 4000); in pxa_irda_probe()
914 kfree(si->tx_buff.head); in pxa_irda_probe()
[all …]
Dsmsc-ircc2.c156 iobuff_t tx_buff; /* Transmit buffer */ member
562 self->tx_buff.truesize = SMSC_IRCC2_TX_BUFF_TRUESIZE; in smsc_ircc_open()
573 self->tx_buff.head = in smsc_ircc_open()
574 dma_alloc_coherent(NULL, self->tx_buff.truesize, in smsc_ircc_open()
576 if (self->tx_buff.head == NULL) { in smsc_ircc_open()
583 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in smsc_ircc_open()
587 self->tx_buff.data = self->tx_buff.head; in smsc_ircc_open()
624 dma_free_coherent(NULL, self->tx_buff.truesize, in smsc_ircc_open()
625 self->tx_buff.head, self->tx_buff_dma); in smsc_ircc_open()
927 self->tx_buff.data = self->tx_buff.head; in smsc_ircc_hard_xmit_sir()
[all …]
Dali-ircc.c349 self->tx_buff.truesize = 14384; in ali_ircc_open()
361 self->tx_buff.head = in ali_ircc_open()
362 dma_alloc_coherent(NULL, self->tx_buff.truesize, in ali_ircc_open()
364 if (self->tx_buff.head == NULL) { in ali_ircc_open()
368 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in ali_ircc_open()
372 self->tx_buff.data = self->tx_buff.head; in ali_ircc_open()
377 self->tx_fifo.tail = self->tx_buff.head; in ali_ircc_open()
401 dma_free_coherent(NULL, self->tx_buff.truesize, in ali_ircc_open()
402 self->tx_buff.head, self->tx_buff_dma); in ali_ircc_open()
438 if (self->tx_buff.head) in ali_ircc_close()
[all …]
Dvia-ircc.c362 self->tx_buff.truesize = 14384 + 2048; in via_ircc_open()
374 self->tx_buff.head = in via_ircc_open()
375 dma_alloc_coherent(&pdev->dev, self->tx_buff.truesize, in via_ircc_open()
377 if (self->tx_buff.head == NULL) { in via_ircc_open()
381 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in via_ircc_open()
385 self->tx_buff.data = self->tx_buff.head; in via_ircc_open()
390 self->tx_fifo.tail = self->tx_buff.head; in via_ircc_open()
407 dma_free_coherent(&pdev->dev, self->tx_buff.truesize, in via_ircc_open()
408 self->tx_buff.head, self->tx_buff_dma); in via_ircc_open()
443 if (self->tx_buff.head) in via_remove_one()
[all …]
Dnsc-ircc.c428 self->tx_buff.truesize = 14384; in nsc_ircc_open()
441 self->tx_buff.head = in nsc_ircc_open()
442 dma_alloc_coherent(NULL, self->tx_buff.truesize, in nsc_ircc_open()
444 if (self->tx_buff.head == NULL) { in nsc_ircc_open()
448 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in nsc_ircc_open()
452 self->tx_buff.data = self->tx_buff.head; in nsc_ircc_open()
457 self->tx_fifo.tail = self->tx_buff.head; in nsc_ircc_open()
497 dma_free_coherent(NULL, self->tx_buff.truesize, in nsc_ircc_open()
498 self->tx_buff.head, self->tx_buff_dma); in nsc_ircc_open()
536 if (self->tx_buff.head) in nsc_ircc_close()
[all …]
Dirda-usb.c443 skb_copy_from_linear_data(skb, self->tx_buff + self->header_length, skb->len); in irda_usb_hard_xmit()
448 __u8* frame = self->tx_buff; in irda_usb_hard_xmit()
462 irda_usb_build_header(self, self->tx_buff, 0); in irda_usb_hard_xmit()
470 self->tx_buff, skb->len + self->header_length, in irda_usb_hard_xmit()
1445 kfree(self->tx_buff); in irda_usb_close()
1446 self->tx_buff = NULL; in irda_usb_close()
1741 self->tx_buff = kzalloc(IRDA_SKB_MAX_MTU + self->header_length, in irda_usb_probe()
1743 if (!self->tx_buff) in irda_usb_probe()
1777 kfree(self->tx_buff); in irda_usb_probe()
Dirda-usb.h158 char *tx_buff; member
Dw83977af_ir.h180 iobuff_t tx_buff; /* Transmit buffer */ member
Dali-ircc.h199 iobuff_t tx_buff; /* Transmit buffer */ member
Dnsc-ircc.h259 iobuff_t tx_buff; /* Transmit buffer */ member
/linux-2.6.39/net/irda/
Dwrapper.c83 int async_wrap_skb(struct sk_buff *skb, __u8 *tx_buff, int buffsize) in async_wrap_skb() argument
123 memset(tx_buff + n, XBOF, xbofs); in async_wrap_skb()
127 tx_buff[n++] = BOF; in async_wrap_skb()
142 n += stuff_byte(skb->data[i], tx_buff+n); in async_wrap_skb()
149 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
150 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
152 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
153 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
155 tx_buff[n++] = EOF; in async_wrap_skb()
/linux-2.6.39/drivers/net/
Dariadne.c96 volatile u_short *tx_buff[TX_RING_SIZE]; member
111 u_short tx_buff[TX_RING_SIZE][PKT_BUF_SIZE/sizeof(u_short)]; member
351 t->TMD0 = swloww(ARIADNE_RAM+offsetof(struct lancedata, tx_buff[i])); in ariadne_init_ring()
352 t->TMD1 = swhighw(ARIADNE_RAM+offsetof(struct lancedata, tx_buff[i])) | in ariadne_init_ring()
357 priv->tx_buff[i] = lancedata->tx_buff[i]; in ariadne_init_ring()
360 &lancedata->tx_ring[i], lancedata->tx_buff[i]); in ariadne_init_ring()
633 memcpyw(priv->tx_buff[entry], (u_short *)skb->data, len); in ariadne_start_xmit()
647 printk("%04x", priv->tx_buff[entry][i+j]); in ariadne_start_xmit()
Dipg.c826 if (sp->tx_buff[i]) { in init_tfdlist()
827 dev_kfree_skb_irq(sp->tx_buff[i]); in init_tfdlist()
828 sp->tx_buff[i] = NULL; in init_tfdlist()
863 struct sk_buff *skb = sp->tx_buff[dirty]; in ipg_nic_txfree()
884 sp->tx_buff[dirty] = NULL; in ipg_nic_txfree()
1712 if (sp->tx_buff[i]) { in ipg_tx_clear()
1717 sp->tx_buff[i]->len, PCI_DMA_TODEVICE); in ipg_tx_clear()
1719 dev_kfree_skb_irq(sp->tx_buff[i]); in ipg_tx_clear()
1721 sp->tx_buff[i] = NULL; in ipg_tx_clear()
1871 sp->tx_buff[entry] = skb; in ipg_nic_hard_start_xmit()
/linux-2.6.39/drivers/s390/net/
Dnetiucv.c218 struct sk_buff *tx_buff; member
751 conn->tx_buff->data = conn->tx_buff->head; in conn_action_txdone()
752 skb_reset_tail_pointer(conn->tx_buff); in conn_action_txdone()
753 conn->tx_buff->len = 0; in conn_action_txdone()
756 header.next = conn->tx_buff->len + skb->len + NETIUCV_HDRLEN; in conn_action_txdone()
757 memcpy(skb_put(conn->tx_buff, NETIUCV_HDRLEN), &header, in conn_action_txdone()
760 skb_put(conn->tx_buff, skb->len), in conn_action_txdone()
772 if (conn->tx_buff->len == 0) { in conn_action_txdone()
778 memcpy(skb_put(conn->tx_buff, NETIUCV_HDRLEN), &header, NETIUCV_HDRLEN); in conn_action_txdone()
783 conn->tx_buff->data, conn->tx_buff->len); in conn_action_txdone()
[all …]
/linux-2.6.39/drivers/spi/
Dtle62x0.c34 unsigned char tx_buff[4]; member
42 unsigned char *buff = st->tx_buff; in tle62x0_write()
62 unsigned char *txbuff = st->tx_buff; in tle62x0_read()
/linux-2.6.39/include/net/irda/
Dwrapper.h54 int async_wrap_skb(struct sk_buff *skb, __u8 *tx_buff, int buffsize);
/linux-2.6.39/drivers/net/atl1e/
Datl1e.h388 #define ATL1E_SET_PCIMAP_TYPE(tx_buff, type) do { \ argument
389 ((tx_buff)->flags) &= ~ATL1E_TX_PCIMAP_TYPE_MASK; \
390 ((tx_buff)->flags) |= (type); \
/linux-2.6.39/drivers/net/hamradio/
Dscc.c301 if (scc->tx_buff != NULL) in scc_discard_buffers()
303 dev_kfree_skb(scc->tx_buff); in scc_discard_buffers()
304 scc->tx_buff = NULL; in scc_discard_buffers()
372 skb = scc->tx_buff; in scc_txint()
379 scc->tx_buff = skb; in scc_txint()
392 scc->tx_buff = NULL; in scc_txint()
418 scc->tx_buff = NULL; in scc_txint()
500 if (scc->tx_buff != NULL) in scc_exint()
502 dev_kfree_skb_irq(scc->tx_buff); in scc_exint()
503 scc->tx_buff = NULL; in scc_exint()
[all …]
/linux-2.6.39/include/linux/
Dscc.h241 struct sk_buff *tx_buff; /* pointer to frame currently transmitted */ member

12