/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_tx.c | 26 struct gve_tx_ring *tx = &priv->tx[tx_qid]; in gve_xdp_tx_flush() local 28 gve_tx_put_doorbell(priv, tx->q_resources, tx->req); in gve_xdp_tx_flush() 157 static int gve_clean_xdp_done(struct gve_priv *priv, struct gve_tx_ring *tx, in gve_clean_xdp_done() argument 168 idx = tx->done & tx->mask; in gve_clean_xdp_done() 169 info = &tx->info[idx]; in gve_clean_xdp_done() 170 tx->done++; in gve_clean_xdp_done() 187 gve_tx_free_fifo(&tx->tx_fifo, space_freed); in gve_clean_xdp_done() 188 if (xsk_complete > 0 && tx->xsk_pool) in gve_clean_xdp_done() 189 xsk_tx_completed(tx->xsk_pool, xsk_complete); in gve_clean_xdp_done() 190 u64_stats_update_begin(&tx->statss); in gve_clean_xdp_done() [all …]
|
/linux/drivers/media/i2c/adv748x/ |
H A D | adv748x-csi2.c | 25 int adv748x_csi2_set_virtual_channel(struct adv748x_csi2 *tx, unsigned int vc) in adv748x_csi2_set_virtual_channel() argument 27 return tx_write(tx, ADV748X_CSI_VC_REF, vc << ADV748X_CSI_VC_REF_SHIFT); in adv748x_csi2_set_virtual_channel() 42 static int adv748x_csi2_register_link(struct adv748x_csi2 *tx, in adv748x_csi2_register_link() argument 57 &tx->sd.entity, ADV748X_CSI2_SINK, in adv748x_csi2_register_link() 63 tx->src = src; in adv748x_csi2_register_link() 104 struct adv748x_csi2 *tx = adv748x_sd_to_csi2(sd); in adv748x_csi2_registered() local 105 struct adv748x_state *state = tx->state; in adv748x_csi2_registered() 108 adv_dbg(state, "Registered %s (%s)", is_txa(tx) ? "TXA":"TXB", in adv748x_csi2_registered() 118 ret = adv748x_csi2_register_link(tx, sd->v4l2_dev, in adv748x_csi2_registered() 121 is_txb(tx)); in adv748x_csi2_registered() [all …]
|
/linux/drivers/firmware/tegra/ |
H A D | ivc.c | 62 } tx; member 102 u32 tx = tegra_ivc_header_read_field(map, tx.count); in tegra_ivc_empty() local 115 if (tx - rx > ivc->num_frames) in tegra_ivc_empty() 118 return tx == rx; in tegra_ivc_empty() 123 u32 tx = tegra_ivc_header_read_field(map, tx.count); in tegra_ivc_full() local 130 return tx - rx >= ivc->num_frames; in tegra_ivc_full() 135 u32 tx = tegra_ivc_header_read_field(map, tx.count); in tegra_ivc_available() local 144 return tx - rx; in tegra_ivc_available() 149 unsigned int count = tegra_ivc_header_read_field(&ivc->tx.map, tx.count); in tegra_ivc_advance_tx() 151 tegra_ivc_header_write_field(&ivc->tx.map, tx.count, count + 1); in tegra_ivc_advance_tx() [all …]
|
/linux/drivers/rpmsg/ |
H A D | qcom_glink_trace.h | 14 TP_PROTO(const char *remote, unsigned int version, unsigned int features, bool tx), 15 TP_ARGS(remote, version, features, tx), 20 __field(bool, tx) 26 __entry->tx = tx; 29 __entry->tx ? "tx" : "rx", 39 TP_PROTO(const char *remote, unsigned int version, unsigned int features, bool tx), 40 TP_ARGS(remote, version, features, tx), 45 __field(bool, tx) 51 __entry->tx = tx; 54 __entry->tx ? "tx" : "rx", [all …]
|
/linux/crypto/async_tx/ |
H A D | async_tx.c | 66 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 …]
|
H A D | async_raid6_recov.c | 36 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/drivers/fpga/ |
H A D | machxo2-spi.c | 69 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/sound/soc/codecs/ |
H A D | lpass-tx-macro.c | 246 struct tx_macro *tx; member 252 struct tx_macro *tx; member 614 static int tx_macro_mclk_enable(struct tx_macro *tx, in tx_macro_mclk_enable() argument 617 struct regmap *regmap = tx->regmap; in tx_macro_mclk_enable() 620 if (tx->tx_mclk_users == 0) { in tx_macro_mclk_enable() 632 tx->tx_mclk_users++; in tx_macro_mclk_enable() 634 if (tx->tx_mclk_users <= 0) { in tx_macro_mclk_enable() 635 dev_err(tx->dev, "clock already disabled\n"); in tx_macro_mclk_enable() 636 tx->tx_mclk_users = 0; in tx_macro_mclk_enable() 639 tx->tx_mclk_users--; in tx_macro_mclk_enable() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | sdma.h | 440 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 …]
|
H A D | vnic_sdma.c | 41 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 …]
|
H A D | verbs_txreq.h | 38 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 …]
|
H A D | ipoib_tx.c | 114 static void hfi1_ipoib_free_tx(struct ipoib_txreq *tx, int budget) in hfi1_ipoib_free_tx() argument 116 struct hfi1_ipoib_dev_priv *priv = tx->txq->priv; in hfi1_ipoib_free_tx() 118 if (likely(!tx->sdma_status)) { in hfi1_ipoib_free_tx() 119 dev_sw_netstats_tx_add(priv->netdev, 1, tx->skb->len); in hfi1_ipoib_free_tx() 124 __func__, tx->sdma_status, in hfi1_ipoib_free_tx() 125 le64_to_cpu(tx->sdma_hdr->pbc), tx->txq->q_idx, in hfi1_ipoib_free_tx() 126 tx->txq->sde->this_idx); in hfi1_ipoib_free_tx() 129 napi_consume_skb(tx->skb, budget); in hfi1_ipoib_free_tx() 130 tx->skb = NULL; in hfi1_ipoib_free_tx() 131 sdma_txclean(priv->dd, &tx->txreq); in hfi1_ipoib_free_tx() [all …]
|
/linux/drivers/clk/mediatek/ |
H A D | clk-apmixed.c | 32 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_is_prepared() local 34 return (readl(tx->base_addr) & REF2USB_EN_MASK) == REF2USB_EN_MASK; in mtk_ref2usb_tx_is_prepared() 39 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_prepare() local 42 val = readl(tx->base_addr); in mtk_ref2usb_tx_prepare() 45 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare() 49 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare() 52 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare() 59 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_unprepare() local 62 val = readl(tx->base_addr); in mtk_ref2usb_tx_unprepare() 64 writel(val, tx->base_addr); in mtk_ref2usb_tx_unprepare() [all …]
|
/linux/drivers/net/wireless/ti/wl18xx/ |
H A D | debugfs.c | 45 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/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool_mm.sh | 47 local tx=$1; shift 58 ethtool --set-mm $rx tx-enabled on 59 ethtool --set-mm $tx verify-enabled on tx-enabled on 64 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \ 68 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true' 71 traffic_test $tx "pmac" 72 check_err "$?" "Traffic did not get sent through $tx's pMAC" 74 ethtool --set-mm $tx verify-enabled off tx-enabled off 75 ethtool --set-mm $rx tx-enabled off 77 log_test "Manual configuration with verification: $tx to $rx" [all …]
|
/linux/sound/soc/mediatek/common/ |
H A D | mtk-btcvsd.c | 135 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/tools/testing/selftests/timers/ |
H A D | leapcrash.c | 30 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 …]
|
H A D | set-tai.c | 30 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()
|
H A D | change_skew.c | 35 struct timex tx; in change_skew_test() local 38 tx.modes = ADJ_FREQUENCY; in change_skew_test() 39 tx.freq = ppm << 16; in change_skew_test() 41 ret = adjtimex(&tx); in change_skew_test() 57 struct timex tx; in main() local 66 tx.modes = ADJ_OFFSET; in main() 67 tx.offset = 0; in main() 68 ret = adjtimex(&tx); in main() 83 tx.modes = ADJ_FREQUENCY; in main() 84 tx.offset = 0; in main() [all …]
|
/linux/drivers/net/wireless/purelifi/plfxlc/ |
H A D | usb.c | 38 struct plfxlc_usb_tx *tx = &usb->tx; in plfxlc_send_packet_from_data_queue() local 43 spin_lock_irqsave(&tx->lock, flags); in plfxlc_send_packet_from_data_queue() 47 if (!(tx->station[usb->sidx].flag & STATION_CONNECTED_FLAG)) in plfxlc_send_packet_from_data_queue() 49 if (!(tx->station[usb->sidx].flag & STATION_FIFO_FULL_FLAG)) in plfxlc_send_packet_from_data_queue() 50 skb = skb_peek(&tx->station[usb->sidx].data_list); in plfxlc_send_packet_from_data_queue() 54 skb = skb_dequeue(&tx->station[usb->sidx].data_list); in plfxlc_send_packet_from_data_queue() 57 if (skb_queue_len(&tx->station[usb->sidx].data_list) <= 60) in plfxlc_send_packet_from_data_queue() 60 spin_unlock_irqrestore(&tx->lock, flags); in plfxlc_send_packet_from_data_queue() 71 struct plfxlc_usb_tx *tx; in rx_urb_complete() local 94 tx = &usb->tx; in rx_urb_complete() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp.c | 453 ice_ptp_is_tx_tracker_up(struct ice_ptp_tx *tx) in ice_ptp_is_tx_tracker_up() argument 455 lockdep_assert_held(&tx->lock); in ice_ptp_is_tx_tracker_up() 457 return tx->init && !tx->calibrating; in ice_ptp_is_tx_tracker_up() 465 void ice_ptp_req_tx_single_tstamp(struct ice_ptp_tx *tx, u8 idx) in ice_ptp_req_tx_single_tstamp() argument 473 if (!tx->init) in ice_ptp_req_tx_single_tstamp() 476 ptp_port = container_of(tx, struct ice_ptp_port, tx); in ice_ptp_req_tx_single_tstamp() 481 if (time_is_before_jiffies(tx->tstamps[idx].start + 2 * HZ)) { in ice_ptp_req_tx_single_tstamp() 485 skb = tx->tstamps[idx].skb; in ice_ptp_req_tx_single_tstamp() 486 tx->tstamps[idx].skb = NULL; in ice_ptp_req_tx_single_tstamp() 487 clear_bit(idx, tx->in_use); in ice_ptp_req_tx_single_tstamp() [all …]
|
/linux/drivers/iio/gyro/ |
H A D | adxrs450.c | 76 __be32 tx __aligned(IIO_DMA_MINALIGN); 93 u32 tx; in adxrs450_spi_read_reg_16() local 97 .tx_buf = &st->tx, in adxrs450_spi_read_reg_16() 99 .len = sizeof(st->tx), in adxrs450_spi_read_reg_16() 109 tx = ADXRS450_READ_DATA | (reg_address << 17); in adxrs450_spi_read_reg_16() 111 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16() 112 tx |= ADXRS450_P; in adxrs450_spi_read_reg_16() 114 st->tx = cpu_to_be32(tx); in adxrs450_spi_read_reg_16() 141 u32 tx; in adxrs450_spi_write_reg_16() local 145 tx = ADXRS450_WRITE_DATA | (reg_address << 17) | (val << 1); in adxrs450_spi_write_reg_16() [all …]
|
/linux/net/mac80211/ |
H A D | tx.c | 42 static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, in ieee80211_duration() argument 48 struct ieee80211_local *local = tx->local; in ieee80211_duration() 56 if (tx->rate.flags & (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)) in ieee80211_duration() 60 chanctx_conf = rcu_dereference(tx->sdata->vif.bss_conf.chanctx_conf); in ieee80211_duration() 66 if (WARN_ON_ONCE(tx->rate.idx < 0)) in ieee80211_duration() 70 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration() 144 if (tx->sdata->vif.bss_conf.basic_rates & BIT(i)) in ieee80211_duration() 150 if (tx->sdata->deflink.operating_11g_mode) in ieee80211_duration() 183 tx->sdata->vif.bss_conf.use_short_preamble); in ieee80211_duration() 192 tx->sdata->vif.bss_conf.use_short_preamble); in ieee80211_duration() [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_esai.c | 165 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument 234 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_divisor_cal() 243 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_divisor_cal() 264 bool tx = (clk_id <= ESAI_HCKT_EXTAL || esai_priv->synchronous); in fsl_esai_set_dai_sysclk() local 272 in ? "in" : "out", tx ? 'T' : 'R'); in fsl_esai_set_dai_sysclk() 277 if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx]) in fsl_esai_set_dai_sysclk() 281 esai_priv->sck_div[tx] = true; in fsl_esai_set_dai_sysclk() 284 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_set_dai_sysclk() 323 tx ? 'T' : 'R'); in fsl_esai_set_dai_sysclk() 330 ecr |= tx ? ESAI_ECR_ETO : ESAI_ECR_ERO; in fsl_esai_set_dai_sysclk() [all …]
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bna_tx_rx.c | 2758 #define call_tx_stop_cbfn(tx) \ argument 2760 if ((tx)->stop_cbfn) { \ 2763 cbfn = (tx)->stop_cbfn; \ 2764 cbarg = (tx)->stop_cbarg; \ 2765 (tx)->stop_cbfn = NULL; \ 2766 (tx)->stop_cbarg = NULL; \ 2767 cbfn(cbarg, (tx)); \ 2771 static void bna_tx_mod_cb_tx_stopped(void *tx_mod, struct bna_tx *tx); 2772 static void bna_bfi_tx_enet_start(struct bna_tx *tx); 2773 static void bna_tx_enet_stop(struct bna_tx *tx); [all …]
|