Home
last modified time | relevance | path

Searched refs:tx_pos (Results 1 - 25 of 25) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/sunplus/
H A Dspl2sw_driver.c74 u32 tx_pos; in spl2sw_ethernet_start_xmit() local
102 tx_pos = comm->tx_pos; in spl2sw_ethernet_start_xmit()
103 txdesc = &comm->tx_desc[tx_pos]; in spl2sw_ethernet_start_xmit()
104 skbinfo = &comm->tx_temp_skb_info[tx_pos]; in spl2sw_ethernet_start_xmit()
114 if (tx_pos == (TX_DESC_NUM - 1)) in spl2sw_ethernet_start_xmit()
122 /* Move tx_pos to next position */ in spl2sw_ethernet_start_xmit()
123 tx_pos = ((tx_pos + 1) == TX_DESC_NUM) ? 0 : tx_pos in spl2sw_ethernet_start_xmit()
[all...]
H A Dspl2sw_define.h241 u32 tx_pos; member
H A Dspl2sw_mac.c264 comm->tx_pos = 0; in spl2sw_mac_soft_reset()
H A Dspl2sw_int.c153 while (((tx_done_pos != comm->tx_pos) || (comm->tx_desc_full == 1)) && budget_left) { in spl2sw_tx_poll()
H A Dspl2sw_desc.c215 comm->tx_pos = 0; in spl2sw_descs_init()
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-fsl-espi.c96 unsigned int tx_pos; member
223 tx_left = espi->tx_t->len - espi->tx_pos; in fsl_espi_fill_tx_fifo()
231 swahb32p(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
234 *(u32 *)(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
235 espi->tx_pos += 4; in fsl_espi_fill_tx_fifo()
240 swab16p(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
241 espi->tx_pos += 2; in fsl_espi_fill_tx_fifo()
249 *(u8 *)(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
250 espi->tx_pos += 1; in fsl_espi_fill_tx_fifo()
264 espi->tx_pos in fsl_espi_fill_tx_fifo()
[all...]
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-fsl-espi.c96 unsigned int tx_pos; member
223 tx_left = espi->tx_t->len - espi->tx_pos; in fsl_espi_fill_tx_fifo()
231 swahb32p(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
234 *(u32 *)(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
235 espi->tx_pos += 4; in fsl_espi_fill_tx_fifo()
240 swab16p(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
241 espi->tx_pos += 2; in fsl_espi_fill_tx_fifo()
249 *(u8 *)(tx_buf + espi->tx_pos)); in fsl_espi_fill_tx_fifo()
250 espi->tx_pos += 1; in fsl_espi_fill_tx_fifo()
264 espi->tx_pos in fsl_espi_fill_tx_fifo()
[all...]
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-xiic.c55 * @tx_pos: Current pos in TX message
71 unsigned int tx_pos; member
170 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos)
354 u16 data = i2c->tx_msg->buf[i2c->tx_pos++]; in xiic_fill_tx_fifo()
607 i2c->tx_pos = msg->len; in xiic_start_recv()
671 i2c->tx_pos = 0; in __xiic_start_xfer()
677 i2c->tx_pos = 0; in __xiic_start_xfer()
/kernel/linux/linux-5.10/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_core.c563 int tx_pos = state->local_tx_pos; in reserve_space() local
564 int slot_space = VCHIQ_SLOT_SIZE - (tx_pos & VCHIQ_SLOT_MASK); in reserve_space()
571 (state->tx_data + (tx_pos & VCHIQ_SLOT_MASK)); in reserve_space()
575 tx_pos += slot_space; in reserve_space()
579 if ((tx_pos & VCHIQ_SLOT_MASK) == 0) { in reserve_space()
590 state->local_tx_pos = tx_pos; in reserve_space()
591 local->tx_pos = tx_pos; in reserve_space()
600 if (tx_pos == (state->slot_queue_available * VCHIQ_SLOT_SIZE)) { in reserve_space()
602 pr_warn("%s: invalid tx_pos in reserve_space()
1525 int tx_pos; parse_rx_slots() local
[all...]
H A Dvchiq_core.h356 int tx_pos; member
451 /* A cached copy of local->tx_pos. Only write to local->tx_pos, and read
452 from remote->tx_pos. */
/kernel/linux/linux-6.6/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_core.c679 int tx_pos = state->local_tx_pos; in reserve_space() local
680 int slot_space = VCHIQ_SLOT_SIZE - (tx_pos & VCHIQ_SLOT_MASK); in reserve_space()
687 (state->tx_data + (tx_pos & VCHIQ_SLOT_MASK)); in reserve_space()
691 tx_pos += slot_space; in reserve_space()
695 if ((tx_pos & VCHIQ_SLOT_MASK) == 0) { in reserve_space()
706 state->local_tx_pos = tx_pos; in reserve_space()
707 local->tx_pos = tx_pos; in reserve_space()
715 if (tx_pos == (state->slot_queue_available * VCHIQ_SLOT_SIZE)) { in reserve_space()
717 pr_warn("%s: invalid tx_pos in reserve_space()
1860 int tx_pos; parse_rx_slots() local
[all...]
H A Dvchiq_core.h296 int tx_pos; member
397 * A cached copy of local->tx_pos. Only write to local->tx_pos, and read
398 * from remote->tx_pos.
/kernel/linux/linux-5.10/drivers/atm/
H A Deni.c1083 * Can I move tx_pos by size bytes without getting closer than TX_GAP in do_tx()
1087 if (!NEPMOK(tx->tx_pos,size+TX_GAP, in do_tx()
1105 DPRINTK("dma_wr is %d, tx_pos is %ld\n",dma_wr,tx->tx_pos); in do_tx()
1120 eni_dev->dma[j++] = (((tx->tx_pos+TX_DESCR_SIZE) & (tx->words-1)) << in do_tx()
1145 eni_dev->dma[j++] = (((tx->tx_pos+size) & (tx->words-1)) << in do_tx()
1154 (size/(ATM_CELL_PAYLOAD/4)),tx->send+tx->tx_pos*4); in do_tx()
1155 /*printk("dsc = 0x%08lx\n",(unsigned long) readl(tx->send+tx->tx_pos*4));*/ in do_tx()
1159 tx->send+((tx->tx_pos+1) & (tx->words-1))*4); in do_tx()
1163 ((tx->tx_pos in do_tx()
[all...]
H A Deni.h45 unsigned long tx_pos; /* current TX write position */ member
/kernel/linux/linux-6.6/drivers/atm/
H A Deni.c1083 * Can I move tx_pos by size bytes without getting closer than TX_GAP in do_tx()
1087 if (!NEPMOK(tx->tx_pos,size+TX_GAP, in do_tx()
1105 DPRINTK("dma_wr is %d, tx_pos is %ld\n",dma_wr,tx->tx_pos); in do_tx()
1120 eni_dev->dma[j++] = (((tx->tx_pos+TX_DESCR_SIZE) & (tx->words-1)) << in do_tx()
1145 eni_dev->dma[j++] = (((tx->tx_pos+size) & (tx->words-1)) << in do_tx()
1154 (size/(ATM_CELL_PAYLOAD/4)),tx->send+tx->tx_pos*4); in do_tx()
1155 /*printk("dsc = 0x%08lx\n",(unsigned long) readl(tx->send+tx->tx_pos*4));*/ in do_tx()
1159 tx->send+((tx->tx_pos+1) & (tx->words-1))*4); in do_tx()
1163 ((tx->tx_pos in do_tx()
[all...]
H A Deni.h45 unsigned long tx_pos; /* current TX write position */ member
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-xiic.c63 * @tx_pos: Current pos in TX message
85 unsigned int tx_pos; member
235 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos)
632 u16 data = i2c->tx_msg->buf[i2c->tx_pos++]; in xiic_fill_tx_fifo()
993 i2c->tx_pos = msg->len; in xiic_start_recv()
1090 i2c->tx_pos = 0; in __xiic_start_xfer()
/kernel/linux/linux-5.10/drivers/media/rc/
H A Dene_ir.h216 int tx_pos; /* position in that buffer */ member
H A Dene_ir.c622 if (dev->tx_pos == dev->tx_len) { in ene_tx_sample()
635 sample = dev->tx_buffer[dev->tx_pos++]; in ene_tx_sample()
963 dev->tx_pos = 0; in ene_transmit()
/kernel/linux/linux-6.6/drivers/media/rc/
H A Dene_ir.h216 int tx_pos; /* position in that buffer */ member
H A Dene_ir.c622 if (dev->tx_pos == dev->tx_len) { in ene_tx_sample()
635 sample = dev->tx_buffer[dev->tx_pos++]; in ene_tx_sample()
963 dev->tx_pos = 0; in ene_transmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-hw.c458 unsigned int tx_dsr, tx_pos, tx_qidx; in xlgmac_prepare_tx_stop() local
465 tx_pos = (channel->queue_index * DMA_DSR_Q_LEN) + in xlgmac_prepare_tx_stop()
471 tx_pos = ((tx_qidx % DMA_DSRX_QPR) * DMA_DSR_Q_LEN) + in xlgmac_prepare_tx_stop()
482 tx_status = XLGMAC_GET_REG_BITS(tx_status, tx_pos, in xlgmac_prepare_tx_stop()
/kernel/linux/linux-6.6/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-hw.c458 unsigned int tx_dsr, tx_pos, tx_qidx; in xlgmac_prepare_tx_stop() local
465 tx_pos = (channel->queue_index * DMA_DSR_Q_LEN) + in xlgmac_prepare_tx_stop()
471 tx_pos = ((tx_qidx % DMA_DSRX_QPR) * DMA_DSR_Q_LEN) + in xlgmac_prepare_tx_stop()
482 tx_status = XLGMAC_GET_REG_BITS(tx_status, tx_pos, in xlgmac_prepare_tx_stop()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dev.c3249 unsigned int tx_dsr, tx_pos, tx_qidx; in xgbe_prepare_tx_stop() local
3259 tx_pos = (queue * DMA_DSR_Q_WIDTH) + DMA_DSR0_TPS_START; in xgbe_prepare_tx_stop()
3264 tx_pos = ((tx_qidx % DMA_DSRX_QPR) * DMA_DSR_Q_WIDTH) + in xgbe_prepare_tx_stop()
3275 tx_status = GET_BITS(tx_status, tx_pos, DMA_DSR_TPS_WIDTH); in xgbe_prepare_tx_stop()
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dev.c3299 unsigned int tx_dsr, tx_pos, tx_qidx; in xgbe_prepare_tx_stop() local
3309 tx_pos = (queue * DMA_DSR_Q_WIDTH) + DMA_DSR0_TPS_START; in xgbe_prepare_tx_stop()
3314 tx_pos = ((tx_qidx % DMA_DSRX_QPR) * DMA_DSR_Q_WIDTH) + in xgbe_prepare_tx_stop()
3325 tx_status = GET_BITS(tx_status, tx_pos, DMA_DSR_TPS_WIDTH); in xgbe_prepare_tx_stop()

Completed in 37 milliseconds