Home
last modified time | relevance | path

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

12345678910>>...62

/Linux-v4.19/drivers/media/i2c/adv748x/
Dadv748x-csi2.c21 static bool is_txa(struct adv748x_csi2 *tx) in is_txa() argument
23 return tx == &tx->state->txa; in is_txa()
26 static int adv748x_csi2_set_virtual_channel(struct adv748x_csi2 *tx, in adv748x_csi2_set_virtual_channel() argument
29 return tx_write(tx, ADV748X_CSI_VC_REF, vc << ADV748X_CSI_VC_REF_SHIFT); in adv748x_csi2_set_virtual_channel()
43 static int adv748x_csi2_register_link(struct adv748x_csi2 *tx, in adv748x_csi2_register_link() argument
64 &tx->sd.entity, ADV748X_CSI2_SINK, in adv748x_csi2_register_link()
78 struct adv748x_csi2 *tx = adv748x_sd_to_csi2(sd); in adv748x_csi2_registered() local
79 struct adv748x_state *state = tx->state; in adv748x_csi2_registered()
81 adv_dbg(state, "Registered %s (%s)", is_txa(tx) ? "TXA":"TXB", in adv748x_csi2_registered()
90 if (is_txa(tx)) { in adv748x_csi2_registered()
[all …]
/Linux-v4.19/drivers/firmware/tegra/
Divc.c70 } tx; member
105 u32 tx = READ_ONCE(header->tx.count); in tegra_ivc_empty() local
118 if (tx - rx > ivc->num_frames) in tegra_ivc_empty()
121 return tx == rx; in tegra_ivc_empty()
127 u32 tx = READ_ONCE(header->tx.count); in tegra_ivc_full() local
134 return tx - rx >= ivc->num_frames; in tegra_ivc_full()
140 u32 tx = READ_ONCE(header->tx.count); in tegra_ivc_available() local
149 return tx - rx; in tegra_ivc_available()
154 WRITE_ONCE(ivc->tx.channel->tx.count, in tegra_ivc_advance_tx()
155 READ_ONCE(ivc->tx.channel->tx.count) + 1); in tegra_ivc_advance_tx()
[all …]
/Linux-v4.19/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()
127 tx.modes = ADJ_FREQUENCY; in validate_freq()
128 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-v4.19/crypto/async_tx/
Dasync_tx.c79 struct dma_async_tx_descriptor *tx) in async_tx_channel_switch() argument
87 if (txd_parent(depend_tx) && depend_tx->chan == tx->chan) { in async_tx_channel_switch()
88 txd_chain(depend_tx, tx); in async_tx_channel_switch()
113 txd_chain(intr_tx, tx); in async_tx_channel_switch()
134 tx->tx_submit(tx); in async_tx_channel_switch()
156 async_tx_submit(struct dma_chan *chan, struct dma_async_tx_descriptor *tx, in async_tx_submit() argument
161 tx->callback = submit->cb_fn; in async_tx_submit()
162 tx->callback_param = submit->cb_param; in async_tx_submit()
174 txd_parent(tx)); in async_tx_submit()
186 txd_chain(depend_tx, tx); in async_tx_submit()
[all …]
Dasync_raid6_recov.c49 struct dma_async_tx_descriptor *tx; in async_sum_product() local
64 tx = dma->device_prep_dma_pq(chan, pq, unmap->addr, 2, coef, in async_sum_product()
66 if (tx) { in async_sum_product()
67 dma_set_unmap(tx, unmap); in async_sum_product()
68 async_tx_submit(chan, tx, submit); in async_sum_product()
70 return tx; in async_sum_product()
113 struct dma_async_tx_descriptor *tx; in async_mult() local
129 tx = dma->device_prep_dma_pq(chan, dma_dest, unmap->addr, in async_mult()
132 if (tx) { in async_mult()
133 dma_set_unmap(tx, unmap); in async_mult()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dsdma.h489 struct sdma_txreq *tx,
548 struct sdma_txreq *tx, in sdma_txinit_ahg() argument
561 tx->desc_limit = ARRAY_SIZE(tx->descs); in sdma_txinit_ahg()
562 tx->descp = &tx->descs[0]; in sdma_txinit_ahg()
563 INIT_LIST_HEAD(&tx->list); in sdma_txinit_ahg()
564 tx->num_desc = 0; in sdma_txinit_ahg()
565 tx->flags = flags; in sdma_txinit_ahg()
566 tx->complete = cb; in sdma_txinit_ahg()
567 tx->coalesce_buf = NULL; in sdma_txinit_ahg()
568 tx->wait = NULL; in sdma_txinit_ahg()
[all …]
Dvnic_sdma.c87 struct vnic_txreq *tx = container_of(txreq, struct vnic_txreq, txreq); in vnic_sdma_complete() local
88 struct hfi1_vnic_sdma *vnic_sdma = tx->sdma; in vnic_sdma_complete()
91 dev_kfree_skb_any(tx->skb); in vnic_sdma_complete()
92 kmem_cache_free(vnic_sdma->dd->vnic.txreq_cache, tx); in vnic_sdma_complete()
96 struct vnic_txreq *tx) in build_vnic_ulp_payload() argument
102 &tx->txreq, in build_vnic_ulp_payload()
103 tx->skb->data, in build_vnic_ulp_payload()
104 skb_headlen(tx->skb)); in build_vnic_ulp_payload()
108 for (i = 0; i < skb_shinfo(tx->skb)->nr_frags; i++) { in build_vnic_ulp_payload()
109 struct skb_frag_struct *frag = &skb_shinfo(tx->skb)->frags[i]; in build_vnic_ulp_payload()
[all …]
Dverbs_txreq.h79 struct verbs_txreq *tx; in get_txreq() local
82 tx = kmem_cache_alloc(dev->verbs_txreq_cache, GFP_ATOMIC); in get_txreq()
83 if (unlikely(!tx)) { in get_txreq()
85 tx = __get_txreq(dev, qp); in get_txreq()
86 if (!tx) in get_txreq()
87 return tx; in get_txreq()
89 tx->qp = qp; in get_txreq()
90 tx->mr = NULL; in get_txreq()
91 tx->sde = priv->s_sde; in get_txreq()
92 tx->psc = priv->s_sendcontext; in get_txreq()
[all …]
/Linux-v4.19/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-v4.19/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c59 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_prepared_descs, "%u");
60 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_cmplt, "%u");
61 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_prepared, "%u");
62 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_prepared, "%u");
63 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_programmed, "%u");
64 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_programmed, "%u");
65 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_burst_programmed, "%u");
66 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_starts, "%u");
67 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_stop, "%u");
68 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_templates, "%u");
[all …]
/Linux-v4.19/drivers/clk/mediatek/
Dclk-apmixed.c39 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_is_prepared() local
41 return (readl(tx->base_addr) & REF2USB_EN_MASK) == REF2USB_EN_MASK; in mtk_ref2usb_tx_is_prepared()
46 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_prepare() local
49 val = readl(tx->base_addr); in mtk_ref2usb_tx_prepare()
52 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
56 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
59 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
66 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_unprepare() local
69 val = readl(tx->base_addr); in mtk_ref2usb_tx_unprepare()
71 writel(val, tx->base_addr); in mtk_ref2usb_tx_unprepare()
[all …]
/Linux-v4.19/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()
163 INT_BIT_DMA_TX_(tx->channel_number)); in lan743x_tx_isr()
166 if (int_sts & INT_BIT_DMA_TX_(tx->channel_number)) { in lan743x_tx_isr()
167 u32 ioc_bit = DMAC_INT_BIT_TX_IOC_(tx->channel_number); in lan743x_tx_isr()
184 napi_schedule(&tx->napi); in lan743x_tx_isr()
192 INT_BIT_DMA_TX_(tx->channel_number)); in lan743x_tx_isr()
259 lan743x_tx_isr(&adapter->tx[channel], in lan743x_intr_shared_isr()
613 &adapter->tx[index]); in lan743x_intr_open()
1228 static void lan743x_tx_release_desc(struct lan743x_tx *tx, in lan743x_tx_release_desc() argument
[all …]
/Linux-v4.19/sound/soc/fsl/
Dfsl_sai.h36 #define FSL_SAI_xCSR(tx) (tx ? FSL_SAI_TCSR : FSL_SAI_RCSR) argument
37 #define FSL_SAI_xCR1(tx) (tx ? FSL_SAI_TCR1 : FSL_SAI_RCR1) argument
38 #define FSL_SAI_xCR2(tx) (tx ? FSL_SAI_TCR2 : FSL_SAI_RCR2) argument
39 #define FSL_SAI_xCR3(tx) (tx ? FSL_SAI_TCR3 : FSL_SAI_RCR3) argument
40 #define FSL_SAI_xCR4(tx) (tx ? FSL_SAI_TCR4 : FSL_SAI_RCR4) argument
41 #define FSL_SAI_xCR5(tx) (tx ? FSL_SAI_TCR5 : FSL_SAI_RCR5) argument
42 #define FSL_SAI_xDR(tx) (tx ? FSL_SAI_TDR : FSL_SAI_RDR) argument
43 #define FSL_SAI_xFR(tx) (tx ? FSL_SAI_TFR : FSL_SAI_RFR) argument
44 #define FSL_SAI_xMR(tx) (tx ? FSL_SAI_TMR : FSL_SAI_RMR) argument
/Linux-v4.19/drivers/spi/
Dspi-dln2.c110 } tx; in dln2_spi_enable() local
111 unsigned len = sizeof(tx); in dln2_spi_enable()
113 tx.port = dln2->port; in dln2_spi_enable()
117 len -= sizeof(tx.wait_for_completion); in dln2_spi_enable()
119 tx.wait_for_completion = DLN2_TRANSFERS_WAIT_COMPLETE; in dln2_spi_enable()
123 return dln2_transfer_tx(dln2->pdev, cmd, &tx, len); in dln2_spi_enable()
139 } tx; in dln2_spi_cs_set() local
141 tx.port = dln2->port; in dln2_spi_cs_set()
148 tx.cs = ~cs_mask; in dln2_spi_cs_set()
150 return dln2_transfer_tx(dln2->pdev, DLN2_SPI_SET_SS, &tx, sizeof(tx)); in dln2_spi_cs_set()
[all …]
/Linux-v4.19/drivers/staging/iio/meter/
Dade7854-spi.c27 .tx_buf = st->tx, in ade7854_spi_write_reg()
33 st->tx[0] = ADE7854_WRITE_REG; in ade7854_spi_write_reg()
34 st->tx[1] = (reg_address >> 8) & 0xFF; in ade7854_spi_write_reg()
35 st->tx[2] = reg_address & 0xFF; in ade7854_spi_write_reg()
38 st->tx[3] = val & 0xFF; in ade7854_spi_write_reg()
42 st->tx[3] = (val >> 8) & 0xFF; in ade7854_spi_write_reg()
43 st->tx[4] = val & 0xFF; in ade7854_spi_write_reg()
47 st->tx[3] = (val >> 16) & 0xFF; in ade7854_spi_write_reg()
48 st->tx[4] = (val >> 8) & 0xFF; in ade7854_spi_write_reg()
49 st->tx[5] = val & 0xFF; in ade7854_spi_write_reg()
[all …]
Dade7854-i2c.c29 st->tx[0] = (reg_address >> 8) & 0xFF; in ade7854_i2c_write_reg()
30 st->tx[1] = reg_address & 0xFF; in ade7854_i2c_write_reg()
34 st->tx[2] = val & 0xFF; in ade7854_i2c_write_reg()
38 st->tx[2] = (val >> 8) & 0xFF; in ade7854_i2c_write_reg()
39 st->tx[3] = val & 0xFF; in ade7854_i2c_write_reg()
43 st->tx[2] = (val >> 16) & 0xFF; in ade7854_i2c_write_reg()
44 st->tx[3] = (val >> 8) & 0xFF; in ade7854_i2c_write_reg()
45 st->tx[4] = val & 0xFF; in ade7854_i2c_write_reg()
49 st->tx[2] = (val >> 24) & 0xFF; in ade7854_i2c_write_reg()
50 st->tx[3] = (val >> 16) & 0xFF; in ade7854_i2c_write_reg()
[all …]
/Linux-v4.19/drivers/staging/gdm724x/
Dgdm_usb.c145 static struct usb_tx_sdu *get_tx_sdu_struct(struct tx_cxt *tx, int *no_spc) in get_tx_sdu_struct() argument
149 if (list_empty(&tx->free_list)) in get_tx_sdu_struct()
152 t_sdu = list_entry(tx->free_list.next, struct usb_tx_sdu, list); in get_tx_sdu_struct()
155 tx->avail_count--; in get_tx_sdu_struct()
157 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct()
162 static void put_tx_struct(struct tx_cxt *tx, struct usb_tx_sdu *t_sdu) in put_tx_struct() argument
164 list_add_tail(&t_sdu->list, &tx->free_list); in put_tx_struct()
165 tx->avail_count++; in put_tx_struct()
247 struct tx_cxt *tx = &udev->tx; in release_usb() local
253 spin_lock_irqsave(&tx->lock, flags); in release_usb()
[all …]
/Linux-v4.19/drivers/dma/
Ddmaengine.h29 static inline dma_cookie_t dma_cookie_assign(struct dma_async_tx_descriptor *tx) in dma_cookie_assign() argument
31 struct dma_chan *chan = tx->chan; in dma_cookie_assign()
37 tx->cookie = chan->cookie = cookie; in dma_cookie_assign()
52 static inline void dma_cookie_complete(struct dma_async_tx_descriptor *tx) in dma_cookie_complete() argument
54 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete()
55 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete()
56 tx->cookie = 0; in dma_cookie_complete()
106 dmaengine_desc_get_callback(struct dma_async_tx_descriptor *tx, in dmaengine_desc_get_callback() argument
109 cb->callback = tx->callback; in dmaengine_desc_get_callback()
110 cb->callback_result = tx->callback_result; in dmaengine_desc_get_callback()
[all …]
/Linux-v4.19/net/mac80211/
Dtx.c55 static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, in ieee80211_duration() argument
61 struct ieee80211_local *local = tx->local; in ieee80211_duration()
69 if (tx->rate.flags & (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)) in ieee80211_duration()
73 chanctx_conf = rcu_dereference(tx->sdata->vif.chanctx_conf); in ieee80211_duration()
81 if (WARN_ON_ONCE(tx->rate.idx < 0)) in ieee80211_duration()
85 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration()
154 if (tx->sdata->vif.bss_conf.basic_rates & BIT(i)) in ieee80211_duration()
160 if (tx->sdata->flags & IEEE80211_SDATA_OPERATING_GMODE) in ieee80211_duration()
194 tx->sdata->vif.bss_conf.use_short_preamble, in ieee80211_duration()
204 tx->sdata->vif.bss_conf.use_short_preamble, in ieee80211_duration()
[all …]
/Linux-v4.19/drivers/iio/gyro/
Dadxrs450.c77 __be32 tx ____cacheline_aligned;
94 u32 tx; in adxrs450_spi_read_reg_16() local
98 .tx_buf = &st->tx, in adxrs450_spi_read_reg_16()
100 .len = sizeof(st->tx), in adxrs450_spi_read_reg_16()
110 tx = ADXRS450_READ_DATA | (reg_address << 17); in adxrs450_spi_read_reg_16()
112 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16()
113 tx |= ADXRS450_P; in adxrs450_spi_read_reg_16()
115 st->tx = cpu_to_be32(tx); in adxrs450_spi_read_reg_16()
142 u32 tx; in adxrs450_spi_write_reg_16() local
146 tx = ADXRS450_WRITE_DATA | (reg_address << 17) | (val << 1); in adxrs450_spi_write_reg_16()
[all …]
/Linux-v4.19/drivers/i2c/busses/
Di2c-dln2.c61 } tx; in dln2_i2c_enable() local
63 tx.port = dln2->port; in dln2_i2c_enable()
70 return dln2_transfer_tx(dln2->pdev, cmd, &tx, sizeof(tx)); in dln2_i2c_enable()
84 } __packed *tx = dln2->buf; in dln2_i2c_write() local
87 BUILD_BUG_ON(sizeof(*tx) > DLN2_I2C_BUF_SIZE); in dln2_i2c_write()
89 tx->port = dln2->port; in dln2_i2c_write()
90 tx->addr = addr; in dln2_i2c_write()
91 tx->mem_addr_len = 0; in dln2_i2c_write()
92 tx->mem_addr = 0; in dln2_i2c_write()
93 tx->buf_len = cpu_to_le16(data_len); in dln2_i2c_write()
[all …]

12345678910>>...62