Home
last modified time | relevance | path

Searched refs:tx (Results 1 – 25 of 1828) sorted by relevance

12345678910>>...74

/Linux-v5.15/drivers/net/ethernet/google/gve/
Dgve_tx_dqo.c16 static bool gve_has_pending_packet(struct gve_tx_ring *tx) in gve_has_pending_packet() argument
19 if (tx->dqo_tx.free_pending_packets != -1) in gve_has_pending_packet()
23 if (atomic_read_acquire(&tx->dqo_compl.free_pending_packets) != -1) in gve_has_pending_packet()
30 gve_alloc_pending_packet(struct gve_tx_ring *tx) in gve_alloc_pending_packet() argument
35 index = tx->dqo_tx.free_pending_packets; in gve_alloc_pending_packet()
41 tx->dqo_tx.free_pending_packets = in gve_alloc_pending_packet()
42 atomic_xchg(&tx->dqo_compl.free_pending_packets, -1); in gve_alloc_pending_packet()
43 index = tx->dqo_tx.free_pending_packets; in gve_alloc_pending_packet()
49 pending_packet = &tx->dqo.pending_packets[index]; in gve_alloc_pending_packet()
52 tx->dqo_tx.free_pending_packets = pending_packet->next; in gve_alloc_pending_packet()
[all …]
Dgve_tx.c135 static int gve_clean_tx_done(struct gve_priv *priv, struct gve_tx_ring *tx,
140 struct gve_tx_ring *tx = &priv->tx[idx]; in gve_tx_free_ring() local
146 slots = tx->mask + 1; in gve_tx_free_ring()
147 gve_clean_tx_done(priv, tx, tx->req, false); in gve_tx_free_ring()
148 netdev_tx_reset_queue(tx->netdev_txq); in gve_tx_free_ring()
150 dma_free_coherent(hdev, sizeof(*tx->q_resources), in gve_tx_free_ring()
151 tx->q_resources, tx->q_resources_bus); in gve_tx_free_ring()
152 tx->q_resources = NULL; in gve_tx_free_ring()
154 if (!tx->raw_addressing) { in gve_tx_free_ring()
155 gve_tx_fifo_release(priv, &tx->tx_fifo); in gve_tx_free_ring()
[all …]
/Linux-v5.15/drivers/media/i2c/adv748x/
Dadv748x-csi2.c17 int adv748x_csi2_set_virtual_channel(struct adv748x_csi2 *tx, unsigned int vc) in adv748x_csi2_set_virtual_channel() argument
19 return tx_write(tx, ADV748X_CSI_VC_REF, vc << ADV748X_CSI_VC_REF_SHIFT); in adv748x_csi2_set_virtual_channel()
34 static int adv748x_csi2_register_link(struct adv748x_csi2 *tx, in adv748x_csi2_register_link() argument
49 &tx->sd.entity, ADV748X_CSI2_SINK, in adv748x_csi2_register_link()
55 tx->src = src; in adv748x_csi2_register_link()
70 struct adv748x_csi2 *tx = adv748x_sd_to_csi2(sd); in adv748x_csi2_registered() local
71 struct adv748x_state *state = tx->state; in adv748x_csi2_registered()
74 adv_dbg(state, "Registered %s (%s)", is_txa(tx) ? "TXA":"TXB", in adv748x_csi2_registered()
84 ret = adv748x_csi2_register_link(tx, sd->v4l2_dev, in adv748x_csi2_registered()
87 is_txb(tx)); in adv748x_csi2_registered()
[all …]
/Linux-v5.15/drivers/firmware/tegra/
Divc.c62 } tx; member
97 u32 tx = READ_ONCE(header->tx.count); in tegra_ivc_empty() local
110 if (tx - rx > ivc->num_frames) in tegra_ivc_empty()
113 return tx == rx; in tegra_ivc_empty()
119 u32 tx = READ_ONCE(header->tx.count); in tegra_ivc_full() local
126 return tx - rx >= ivc->num_frames; in tegra_ivc_full()
132 u32 tx = READ_ONCE(header->tx.count); in tegra_ivc_available() local
141 return tx - rx; in tegra_ivc_available()
146 WRITE_ONCE(ivc->tx.channel->tx.count, in tegra_ivc_advance_tx()
147 READ_ONCE(ivc->tx.channel->tx.count) + 1); in tegra_ivc_advance_tx()
[all …]
/Linux-v5.15/tools/testing/selftests/timers/
Dleap-a-day.c97 struct timex tx; in clear_time_state() local
106 tx.modes = ADJ_STATUS; in clear_time_state()
107 tx.status = STA_PLL; in clear_time_state()
108 ret = adjtimex(&tx); in clear_time_state()
111 tx.modes = ADJ_MAXERROR; in clear_time_state()
112 tx.maxerror = 0; in clear_time_state()
113 ret = adjtimex(&tx); in clear_time_state()
116 tx.modes = ADJ_STATUS; in clear_time_state()
117 tx.status = 0; in clear_time_state()
118 ret = adjtimex(&tx); in clear_time_state()
[all …]
Dvalid-adjtimex.c43 static int clock_adjtime(clockid_t id, struct timex *tx) in clock_adjtime() argument
45 return syscall(__NR_clock_adjtime, id, tx); in clock_adjtime()
52 struct timex tx; in clear_time_state() local
55 tx.modes = ADJ_STATUS; in clear_time_state()
56 tx.status = 0; in clear_time_state()
57 ret = adjtimex(&tx); in clear_time_state()
116 struct timex tx; in validate_freq() local
122 memset(&tx, 0, sizeof(struct timex)); in validate_freq()
128 tx.modes = ADJ_FREQUENCY; in validate_freq()
129 tx.freq = valid_freq[i]; in validate_freq()
[all …]
Dleapcrash.c30 struct timex tx; in clear_time_state() local
39 tx.modes = ADJ_STATUS; in clear_time_state()
40 tx.status = STA_PLL; in clear_time_state()
41 ret = adjtimex(&tx); in clear_time_state()
43 tx.modes = ADJ_STATUS; in clear_time_state()
44 tx.status = 0; in clear_time_state()
45 ret = adjtimex(&tx); in clear_time_state()
60 struct timex tx; in main() local
92 tx.modes = 0; in main()
93 adjtimex(&tx); in main()
[all …]
Dset-tai.c30 struct timex tx; in set_tai() local
32 memset(&tx, 0, sizeof(tx)); in set_tai()
34 tx.modes = ADJ_TAI; in set_tai()
35 tx.constant = offset; in set_tai()
37 return adjtimex(&tx); in set_tai()
42 struct timex tx; in get_tai() local
44 memset(&tx, 0, sizeof(tx)); in get_tai()
46 adjtimex(&tx); in get_tai()
47 return tx.tai; in get_tai()
Dchange_skew.c38 struct timex tx; in change_skew_test() local
41 tx.modes = ADJ_FREQUENCY; in change_skew_test()
42 tx.freq = ppm << 16; in change_skew_test()
44 ret = adjtimex(&tx); in change_skew_test()
60 struct timex tx; in main() local
69 tx.modes = ADJ_OFFSET; in main()
70 tx.offset = 0; in main()
71 ret = adjtimex(&tx); in main()
86 tx.modes = ADJ_FREQUENCY; in main()
87 tx.offset = 0; in main()
[all …]
/Linux-v5.15/crypto/async_tx/
Dasync_tx.c66 struct dma_async_tx_descriptor *tx) in async_tx_channel_switch() argument
74 if (txd_parent(depend_tx) && depend_tx->chan == tx->chan) { in async_tx_channel_switch()
75 txd_chain(depend_tx, tx); in async_tx_channel_switch()
100 txd_chain(intr_tx, tx); in async_tx_channel_switch()
121 tx->tx_submit(tx); in async_tx_channel_switch()
143 async_tx_submit(struct dma_chan *chan, struct dma_async_tx_descriptor *tx, in async_tx_submit() argument
148 tx->callback = submit->cb_fn; in async_tx_submit()
149 tx->callback_param = submit->cb_param; in async_tx_submit()
161 txd_parent(tx)); in async_tx_submit()
173 txd_chain(depend_tx, tx); in async_tx_submit()
[all …]
Dasync_raid6_recov.c36 struct dma_async_tx_descriptor *tx; in async_sum_product() local
54 tx = dma->device_prep_dma_pq(chan, pq, unmap->addr, 2, coef, in async_sum_product()
56 if (tx) { in async_sum_product()
57 dma_set_unmap(tx, unmap); in async_sum_product()
58 async_tx_submit(chan, tx, submit); in async_sum_product()
60 return tx; in async_sum_product()
104 struct dma_async_tx_descriptor *tx; in async_mult() local
122 tx = dma->device_prep_dma_pq(chan, dma_dest, unmap->addr, in async_mult()
125 if (tx) { in async_mult()
126 dma_set_unmap(tx, unmap); in async_mult()
[all …]
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dsdma.h440 struct sdma_txreq *tx,
499 struct sdma_txreq *tx, in sdma_txinit_ahg() argument
512 tx->desc_limit = ARRAY_SIZE(tx->descs); in sdma_txinit_ahg()
513 tx->descp = &tx->descs[0]; in sdma_txinit_ahg()
514 INIT_LIST_HEAD(&tx->list); in sdma_txinit_ahg()
515 tx->num_desc = 0; in sdma_txinit_ahg()
516 tx->flags = flags; in sdma_txinit_ahg()
517 tx->complete = cb; in sdma_txinit_ahg()
518 tx->coalesce_buf = NULL; in sdma_txinit_ahg()
519 tx->wait = NULL; in sdma_txinit_ahg()
[all …]
Dvnic_sdma.c41 struct vnic_txreq *tx = container_of(txreq, struct vnic_txreq, txreq); in vnic_sdma_complete() local
42 struct hfi1_vnic_sdma *vnic_sdma = tx->sdma; in vnic_sdma_complete()
45 dev_kfree_skb_any(tx->skb); in vnic_sdma_complete()
46 kmem_cache_free(vnic_sdma->dd->vnic.txreq_cache, tx); in vnic_sdma_complete()
50 struct vnic_txreq *tx) in build_vnic_ulp_payload() argument
56 &tx->txreq, in build_vnic_ulp_payload()
57 tx->skb->data, in build_vnic_ulp_payload()
58 skb_headlen(tx->skb)); in build_vnic_ulp_payload()
62 for (i = 0; i < skb_shinfo(tx->skb)->nr_frags; i++) { in build_vnic_ulp_payload()
63 skb_frag_t *frag = &skb_shinfo(tx->skb)->frags[i]; in build_vnic_ulp_payload()
[all …]
Dverbs_txreq.h38 struct verbs_txreq *tx; in get_txreq() local
41 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP); in get_txreq()
42 if (unlikely(!tx)) { in get_txreq()
44 tx = __get_txreq(dev, qp); in get_txreq()
45 if (!tx) in get_txreq()
46 return tx; in get_txreq()
48 tx->qp = qp; in get_txreq()
49 tx->mr = NULL; in get_txreq()
50 tx->sde = priv->s_sde; in get_txreq()
51 tx->psc = priv->s_sendcontext; in get_txreq()
[all …]
/Linux-v5.15/drivers/fpga/
Dmachxo2-spi.c69 struct spi_transfer rx, tx; in get_status() local
74 memset(&tx, 0, sizeof(tx)); in get_status()
75 tx.tx_buf = cmd; in get_status()
76 tx.len = sizeof(cmd); in get_status()
80 spi_message_add_tail(&tx, &msg); in get_status()
139 struct spi_transfer tx[2]; in machxo2_cleanup() local
144 memset(tx, 0, sizeof(tx)); in machxo2_cleanup()
146 tx[0].tx_buf = &erase; in machxo2_cleanup()
147 tx[0].len = sizeof(erase); in machxo2_cleanup()
148 spi_message_add_tail(&tx[0], &msg); in machxo2_cleanup()
[all …]
/Linux-v5.15/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c45 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_prepared_descs, "%u");
46 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_cmplt, "%u");
47 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_prepared, "%u");
48 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_prepared, "%u");
49 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_programmed, "%u");
50 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_programmed, "%u");
51 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_burst_programmed, "%u");
52 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_starts, "%u");
53 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_stop, "%u");
54 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_templates, "%u");
[all …]
/Linux-v5.15/drivers/clk/mediatek/
Dclk-apmixed.c31 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_is_prepared() local
33 return (readl(tx->base_addr) & REF2USB_EN_MASK) == REF2USB_EN_MASK; in mtk_ref2usb_tx_is_prepared()
38 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_prepare() local
41 val = readl(tx->base_addr); in mtk_ref2usb_tx_prepare()
44 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
48 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
51 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
58 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_unprepare() local
61 val = readl(tx->base_addr); in mtk_ref2usb_tx_unprepare()
63 writel(val, tx->base_addr); in mtk_ref2usb_tx_unprepare()
[all …]
/Linux-v5.15/drivers/net/ethernet/microchip/
Dlan743x_main.c155 struct lan743x_tx *tx = context; in lan743x_tx_isr() local
156 struct lan743x_adapter *adapter = tx->adapter; in lan743x_tx_isr()
162 INT_BIT_DMA_TX_(tx->channel_number)); in lan743x_tx_isr()
165 if (int_sts & INT_BIT_DMA_TX_(tx->channel_number)) { in lan743x_tx_isr()
166 u32 ioc_bit = DMAC_INT_BIT_TX_IOC_(tx->channel_number); in lan743x_tx_isr()
183 napi_schedule(&tx->napi); in lan743x_tx_isr()
191 INT_BIT_DMA_TX_(tx->channel_number)); in lan743x_tx_isr()
258 lan743x_tx_isr(&adapter->tx[channel], in lan743x_intr_shared_isr()
602 &adapter->tx[index]); in lan743x_intr_open()
1243 static void lan743x_tx_release_desc(struct lan743x_tx *tx, in lan743x_tx_release_desc() argument
[all …]
/Linux-v5.15/sound/soc/codecs/
Dlpass-tx-macro.c240 struct tx_macro *tx; member
246 struct tx_macro *tx; member
593 static int tx_macro_mclk_enable(struct tx_macro *tx, in tx_macro_mclk_enable() argument
596 struct regmap *regmap = tx->regmap; in tx_macro_mclk_enable()
599 if (tx->tx_mclk_users == 0) { in tx_macro_mclk_enable()
611 tx->tx_mclk_users++; in tx_macro_mclk_enable()
613 if (tx->tx_mclk_users <= 0) { in tx_macro_mclk_enable()
614 dev_err(tx->dev, "clock already disabled\n"); in tx_macro_mclk_enable()
615 tx->tx_mclk_users = 0; in tx_macro_mclk_enable()
618 tx->tx_mclk_users--; in tx_macro_mclk_enable()
[all …]
/Linux-v5.15/drivers/spi/
Dspi-dln2.c107 } tx; in dln2_spi_enable() local
108 unsigned len = sizeof(tx); in dln2_spi_enable()
110 tx.port = dln2->port; in dln2_spi_enable()
114 len -= sizeof(tx.wait_for_completion); in dln2_spi_enable()
116 tx.wait_for_completion = DLN2_TRANSFERS_WAIT_COMPLETE; in dln2_spi_enable()
120 return dln2_transfer_tx(dln2->pdev, cmd, &tx, len); in dln2_spi_enable()
136 } tx; in dln2_spi_cs_set() local
138 tx.port = dln2->port; in dln2_spi_cs_set()
145 tx.cs = ~cs_mask; in dln2_spi_cs_set()
147 return dln2_transfer_tx(dln2->pdev, DLN2_SPI_SET_SS, &tx, sizeof(tx)); in dln2_spi_cs_set()
[all …]
/Linux-v5.15/sound/soc/mediatek/common/
Dmtk-btcvsd.c135 struct mtk_btcvsd_snd_stream *tx; member
212 bt->tx->state, bt->rx->state, bt->irq_disabled); in mtk_btcvsd_snd_set_state()
216 if (bt->tx->state == BT_SCO_STATE_IDLE && in mtk_btcvsd_snd_set_state()
234 memset(bt->tx, 0, sizeof(*bt->tx)); in mtk_btcvsd_snd_tx_init()
237 bt->tx->packet_size = BTCVSD_TX_PACKET_SIZE; in mtk_btcvsd_snd_tx_init()
238 bt->tx->buf_size = BTCVSD_TX_BUF_SIZE; in mtk_btcvsd_snd_tx_init()
239 bt->tx->timeout = 0; in mtk_btcvsd_snd_tx_init()
240 bt->tx->rw_cnt = 0; in mtk_btcvsd_snd_tx_init()
241 bt->tx->stream = SNDRV_PCM_STREAM_PLAYBACK; in mtk_btcvsd_snd_tx_init()
261 ts->time_stamp_us = bt->tx->time_stamp; in get_tx_time_stamp()
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_ptp.c1160 struct ice_ptp_tx *tx; in ice_ptp_tx_tstamp_work() local
1165 tx = container_of(work, struct ice_ptp_tx, work); in ice_ptp_tx_tstamp_work()
1166 if (!tx->init) in ice_ptp_tx_tstamp_work()
1169 ptp_port = container_of(tx, struct ice_ptp_port, tx); in ice_ptp_tx_tstamp_work()
1173 for_each_set_bit(idx, tx->in_use, tx->len) { in ice_ptp_tx_tstamp_work()
1175 u8 phy_idx = idx + tx->quad_offset; in ice_ptp_tx_tstamp_work()
1180 err = ice_read_phy_tstamp(hw, tx->quad, phy_idx, in ice_ptp_tx_tstamp_work()
1192 ice_clear_phy_tstamp(hw, tx->quad, phy_idx); in ice_ptp_tx_tstamp_work()
1197 spin_lock(&tx->lock); in ice_ptp_tx_tstamp_work()
1198 clear_bit(idx, tx->in_use); in ice_ptp_tx_tstamp_work()
[all …]
/Linux-v5.15/drivers/staging/iio/meter/
Dade7854-spi.c26 .tx_buf = st->tx, in ade7854_spi_write_reg()
32 st->tx[0] = ADE7854_WRITE_REG; in ade7854_spi_write_reg()
33 st->tx[1] = (reg_address >> 8) & 0xFF; in ade7854_spi_write_reg()
34 st->tx[2] = reg_address & 0xFF; in ade7854_spi_write_reg()
37 st->tx[3] = val & 0xFF; in ade7854_spi_write_reg()
41 st->tx[3] = (val >> 8) & 0xFF; in ade7854_spi_write_reg()
42 st->tx[4] = val & 0xFF; in ade7854_spi_write_reg()
46 st->tx[3] = (val >> 16) & 0xFF; in ade7854_spi_write_reg()
47 st->tx[4] = (val >> 8) & 0xFF; in ade7854_spi_write_reg()
48 st->tx[5] = val & 0xFF; in ade7854_spi_write_reg()
[all …]
/Linux-v5.15/drivers/staging/gdm724x/
Dgdm_usb.c149 static struct usb_tx_sdu *get_tx_sdu_struct(struct tx_cxt *tx, int *no_spc) in get_tx_sdu_struct() argument
153 if (list_empty(&tx->free_list)) in get_tx_sdu_struct()
156 t_sdu = list_entry(tx->free_list.next, struct usb_tx_sdu, list); in get_tx_sdu_struct()
159 tx->avail_count--; in get_tx_sdu_struct()
161 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct()
166 static void put_tx_struct(struct tx_cxt *tx, struct usb_tx_sdu *t_sdu) in put_tx_struct() argument
168 list_add_tail(&t_sdu->list, &tx->free_list); in put_tx_struct()
169 tx->avail_count++; in put_tx_struct()
251 struct tx_cxt *tx = &udev->tx; in release_usb() local
257 spin_lock_irqsave(&tx->lock, flags); in release_usb()
[all …]
/Linux-v5.15/drivers/net/ethernet/microchip/sparx5/
Dsparx5_fdma.c97 static void sparx5_fdma_tx_add_dcb(struct sparx5_tx *tx, in sparx5_fdma_tx_add_dcb() argument
159 static void sparx5_fdma_tx_activate(struct sparx5 *sparx5, struct sparx5_tx *tx) in sparx5_fdma_tx_activate() argument
162 spx5_wr(((u64)tx->dma) & GENMASK(31, 0), sparx5, in sparx5_fdma_tx_activate()
163 FDMA_DCB_LLP(tx->channel_id)); in sparx5_fdma_tx_activate()
164 spx5_wr(((u64)tx->dma) >> 32, sparx5, FDMA_DCB_LLP1(tx->channel_id)); in sparx5_fdma_tx_activate()
170 sparx5, FDMA_CH_CFG(tx->channel_id)); in sparx5_fdma_tx_activate()
177 spx5_wr(BIT(tx->channel_id), sparx5, FDMA_CH_ACTIVATE); in sparx5_fdma_tx_activate()
180 static void sparx5_fdma_tx_deactivate(struct sparx5 *sparx5, struct sparx5_tx *tx) in sparx5_fdma_tx_deactivate() argument
183 spx5_rmw(0, BIT(tx->channel_id) & FDMA_CH_ACTIVATE_CH_ACTIVATE, in sparx5_fdma_tx_deactivate()
193 static void sparx5_fdma_tx_reload(struct sparx5 *sparx5, struct sparx5_tx *tx) in sparx5_fdma_tx_reload() argument
[all …]

12345678910>>...74