Home
last modified time | relevance | path

Searched refs:tx (Results 1 – 200 of 1196) sorted by relevance

123456

/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_proto.c55 ksock_tx_t *tx = conn->ksnc_tx_carrier; in ksocknal_next_tx_carrier() local
59 LASSERT(tx != NULL); in ksocknal_next_tx_carrier()
62 if (tx->tx_list.next == &conn->ksnc_tx_queue) { in ksocknal_next_tx_carrier()
66 conn->ksnc_tx_carrier = list_entry(tx->tx_list.next, in ksocknal_next_tx_carrier()
68 LASSERT(conn->ksnc_tx_carrier->tx_msg.ksm_type == tx->tx_msg.ksm_type); in ksocknal_next_tx_carrier()
76 ksock_tx_t *tx = conn->ksnc_tx_carrier; in ksocknal_queue_tx_zcack_v2() local
88 if (tx == NULL) { in ksocknal_queue_tx_zcack_v2()
97 if (tx->tx_msg.ksm_type == KSOCK_MSG_NOOP) { in ksocknal_queue_tx_zcack_v2()
105 LASSERT(tx->tx_msg.ksm_type == KSOCK_MSG_LNET); in ksocknal_queue_tx_zcack_v2()
106 LASSERT(tx->tx_msg.ksm_zc_cookies[1] == 0); in ksocknal_queue_tx_zcack_v2()
[all …]
Dsocklnd_cb.c32 ksock_tx_t *tx = NULL; in ksocknal_alloc_tx() local
41 tx = list_entry(ksocknal_data.ksnd_idle_noop_txs. \ in ksocknal_alloc_tx()
43 LASSERT(tx->tx_desc_size == size); in ksocknal_alloc_tx()
44 list_del(&tx->tx_list); in ksocknal_alloc_tx()
50 if (tx == NULL) in ksocknal_alloc_tx()
51 LIBCFS_ALLOC(tx, size); in ksocknal_alloc_tx()
53 if (tx == NULL) in ksocknal_alloc_tx()
56 atomic_set(&tx->tx_refcount, 1); in ksocknal_alloc_tx()
57 tx->tx_zc_aborted = 0; in ksocknal_alloc_tx()
58 tx->tx_zc_capable = 0; in ksocknal_alloc_tx()
[all …]
Dsocklnd_lib.c76 ksocknal_lib_send_iov(ksock_conn_t *conn, ksock_tx_t *tx) in ksocknal_lib_send_iov() argument
84 tx->tx_nob == tx->tx_resid && /* frist sending */ in ksocknal_lib_send_iov()
85 tx->tx_msg.ksm_csum == 0) /* not checksummed */ in ksocknal_lib_send_iov()
86 ksocknal_lib_csum_tx(tx); in ksocknal_lib_send_iov()
98 unsigned int niov = tx->tx_niov; in ksocknal_lib_send_iov()
104 scratchiov[i] = tx->tx_iov[i]; in ksocknal_lib_send_iov()
109 nob < tx->tx_resid) in ksocknal_lib_send_iov()
118 ksocknal_lib_send_kiov(ksock_conn_t *conn, ksock_tx_t *tx) in ksocknal_lib_send_kiov() argument
121 lnet_kiov_t *kiov = tx->tx_kiov; in ksocknal_lib_send_kiov()
126 LASSERT(tx->tx_lnetmsg != NULL); in ksocknal_lib_send_kiov()
[all …]
Dsocklnd.h563 ksocknal_tx_addref(ksock_tx_t *tx) in ksocknal_tx_addref() argument
565 LASSERT(atomic_read(&tx->tx_refcount) > 0); in ksocknal_tx_addref()
566 atomic_inc(&tx->tx_refcount); in ksocknal_tx_addref()
569 void ksocknal_tx_prep(ksock_conn_t *, ksock_tx_t *tx);
570 void ksocknal_tx_done(lnet_ni_t *ni, ksock_tx_t *tx);
573 ksocknal_tx_decref(ksock_tx_t *tx) in ksocknal_tx_decref() argument
575 LASSERT(atomic_read(&tx->tx_refcount) > 0); in ksocknal_tx_decref()
576 if (atomic_dec_and_test(&tx->tx_refcount)) in ksocknal_tx_decref()
577 ksocknal_tx_done(NULL, tx); in ksocknal_tx_decref()
638 ksock_tx_t *tx, int nonblk);
[all …]
/linux-4.4.14/tools/testing/selftests/timers/
Dvalid-adjtimex.c53 struct timex tx; in clear_time_state() local
56 tx.modes = ADJ_STATUS; in clear_time_state()
57 tx.status = 0; in clear_time_state()
58 ret = adjtimex(&tx); in clear_time_state()
117 struct timex tx; in validate_freq() local
123 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()
131 ret = adjtimex(&tx); in validate_freq()
139 tx.modes = 0; in validate_freq()
[all …]
Dleap-a-day.c108 struct timex tx; in clear_time_state() local
117 tx.modes = ADJ_STATUS; in clear_time_state()
118 tx.status = STA_PLL; in clear_time_state()
119 ret = adjtimex(&tx); in clear_time_state()
122 tx.modes = ADJ_MAXERROR; in clear_time_state()
123 tx.maxerror = 0; in clear_time_state()
124 ret = adjtimex(&tx); in clear_time_state()
127 tx.modes = ADJ_STATUS; in clear_time_state()
128 tx.status = 0; in clear_time_state()
129 ret = adjtimex(&tx); in clear_time_state()
[all …]
Dleapcrash.c43 struct timex tx; in clear_time_state() local
52 tx.modes = ADJ_STATUS; in clear_time_state()
53 tx.status = STA_PLL; in clear_time_state()
54 ret = adjtimex(&tx); in clear_time_state()
56 tx.modes = ADJ_STATUS; in clear_time_state()
57 tx.status = 0; in clear_time_state()
58 ret = adjtimex(&tx); in clear_time_state()
73 struct timex tx; in main() local
105 tx.modes = 0; in main()
106 adjtimex(&tx); in main()
[all …]
Dset-tai.c41 struct timex tx; in set_tai() local
43 memset(&tx, 0, sizeof(tx)); in set_tai()
45 tx.modes = ADJ_TAI; in set_tai()
46 tx.constant = offset; in set_tai()
48 return adjtimex(&tx); in set_tai()
53 struct timex tx; in get_tai() local
55 memset(&tx, 0, sizeof(tx)); in get_tai()
57 adjtimex(&tx); in get_tai()
58 return tx.tai; in get_tai()
Dchange_skew.c49 struct timex tx; in change_skew_test() local
52 tx.modes = ADJ_FREQUENCY; in change_skew_test()
53 tx.freq = ppm << 16; in change_skew_test()
55 ret = adjtimex(&tx); in change_skew_test()
71 struct timex tx; in main() local
80 tx.modes = ADJ_OFFSET; in main()
81 tx.offset = 0; in main()
82 ret = adjtimex(&tx); in main()
97 tx.modes = ADJ_FREQUENCY; in main()
98 tx.offset = 0; in main()
[all …]
Dskew_consistency.c55 struct timex tx; in main() local
71 tx.modes = ADJ_FREQUENCY; in main()
72 tx.freq = ppm << 16; in main()
73 adjtimex(&tx); in main()
78 tx.modes = ADJ_FREQUENCY; in main()
79 tx.offset = 0; in main()
80 adjtimex(&tx); in main()
/linux-4.4.14/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 …]
Dasync_xor.c40 struct dma_async_tx_descriptor *tx = NULL; in do_async_xor() local
78 tx = dma->device_prep_dma_xor(chan, dma_dest, src_list, in do_async_xor()
82 if (unlikely(!tx)) in do_async_xor()
86 while (unlikely(!tx)) { in do_async_xor()
88 tx = dma->device_prep_dma_xor(chan, dma_dest, in do_async_xor()
95 dma_set_unmap(tx, unmap); in do_async_xor()
96 async_tx_submit(chan, tx, submit); in do_async_xor()
97 submit->depend_tx = tx; in do_async_xor()
109 return tx; in do_async_xor()
188 struct dma_async_tx_descriptor *tx; in async_xor() local
[all …]
Dasync_pq.c55 struct dma_async_tx_descriptor *tx = NULL; in do_async_gen_syndrome() local
93 tx = dma->device_prep_dma_pq(chan, dma_dest, in do_async_gen_syndrome()
98 if (likely(tx)) in do_async_gen_syndrome()
104 dma_set_unmap(tx, unmap); in do_async_gen_syndrome()
105 async_tx_submit(chan, tx, submit); in do_async_gen_syndrome()
106 submit->depend_tx = tx; in do_async_gen_syndrome()
115 return tx; in do_async_gen_syndrome()
198 struct dma_async_tx_descriptor *tx; in async_gen_syndrome() local
243 tx = do_async_gen_syndrome(chan, coefs, j, unmap, dma_flags, submit); in async_gen_syndrome()
245 return tx; in async_gen_syndrome()
[all …]
Draid6test.c72 struct dma_async_tx_descriptor *tx = NULL; in raid6_dual_recov() local
82 tx = async_gen_syndrome(ptrs, 0, disks, bytes, &submit); in raid6_dual_recov()
100 tx = async_xor(dest, blocks, 0, count, bytes, &submit); in raid6_dual_recov()
102 init_async_submit(&submit, 0, tx, NULL, NULL, addr_conv); in raid6_dual_recov()
103 tx = async_gen_syndrome(ptrs, 0, disks, bytes, &submit); in raid6_dual_recov()
109 tx = async_raid6_datap_recov(disks, bytes, faila, ptrs, &submit); in raid6_dual_recov()
113 tx = async_raid6_2data_recov(disks, bytes, faila, failb, ptrs, &submit); in raid6_dual_recov()
117 init_async_submit(&submit, ASYNC_TX_ACK, tx, callback, &cmp, addr_conv); in raid6_dual_recov()
118 tx = async_syndrome_val(ptrs, 0, disks, bytes, &result, spare, &submit); in raid6_dual_recov()
119 async_tx_issue_pending(tx); in raid6_dual_recov()
[all …]
Dasync_memcpy.c52 struct dma_async_tx_descriptor *tx = NULL; in async_memcpy() local
74 tx = device->device_prep_dma_memcpy(chan, unmap->addr[1], in async_memcpy()
79 if (tx) { in async_memcpy()
82 dma_set_unmap(tx, unmap); in async_memcpy()
83 async_tx_submit(chan, tx, submit); in async_memcpy()
104 return tx; in async_memcpy()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_sdio.c41 static struct sdio_tx *alloc_tx_struct(struct tx_cxt *tx) in alloc_tx_struct() argument
54 t->tx_cxt = tx; in alloc_tx_struct()
83 static struct sdio_tx *get_tx_struct(struct tx_cxt *tx, int *no_spc) in get_tx_struct() argument
87 if (list_empty(&tx->free_list)) in get_tx_struct()
90 t = list_entry(tx->free_list.prev, struct sdio_tx, list); in get_tx_struct()
93 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_struct()
99 static void put_tx_struct(struct tx_cxt *tx, struct sdio_tx *t) in put_tx_struct() argument
101 list_add_tail(&t->list, &tx->free_list); in put_tx_struct()
126 struct tx_cxt *tx = &sdev->tx; in release_sdio() local
131 kfree(tx->sdu_buf); in release_sdio()
[all …]
Dgdm_usb.c52 static struct usb_tx *alloc_tx_struct(struct tx_cxt *tx) in alloc_tx_struct() argument
68 t->tx_cxt = tx; in alloc_tx_struct()
112 static struct usb_tx *get_tx_struct(struct tx_cxt *tx, int *no_spc) in get_tx_struct() argument
116 if (list_empty(&tx->free_list)) { in get_tx_struct()
121 t = list_entry(tx->free_list.next, struct usb_tx, list); in get_tx_struct()
124 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_struct()
130 static void put_tx_struct(struct tx_cxt *tx, struct usb_tx *t) in put_tx_struct() argument
132 list_add_tail(&t->list, &tx->free_list); in put_tx_struct()
162 struct tx_cxt *tx = &udev->tx; in release_usb() local
168 spin_lock_irqsave(&tx->lock, flags); in release_usb()
[all …]
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dsdma.h562 struct sdma_txreq *tx,
622 struct sdma_txreq *tx, in sdma_txinit_ahg() argument
635 tx->desc_limit = ARRAY_SIZE(tx->descs); in sdma_txinit_ahg()
636 tx->descp = &tx->descs[0]; in sdma_txinit_ahg()
637 INIT_LIST_HEAD(&tx->list); in sdma_txinit_ahg()
638 tx->num_desc = 0; in sdma_txinit_ahg()
639 tx->flags = flags; in sdma_txinit_ahg()
640 tx->complete = cb; in sdma_txinit_ahg()
641 tx->coalesce_buf = NULL; in sdma_txinit_ahg()
642 tx->wait = NULL; in sdma_txinit_ahg()
[all …]
Duser_sdma.c316 struct user_sdma_txreq *tx = in defer_packet_queue() local
320 if (tx->busycount++ < MAX_DEFER_RETRY_COUNT) in defer_packet_queue()
348 struct user_sdma_txreq *tx = (struct user_sdma_txreq *)obj; in sdma_kmem_cache_ctor() local
350 memset(tx, 0, sizeof(*tx)); in sdma_kmem_cache_ctor()
728 struct user_sdma_txreq *tx) in compute_data_length() argument
742 (sizeof(tx->hdr) - 4)); in compute_data_length()
777 struct user_sdma_txreq *tx = NULL; in user_sdma_send_pkts() local
815 tx = kmem_cache_alloc(pq->txreq_cache, GFP_KERNEL); in user_sdma_send_pkts()
816 if (!tx) { in user_sdma_send_pkts()
820 tx->flags = 0; in user_sdma_send_pkts()
[all …]
Dsdma.c1306 static inline u8 ahg_mode(struct sdma_txreq *tx) in ahg_mode() argument
1308 return (tx->descp[0].qw[1] & SDMA_DESC1_HEADER_MODE_SMASK) in ahg_mode()
1325 struct sdma_txreq *tx) in sdma_txclean() argument
1329 if (tx->num_desc) { in sdma_txclean()
1330 u8 skip = 0, mode = ahg_mode(tx); in sdma_txclean()
1333 sdma_unmap_desc(dd, &tx->descp[0]); in sdma_txclean()
1337 for (i = 1 + skip; i < tx->num_desc; i++) in sdma_txclean()
1338 sdma_unmap_desc(dd, &tx->descp[i]); in sdma_txclean()
1339 tx->num_desc = 0; in sdma_txclean()
1341 kfree(tx->coalesce_buf); in sdma_txclean()
[all …]
Dverbs.c739 struct verbs_txreq *tx; in __get_txreq() local
742 tx = kmem_cache_alloc(dev->verbs_txreq_cache, GFP_ATOMIC); in __get_txreq()
743 if (!tx) { in __get_txreq()
757 tx = ERR_PTR(-EBUSY); in __get_txreq()
759 return tx; in __get_txreq()
765 struct verbs_txreq *tx; in get_txreq() local
767 tx = kmem_cache_alloc(dev->verbs_txreq_cache, GFP_ATOMIC); in get_txreq()
768 if (!tx) { in get_txreq()
770 tx = __get_txreq(dev, qp); in get_txreq()
771 if (IS_ERR(tx)) in get_txreq()
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c57 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_prepared_descs, "%u");
58 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_cmplt, "%u");
59 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_prepared, "%u");
60 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_prepared, "%u");
61 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_programmed, "%u");
62 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_programmed, "%u");
63 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_burst_programmed, "%u");
64 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_starts, "%u");
65 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_stop, "%u");
66 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_templates, "%u");
[all …]
/linux-4.4.14/drivers/staging/iio/meter/
Dade7854-spi.c26 .tx_buf = st->tx, in ade7854_spi_write_reg_8()
32 st->tx[0] = ADE7854_WRITE_REG; in ade7854_spi_write_reg_8()
33 st->tx[1] = (reg_address >> 8) & 0xFF; in ade7854_spi_write_reg_8()
34 st->tx[2] = reg_address & 0xFF; in ade7854_spi_write_reg_8()
35 st->tx[3] = value & 0xFF; in ade7854_spi_write_reg_8()
51 .tx_buf = st->tx, in ade7854_spi_write_reg_16()
57 st->tx[0] = ADE7854_WRITE_REG; in ade7854_spi_write_reg_16()
58 st->tx[1] = (reg_address >> 8) & 0xFF; in ade7854_spi_write_reg_16()
59 st->tx[2] = reg_address & 0xFF; in ade7854_spi_write_reg_16()
60 st->tx[3] = (value >> 8) & 0xFF; in ade7854_spi_write_reg_16()
[all …]
Dade7854-i2c.c27 st->tx[0] = (reg_address >> 8) & 0xFF; in ade7854_i2c_write_reg_8()
28 st->tx[1] = reg_address & 0xFF; in ade7854_i2c_write_reg_8()
29 st->tx[2] = value; in ade7854_i2c_write_reg_8()
31 ret = i2c_master_send(st->i2c, st->tx, 3); in ade7854_i2c_write_reg_8()
46 st->tx[0] = (reg_address >> 8) & 0xFF; in ade7854_i2c_write_reg_16()
47 st->tx[1] = reg_address & 0xFF; in ade7854_i2c_write_reg_16()
48 st->tx[2] = (value >> 8) & 0xFF; in ade7854_i2c_write_reg_16()
49 st->tx[3] = value & 0xFF; in ade7854_i2c_write_reg_16()
51 ret = i2c_master_send(st->i2c, st->tx, 4); in ade7854_i2c_write_reg_16()
66 st->tx[0] = (reg_address >> 8) & 0xFF; in ade7854_i2c_write_reg_24()
[all …]
Dade7758_core.c36 st->tx[0] = ADE7758_WRITE_REG(reg_address); in ade7758_spi_write_reg_8()
37 st->tx[1] = val; in ade7758_spi_write_reg_8()
39 ret = spi_write(st->us, st->tx, 2); in ade7758_spi_write_reg_8()
54 .tx_buf = st->tx, in ade7758_spi_write_reg_16()
61 st->tx[0] = ADE7758_WRITE_REG(reg_address); in ade7758_spi_write_reg_16()
62 st->tx[1] = (value >> 8) & 0xFF; in ade7758_spi_write_reg_16()
63 st->tx[2] = value & 0xFF; in ade7758_spi_write_reg_16()
80 .tx_buf = st->tx, in ade7758_spi_write_reg_24()
87 st->tx[0] = ADE7758_WRITE_REG(reg_address); in ade7758_spi_write_reg_24()
88 st->tx[1] = (value >> 16) & 0xFF; in ade7758_spi_write_reg_24()
[all …]
Dade7754.c35 st->tx[0] = ADE7754_WRITE_REG(reg_address); in ade7754_spi_write_reg_8()
36 st->tx[1] = val; in ade7754_spi_write_reg_8()
38 ret = spi_write(st->us, st->tx, 2); in ade7754_spi_write_reg_8()
53 st->tx[0] = ADE7754_WRITE_REG(reg_address); in ade7754_spi_write_reg_16()
54 st->tx[1] = (value >> 8) & 0xFF; in ade7754_spi_write_reg_16()
55 st->tx[2] = value & 0xFF; in ade7754_spi_write_reg_16()
56 ret = spi_write(st->us, st->tx, 3); in ade7754_spi_write_reg_16()
110 .tx_buf = st->tx, in ade7754_spi_read_reg_24()
118 st->tx[0] = ADE7754_READ_REG(reg_address); in ade7754_spi_read_reg_24()
119 st->tx[1] = 0; in ade7754_spi_read_reg_24()
[all …]
Dade7759.c35 st->tx[0] = ADE7759_WRITE_REG(reg_address); in ade7759_spi_write_reg_8()
36 st->tx[1] = val; in ade7759_spi_write_reg_8()
38 ret = spi_write(st->us, st->tx, 2); in ade7759_spi_write_reg_8()
53 st->tx[0] = ADE7759_WRITE_REG(reg_address); in ade7759_spi_write_reg_16()
54 st->tx[1] = (value >> 8) & 0xFF; in ade7759_spi_write_reg_16()
55 st->tx[2] = value & 0xFF; in ade7759_spi_write_reg_16()
56 ret = spi_write(st->us, st->tx, 3); in ade7759_spi_write_reg_16()
110 .tx_buf = st->tx, in ade7759_spi_read_reg_40()
118 st->tx[0] = ADE7759_READ_REG(reg_address); in ade7759_spi_read_reg_40()
119 memset(&st->tx[1], 0, 5); in ade7759_spi_read_reg_40()
Dade7753.c35 st->tx[0] = ADE7753_WRITE_REG(reg_address); in ade7753_spi_write_reg_8()
36 st->tx[1] = val; in ade7753_spi_write_reg_8()
38 ret = spi_write(st->us, st->tx, 2); in ade7753_spi_write_reg_8()
53 st->tx[0] = ADE7753_WRITE_REG(reg_address); in ade7753_spi_write_reg_16()
54 st->tx[1] = (value >> 8) & 0xFF; in ade7753_spi_write_reg_16()
55 st->tx[2] = value & 0xFF; in ade7753_spi_write_reg_16()
56 ret = spi_write(st->us, st->tx, 3); in ade7753_spi_write_reg_16()
110 .tx_buf = st->tx, in ade7753_spi_read_reg_24()
114 .rx_buf = st->tx, in ade7753_spi_read_reg_24()
121 st->tx[0] = ADE7753_READ_REG(reg_address); in ade7753_spi_read_reg_24()
/linux-4.4.14/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-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd_cb.c43 static void kiblnd_unmap_tx(lnet_ni_t *ni, kib_tx_t *tx);
46 kiblnd_tx_done(lnet_ni_t *ni, kib_tx_t *tx) in kiblnd_tx_done() argument
55 LASSERT(!tx->tx_queued); /* mustn't be queued for sending */ in kiblnd_tx_done()
56 LASSERT(tx->tx_sending == 0); /* mustn't be awaiting sent callback */ in kiblnd_tx_done()
57 LASSERT(!tx->tx_waiting); /* mustn't be awaiting peer response */ in kiblnd_tx_done()
58 LASSERT(tx->tx_pool != NULL); in kiblnd_tx_done()
60 kiblnd_unmap_tx(ni, tx); in kiblnd_tx_done()
63 lntmsg[0] = tx->tx_lntmsg[0]; tx->tx_lntmsg[0] = NULL; in kiblnd_tx_done()
64 lntmsg[1] = tx->tx_lntmsg[1]; tx->tx_lntmsg[1] = NULL; in kiblnd_tx_done()
65 rc = tx->tx_status; in kiblnd_tx_done()
[all …]
Do2iblnd.c1198 kib_tx_t *tx; in kiblnd_unmap_tx_pool() local
1207 tx = &tpo->tpo_tx_descs[i]; in kiblnd_unmap_tx_pool()
1209 KIBLND_UNMAP_ADDR(tx, tx_msgunmap, in kiblnd_unmap_tx_pool()
1210 tx->tx_msgaddr), in kiblnd_unmap_tx_pool()
1250 kib_tx_t *tx; in kiblnd_map_tx_pool() local
1269 tx = &tpo->tpo_tx_descs[i]; in kiblnd_map_tx_pool()
1271 tx->tx_msg = (kib_msg_t *)(((char *)page_address(page)) + in kiblnd_map_tx_pool()
1274 tx->tx_msgaddr = kiblnd_dma_map_single( in kiblnd_map_tx_pool()
1275 tpo->tpo_hdev->ibh_ibdev, tx->tx_msg, in kiblnd_map_tx_pool()
1278 tx->tx_msgaddr)); in kiblnd_map_tx_pool()
[all …]
/linux-4.4.14/drivers/staging/media/lirc/
Dlirc_zilog.c115 struct IR_tx *tx; member
276 struct IR_tx *tx; in get_ir_tx() local
279 tx = ir->tx; in get_ir_tx()
280 if (tx != NULL) in get_ir_tx()
281 kref_get(&tx->ref); in get_ir_tx()
283 return tx; in get_ir_tx()
288 struct IR_tx *tx = container_of(ref, struct IR_tx, ref); in release_ir_tx() local
289 struct IR *ir = tx->ir; in release_ir_tx()
293 ir->tx = NULL; in release_ir_tx()
294 kfree(tx); in release_ir_tx()
[all …]
Dlirc_sasem.c111 } tx; member
332 init_completion(&context->tx.finished); in send_packet()
333 atomic_set(&context->tx.busy, 1); in send_packet()
337 atomic_set(&context->tx.busy, 0); in send_packet()
343 wait_for_completion(&context->tx.finished); in send_packet()
346 retval = context->tx.status; in send_packet()
396 memcpy(context->tx.data_buf, data_buf, n_bytes); in vfd_write()
400 context->tx.data_buf[i] = ' '; in vfd_write()
420 memcpy(context->usb_tx_buf, context->tx.data_buf, 8); in vfd_write()
424 context->tx.data_buf + 8, 8); in vfd_write()
[all …]
Dlirc_imon.c108 } tx; member
339 init_completion(&context->tx.finished); in send_packet()
340 atomic_set(&context->tx.busy, 1); in send_packet()
344 atomic_set(&context->tx.busy, 0); in send_packet()
351 &context->tx.finished); in send_packet()
357 retval = context->tx.status; in send_packet()
418 memcpy(context->tx.data_buf, data_buf, n_bytes); in vfd_write()
422 context->tx.data_buf[i] = ' '; in vfd_write()
425 context->tx.data_buf[i] = 0xFF; in vfd_write()
431 memcpy(context->usb_tx_buf, context->tx.data_buf + offset, 7); in vfd_write()
[all …]
/linux-4.4.14/sound/soc/fsl/
Dfsl_sai.h39 #define FSL_SAI_xCSR(tx) (tx ? FSL_SAI_TCSR : FSL_SAI_RCSR) argument
40 #define FSL_SAI_xCR1(tx) (tx ? FSL_SAI_TCR1 : FSL_SAI_RCR1) argument
41 #define FSL_SAI_xCR2(tx) (tx ? FSL_SAI_TCR2 : FSL_SAI_RCR2) argument
42 #define FSL_SAI_xCR3(tx) (tx ? FSL_SAI_TCR3 : FSL_SAI_RCR3) argument
43 #define FSL_SAI_xCR4(tx) (tx ? FSL_SAI_TCR4 : FSL_SAI_RCR4) argument
44 #define FSL_SAI_xCR5(tx) (tx ? FSL_SAI_TCR5 : FSL_SAI_RCR5) argument
45 #define FSL_SAI_xDR(tx) (tx ? FSL_SAI_TDR : FSL_SAI_RDR) argument
46 #define FSL_SAI_xFR(tx) (tx ? FSL_SAI_TFR : FSL_SAI_RFR) argument
47 #define FSL_SAI_xMR(tx) (tx ? FSL_SAI_TMR : FSL_SAI_RMR) argument
Dfsl_esai.c122 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument
184 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_divisor_cal()
193 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_divisor_cal()
215 bool tx = clk_id <= ESAI_HCKT_EXTAL; in fsl_esai_set_dai_sysclk() local
222 if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx]) in fsl_esai_set_dai_sysclk()
226 esai_priv->sck_div[tx] = true; in fsl_esai_set_dai_sysclk()
229 regmap_update_bits(esai_priv->regmap, REG_ESAI_xCCR(tx), in fsl_esai_set_dai_sysclk()
267 tx ? 'T' : 'R'); in fsl_esai_set_dai_sysclk()
274 ecr |= tx ? ESAI_ECR_ETO : ESAI_ECR_ERO; in fsl_esai_set_dai_sysclk()
279 tx ? 'T' : 'R'); in fsl_esai_set_dai_sysclk()
[all …]
Dfsl_sai.c133 bool tx = fsl_dir == FSL_FMT_TRANSMITTER; in fsl_sai_set_dai_sysclk_tr() local
153 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx), in fsl_sai_set_dai_sysclk_tr()
186 bool tx = fsl_dir == FSL_FMT_TRANSMITTER; in fsl_sai_set_dai_fmt_tr() local
278 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx), in fsl_sai_set_dai_fmt_tr()
280 regmap_update_bits(sai->regmap, FSL_SAI_xCR4(tx), in fsl_sai_set_dai_fmt_tr()
304 static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq) in fsl_sai_set_bclk() argument
343 sai->mclk_id[tx] = id; in fsl_sai_set_bclk()
353 tx ? 'T' : 'R', freq); in fsl_sai_set_bclk()
357 if ((tx && sai->synchronous[TX]) || (!tx && !sai->synchronous[RX])) { in fsl_sai_set_bclk()
360 FSL_SAI_CR2_MSEL(sai->mclk_id[tx])); in fsl_sai_set_bclk()
[all …]
Dfsl_esai.h25 #define REG_ESAI_xFCR(tx) (tx ? REG_ESAI_TFCR : REG_ESAI_RFCR) argument
26 #define REG_ESAI_xFSR(tx) (tx ? REG_ESAI_TFSR : REG_ESAI_RFSR) argument
44 #define REG_ESAI_xCR(tx) (tx ? REG_ESAI_TCR : REG_ESAI_RCR) argument
45 #define REG_ESAI_xCCR(tx) (tx ? REG_ESAI_TCCR : REG_ESAI_RCCR) argument
50 #define REG_ESAI_xSMA(tx) (tx ? REG_ESAI_TSMA : REG_ESAI_RSMA) argument
51 #define REG_ESAI_xSMB(tx) (tx ? REG_ESAI_TSMB : REG_ESAI_RSMB) argument
Dfsl_ssi.c112 struct fsl_ssi_reg_val tx; member
379 vals->rx.sier | vals->tx.sier, in fsl_ssi_rxtx_config()
380 vals->rx.sier | vals->tx.sier); in fsl_ssi_rxtx_config()
382 vals->rx.srcr | vals->tx.srcr, in fsl_ssi_rxtx_config()
383 vals->rx.srcr | vals->tx.srcr); in fsl_ssi_rxtx_config()
385 vals->rx.stcr | vals->tx.stcr, in fsl_ssi_rxtx_config()
386 vals->rx.stcr | vals->tx.stcr); in fsl_ssi_rxtx_config()
389 vals->rx.srcr | vals->tx.srcr, 0); in fsl_ssi_rxtx_config()
391 vals->rx.stcr | vals->tx.stcr, 0); in fsl_ssi_rxtx_config()
393 vals->rx.sier | vals->tx.sier, 0); in fsl_ssi_rxtx_config()
[all …]
/linux-4.4.14/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 …]
Dspi-omap2-mcspi.c424 struct dma_async_tx_descriptor *tx; in omap2_mcspi_tx_dma() local
433 tx = dmaengine_prep_slave_sg(mcspi_dma->dma_tx, &sg, 1, in omap2_mcspi_tx_dma()
435 if (tx) { in omap2_mcspi_tx_dma()
436 tx->callback = omap2_mcspi_tx_callback; in omap2_mcspi_tx_dma()
437 tx->callback_param = spi; in omap2_mcspi_tx_dma()
438 dmaengine_submit(tx); in omap2_mcspi_tx_dma()
479 struct dma_async_tx_descriptor *tx; in omap2_mcspi_rx_dma() local
491 tx = dmaengine_prep_slave_sg(mcspi_dma->dma_rx, &sg, 1, in omap2_mcspi_rx_dma()
494 if (tx) { in omap2_mcspi_rx_dma()
495 tx->callback = omap2_mcspi_rx_callback; in omap2_mcspi_rx_dma()
[all …]
Dspi-bfin5xx.c87 void *tx; member
232 while (drv_data->tx < drv_data->tx_end) { in bfin_spi_u8_writer()
233 bfin_write(&drv_data->regs->tdbr, (*(u8 *) (drv_data->tx++))); in bfin_spi_u8_writer()
264 bfin_write(&drv_data->regs->tdbr, (*(u8 *) (drv_data->tx++))); in bfin_spi_u8_duplex()
282 while (drv_data->tx < drv_data->tx_end) { in bfin_spi_u16_writer()
283 bfin_write(&drv_data->regs->tdbr, (*(u16 *) (drv_data->tx))); in bfin_spi_u16_writer()
284 drv_data->tx += 2; in bfin_spi_u16_writer()
316 bfin_write(&drv_data->regs->tdbr, (*(u16 *) (drv_data->tx))); in bfin_spi_u16_duplex()
317 drv_data->tx += 2; in bfin_spi_u16_duplex()
391 if ((drv_data->tx && drv_data->tx >= drv_data->tx_end) || in bfin_spi_pio_irq_handler()
[all …]
Dspi-fsl-lib.c46 const type *tx = mpc8xxx_spi->tx; \
47 if (!tx) \
49 data = *tx++ << mpc8xxx_spi->tx_shift; \
50 mpc8xxx_spi->tx = tx; \
Dspi-bitbang.c71 const u8 *tx = t->tx_buf; in bitbang_txrx_8() local
77 if (tx) in bitbang_txrx_8()
78 word = *tx++; in bitbang_txrx_8()
97 const u16 *tx = t->tx_buf; in bitbang_txrx_16() local
103 if (tx) in bitbang_txrx_16()
104 word = *tx++; in bitbang_txrx_16()
123 const u32 *tx = t->tx_buf; in bitbang_txrx_32() local
129 if (tx) in bitbang_txrx_32()
130 word = *tx++; in bitbang_txrx_32()
Dspi-adi-v3.c72 void *tx; member
238 while (drv_data->tx < drv_data->tx_end) { in adi_spi_u8_write()
239 iowrite32(*(u8 *)(drv_data->tx++), &drv_data->regs->tfifo); in adi_spi_u8_write()
263 iowrite32(*(u8 *)(drv_data->tx++), &drv_data->regs->tfifo); in adi_spi_u8_duplex()
279 while (drv_data->tx < drv_data->tx_end) { in adi_spi_u16_write()
280 iowrite32(*(u16 *)drv_data->tx, &drv_data->regs->tfifo); in adi_spi_u16_write()
281 drv_data->tx += 2; in adi_spi_u16_write()
306 iowrite32(*(u16 *)drv_data->tx, &drv_data->regs->tfifo); in adi_spi_u16_duplex()
307 drv_data->tx += 2; in adi_spi_u16_duplex()
324 while (drv_data->tx < drv_data->tx_end) { in adi_spi_u32_write()
[all …]
Dspi-omap-100k.c200 const u8 *tx; in omap1_spi100k_txrx_pio() local
203 tx = xfer->tx_buf; in omap1_spi100k_txrx_pio()
207 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
213 const u16 *tx; in omap1_spi100k_txrx_pio() local
216 tx = xfer->tx_buf; in omap1_spi100k_txrx_pio()
220 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
226 const u32 *tx; in omap1_spi100k_txrx_pio() local
229 tx = xfer->tx_buf; in omap1_spi100k_txrx_pio()
233 spi100k_write_data(spi->master, word_len, *tx); in omap1_spi100k_txrx_pio()
Dspi-altera.c60 const unsigned char *tx; member
107 if (hw->tx) { in hw_txbyte()
110 return hw->tx[count]; in hw_txbyte()
112 return (hw->tx[count * 2] in hw_txbyte()
113 | (hw->tx[count * 2 + 1] << 8)); in hw_txbyte()
123 hw->tx = t->tx_buf; in altera_spi_txrx()
Dspi-rockchip.c186 const void *tx; member
251 tx_left = (rs->tx_end - rs->tx) / rs->n_bytes; in tx_max()
355 txw = *(u8 *)(rs->tx); in rockchip_spi_pio_writer()
357 txw = *(u16 *)(rs->tx); in rockchip_spi_pio_writer()
360 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer()
384 if (rs->tx) { in rockchip_spi_pio_transfer()
385 remain = rs->tx_end - rs->tx; in rockchip_spi_pio_transfer()
398 if (rs->tx) in rockchip_spi_pio_transfer()
470 if (rs->tx) { in rockchip_spi_prepare_dma()
519 if (rs->tx) in rockchip_spi_config()
[all …]
Dspi-sirf.c261 const void *tx; member
331 const u8 *tx = sspi->tx; in spi_sirfsoc_tx_word_u8() local
333 if (tx) { in spi_sirfsoc_tx_word_u8()
334 data = *tx++; in spi_sirfsoc_tx_word_u8()
335 sspi->tx = tx; in spi_sirfsoc_tx_word_u8()
359 const u16 *tx = sspi->tx; in spi_sirfsoc_tx_word_u16() local
361 if (tx) { in spi_sirfsoc_tx_word_u16()
362 data = *tx++; in spi_sirfsoc_tx_word_u16()
363 sspi->tx = tx; in spi_sirfsoc_tx_word_u16()
389 const u32 *tx = sspi->tx; in spi_sirfsoc_tx_word_u32() local
[all …]
Dspi-davinci.c126 const void *tx; member
170 if (dspi->tx) { in davinci_spi_tx_buf_u8()
171 const u8 *tx = dspi->tx; in davinci_spi_tx_buf_u8() local
173 data = *tx++; in davinci_spi_tx_buf_u8()
174 dspi->tx = tx; in davinci_spi_tx_buf_u8()
183 if (dspi->tx) { in davinci_spi_tx_buf_u16()
184 const u16 *tx = dspi->tx; in davinci_spi_tx_buf_u16() local
186 data = *tx++; in davinci_spi_tx_buf_u16()
187 dspi->tx = tx; in davinci_spi_tx_buf_u16()
601 dspi->tx = t->tx_buf; in davinci_spi_bufs()
/linux-4.4.14/net/mac80211/
Dtx.c50 static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, in ieee80211_duration() argument
56 struct ieee80211_local *local = tx->local; in ieee80211_duration()
64 chanctx_conf = rcu_dereference(tx->sdata->vif.chanctx_conf); in ieee80211_duration()
72 if (tx->rate.flags & (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)) in ieee80211_duration()
76 if (WARN_ON_ONCE(tx->rate.idx < 0)) in ieee80211_duration()
80 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration()
149 if (tx->sdata->vif.bss_conf.basic_rates & BIT(i)) in ieee80211_duration()
155 if (tx->sdata->flags & IEEE80211_SDATA_OPERATING_GMODE) in ieee80211_duration()
189 tx->sdata->vif.bss_conf.use_short_preamble, in ieee80211_duration()
199 tx->sdata->vif.bss_conf.use_short_preamble, in ieee80211_duration()
[all …]
Dwpa.h17 ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx);
22 ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx);
27 ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx,
34 ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx);
36 ieee80211_crypto_aes_cmac_256_encrypt(struct ieee80211_tx_data *tx);
42 ieee80211_crypto_aes_gmac_encrypt(struct ieee80211_tx_data *tx);
46 ieee80211_crypto_hw_encrypt(struct ieee80211_tx_data *tx);
51 ieee80211_crypto_gcmp_encrypt(struct ieee80211_tx_data *tx);
Dwpa.c30 ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx) in ieee80211_tx_h_michael_mic_add() argument
36 struct sk_buff *skb = tx->skb; in ieee80211_tx_h_michael_mic_add()
41 if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_tx_h_michael_mic_add()
59 tx->local->ops->set_frag_threshold) && in ieee80211_tx_h_michael_mic_add()
60 !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) { in ieee80211_tx_h_michael_mic_add()
76 key = &tx->key->conf.key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]; in ieee80211_tx_h_michael_mic_add()
187 static int tkip_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) in tkip_encrypt_skb() argument
190 struct ieee80211_key *key = tx->key; in tkip_encrypt_skb()
226 key->u.tkip.tx.iv16++; in tkip_encrypt_skb()
227 if (key->u.tkip.tx.iv16 == 0) in tkip_encrypt_skb()
[all …]
Dwep.c303 static int wep_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) in wep_encrypt_skb() argument
309 if (ieee80211_wep_encrypt(tx->local, skb, tx->key->conf.key, in wep_encrypt_skb()
310 tx->key->conf.keylen, in wep_encrypt_skb()
311 tx->key->conf.keyidx)) in wep_encrypt_skb()
315 if (!ieee80211_wep_add_iv(tx->local, skb, in wep_encrypt_skb()
316 tx->key->conf.keylen, in wep_encrypt_skb()
317 tx->key->conf.keyidx)) in wep_encrypt_skb()
325 ieee80211_crypto_wep_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_wep_encrypt() argument
329 ieee80211_tx_set_protected(tx); in ieee80211_crypto_wep_encrypt()
331 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_wep_encrypt()
[all …]
/linux-4.4.14/drivers/staging/gdm724x/
Dgdm_usb.c158 static struct usb_tx_sdu *get_tx_sdu_struct(struct tx_cxt *tx, int *no_spc) in get_tx_sdu_struct() argument
162 if (list_empty(&tx->free_list)) in get_tx_sdu_struct()
165 t_sdu = list_entry(tx->free_list.next, struct usb_tx_sdu, list); in get_tx_sdu_struct()
168 tx->avail_count--; in get_tx_sdu_struct()
170 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct()
175 static void put_tx_struct(struct tx_cxt *tx, struct usb_tx_sdu *t_sdu) in put_tx_struct() argument
177 list_add_tail(&t_sdu->list, &tx->free_list); in put_tx_struct()
178 tx->avail_count++; in put_tx_struct()
260 struct tx_cxt *tx = &udev->tx; in release_usb() local
266 spin_lock_irqsave(&tx->lock, flags); in release_usb()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/display/msm/
Dhdmi.txt5 * "qcom,hdmi-tx-8996"
6 * "qcom,hdmi-tx-8994"
7 * "qcom,hdmi-tx-8084"
8 * "qcom,hdmi-tx-8974"
9 * "qcom,hdmi-tx-8660"
10 * "qcom,hdmi-tx-8960"
16 - qcom,hdmi-tx-ddc-clk-gpio: ddc clk pin
17 - qcom,hdmi-tx-ddc-data-gpio: ddc data pin
18 - qcom,hdmi-tx-hpd-gpio: hpd pin
23 - qcom,hdmi-tx-mux-en-gpio: hdmi mux enable pin
[all …]
/linux-4.4.14/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-4.4.14/drivers/i2c/busses/
Di2c-dln2.c60 } tx; in dln2_i2c_enable() local
62 tx.port = dln2->port; in dln2_i2c_enable()
69 return dln2_transfer_tx(dln2->pdev, cmd, &tx, sizeof(tx)); in dln2_i2c_enable()
83 } __packed *tx = dln2->buf; in dln2_i2c_write() local
86 BUILD_BUG_ON(sizeof(*tx) > DLN2_I2C_BUF_SIZE); in dln2_i2c_write()
88 tx->port = dln2->port; in dln2_i2c_write()
89 tx->addr = addr; in dln2_i2c_write()
90 tx->mem_addr_len = 0; in dln2_i2c_write()
91 tx->mem_addr = 0; in dln2_i2c_write()
92 tx->buf_len = cpu_to_le16(data_len); in dln2_i2c_write()
[all …]
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
Dnorm_desc.c35 if (unlikely(p->des01.tx.error_summary)) { in ndesc_get_tx_status()
36 if (unlikely(p->des01.tx.underflow_error)) { in ndesc_get_tx_status()
40 if (unlikely(p->des01.tx.no_carrier)) { in ndesc_get_tx_status()
44 if (unlikely(p->des01.tx.loss_carrier)) { in ndesc_get_tx_status()
48 if (unlikely((p->des01.tx.excessive_deferral) || in ndesc_get_tx_status()
49 (p->des01.tx.excessive_collisions) || in ndesc_get_tx_status()
50 (p->des01.tx.late_collision))) in ndesc_get_tx_status()
51 stats->collisions += p->des01.tx.collision_count; in ndesc_get_tx_status()
58 if (unlikely(p->des01.tx.deferred)) in ndesc_get_tx_status()
66 return p->des01.tx.buffer1_size; in ndesc_get_tx_len()
[all …]
Ddescs_com.h74 p->des01.tx.end_ring = 1; in ndesc_tx_set_on_ring()
79 p->des01.tx.end_ring = ter; in ndesc_end_tx_desc_on_ring()
88 p->des01.tx.buffer1_size = len; in norm_set_tx_desc_len_on_ring()
122 p->des01.tx.second_address_chained = 1; in ndesc_tx_set_on_chain()
127 p->des01.tx.second_address_chained = 1; in ndesc_end_tx_desc_on_chain()
132 p->des01.tx.buffer1_size = len; in norm_set_tx_desc_len_on_chain()
/linux-4.4.14/drivers/iio/imu/
Dadis.c38 .tx_buf = adis->tx, in adis_write_reg()
44 .tx_buf = adis->tx + 2, in adis_write_reg()
50 .tx_buf = adis->tx + 4, in adis_write_reg()
56 .tx_buf = adis->tx + 6, in adis_write_reg()
61 .tx_buf = adis->tx + 8, in adis_write_reg()
73 adis->tx[0] = ADIS_WRITE_REG(ADIS_REG_PAGE_ID); in adis_write_reg()
74 adis->tx[1] = page; in adis_write_reg()
80 adis->tx[8] = ADIS_WRITE_REG(reg + 3); in adis_write_reg()
81 adis->tx[9] = (value >> 24) & 0xff; in adis_write_reg()
82 adis->tx[6] = ADIS_WRITE_REG(reg + 2); in adis_write_reg()
[all …]
Dadis_buffer.c30 __be16 *tx, *rx; in adis_update_scan_mode() local
46 tx = rx + scan_count; in adis_update_scan_mode()
57 adis->xfer[j].tx_buf = &tx[j]; in adis_update_scan_mode()
68 *tx++ = cpu_to_be16((chan->address + 2) << 8); in adis_update_scan_mode()
69 *tx++ = cpu_to_be16(chan->address << 8); in adis_update_scan_mode()
89 adis->tx[0] = ADIS_WRITE_REG(ADIS_REG_PAGE_ID); in adis_trigger_handler()
90 adis->tx[1] = 0; in adis_trigger_handler()
91 spi_write(adis->spi, adis->tx, 2); in adis_trigger_handler()
Dadis16400_buffer.c22 u8 *tx; in adis16400_update_scan_mode() local
43 tx = adis->buffer + burst_length; in adis16400_update_scan_mode()
44 tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD); in adis16400_update_scan_mode()
45 tx[1] = 0; in adis16400_update_scan_mode()
47 adis->xfer[0].tx_buf = tx; in adis16400_update_scan_mode()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c2766 #define call_tx_stop_cbfn(tx) \ argument
2768 if ((tx)->stop_cbfn) { \
2771 cbfn = (tx)->stop_cbfn; \
2772 cbarg = (tx)->stop_cbarg; \
2773 (tx)->stop_cbfn = NULL; \
2774 (tx)->stop_cbarg = NULL; \
2775 cbfn(cbarg, (tx)); \
2779 static void bna_tx_mod_cb_tx_stopped(void *tx_mod, struct bna_tx *tx);
2780 static void bna_bfi_tx_enet_start(struct bna_tx *tx);
2781 static void bna_tx_enet_stop(struct bna_tx *tx);
[all …]
/linux-4.4.14/drivers/usb/musb/
Dcppi_dma.c96 static void cppi_reset_tx(struct cppi_tx_stateram __iomem *tx, u32 ptr) in cppi_reset_tx() argument
98 musb_writel(&tx->tx_head, 0, 0); in cppi_reset_tx()
99 musb_writel(&tx->tx_buf, 0, 0); in cppi_reset_tx()
100 musb_writel(&tx->tx_current, 0, 0); in cppi_reset_tx()
101 musb_writel(&tx->tx_buf_current, 0, 0); in cppi_reset_tx()
102 musb_writel(&tx->tx_info, 0, 0); in cppi_reset_tx()
103 musb_writel(&tx->tx_rem_len, 0, 0); in cppi_reset_tx()
105 musb_writel(&tx->tx_complete, 0, ptr); in cppi_reset_tx()
159 for (i = 0; i < ARRAY_SIZE(controller->tx); i++) { in cppi_controller_start()
160 controller->tx[i].transmit = true; in cppi_controller_start()
[all …]
Dtusb6010_omap.c39 u8 tx; member
81 if (chdat->tx) in tusb_omap_use_shared_dmareq()
131 chdat->epnum, chdat->tx ? "tx" : "rx", in tusb_omap_dma_cb()
134 if (chdat->tx) in tusb_omap_dma_cb()
144 chdat->tx ? "tx" : "rx", chdat->ch, in tusb_omap_dma_cb()
160 if (chdat->tx) { in tusb_omap_dma_cb()
184 if (!chdat->tx) in tusb_omap_dma_cb()
185 musb_dma_completion(musb, chdat->epnum, chdat->tx); in tusb_omap_dma_cb()
195 if (chdat->tx) { in tusb_omap_dma_cb()
244 if (chdat->tx) in tusb_omap_dma_program()
[all …]
/linux-4.4.14/drivers/dma/
Dvirt-dma.c17 static struct virt_dma_desc *to_virt_desc(struct dma_async_tx_descriptor *tx) in to_virt_desc() argument
19 return container_of(tx, struct virt_dma_desc, tx); in to_virt_desc()
22 dma_cookie_t vchan_tx_submit(struct dma_async_tx_descriptor *tx) in vchan_tx_submit() argument
24 struct virt_dma_chan *vc = to_virt_chan(tx->chan); in vchan_tx_submit()
25 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_submit()
30 cookie = dma_cookie_assign(tx); in vchan_tx_submit()
48 if (vd->tx.cookie == cookie) in vchan_find_desc()
72 cb = vd->tx.callback; in vchan_complete()
73 cb_data = vd->tx.callback_param; in vchan_complete()
82 cb = vd->tx.callback; in vchan_complete()
[all …]
Ddmaengine.h28 static inline dma_cookie_t dma_cookie_assign(struct dma_async_tx_descriptor *tx) in dma_cookie_assign() argument
30 struct dma_chan *chan = tx->chan; in dma_cookie_assign()
36 tx->cookie = chan->cookie = cookie; in dma_cookie_assign()
51 static inline void dma_cookie_complete(struct dma_async_tx_descriptor *tx) in dma_cookie_complete() argument
53 BUG_ON(tx->cookie < DMA_MIN_COOKIE); in dma_cookie_complete()
54 tx->chan->completed_cookie = tx->cookie; in dma_cookie_complete()
55 tx->cookie = 0; in dma_cookie_complete()
Dvirt-dma.h19 struct dma_async_tx_descriptor tx; member
59 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep()
60 vd->tx.flags = tx_flags; in vchan_tx_prep()
61 vd->tx.tx_submit = vchan_tx_submit; in vchan_tx_prep()
63 return &vd->tx; in vchan_tx_prep()
86 struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); in vchan_cookie_complete()
89 cookie = vd->tx.cookie; in vchan_cookie_complete()
90 dma_cookie_complete(&vd->tx); in vchan_cookie_complete()
104 struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); in vchan_cyclic_callback()
Dxgene-dma.c200 #define to_dma_desc_sw(tx) \ argument
201 container_of(tx, struct xgene_dma_desc_sw, tx)
253 struct dma_async_tx_descriptor tx; member
513 static dma_cookie_t xgene_dma_tx_submit(struct dma_async_tx_descriptor *tx) in xgene_dma_tx_submit() argument
519 if (unlikely(!tx)) in xgene_dma_tx_submit()
522 chan = to_dma_chan(tx->chan); in xgene_dma_tx_submit()
523 desc = to_dma_desc_sw(tx); in xgene_dma_tx_submit()
527 cookie = dma_cookie_assign(tx); in xgene_dma_tx_submit()
542 dma_pool_free(chan->desc_pool, desc, desc->tx.phys); in xgene_dma_clean_descriptor()
558 desc->tx.phys = phys; in xgene_dma_alloc_descriptor()
[all …]
Dmic_x100_dma.c91 struct dma_async_tx_descriptor *tx; in mic_dma_cleanup() local
104 tx = &ch->tx_array[last_tail]; in mic_dma_cleanup()
105 if (tx->cookie) { in mic_dma_cleanup()
106 dma_cookie_complete(tx); in mic_dma_cleanup()
107 if (tx->callback) { in mic_dma_cleanup()
108 tx->callback(tx->callback_param); in mic_dma_cleanup()
109 tx->callback = NULL; in mic_dma_cleanup()
251 static dma_cookie_t mic_dma_tx_submit_unlock(struct dma_async_tx_descriptor *tx) in mic_dma_tx_submit_unlock() argument
253 struct mic_dma_chan *mic_ch = to_mic_dma_chan(tx->chan); in mic_dma_tx_submit_unlock()
256 dma_cookie_assign(tx); in mic_dma_tx_submit_unlock()
[all …]
Diop-adma.c40 #define tx_to_iop_adma_slot(tx) \ argument
41 container_of(tx, struct iop_adma_desc_slot, async_tx)
64 struct dma_async_tx_descriptor *tx = &desc->async_tx; in iop_adma_run_tx_complete_actions() local
66 BUG_ON(tx->cookie < 0); in iop_adma_run_tx_complete_actions()
67 if (tx->cookie > 0) { in iop_adma_run_tx_complete_actions()
68 cookie = tx->cookie; in iop_adma_run_tx_complete_actions()
69 tx->cookie = 0; in iop_adma_run_tx_complete_actions()
74 if (tx->callback) in iop_adma_run_tx_complete_actions()
75 tx->callback(tx->callback_param); in iop_adma_run_tx_complete_actions()
77 dma_descriptor_unmap(tx); in iop_adma_run_tx_complete_actions()
[all …]
/linux-4.4.14/drivers/atm/
Deni.c188 if (eni_dev->tx[i].send) in dump()
190 eni_dev->tx[i].send,eni_dev->tx[i].words*4); in dump()
1036 struct eni_tx *tx; in do_tx() local
1050 tx = eni_vcc->tx; in do_tx()
1051 NULLCHECK(tx); in do_tx()
1090 if (!NEPMOK(tx->tx_pos,size+TX_GAP, in do_tx()
1091 eni_in(MID_TX_RDPTR(tx->index)),tx->words)) { in do_tx()
1108 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()
1121 MID_DMA_COUNT_SHIFT) | (tx->index << MID_DMA_CHAN_SHIFT) | in do_tx()
[all …]
Dlanai.c245 } tx; member
723 dma_addr_t dmaaddr = lvcc->tx.buf.dmaaddr; in host_vcc_start_tx()
731 (lvcc->tx.atmvcc->qos.txtp.traffic_class == ATM_CBR) ? in host_vcc_start_tx()
736 TXADDR1_SET_SIZE(lanai_buf_size_cardorder(&lvcc->tx.buf)), in host_vcc_start_tx()
777 while ((skb = skb_dequeue(&lvcc->tx.backlog)) != NULL) in lanai_shutdown_tx_vci()
778 lanai_free_skb(lvcc->tx.atmvcc, skb); in lanai_shutdown_tx_vci()
788 (((lanai_buf_size(&lvcc->tx.buf) / 1024) * HZ) >> 7); in lanai_shutdown_tx_vci()
793 (lvcc->tx.atmvcc->qos.txtp.traffic_class != ATM_CBR || in lanai_shutdown_tx_vci()
804 lvcc->tx.atmvcc->dev->number, lvcc->vci); in lanai_shutdown_tx_vci()
1142 r -= ((unsigned long) lvcc->tx.buf.ptr) - in vcc_tx_space()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dhtc_drv_txrx.c58 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_check_stop_queues()
59 priv->tx.queued_cnt++; in ath9k_htc_check_stop_queues()
60 if ((priv->tx.queued_cnt >= ATH9K_HTC_TX_THRESHOLD) && in ath9k_htc_check_stop_queues()
61 !(priv->tx.flags & ATH9K_HTC_OP_TX_QUEUES_STOP)) { in ath9k_htc_check_stop_queues()
62 priv->tx.flags |= ATH9K_HTC_OP_TX_QUEUES_STOP; in ath9k_htc_check_stop_queues()
65 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_check_stop_queues()
70 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_check_wake_queues()
71 if ((priv->tx.queued_cnt < ATH9K_HTC_TX_THRESHOLD) && in ath9k_htc_check_wake_queues()
72 (priv->tx.flags & ATH9K_HTC_OP_TX_QUEUES_STOP)) { in ath9k_htc_check_wake_queues()
73 priv->tx.flags &= ~ATH9K_HTC_OP_TX_QUEUES_STOP; in ath9k_htc_check_wake_queues()
[all …]
Dhif_usb.c157 spin_lock(&hif_dev->tx.tx_lock); in hif_usb_mgmt_cb()
158 if (hif_dev->tx.flags & HIF_USB_TX_FLUSH) { in hif_usb_mgmt_cb()
159 spin_unlock(&hif_dev->tx.tx_lock); in hif_usb_mgmt_cb()
164 spin_unlock(&hif_dev->tx.tx_lock); in hif_usb_mgmt_cb()
274 spin_lock(&hif_dev->tx.tx_lock); in hif_usb_tx_cb()
275 if (hif_dev->tx.flags & HIF_USB_TX_FLUSH) { in hif_usb_tx_cb()
276 spin_unlock(&hif_dev->tx.tx_lock); in hif_usb_tx_cb()
280 spin_unlock(&hif_dev->tx.tx_lock); in hif_usb_tx_cb()
295 spin_lock(&hif_dev->tx.tx_lock); in hif_usb_tx_cb()
296 list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf); in hif_usb_tx_cb()
[all …]
Dmac.h301 } tx; member
319 #define ds_ctl2 u.tx.ctl2
320 #define ds_ctl3 u.tx.ctl3
321 #define ds_ctl4 u.tx.ctl4
322 #define ds_ctl5 u.tx.ctl5
323 #define ds_ctl6 u.tx.ctl6
324 #define ds_ctl7 u.tx.ctl7
325 #define ds_ctl8 u.tx.ctl8
326 #define ds_ctl9 u.tx.ctl9
327 #define ds_ctl10 u.tx.ctl10
[all …]
Dhtc_drv_debug.c296 spin_lock_bh(&priv->tx.tx_lock); in read_file_slot()
300 MAX_TX_BUF_NUM, priv->tx.tx_slot, in read_file_slot()
301 bitmap_weight(priv->tx.tx_slot, MAX_TX_BUF_NUM)); in read_file_slot()
302 spin_unlock_bh(&priv->tx.tx_lock); in read_file_slot()
321 "Mgmt endpoint", skb_queue_len(&priv->tx.mgmt_ep_queue)); in read_file_queue()
324 "Cab endpoint", skb_queue_len(&priv->tx.cab_ep_queue)); in read_file_queue()
327 "Data BE endpoint", skb_queue_len(&priv->tx.data_be_queue)); in read_file_queue()
330 "Data BK endpoint", skb_queue_len(&priv->tx.data_bk_queue)); in read_file_queue()
333 "Data VI endpoint", skb_queue_len(&priv->tx.data_vi_queue)); in read_file_queue()
336 "Data VO endpoint", skb_queue_len(&priv->tx.data_vo_queue)); in read_file_queue()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Drenesas,rsnd.txt47 - dma-names : SSI case "rx" (=playback), "tx" (=capture)
52 - dma-names : "rx" (=playback), "tx" (=capture)
56 - dma-names : "tx" (=playback/capture)
98 dma-names = "tx";
102 dma-names = "tx";
126 dma-names = "rx", "tx";
131 dma-names = "rx", "tx";
136 dma-names = "rx", "tx";
141 dma-names = "rx", "tx";
146 dma-names = "rx", "tx";
[all …]
Dzte,zx-spdif.txt7 - clock-names: "tx" for the clock to the SPDIF interface.
10 - dma-names : Must be "tx"
23 clock-names = "tx";
26 dma-names = "tx";
Dadi,axi-spdif-tx.txt4 - compatible : Must be "adi,axi-spdif-tx-1.00.a"
13 - dma-names : Must be "tx"
24 compatible = "adi,axi-spdif-tx-1.00.a";
29 dma-names = "tx";
Dzte,zx-i2s.txt7 - clock-names: "tx" for the clock to the I2S interface.
10 - dma-names : Must be "tx" and "rx"
24 clock-names = "tx";
27 dma-names = "tx", "rx";
Dtdm-slot.txt8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional
14 dai-tdm-slot-tx-mask = <0 1>;
20 tx and rx masks.
22 For snd_soc_of_xlate_tdm_slot_mask(), the tx and rx masks will use a 1 bit
Ddavinci-mcasp-audio.txt26 identifiers must be "rx" and "tx".
31 - tx-num-evt : FIFO levels.
36 - interrupt-names : Known interrupt names are "tx" and "rx"
50 interrupt-names = "tx", "rx";
58 tx-num-evt = <1>;
Dsun4i-codec.txt8 - dmas: DMA channels for tx and rx dma. See the DMA client binding,
10 - dma-names: should include "tx" and "rx".
26 dma-names = "rx", "tx";
Dmxs-saif.txt10 - dma-names: Must be "rx-tx".
31 dma-names = "rx-tx";
39 dma-names = "rx-tx";
Drockchip-spdif.txt15 - dmas: DMA specifiers for tx dma. See the DMA client binding,
17 - dma-names: should be "tx"
35 dma-names = "tx";
Drockchip-i2s.txt15 - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
17 - dma-names: should include "tx" and "rx".
31 dma-names = "tx", "rx";
/linux-4.4.14/drivers/media/radio/wl128x/
Dfmdrv_tx.c238 struct fmtx_data *tx = &fmdev->tx_data; in set_audio_io() local
243 payload = tx->audio_io; in set_audio_io()
256 struct fmtx_data *tx = &fmdev->tx_data; in enable_xmit() local
286 tx->xmit_state = new_xmit_state; in enable_xmit()
295 struct fmtx_data *tx = &fmdev->tx_data; in fm_tx_set_pwr_lvl() local
304 tx->pwr_lvl = new_pwr_lvl; in fm_tx_set_pwr_lvl()
322 tx->pwr_lvl = new_pwr_lvl; in fm_tx_set_pwr_lvl()
333 struct fmtx_data *tx = &fmdev->tx_data; in fm_tx_set_preemph_filter() local
357 tx->preemph = payload; in fm_tx_set_preemph_filter()
385 struct fmtx_data *tx = &fmdev->tx_data; in fm_tx_set_freq() local
[all …]
/linux-4.4.14/drivers/iio/accel/
Dkxsd9.c57 u8 tx[KXSD9_STATE_TX_SIZE]; member
86 st->tx[0] = KXSD9_WRITE(KXSD9_REG_CTRL_C); in kxsd9_write_scale()
87 st->tx[1] = (ret & ~KXSD9_FS_MASK) | i; in kxsd9_write_scale()
89 ret = spi_write(st->us, st->tx, 2); in kxsd9_write_scale()
104 .tx_buf = st->tx, in kxsd9_read()
113 st->tx[0] = KXSD9_READ(address); in kxsd9_read()
204 st->tx[0] = 0x0d; in kxsd9_power_up()
205 st->tx[1] = 0x40; in kxsd9_power_up()
206 ret = spi_write(st->us, st->tx, 2); in kxsd9_power_up()
210 st->tx[0] = 0x0c; in kxsd9_power_up()
[all …]
/linux-4.4.14/drivers/net/wireless/zd1211rw/
Dzd_usb.c894 struct zd_usb_tx *tx = &usb->tx; in zd_usb_disable_tx() local
897 atomic_set(&tx->enabled, 0); in zd_usb_disable_tx()
900 usb_kill_anchored_urbs(&tx->submitted); in zd_usb_disable_tx()
902 spin_lock_irqsave(&tx->lock, flags); in zd_usb_disable_tx()
903 WARN_ON(!skb_queue_empty(&tx->submitted_skbs)); in zd_usb_disable_tx()
904 WARN_ON(tx->submitted_urbs != 0); in zd_usb_disable_tx()
905 tx->submitted_urbs = 0; in zd_usb_disable_tx()
906 spin_unlock_irqrestore(&tx->lock, flags); in zd_usb_disable_tx()
923 struct zd_usb_tx *tx = &usb->tx; in zd_usb_enable_tx() local
925 spin_lock_irqsave(&tx->lock, flags); in zd_usb_enable_tx()
[all …]
/linux-4.4.14/include/linux/
Ddmaengine.h476 dma_cookie_t (*tx_submit)(struct dma_async_tx_descriptor *tx);
477 int (*desc_free)(struct dma_async_tx_descriptor *tx);
489 static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, in dma_set_unmap() argument
493 tx->unmap = unmap; in dma_set_unmap()
500 static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, in dma_set_unmap() argument
514 static inline void dma_descriptor_unmap(struct dma_async_tx_descriptor *tx) in dma_descriptor_unmap() argument
516 if (tx->unmap) { in dma_descriptor_unmap()
517 dmaengine_unmap_put(tx->unmap); in dma_descriptor_unmap()
518 tx->unmap = NULL; in dma_descriptor_unmap()
1019 void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx,
[all …]
Dasync_tx.h101 static inline void async_tx_issue_pending(struct dma_async_tx_descriptor *tx) in async_tx_issue_pending() argument
103 if (likely(tx)) { in async_tx_issue_pending()
104 struct dma_chan *chan = tx->chan; in async_tx_issue_pending()
125 static inline void async_tx_issue_pending(struct dma_async_tx_descriptor *tx) in async_tx_issue_pending() argument
160 struct dma_async_tx_descriptor *tx, in init_async_submit() argument
165 args->depend_tx = tx; in init_async_submit()
171 void async_tx_submit(struct dma_chan *chan, struct dma_async_tx_descriptor *tx,
207 void async_tx_quiesce(struct dma_async_tx_descriptor **tx);
/linux-4.4.14/drivers/mfd/
Dipaq-micro.c36 struct ipaq_micro_txdev *tx = &micro->tx; in ipaq_micro_trigger_tx() local
43 tx->buf[bp++] = CHAR_SOF; in ipaq_micro_trigger_tx()
46 tx->buf[bp++] = checksum; in ipaq_micro_trigger_tx()
49 tx->buf[bp++] = msg->tx_data[i]; in ipaq_micro_trigger_tx()
53 tx->buf[bp++] = checksum; in ipaq_micro_trigger_tx()
54 tx->len = bp; in ipaq_micro_trigger_tx()
55 tx->index = 0; in ipaq_micro_trigger_tx()
57 tx->buf, tx->len, true); in ipaq_micro_trigger_tx()
291 struct ipaq_micro_txdev *tx = &micro->tx; in micro_tx_chars() local
294 while ((tx->index < tx->len) && in micro_tx_chars()
[all …]
/linux-4.4.14/drivers/rtc/
Drtc-mcp795.c46 u8 tx[2]; in mcp795_rtcc_read() local
48 tx[0] = MCP795_READ; in mcp795_rtcc_read()
49 tx[1] = addr; in mcp795_rtcc_read()
50 ret = spi_write_then_read(spi, tx, sizeof(tx), buf, count); in mcp795_rtcc_read()
63 u8 tx[2 + count]; in mcp795_rtcc_write() local
65 tx[0] = MCP795_WRITE; in mcp795_rtcc_write()
66 tx[1] = addr; in mcp795_rtcc_write()
67 memcpy(&tx[2], data, count); in mcp795_rtcc_write()
69 ret = spi_write(spi, tx, 2 + count); in mcp795_rtcc_write()
/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_80211_tx.c388 struct hostap_tx_data tx; in hostap_master_start_xmit() local
397 tx.skb = skb; in hostap_master_start_xmit()
398 tx.sta_ptr = NULL; in hostap_master_start_xmit()
413 tx.crypt = local->crypt_info.crypt[local->crypt_info.tx_keyidx]; in hostap_master_start_xmit()
414 tx.host_encrypt = 1; in hostap_master_start_xmit()
416 tx.crypt = NULL; in hostap_master_start_xmit()
417 tx.host_encrypt = 0; in hostap_master_start_xmit()
432 tx_ret = hostap_handle_sta_tx(local, &tx); in hostap_master_start_xmit()
433 skb = tx.skb; in hostap_master_start_xmit()
482 tx.crypt = NULL; in hostap_master_start_xmit()
[all …]
Dhostap_main.c553 void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) in hostap_dump_tx_header() argument
559 name, __le16_to_cpu(tx->status), tx->retry_count, tx->tx_rate, in hostap_dump_tx_header()
560 __le16_to_cpu(tx->tx_control), jiffies); in hostap_dump_tx_header()
562 fc = __le16_to_cpu(tx->frame_control); in hostap_dump_tx_header()
567 __le16_to_cpu(tx->duration_id), __le16_to_cpu(tx->seq_ctrl), in hostap_dump_tx_header()
568 __le16_to_cpu(tx->data_len), in hostap_dump_tx_header()
573 tx->addr1, tx->addr2, tx->addr3, tx->addr4); in hostap_dump_tx_header()
576 tx->dst_addr, tx->src_addr, in hostap_dump_tx_header()
577 __be16_to_cpu(tx->len)); in hostap_dump_tx_header()
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c174 struct myri10ge_tx_buf tx; /* transmit ring */ member
1151 ss->tx.req = 0; in myri10ge_reset()
1152 ss->tx.done = 0; in myri10ge_reset()
1153 ss->tx.pkt_start = 0; in myri10ge_reset()
1154 ss->tx.pkt_done = 0; in myri10ge_reset()
1159 ss->tx.wake_queue = 0; in myri10ge_reset()
1160 ss->tx.stop_queue = 0; in myri10ge_reset()
1521 struct myri10ge_tx_buf *tx = &ss->tx; in myri10ge_tx_done() local
1526 while (tx->pkt_done != mcp_index) { in myri10ge_tx_done()
1527 idx = tx->done & tx->mask; in myri10ge_tx_done()
[all …]
/linux-4.4.14/Documentation/ptp/
Dtestptp.c54 static int clock_adjtime(clockid_t id, struct timex *tx) in clock_adjtime() argument
56 return syscall(__NR_clock_adjtime, id, tx); in clock_adjtime()
152 struct timex tx; in main() local
291 memset(&tx, 0, sizeof(tx)); in main()
292 tx.modes = ADJ_FREQUENCY; in main()
293 tx.freq = ppb_to_scaled_ppm(adjfreq); in main()
294 if (clock_adjtime(clkid, &tx)) { in main()
302 memset(&tx, 0, sizeof(tx)); in main()
303 tx.modes = ADJ_SETOFFSET; in main()
304 tx.time.tv_sec = adjtime; in main()
[all …]
/linux-4.4.14/drivers/gpio/
Dgpio-mcp23s08.c172 u8 tx[2], rx[1]; in mcp23s08_read() local
175 tx[0] = mcp->addr | 0x01; in mcp23s08_read()
176 tx[1] = reg; in mcp23s08_read()
177 status = spi_write_then_read(mcp->data, tx, sizeof(tx), rx, sizeof(rx)); in mcp23s08_read()
183 u8 tx[3]; in mcp23s08_write() local
185 tx[0] = mcp->addr; in mcp23s08_write()
186 tx[1] = reg; in mcp23s08_write()
187 tx[2] = val; in mcp23s08_write()
188 return spi_write_then_read(mcp->data, tx, sizeof(tx), NULL, 0); in mcp23s08_write()
194 u8 tx[2], *tmp; in mcp23s08_read_regs() local
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/dma/
Dfsl-mxs-dma.txt41 interrupt-names = "auart4-rx", "auart4-tx", "spdif-tx", "empty",
43 "auart0-rx", "auart0-tx", "auart1-rx", "auart1-tx",
44 "auart2-rx", "auart2-tx", "auart3-rx", "auart3-tx";
59 dma-names = "rx", "tx";
Dzxdma.txt28 For example, spdif0 tx channel request line is 4
34 clock-names = "tx";
37 dma-names = "tx";
Ddma.txt92 dma-names = "rx", "tx";
101 dma-names = "rx-tx", "rx-tx", "rx-tx";
109 dma-names = "rx", "tx", "error", "error";
/linux-4.4.14/Documentation/DocBook/
D80211.xml.db54 API-cfg80211-tx-mlme-mgmt
63 API-cfg80211-mgmt-tx-status
112 API-enum-mac80211-tx-info-flags
113 API-enum-mac80211-tx-control-flags
115 API-struct-ieee80211-tx-rate
116 API-struct-ieee80211-tx-info
117 API-ieee80211-tx-info-clear-status
121 API-ieee80211-tx-status
122 API-ieee80211-tx-status-ni
123 API-ieee80211-tx-status-irqsafe
[all …]
Dz8530book.xml.db24 API-z8530-tx
27 API-z8530-dma-tx
30 API-z8530-tx-clear
32 API-z8530-tx-begin
33 API-z8530-tx-done
/linux-4.4.14/drivers/media/platform/omap/
Domap_vout_vrfb.c222 struct vid_vrfb_dma *tx; in omap_vout_prepare_vrfb() local
253 tx = &vout->vrfb_dma_tx; in omap_vout_prepare_vrfb()
254 tx->tx_status = 0; in omap_vout_prepare_vrfb()
255 omap_set_dma_transfer_params(tx->dma_ch, OMAP_DMA_DATA_TYPE_S32, in omap_vout_prepare_vrfb()
257 tx->dev_id, 0x0); in omap_vout_prepare_vrfb()
259 omap_set_dma_src_params(tx->dma_ch, 0, OMAP_DMA_AMODE_POST_INC, in omap_vout_prepare_vrfb()
262 omap_set_dma_src_burst_mode(tx->dma_ch, OMAP_DMA_DATA_BURST_16); in omap_vout_prepare_vrfb()
266 omap_set_dma_dest_params(tx->dma_ch, 0, OMAP_DMA_AMODE_DOUBLE_IDX, in omap_vout_prepare_vrfb()
270 omap_set_dma_dest_burst_mode(tx->dma_ch, OMAP_DMA_DATA_BURST_16); in omap_vout_prepare_vrfb()
273 omap_start_dma(tx->dma_ch); in omap_vout_prepare_vrfb()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_sdma.c514 struct qib_verbs_txreq *tx) in complete_sdma_err_req() argument
516 atomic_inc(&tx->qp->s_dma_busy); in complete_sdma_err_req()
518 tx->txreq.start_idx = 0; in complete_sdma_err_req()
519 tx->txreq.next_descq_idx = 0; in complete_sdma_err_req()
520 list_add_tail(&tx->txreq.list, &ppd->sdma_activelist); in complete_sdma_err_req()
535 struct qib_verbs_txreq *tx) in qib_sdma_verbs_send() argument
551 complete_sdma_err_req(ppd, tx); in qib_sdma_verbs_send()
555 if (tx->txreq.sg_count > qib_sdma_descq_freecnt(ppd)) { in qib_sdma_verbs_send()
564 dwoffset = tx->hdr_dwords; in qib_sdma_verbs_send()
565 make_sdma_desc(ppd, sdmadesc, (u64) tx->txreq.addr, dwoffset, 0); in qib_sdma_verbs_send()
[all …]
Dqib_verbs.c947 struct qib_verbs_txreq *tx; in __get_txreq() local
959 tx = list_entry(l, struct qib_verbs_txreq, txreq.list); in __get_txreq()
970 tx = ERR_PTR(-EBUSY); in __get_txreq()
972 return tx; in __get_txreq()
978 struct qib_verbs_txreq *tx; in get_txreq() local
988 tx = list_entry(l, struct qib_verbs_txreq, txreq.list); in get_txreq()
992 tx = __get_txreq(dev, qp); in get_txreq()
994 return tx; in get_txreq()
997 void qib_put_txreq(struct qib_verbs_txreq *tx) in qib_put_txreq() argument
1003 qp = tx->qp; in qib_put_txreq()
[all …]
/linux-4.4.14/drivers/staging/comedi/drivers/
Dni_usb6501.c180 u8 *tx = devpriv->usb_tx_buf; in ni6501_port_command() local
192 memcpy(tx, READ_PORT_REQUEST, request_size); in ni6501_port_command()
193 tx[14] = val & 0xff; in ni6501_port_command()
198 memcpy(tx, WRITE_PORT_REQUEST, request_size); in ni6501_port_command()
199 tx[14] = val & 0xff; in ni6501_port_command()
200 tx[17] = *bitmap; in ni6501_port_command()
205 memcpy(tx, SET_PORT_DIR_REQUEST, request_size); in ni6501_port_command()
206 tx[14] = val & 0xff; in ni6501_port_command()
207 tx[15] = (val >> 8) & 0xff; in ni6501_port_command()
208 tx[16] = (val >> 16) & 0xff; in ni6501_port_command()
[all …]
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_dma.c446 struct dma_async_tx_descriptor *tx = NULL; in scif_sync_dma() local
459 tx = ddev->device_prep_dma_memcpy(chan, 0, 0, 0, flags); in scif_sync_dma()
460 if (!tx) { in scif_sync_dma()
466 cookie = tx->tx_submit(tx); in scif_sync_dma()
512 struct dma_async_tx_descriptor *tx = NULL; in scif_async_dma() local
526 tx = ddev->device_prep_dma_memcpy(chan, 0, 0, 0, flags); in scif_async_dma()
527 if (!tx) { in scif_async_dma()
534 tx->callback = scif_dma_callback; in scif_async_dma()
535 tx->callback_param = &done_wait; in scif_async_dma()
536 cookie = tx->tx_submit(tx); in scif_async_dma()
[all …]
Dscif_fence.c209 struct dma_async_tx_descriptor *tx; in _scif_prog_signal() local
215 tx = ddev->device_prep_dma_memcpy(chan, 0, 0, 0, DMA_PREP_FENCE); in _scif_prog_signal()
216 if (!tx) { in _scif_prog_signal()
222 cookie = tx->tx_submit(tx); in _scif_prog_signal()
235 tx = ddev->device_prep_dma_imm_data(chan, dst, val, 0); in _scif_prog_signal()
249 tx = ddev->device_prep_dma_memcpy(chan, dst, src, sizeof(val), in _scif_prog_signal()
252 if (!tx) { in _scif_prog_signal()
259 tx->callback = scif_prog_signal_cb; in _scif_prog_signal()
260 tx->callback_param = status; in _scif_prog_signal()
262 cookie = tx->tx_submit(tx); in _scif_prog_signal()
[all …]
/linux-4.4.14/drivers/net/wireless/cw1200/
Dbh.c242 int *tx) in cw1200_bh_rx_helper() argument
331 *tx = 1; in cw1200_bh_rx_helper()
426 int rx, tx, term, suspend; in cw1200_bh() local
461 tx = atomic_xchg(&priv->bh_tx, 0); in cw1200_bh()
465 (rx || tx || term || suspend || priv->bh_error); in cw1200_bh()
469 rx, tx, term, suspend, priv->bh_error, status); in cw1200_bh()
483 if (priv->hw_bufs_used && (!rx || !tx)) { in cw1200_bh()
548 tx += pending_tx; in cw1200_bh()
556 ret = cw1200_bh_rx_helper(priv, &ctrl_reg, &tx); in cw1200_bh()
561 ret = cw1200_bh_rx_helper(priv, &ctrl_reg, &tx); in cw1200_bh()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/serial/
Dmrvl,pxa-ssp.txt15 - dmas: Two dma phandles, one for rx, one for tx
16 - dma-names: Must be "rx", "tx"
29 dma-names = "rx", "tx";
40 dma-names = "rx", "tx";
51 dma-names = "rx", "tx";
62 dma-names = "rx", "tx";
Datmel-usart.txt16 - atmel,use-dma-tx: use of PDC or DMA for transmitting data
24 - dma-names: "rx" for RX channel, "tx" for TX channel.
41 atmel,use-dma-tx;
58 atmel,use-dma-tx;
61 dma-names = "tx", "rx";
/linux-4.4.14/drivers/staging/nvec/
Dnvec.c477 if (nvec->tx->pos != nvec->tx->size) { in nvec_tx_completed()
479 nvec->tx->pos = 0; in nvec_tx_completed()
556 nvec->tx = &nvec->tx_scratch; in nvec_tx_set()
557 list_add_tail(&nvec->tx->node, &nvec->tx_data); in nvec_tx_set()
559 nvec->tx = list_first_entry(&nvec->tx_data, struct nvec_msg, in nvec_tx_set()
561 nvec->tx->pos = 0; in nvec_tx_set()
566 (uint)nvec->tx->size, nvec->tx->data[1]); in nvec_tx_set()
641 BUG_ON(nvec->tx->size < 1); in nvec_interrupt()
642 to_send = nvec->tx->data[0]; in nvec_interrupt()
643 nvec->tx->pos = 1; in nvec_interrupt()
[all …]
/linux-4.4.14/Documentation/spi/
Dspidev_test.c103 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer() argument
108 .tx_buf = (unsigned long)tx, in transfer()
136 hex_dump(tx, len, 32, "TX"); in transfer()
256 uint8_t *tx; in main() local
305 tx = malloc(size); in main()
307 size = unescape((char *)tx, input_tx, size); in main()
308 transfer(fd, tx, rx, size); in main()
310 free(tx); in main()
/linux-4.4.14/sound/firewire/dice/
Ddice-proc.c99 } tx; in dice_proc_read() member
173 quadlets = min_t(u32, tx_rx_header.size, sizeof(buf.tx) / 4); in dice_proc_read()
175 if (dice_proc_read_mem(dice, &buf.tx, sections[2] + 2 + in dice_proc_read()
180 snd_iprintf(buffer, " iso channel: %d\n", (int)buf.tx.iso); in dice_proc_read()
182 buf.tx.number_audio); in dice_proc_read()
183 snd_iprintf(buffer, " midi ports: %u\n", buf.tx.number_midi); in dice_proc_read()
184 snd_iprintf(buffer, " speed: S%u\n", 100u << buf.tx.speed); in dice_proc_read()
186 dice_proc_fixup_string(buf.tx.names, TX_NAMES_SIZE); in dice_proc_read()
187 snd_iprintf(buffer, " names: %s\n", buf.tx.names); in dice_proc_read()
191 buf.tx.ac3_caps); in dice_proc_read()
[all …]
/linux-4.4.14/drivers/media/rc/
Dnuvoton-cir.c555 spin_lock_irqsave(&nvt->tx.lock, flags); in nvt_tx_ir()
558 nvt->tx.buf_count = (ret * sizeof(unsigned)); in nvt_tx_ir()
560 memcpy(nvt->tx.buf, txbuf, nvt->tx.buf_count); in nvt_tx_ir()
562 nvt->tx.cur_buf_num = 0; in nvt_tx_ir()
570 nvt->tx.tx_state = ST_TX_REPLY; in nvt_tx_ir()
579 spin_unlock_irqrestore(&nvt->tx.lock, flags); in nvt_tx_ir()
581 wait_event(nvt->tx.queue, nvt->tx.tx_state == ST_TX_REQUEST); in nvt_tx_ir()
583 spin_lock_irqsave(&nvt->tx.lock, flags); in nvt_tx_ir()
584 nvt->tx.tx_state = ST_TX_NONE; in nvt_tx_ir()
585 spin_unlock_irqrestore(&nvt->tx.lock, flags); in nvt_tx_ir()
[all …]
/linux-4.4.14/drivers/dma/sh/
Dshdma-base.c73 static dma_cookie_t shdma_tx_submit(struct dma_async_tx_descriptor *tx) in shdma_tx_submit() argument
76 container_of(tx, struct shdma_desc, async_tx); in shdma_tx_submit()
77 struct shdma_chan *schan = to_shdma_chan(tx->chan); in shdma_tx_submit()
78 dma_async_tx_callback callback = tx->callback; in shdma_tx_submit()
86 cookie = dma_cookie_assign(tx); in shdma_tx_submit()
102 chunk->async_tx.callback_param = tx->callback_param; in shdma_tx_submit()
111 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit()
339 struct dma_async_tx_descriptor *tx = &desc->async_tx; in __ld_cleanup() local
341 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup()
355 if (tx->cookie > 0) in __ld_cleanup()
[all …]
/linux-4.4.14/drivers/tty/serial/
Dmax3100.c196 static int max3100_sr(struct max3100_port *s, u16 tx, u16 *rx) in max3100_sr() argument
207 etx = cpu_to_be16(tx); in max3100_sr()
217 dev_dbg(&s->spi->dev, "%04x - %04x\n", tx, *rx); in max3100_sr()
265 u16 tx, rx; in max3100_work() local
293 tx = 0xffff; in max3100_work()
295 tx = s->port.x_char; in max3100_work()
296 s->port.icount.tx++; in max3100_work()
300 tx = xmit->buf[xmit->tail]; in max3100_work()
303 s->port.icount.tx++; in max3100_work()
305 if (tx != 0xffff) { in max3100_work()
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Domap2430.dtsi167 interrupt-names = "common", "tx", "rx", "rx_overflow";
172 dma-names = "tx", "rx";
183 interrupt-names = "common", "tx", "rx";
188 dma-names = "tx", "rx";
199 interrupt-names = "common", "tx", "rx";
204 dma-names = "tx", "rx";
215 interrupt-names = "common", "tx", "rx";
220 dma-names = "tx", "rx";
231 interrupt-names = "common", "tx", "rx";
236 dma-names = "tx", "rx";
[all …]
Dk2hk-netcp.dtsi83 netcp-tx {
87 netcpx-tx {
177 tx-queue = <648>;
178 tx-channel = "nettx";
210 tx-pool = <1024 12>;
214 tx-completion-queue = <8706>;
222 tx-pool = <1024 12>;
226 tx-completion-queue = <8707>;
Domap3.dtsi162 dma-names = "tx", "rx";
289 dma-names = "tx", "rx";
299 dma-names = "tx", "rx";
309 dma-names = "tx", "rx";
319 dma-names = "tx", "rx";
330 dma-names = "tx", "rx";
341 dma-names = "tx", "rx";
356 ti,mbox-tx = <0 0 0>;
437 dma-names = "tx", "rx";
447 dma-names = "tx", "rx";
[all …]
Dr8a7791.dtsi478 dma-names = "tx", "rx";
491 dma-names = "tx", "rx";
504 dma-names = "tx", "rx";
521 dma-names = "tx", "rx";
534 dma-names = "tx", "rx";
545 dma-names = "tx", "rx";
556 dma-names = "tx", "rx";
568 dma-names = "tx", "rx";
580 dma-names = "tx", "rx";
592 dma-names = "tx", "rx";
[all …]
Dk2l-netcp.dtsi70 netcp-tx {
157 tx-queue = <896>;
158 tx-channel = "nettx";
190 tx-pool = <1024 12>;
194 tx-completion-queue = <530>;
202 tx-pool = <1024 12>;
206 tx-completion-queue = <531>;
Dk2e-netcp.dtsi70 netcp-tx {
158 tx-queue = <896>;
159 tx-channel = "nettx";
207 tx-pool = <1024 12>;
211 tx-completion-queue = <530>;
219 tx-pool = <1024 12>;
223 tx-completion-queue = <531>;
Dimx23.dtsi88 dma-names = "rx-tx";
97 dma-names = "rx-tx";
364 interrupt-names = "audio-adc", "audio-dac", "spdif-tx", "i2c",
365 "saif0", "empty", "auart0-rx", "auart0-tx",
366 "auart1-rx", "auart1-tx", "saif1", "empty",
411 dma-names = "rx-tx";
437 dma-names = "rx-tx";
449 dma-names = "rx-tx";
456 dma-names = "tx";
479 dma-names = "tx";
[all …]
Domap2420.dtsi141 interrupt-names = "tx", "rx";
145 dma-names = "tx", "rx";
155 interrupt-names = "tx", "rx";
159 dma-names = "tx", "rx";
169 dma-names = "tx", "rx";
182 ti,mbox-tx = <0 0 0>;
186 ti,mbox-tx = <2 1 3>;
Dr8a7790.dtsi464 dma-names = "tx", "rx";
477 dma-names = "tx", "rx";
490 dma-names = "tx", "rx";
503 dma-names = "tx", "rx";
514 dma-names = "tx", "rx";
527 dma-names = "tx", "rx";
545 dma-names = "tx", "rx";
556 dma-names = "tx", "rx";
567 dma-names = "tx", "rx";
578 dma-names = "tx", "rx";
[all …]
Ddra74x.dtsi79 tx-fifo-resize;
124 ti,mbox-tx = <6 2 2>;
129 ti,mbox-tx = <5 2 2>;
137 ti,mbox-tx = <6 2 2>;
142 ti,mbox-tx = <5 2 2>;
Dimx28.dtsi112 dma-names = "rx-tx";
123 dma-names = "rx-tx";
134 dma-names = "rx-tx";
145 dma-names = "rx-tx";
156 dma-names = "rx-tx";
916 interrupt-names = "auart4-rx", "auart4-tx", "spdif-tx", "empty",
918 "auart0-rx", "auart0-tx", "auart1-rx", "auart1-tx",
919 "auart2-rx", "auart2-tx", "auart3-rx", "auart3-tx";
1035 dma-names = "rx-tx";
1050 dma-names = "rx-tx";
[all …]
Dlpc18xx.dtsi264 dma-names = "tx", "rx", "tx", "rx";
278 dma-names = "tx", "rx";
291 dma-names = "rx", "tx";
351 dma-names = "tx", "rx";
367 dma-names = "tx", "rx", "rx", "tx";
404 dma-names = "rx", "tx", "tx", "rx",
405 "tx", "rx", "rx", "tx";
Ddra72x.dtsi51 ti,mbox-tx = <6 2 2>;
56 ti,mbox-tx = <5 2 2>;
64 ti,mbox-tx = <6 2 2>;
Dtegra20.dtsi279 dma-names = "rx", "tx";
291 dma-names = "rx", "tx";
303 dma-names = "rx", "tx";
323 dma-names = "rx", "tx";
336 dma-names = "rx", "tx";
349 dma-names = "rx", "tx";
362 dma-names = "rx", "tx";
375 dma-names = "rx", "tx";
408 dma-names = "rx", "tx";
422 dma-names = "rx", "tx";
[all …]
Domap2.dtsi64 dma-names = "tx", "rx";
102 dma-names = "tx", "rx";
113 dma-names = "tx", "rx";
158 dma-names = "tx", "rx";
168 dma-names = "tx", "rx";
178 dma-names = "tx", "rx";
Dtegra114.dtsi271 dma-names = "rx", "tx";
284 dma-names = "rx", "tx";
297 dma-names = "rx", "tx";
310 dma-names = "rx", "tx";
335 dma-names = "rx", "tx";
350 dma-names = "rx", "tx";
365 dma-names = "rx", "tx";
380 dma-names = "rx", "tx";
395 dma-names = "rx", "tx";
410 dma-names = "rx", "tx";
[all …]
/linux-4.4.14/drivers/input/gameport/
Dgameport.c84 unsigned int i, t, tx; in gameport_measure_speed() local
91 tx = ~0; in gameport_measure_speed()
103 if (t < tx) in gameport_measure_speed()
104 tx = t; in gameport_measure_speed()
109 if (tx) in gameport_measure_speed()
110 t /= tx; in gameport_measure_speed()
118 unsigned int i, t, t1, t2, t3, tx; in old_gameport_measure_speed() local
124 tx = 1 << 30; in old_gameport_measure_speed()
134 if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t; in old_gameport_measure_speed()
138 return 59659 / (tx < 1 ? 1 : tx); in old_gameport_measure_speed()
[all …]
/linux-4.4.14/drivers/staging/iio/accel/
Dlis3l02dq_core.c58 .tx_buf = st->tx, in lis3l02dq_spi_read_reg_8()
65 st->tx[0] = LIS3L02DQ_READ_REG(reg_address); in lis3l02dq_spi_read_reg_8()
66 st->tx[1] = 0; in lis3l02dq_spi_read_reg_8()
89 st->tx[0] = LIS3L02DQ_WRITE_REG(reg_address); in lis3l02dq_spi_write_reg_8()
90 st->tx[1] = val; in lis3l02dq_spi_write_reg_8()
91 ret = spi_write(st->us, st->tx, 2); in lis3l02dq_spi_write_reg_8()
111 .tx_buf = st->tx, in lis3l02dq_spi_write_reg_s16()
116 .tx_buf = st->tx + 2, in lis3l02dq_spi_write_reg_s16()
123 st->tx[0] = LIS3L02DQ_WRITE_REG(lower_reg_address); in lis3l02dq_spi_write_reg_s16()
124 st->tx[1] = value & 0xFF; in lis3l02dq_spi_write_reg_s16()
[all …]
Dlis3l02dq_ring.c75 xfers[j].tx_buf = st->tx + (2 * j); in lis3l02dq_read_all()
76 st->tx[2 * j] = read_all_tx_array[i * 4]; in lis3l02dq_read_all()
77 st->tx[2 * j + 1] = 0; in lis3l02dq_read_all()
86 xfers[j].tx_buf = st->tx + (2 * j); in lis3l02dq_read_all()
87 st->tx[2 * j] = read_all_tx_array[i * 4 + 2]; in lis3l02dq_read_all()
88 st->tx[2 * j + 1] = 0; in lis3l02dq_read_all()
Dsca3000_core.c85 st->tx[0] = SCA3000_WRITE_REG(address); in sca3000_write_reg()
86 st->tx[1] = val; in sca3000_write_reg()
87 return spi_write(st->us, st->tx, 2); in sca3000_write_reg()
97 .tx_buf = st->tx, in sca3000_read_data_short()
103 st->tx[0] = SCA3000_READ_REG(reg_address_high); in sca3000_read_data_short()
137 .tx_buf = st->tx, in __sca3000_unlock_reg_lock()
141 .tx_buf = st->tx + 2, in __sca3000_unlock_reg_lock()
144 .tx_buf = st->tx + 4, in __sca3000_unlock_reg_lock()
147 st->tx[0] = SCA3000_WRITE_REG(SCA3000_REG_ADDR_UNLOCK); in __sca3000_unlock_reg_lock()
148 st->tx[1] = 0x00; in __sca3000_unlock_reg_lock()
[all …]
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c695 struct ipoib_cm_tx *tx, in post_send() argument
705 return ib_post_send(tx->qp, &priv->tx_wr.wr, &bad_wr); in post_send()
708 void ipoib_cm_send(struct net_device *dev, struct sk_buff *skb, struct ipoib_cm_tx *tx) in ipoib_cm_send() argument
714 if (unlikely(skb->len > tx->mtu)) { in ipoib_cm_send()
716 skb->len, tx->mtu); in ipoib_cm_send()
719 ipoib_cm_skb_too_long(dev, skb, tx->mtu - IPOIB_ENCAP_LEN); in ipoib_cm_send()
724 tx->tx_head, skb->len, tx->qp->qp_num); in ipoib_cm_send()
733 tx_req = &tx->tx_ring[tx->tx_head & (ipoib_sendq_size - 1)]; in ipoib_cm_send()
745 rc = post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), tx_req); in ipoib_cm_send()
753 ++tx->tx_head; in ipoib_cm_send()
[all …]
/linux-4.4.14/drivers/misc/echo/
Decho.c347 int16_t oslec_update(struct oslec_state *ec, int16_t tx, int16_t rx) in oslec_update() argument
360 ec->tx = tx; in oslec_update()
362 tx >>= 1; in oslec_update()
418 new = (int)tx * (int)tx; in oslec_update()
429 ec->ltxacc += abs(tx) - ec->ltx; in oslec_update()
437 echo_value = fir16(&ec->fir_state, tx); in oslec_update()
444 echo_value = fir16(&ec->fir_state_bg, tx); in oslec_update()
639 int16_t oslec_hpf_tx(struct oslec_state *ec, int16_t tx) in oslec_hpf_tx() argument
645 tmp = tx << 15; in oslec_hpf_tx()
663 tx = tmp1; in oslec_hpf_tx()
[all …]
Doslec.h83 int16_t oslec_update(struct oslec_state *ec, int16_t tx, int16_t rx);
92 int16_t oslec_hpf_tx(struct oslec_state *ec, int16_t tx);
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-net-queues19 What: /sys/class/<iface>/queues/tx-<queue>/tx_timeout
27 What: /sys/class/<iface>/queues/tx-<queue>/tx_maxrate
35 What: /sys/class/<iface>/queues/tx-<queue>/xps_cpus
45 What: /sys/class/<iface>/queues/tx-<queue>/byte_queue_limits/hold_time
54 What: /sys/class/<iface>/queues/tx-<queue>/byte_queue_limits/inflight
62 What: /sys/class/<iface>/queues/tx-<queue>/byte_queue_limits/limit
71 What: /sys/class/<iface>/queues/tx-<queue>/byte_queue_limits/limit_max
80 What: /sys/class/<iface>/queues/tx-<queue>/byte_queue_limits/limit_min
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_verbs.c1017 struct ipath_verbs_txreq *tx = NULL; in get_txreq() local
1025 tx = list_entry(l, struct ipath_verbs_txreq, txreq.list); in get_txreq()
1028 return tx; in get_txreq()
1032 struct ipath_verbs_txreq *tx) in put_txreq() argument
1037 list_add(&tx->txreq.list, &dev->txreq_free); in put_txreq()
1043 struct ipath_verbs_txreq *tx = cookie; in sdma_complete() local
1044 struct ipath_qp *qp = tx->qp; in sdma_complete()
1052 if (tx->wqe) in sdma_complete()
1053 ipath_send_complete(qp, tx->wqe, ibs); in sdma_complete()
1060 } else if (tx->wqe) { in sdma_complete()
[all …]
Dipath_sdma.c666 struct ipath_verbs_txreq *tx) in ipath_sdma_verbs_send() argument
678 if ((tx->map_len + (dwords<<2)) > dd->ipath_ibmaxlen) { in ipath_sdma_verbs_send()
680 tx->map_len + (dwords<<2), dd->ipath_ibmaxlen); in ipath_sdma_verbs_send()
693 if (tx->txreq.sg_count > ipath_sdma_descq_freecnt(dd)) { in ipath_sdma_verbs_send()
700 addr = dma_map_single(&dd->pcidev->dev, tx->txreq.map_addr, in ipath_sdma_verbs_send()
701 tx->map_len, DMA_TO_DEVICE); in ipath_sdma_verbs_send()
705 dwoffset = tx->map_len >> 2; in ipath_sdma_verbs_send()
710 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_USELARGEBUF) in ipath_sdma_verbs_send()
719 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_FREEDESC) in ipath_sdma_verbs_send()
720 tx->txreq.start_idx = tail; in ipath_sdma_verbs_send()
[all …]
/linux-4.4.14/drivers/ptp/
Dptp_clock.c127 static int ptp_clock_adjtime(struct posix_clock *pc, struct timex *tx) in ptp_clock_adjtime() argument
135 if (tx->modes & ADJ_SETOFFSET) { in ptp_clock_adjtime()
140 ts.tv_sec = tx->time.tv_sec; in ptp_clock_adjtime()
141 ts.tv_nsec = tx->time.tv_usec; in ptp_clock_adjtime()
143 if (!(tx->modes & ADJ_NANO)) in ptp_clock_adjtime()
152 } else if (tx->modes & ADJ_FREQUENCY) { in ptp_clock_adjtime()
153 s32 ppb = scaled_ppm_to_ppb(tx->freq); in ptp_clock_adjtime()
157 ptp->dialed_frequency = tx->freq; in ptp_clock_adjtime()
158 } else if (tx->modes == 0) { in ptp_clock_adjtime()
159 tx->freq = ptp->dialed_frequency; in ptp_clock_adjtime()
/linux-4.4.14/drivers/dma/ioat/
Ddma.c265 static dma_cookie_t ioat_tx_submit_unlock(struct dma_async_tx_descriptor *tx) in ioat_tx_submit_unlock() argument
268 struct dma_chan *c = tx->chan; in ioat_tx_submit_unlock()
272 cookie = dma_cookie_assign(tx); in ioat_tx_submit_unlock()
647 struct dma_async_tx_descriptor *tx; in __cleanup() local
658 tx = &desc->txd; in __cleanup()
659 if (tx->cookie) { in __cleanup()
660 dma_cookie_complete(tx); in __cleanup()
661 dma_descriptor_unmap(tx); in __cleanup()
662 if (tx->callback) { in __cleanup()
663 tx->callback(tx->callback_param); in __cleanup()
[all …]
Dinit.c317 struct dma_async_tx_descriptor *tx; in ioat_dma_self_test() local
358 tx = ioat_dma->dma_dev.device_prep_dma_memcpy(dma_chan, dma_dest, in ioat_dma_self_test()
361 if (!tx) { in ioat_dma_self_test()
367 async_tx_ack(tx); in ioat_dma_self_test()
369 tx->callback = ioat_dma_test_callback; in ioat_dma_self_test()
370 tx->callback_param = &cmp; in ioat_dma_self_test()
371 cookie = tx->tx_submit(tx); in ioat_dma_self_test()
781 struct dma_async_tx_descriptor *tx; in ioat_xor_val_self_test() local
853 tx = dma->device_prep_dma_xor(dma_chan, dest_dma, dma_srcs, in ioat_xor_val_self_test()
857 if (!tx) { in ioat_xor_val_self_test()
[all …]
/linux-4.4.14/drivers/net/
Dxen-netfront.c114 struct xen_netif_tx_front_ring tx; member
238 return (queue->tx.req_prod_pvt - queue->tx.rsp_cons) < in netfront_tx_slot_available()
371 prod = queue->tx.sring->rsp_prod; in xennet_tx_buf_gc()
374 for (cons = queue->tx.rsp_cons; cons != prod; cons++) { in xennet_tx_buf_gc()
377 txrsp = RING_GET_RESPONSE(&queue->tx, cons); in xennet_tx_buf_gc()
399 queue->tx.rsp_cons = prod; in xennet_tx_buf_gc()
409 queue->tx.sring->rsp_event = in xennet_tx_buf_gc()
410 prod + ((queue->tx.sring->req_prod - prod) >> 1) + 1; in xennet_tx_buf_gc()
412 } while ((cons == prod) && (prod != queue->tx.sring->rsp_prod)); in xennet_tx_buf_gc()
421 struct xen_netif_tx_request *tx; /* Last request */ member
[all …]
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D4965-debug.c479 struct stats_tx *tx, *accum_tx, *delta_tx, *max_tx; in il4965_ucode_tx_stats_read() local
494 tx = &il->_4965.stats.tx; in il4965_ucode_tx_stats_read()
495 accum_tx = &il->_4965.accum_stats.tx; in il4965_ucode_tx_stats_read()
496 delta_tx = &il->_4965.delta_stats.tx; in il4965_ucode_tx_stats_read()
497 max_tx = &il->_4965.max_delta.tx; in il4965_ucode_tx_stats_read()
503 le32_to_cpu(tx->preamble_cnt), accum_tx->preamble_cnt, in il4965_ucode_tx_stats_read()
507 le32_to_cpu(tx->rx_detected_cnt), in il4965_ucode_tx_stats_read()
512 le32_to_cpu(tx->bt_prio_defer_cnt), in il4965_ucode_tx_stats_read()
517 le32_to_cpu(tx->bt_prio_kill_cnt), in il4965_ucode_tx_stats_read()
522 le32_to_cpu(tx->few_bytes_cnt), accum_tx->few_bytes_cnt, in il4965_ucode_tx_stats_read()
[all …]
D3945-debug.c325 struct iwl39_stats_tx *tx, *accum_tx, *delta_tx, *max_tx; in il3945_ucode_tx_stats_read() local
341 tx = &il->_3945.stats.tx; in il3945_ucode_tx_stats_read()
342 accum_tx = &il->_3945.accum_stats.tx; in il3945_ucode_tx_stats_read()
343 delta_tx = &il->_3945.delta_stats.tx; in il3945_ucode_tx_stats_read()
344 max_tx = &il->_3945.max_delta.tx; in il3945_ucode_tx_stats_read()
354 le32_to_cpu(tx->preamble_cnt), accum_tx->preamble_cnt, in il3945_ucode_tx_stats_read()
359 le32_to_cpu(tx->rx_detected_cnt), in il3945_ucode_tx_stats_read()
365 le32_to_cpu(tx->bt_prio_defer_cnt), in il3945_ucode_tx_stats_read()
371 le32_to_cpu(tx->bt_prio_kill_cnt), in il3945_ucode_tx_stats_read()
377 le32_to_cpu(tx->few_bytes_cnt), accum_tx->few_bytes_cnt, in il3945_ucode_tx_stats_read()
[all …]
/linux-4.4.14/drivers/staging/most/aim-network/
Dnetworking.c73 struct net_dev_channel tx; member
192 BUG_ON(!nd->tx.linked || !nd->rx.linked); in most_nd_open()
199 if (most_start_channel(nd->iface, nd->tx.ch_id, &aim)) { in most_nd_open()
211 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id); in most_nd_open()
228 most_stop_channel(nd->iface, nd->tx.ch_id, &aim); in most_nd_stop()
244 mbo = most_get_mbo(nd->iface, nd->tx.ch_id, &aim); in most_nd_start_xmit()
340 ch = ccfg->direction == MOST_CH_TX ? &nd->tx : &nd->rx; in aim_probe_channel()
346 if (nd->tx.linked || nd->rx.linked) { in aim_probe_channel()
387 else if (nd->tx.linked && channel_idx == nd->tx.ch_id) in aim_disconnect_channel()
388 ch = &nd->tx; in aim_disconnect_channel()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c55 int tx = DCB_TX_CONFIG; in ixgbe_copy_dcb_cfg() local
73 if (dst->path[tx].prio_type != src->path[tx].prio_type) { in ixgbe_copy_dcb_cfg()
74 dst->path[tx].prio_type = src->path[tx].prio_type; in ixgbe_copy_dcb_cfg()
78 if (dst->path[tx].bwg_id != src->path[tx].bwg_id) { in ixgbe_copy_dcb_cfg()
79 dst->path[tx].bwg_id = src->path[tx].bwg_id; in ixgbe_copy_dcb_cfg()
83 if (dst->path[tx].bwg_percent != src->path[tx].bwg_percent) { in ixgbe_copy_dcb_cfg()
84 dst->path[tx].bwg_percent = src->path[tx].bwg_percent; in ixgbe_copy_dcb_cfg()
88 if (dst->path[tx].up_to_tc_bitmap != in ixgbe_copy_dcb_cfg()
89 src->path[tx].up_to_tc_bitmap) { in ixgbe_copy_dcb_cfg()
90 dst->path[tx].up_to_tc_bitmap = in ixgbe_copy_dcb_cfg()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/phy/
Dapm-xgene-phy.txt17 - apm,tx-eye-tuning : Manual control to fine tune the capture of the serial
22 - apm,tx-eye-direction : Eye tuning manual control direction. 0 means sample
27 - apm,tx-boost-gain : Frequency boost AC (LSB 3-bit) and DC (2-bit)
31 - apm,tx-amplitude : Amplitude control. Two set of 3-tuple setting for
35 - apm,tx-pre-cursor1 : 1st pre-cursor emphasis taps control. Two set of
39 - apm,tx-pre-cursor2 : 2st pre-cursor emphasis taps control. Two set of
43 - apm,tx-post-cursor : Post-cursor emphasis taps control. Two set of
46 - apm,tx-speed : Tx operating speed. One set of 3-tuple for each
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00config.c142 if (config.tx == ANTENNA_SW_DIVERSITY) { in rt2x00lib_config_antenna()
145 if (def->tx == ANTENNA_SW_DIVERSITY) in rt2x00lib_config_antenna()
146 config.tx = ANTENNA_B; in rt2x00lib_config_antenna()
148 config.tx = def->tx; in rt2x00lib_config_antenna()
150 } else if (config.tx == ANTENNA_SW_DIVERSITY) in rt2x00lib_config_antenna()
151 config.tx = active->tx; in rt2x00lib_config_antenna()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_mipi_dsi.c356 const u8 *tx = msg->tx_buf; in mipi_dsi_create_packet() local
358 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet()
359 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet()
380 u8 tx[2] = { value & 0xff, value >> 8 }; in mipi_dsi_set_maximum_return_packet_size() local
384 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size()
385 .tx_buf = tx, in mipi_dsi_set_maximum_return_packet_size()
541 u8 *tx; in mipi_dsi_dcs_write() local
546 tx = kmalloc(size, GFP_KERNEL); in mipi_dsi_dcs_write()
547 if (!tx) in mipi_dsi_dcs_write()
551 tx[0] = cmd; in mipi_dsi_dcs_write()
[all …]
/linux-4.4.14/drivers/net/can/softing/
Dsofting_main.c80 (card->tx.pending >= TXMAX) || in softing_netdev_start_xmit()
81 (priv->tx.pending >= TX_ECHO_SKB_MAX)) in softing_netdev_start_xmit()
115 card->tx.last_bus = priv->index; in softing_netdev_start_xmit()
116 ++card->tx.pending; in softing_netdev_start_xmit()
117 ++priv->tx.pending; in softing_netdev_start_xmit()
118 can_put_echo_skb(skb, dev, priv->tx.echo_put); in softing_netdev_start_xmit()
119 ++priv->tx.echo_put; in softing_netdev_start_xmit()
120 if (priv->tx.echo_put >= TX_ECHO_SKB_MAX) in softing_netdev_start_xmit()
121 priv->tx.echo_put = 0; in softing_netdev_start_xmit()
126 if (card->tx.pending >= TXMAX) { in softing_netdev_start_xmit()
[all …]
/linux-4.4.14/drivers/isdn/sc/
Dmessage.h38 #define IS_CM_MESSAGE(mesg, tx, cx, dx) \ argument
39 ((mesg.type == cmRspType##tx) \
46 #define IS_CE_MESSAGE(mesg, tx, cx, dx) \ argument
47 ((mesg.type == ceRspType##tx) \
49 && (mesg.code == ceRsp##tx##dx))
/linux-4.4.14/drivers/net/irda/
Ddonauboe.c283 printk (" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumpregs()
490 self->ring->tx[i].len = 0; in toshoboe_initring()
491 self->ring->tx[i].control = 0x00; in toshoboe_initring()
492 self->ring->tx[i].address = virt_to_bus (self->tx_bufs[i]); in toshoboe_initring()
654 PROBE_DEBUG(" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumptx()
712 if (self->ring->tx[txp].control & OBOE_CTL_TX_HW_OWNS) in toshoboe_probeinterrupt()
840 self->ring->tx[self->txs].control = in toshoboe_probe()
845 self->ring->tx[self->txs].len = in toshoboe_probe()
850 self->ring->tx[self->txs].control = in toshoboe_probe()
853 self->ring->tx[self->txs].len = in toshoboe_probe()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/
Dhw.c144 u32 cycles, busy, rx, tx; in ath_hw_cycle_counters_update() local
154 tx = REG_READ(ah, AR_TFCNT); in ath_hw_cycle_counters_update()
169 common->cc_ani.tx_frame += tx; in ath_hw_cycle_counters_update()
174 common->cc_survey.tx_frame += tx; in ath_hw_cycle_counters_update()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dtrace.h91 __field(unsigned int, tx)
105 __entry->tx = 1;
107 __entry->tx = 0;
112 __entry->tx ? "tx" : "rx",
126 __field(unsigned int, tx)
146 __entry->tx = 1;
148 __entry->tx = 0;
165 __entry->tx ? "tx" : "rx",
/linux-4.4.14/drivers/net/ethernet/pasemi/
Dpasemi_mac.h92 struct pasemi_mac_txring *tx; member
110 #define TX_DESC(tx, num) ((tx)->chan.ring_virt[(num) & (TX_RING_SIZE-1)]) argument
111 #define TX_DESC_INFO(tx, num) ((tx)->ring_info[(num) & (TX_RING_SIZE-1)]) argument
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dkeystone-netcp.txt92 - tx-channel: the navigator packet dma channel name for tx.
93 - tx-queue: the navigator queue number associated with the tx dma channel.
122 - tx-pool: specifies the number of descriptors to be used & the region-id
123 for creating the tx descriptor pool.
128 - tx-completion-queue: the navigator queue number where the descriptors are
168 tx-queue = <648>;
169 tx-channel = <8>;
199 tx-pool = <1024 12>;
203 tx-completion-queue = <8706>;
211 tx-pool = <1024 12>;
[all …]
Dmarvell-orion-net.txt30 - marvell,tx-checksum-limit: max tx packet size for hardware checksum.
42 - marvell,tx-queue-size: size of the transmit ring buffer.
43 - marvell,tx-sram-addr: address of transmit descriptor buffer located in SRAM.
44 - marvell,tx-sram-size: size of transmit descriptor buffer located in SRAM.
73 marvell,tx-checksum-limit = <1600>;
/linux-4.4.14/net/nfc/nci/
Dspi.c190 struct spi_transfer tx, rx; in __nci_spi_read() local
196 memset(&tx, 0, sizeof(struct spi_transfer)); in __nci_spi_read()
199 tx.tx_buf = req; in __nci_spi_read()
200 tx.len = 2; in __nci_spi_read()
201 tx.cs_change = 0; in __nci_spi_read()
202 tx.speed_hz = nspi->xfer_speed_hz; in __nci_spi_read()
203 spi_message_add_tail(&tx, &m); in __nci_spi_read()
/linux-4.4.14/Documentation/devicetree/bindings/spi/
Dspi_pl022.txt22 least one channel named "tx" for transmit and named "rx" for
35 - pl022,tx-level-trig : Tx FIFO watermark level
51 dma-names = "rx", "tx";
61 pl022,slave-tx-disable;
64 pl022,tx-level-trig = <0>;
Dsh-msiof.txt32 - dma-names : Must contain a list of two DMA names, "tx" and "rx".
51 - renesas,tx-fifo-size : Overrides the default tx fifo size given in words
67 dma-names = "tx", "rx";
Dspi-rspi.txt26 - "tx" to SPTI,
38 - dma-names : Must contain a list of two DMA names, "tx" and "rx".
51 interrupt-names = "error", "rx", "tx";
68 dma-names = "tx", "rx";
/linux-4.4.14/arch/powerpc/boot/dts/
Dmpc5121.dtsi188 dma-names = "rx-tx";
339 dma-names = "rx-tx";
358 fsl,tx-fifo-size = <16>;
370 fsl,tx-fifo-size = <16>;
382 fsl,tx-fifo-size = <16>;
394 fsl,tx-fifo-size = <16>;
406 fsl,tx-fifo-size = <16>;
418 fsl,tx-fifo-size = <16>;
430 fsl,tx-fifo-size = <16>;
442 fsl,tx-fifo-size = <16>;
[all …]
Deiger.dts124 num-tx-chans = <4>;
313 mal-tx-channel = <0>;
318 tx-fifo-size = <2048>;
343 mal-tx-channel = <1>;
348 tx-fifo-size = <2048>;
374 mal-tx-channel = <2>;
379 tx-fifo-size = <2048>;
381 tx-fifo-size-gige = <16384>; /* emac2&3 only */
404 mal-tx-channel = <3>;
409 tx-fifo-size = <2048>;
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Ddwc2.txt25 - g-np-tx-fifo-size: size of non-periodic tx fifo size in gadget mode.
26 - g-tx-fifo-size: size of periodic tx fifo per endpoint (except ep0) in gadget mode.
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dgk104.c28 gk104_aux_stat(struct nvkm_i2c *i2c, u32 *hi, u32 *lo, u32 *rq, u32 *tx) in gk104_aux_stat() argument
33 for (i = 0, *hi = *lo = *rq = *tx = 0; i < 8; i++) { in gk104_aux_stat()
37 if ((stat & (8 << (i * 4)))) *tx |= 1 << i; in gk104_aux_stat()
Dg94.c28 g94_aux_stat(struct nvkm_i2c *i2c, u32 *hi, u32 *lo, u32 *rq, u32 *tx) in g94_aux_stat() argument
33 for (i = 0, *hi = *lo = *rq = *tx = 0; i < 8; i++) { in g94_aux_stat()
37 if ((stat & (8 << (i * 4)))) *tx |= 1 << i; in g94_aux_stat()
/linux-4.4.14/Documentation/devicetree/bindings/crypto/
Dqcom-qce.txt11 - dmas : DMA specifiers for tx and rx dma channels. For more see
13 - dma-names : DMA request names should be "rx" and "tx"
24 dma-names = "rx", "tx";
Domap-aes.txt17 - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
19 - dma-names: DMA request names should include "tx" and "rx" if present.
30 dma-names = "tx", "rx";
Datmel-crypto.txt23 dma-names = "tx", "rx";
45 dma-names = "tx", "rx";
59 in the dmas property. Only one "tx" string needed.
67 dma-names = "tx";
Domap-des.txt14 - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
17 - dma-names: DMA request names should include "tx" and "rx" if present
27 dma-names = "tx", "rx";
/linux-4.4.14/Documentation/devicetree/bindings/mailbox/
Domap-mailbox.txt17 and tx interrupt source per h/w fifo. Communication between different processors
18 is achieved through the appropriate programming of the rx and tx interrupt
62 - ti,mbox-tx: sub-mailbox descriptor property defining a Tx fifo
67 Each of the above ti,mbox-tx and ti,mbox-rx properties should have 3 cells of
70 (ti,mbox-tx) or for receiving (ti,mbox-rx)
76 associated with generating a tx/rx fifo interrupt.
111 ti,mbox-tx = <0 0 0>;
115 ti,mbox-tx = <3 0 0>;
136 ti,mbox-tx = <0 0 0>;
/linux-4.4.14/drivers/staging/wilc1000/
Dwilc_wfi_cfgoperations.h63 .tx = 0xffff,
68 .tx = 0xffff,
78 .tx = 0xffff,
/linux-4.4.14/drivers/net/wireless/b43legacy/
Ddma.c162 ring->tx ? "TX" : "RX", in update_max_used_slots()
178 B43legacy_WARN_ON(!ring->tx); in request_slot()
263 int tx) in map_descbuffer() argument
267 if (tx) in map_descbuffer()
283 int tx) in unmap_descbuffer() argument
285 if (tx) in unmap_descbuffer()
300 B43legacy_WARN_ON(ring->tx); in sync_descbuffer_for_cpu()
311 B43legacy_WARN_ON(ring->tx); in sync_descbuffer_for_device()
463 B43legacy_WARN_ON(ring->tx); in setup_rx_descbuffer()
548 if (ring->tx) { in dmacontroller_setup()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/media/
Dst-rc.txt13 - tx-mode: should be "infrared". This property specifies the L1
14 protocol used for transmitting remote control signals. tx-mode should
15 be present iff the tx pins are wired up.
/linux-4.4.14/drivers/ata/
Dpata_pxa.c65 struct dma_async_tx_descriptor *tx; in pxa_qc_prep() local
72 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
74 if (!tx) { in pxa_qc_prep()
78 tx->callback = pxa_ata_dma_irq; in pxa_qc_prep()
79 tx->callback_param = pd; in pxa_qc_prep()
80 pd->dma_cookie = dmaengine_submit(tx); in pxa_qc_prep()
/linux-4.4.14/drivers/acpi/
Dprocessor_throttling.c250 if (p_limit->thermal.tx > target_state) in acpi_processor_throttling_notifier()
251 target_state = p_limit->thermal.tx; in acpi_processor_throttling_notifier()
252 if (p_limit->user.tx > target_state) in acpi_processor_throttling_notifier()
253 target_state = p_limit->user.tx; in acpi_processor_throttling_notifier()
346 if (limit->thermal.tx > target_state) in acpi_processor_tstate_has_changed()
347 target_state = limit->thermal.tx; in acpi_processor_tstate_has_changed()
348 if (limit->user.tx > target_state) in acpi_processor_tstate_has_changed()
349 target_state = limit->user.tx; in acpi_processor_tstate_has_changed()
546 struct acpi_processor_tx_tss *tx = in acpi_processor_get_throttling_states() local
551 state.pointer = tx; in acpi_processor_get_throttling_states()
[all …]
/linux-4.4.14/drivers/net/ethernet/via/
Dvia-velocity.c1409 for (i = 0; i < vptr->tx.numq; i++) { in velocity_init_registers()
1410 writel(vptr->tx.pool_dma[i], &regs->TDBaseLo[i]); in velocity_init_registers()
1485 pool = dma_alloc_coherent(vptr->dev, tx_ring_size * vptr->tx.numq + in velocity_init_dma_rings()
1499 for (i = 0; i < vptr->tx.numq; i++) { in velocity_init_dma_rings()
1500 vptr->tx.rings[i] = pool; in velocity_init_dma_rings()
1501 vptr->tx.pool_dma[i] = pool_dma; in velocity_init_dma_rings()
1658 for (j = 0; j < vptr->tx.numq; j++) { in velocity_init_td_ring()
1660 vptr->tx.infos[j] = kcalloc(vptr->options.numtx, in velocity_init_td_ring()
1663 if (!vptr->tx.infos[j]) { in velocity_init_td_ring()
1665 kfree(vptr->tx.infos[j]); in velocity_init_td_ring()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/net/can/
Dxilinx_can.txt17 - tx-fifo-depth : Can Tx fifo depth.
31 tx-fifo-depth = <0x40>;
42 tx-fifo-depth = <0x40>;
/linux-4.4.14/drivers/net/wimax/i2400m/
DMakefile12 tx.o \
20 usb-tx.o \
/linux-4.4.14/drivers/net/xen-netback/
Dnetback.c668 RING_FINAL_CHECK_FOR_REQUESTS(&queue->tx, more_to_do); in xenvif_napi_schedule_or_enable_events()
702 RING_IDX cons = queue->tx.req_cons; in xenvif_tx_err()
712 RING_COPY_REQUEST(&queue->tx, cons++, txp); in xenvif_tx_err()
714 queue->tx.req_cons = cons; in xenvif_tx_err()
731 RING_IDX cons = queue->tx.req_cons; in xenvif_count_requests()
779 RING_COPY_REQUEST(&queue->tx, cons + slots, txp); in xenvif_count_requests()
1103 RING_IDX cons = queue->tx.req_cons; in xenvif_get_extras()
1112 RING_COPY_REQUEST(&queue->tx, cons, &extra); in xenvif_get_extras()
1115 queue->tx.req_cons = ++cons; in xenvif_get_extras()
1123 queue->tx.req_cons = ++cons; in xenvif_get_extras()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbcmsysport.c236 STAT_MIB_TX("tx_64_octets", mib.tx.pkt_cnt.cnt_64),
237 STAT_MIB_TX("tx_65_127_oct", mib.tx.pkt_cnt.cnt_127),
238 STAT_MIB_TX("tx_128_255_oct", mib.tx.pkt_cnt.cnt_255),
239 STAT_MIB_TX("tx_256_511_oct", mib.tx.pkt_cnt.cnt_511),
240 STAT_MIB_TX("tx_512_1023_oct", mib.tx.pkt_cnt.cnt_1023),
241 STAT_MIB_TX("tx_1024_1518_oct", mib.tx.pkt_cnt.cnt_1518),
242 STAT_MIB_TX("tx_vlan_1519_1522_oct", mib.tx.pkt_cnt.cnt_mgv),
243 STAT_MIB_TX("tx_1522_2047_oct", mib.tx.pkt_cnt.cnt_2047),
244 STAT_MIB_TX("tx_2048_4095_oct", mib.tx.pkt_cnt.cnt_4095),
245 STAT_MIB_TX("tx_4096_9216_oct", mib.tx.pkt_cnt.cnt_9216),
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/4xx/
Demac.txt25 - mal-tx-channel : 1 cell, index of the tx channel on McMAL associated
36 - tx-fifo-size : 1 cell, Tx fifo size in bytes for 10 and 100 Mb/sec
77 - tx-fifo-size-gige : 1 cell, Tx fifo size in bytes for 1000 Mb/sec
79 tx-fifo-size). For Axon, either absent or 2048.
95 mal-tx-channel = <0 1>;
100 tx-fifo-size = <800>;
125 - num-tx-chans : 1 cell, number of Tx channels
/linux-4.4.14/fs/ncpfs/
Dsock.c123 if (server->tx.creq) in ncp_tcp_write_space()
124 schedule_work(&server->tx.tq); in ncp_tcp_write_space()
150 while (!list_empty(&server->tx.requests)) { in __abort_ncp_connection()
151 req = list_entry(server->tx.requests.next, struct ncp_request_reply, req); in __abort_ncp_connection()
163 req = server->tx.creq; in __abort_ncp_connection()
165 server->tx.creq = NULL; in __abort_ncp_connection()
222 rq = server->tx.creq; in __ncptcp_try_send()
241 server->tx.creq = NULL; in __ncptcp_try_send()
314 server->tx.creq = req; in ncptcp_start_request()
340 if (server->tx.creq || server->rcv.creq) { in ncp_add_request()
[all …]
/linux-4.4.14/drivers/net/fjes/
Dfjes_main.c306 adapter->hw.ep_shm_info[epidx].tx.info->v1i.rx_status &= in fjes_close()
374 fjes_hw_setup_epbuf(&buf_pair->tx, netdev->dev_addr, in fjes_setup_resources()
421 fjes_hw_setup_epbuf(&buf_pair->tx, in fjes_free_resources()
482 info = adapter->hw.ep_shm_info[epid].tx.info; in fjes_tx_stall_task()
534 hw->ep_shm_info[epid].tx.info->v1i.tx_status; in fjes_raise_intr_rxdata_task()
538 hw->ep_shm_info[epid].tx.info->v1i.tx_status = in fjes_raise_intr_rxdata_task()
566 retval = fjes_hw_epbuf_tx_pkt_send(&adapter->hw.ep_shm_info[dest].tx, in fjes_tx_send()
571 adapter->hw.ep_shm_info[dest].tx.info->v1i.tx_status = in fjes_tx_send()
799 &adapter->hw.ep_shm_info[epid].tx, vid)) in fjes_vlan_rx_add_vid()
801 &adapter->hw.ep_shm_info[epid].tx, vid); in fjes_vlan_rx_add_vid()
[all …]
/linux-4.4.14/drivers/media/dvb-frontends/
Ddibx000_common.c256 static int dibx000_i2c_gate_ctrl(struct dibx000_i2c_master *mst, u8 tx[4], in dibx000_i2c_gate_ctrl()
270 tx[0] = (((mst->base_reg + 1) >> 8) & 0xff); in dibx000_i2c_gate_ctrl()
271 tx[1] = ((mst->base_reg + 1) & 0xff); in dibx000_i2c_gate_ctrl()
272 tx[2] = val >> 8; in dibx000_i2c_gate_ctrl()
273 tx[3] = val & 0xff; in dibx000_i2c_gate_ctrl()
406 u8 tx[4]; in dibx000_reset_i2c_master() local
407 struct i2c_msg m = {.addr = mst->i2c_addr,.buf = tx,.len = 4 }; in dibx000_reset_i2c_master()
409 dibx000_i2c_gate_ctrl(mst, tx, 0, 0); in dibx000_reset_i2c_master()
/linux-4.4.14/drivers/net/fddi/skfp/
Drmt.c323 int tx ; in rmt_fsm() local
329 if ((tx = sm_mac_get_tx_state(smc)) == 4 || tx == 5) { in rmt_fsm()
349 tx,smc->r.bn_flag) ; in rmt_fsm()
402 int tx ; in rmt_fsm() local
408 if ((tx = sm_mac_get_tx_state(smc)) == 4 || tx == 5) { in rmt_fsm()
428 tx,smc->r.bn_flag) ; in rmt_fsm()
/linux-4.4.14/Documentation/devicetree/bindings/misc/
Datmel-ssc.txt16 the memory interface and SSC DMA channel ID (for tx and rx).
18 - dma-names: Must be "tx", "rx".
45 dma-names = "tx", "rx";
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_mbx.c348 struct fm10k_mbx_fifo *fifo = &mbx->tx; in fm10k_mbx_write_copy()
399 struct fm10k_mbx_fifo *fifo = &mbx->tx; in fm10k_mbx_pull_head()
633 head = fm10k_fifo_head_offset(&mbx->tx, mbx->pulled); in fm10k_mbx_update_local_crc()
636 mbx->local = fm10k_fifo_crc(&mbx->tx, head, len, mbx->local); in fm10k_mbx_update_local_crc()
689 u16 fifo_unused = fm10k_fifo_unused(&mbx->tx); in fm10k_mbx_tx_ready()
702 return fm10k_fifo_empty(&mbx->tx); in fm10k_mbx_tx_complete()
765 err = fm10k_fifo_enqueue(&mbx->tx, msg); in fm10k_mbx_enqueue_tx()
772 err = fm10k_fifo_enqueue(&mbx->tx, msg); in fm10k_mbx_enqueue_tx()
867 struct fm10k_mbx_fifo *fifo = &mbx->tx; in fm10k_mbx_create_data_hdr()
1081 while (fm10k_fifo_head_len(&mbx->tx) && mbx->pulled) { in fm10k_mbx_reset_work()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/qe/
Ducc.txt28 - tx-clock-name: the UCC transmit clock source
33 with rx-clock-name, and tx-clock has been replaced with tx-clock-name.
41 - tx-clock: represents the UCC transmit clock source;
66 tx-clock = "clk9";
/linux-4.4.14/drivers/soc/qcom/
Dsmd.c229 struct smd_channel_info tx; member
251 struct smd_channel_info_word tx; member
291 BUILD_BUG_ON(sizeof(channel->info->tx.param) != sizeof(u8)); \
293 le32_to_cpu(channel->info_word->tx.param) : \
294 channel->info->tx.param; \
299 BUILD_BUG_ON(sizeof(channel->info->tx.param) != sizeof(u32)); \
301 channel->info_word->tx.param : \
302 channel->info->tx.param); \
307 BUILD_BUG_ON(sizeof(channel->info->tx.param) != sizeof(u8)); \
309 channel->info_word->tx.param = cpu_to_le32(value); \
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Drx.c306 struct statistics_tx *tx, in iwlagn_recover_from_statistics() argument
403 struct statistics_tx *tx, in iwlagn_accumulative_statistics() argument
419 ACCUM(tx); in iwlagn_accumulative_statistics()
432 struct statistics_tx *tx, in iwlagn_accumulative_statistics() argument
452 struct statistics_tx *tx; in iwlagn_rx_statistics() local
469 tx = &stats->tx; in iwlagn_rx_statistics()
487 tx = &stats->tx; in iwlagn_rx_statistics()
502 rx_ofdm_ht, rx_cck, tx, bt_activity); in iwlagn_rx_statistics()
504 iwlagn_recover_from_statistics(priv, rx_ofdm, rx_ofdm_ht, tx, stamp); in iwlagn_rx_statistics()
512 memcpy(&priv->statistics.tx, tx, sizeof(*tx)); in iwlagn_rx_statistics()

123456