Home
last modified time | relevance | path

Searched refs:tre (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-6.6/drivers/bus/mhi/
H A Dcommon.h144 #define MHI_TRE_GET_DWORD(tre, word) le32_to_cpu((tre)->dword[(word)])
145 #define MHI_TRE_GET_CMD_CHID(tre) FIELD_GET(GENMASK(31, 24), MHI_TRE_GET_DWORD(tre, 1))
146 #define MHI_TRE_GET_CMD_TYPE(tre) FIELD_GET(GENMASK(23, 16), MHI_TRE_GET_DWORD(tre, 1))
154 #define MHI_TRE_GET_EV_PTR(tre) le64_to_cpu((tre)->ptr)
155 #define MHI_TRE_GET_EV_CODE(tre) FIELD_GET(GENMASK(31, 24), (MHI_TRE_GET_DWORD(tre,
[all...]
/kernel/linux/linux-5.10/drivers/dma/qcom/
H A Dhidma_ll.c118 struct hidma_tre *tre; in hidma_ll_free() local
125 tre = &lldev->trepool[tre_ch]; in hidma_ll_free()
126 if (atomic_read(&tre->allocated) != true) { in hidma_ll_free()
131 atomic_set(&tre->allocated, 0); in hidma_ll_free()
138 struct hidma_tre *tre; in hidma_ll_request() local
153 tre = &lldev->trepool[i]; in hidma_ll_request()
154 tre->dma_sig = sig; in hidma_ll_request()
155 tre->dev_name = dev_name; in hidma_ll_request()
156 tre->callback = callback; in hidma_ll_request()
157 tre in hidma_ll_request()
179 struct hidma_tre *tre; hidma_ll_tre_complete() local
191 struct hidma_tre *tre; hidma_post_completed() local
526 struct hidma_tre *tre; hidma_ll_queue_request() local
602 struct hidma_tre *tre; hidma_ll_set_transfer_params() local
837 struct hidma_tre *tre; hidma_ll_status() local
[all...]
H A Dhidma_dbg.c18 struct hidma_tre *tre; in hidma_ll_chstats() local
28 tre = &lldev->trepool[tre_ch]; in hidma_ll_chstats()
30 seq_printf(s, "allocated=%d\n", atomic_read(&tre->allocated)); in hidma_ll_chstats()
31 seq_printf(s, "queued = 0x%x\n", tre->queued); in hidma_ll_chstats()
32 seq_printf(s, "err_info = 0x%x\n", tre->err_info); in hidma_ll_chstats()
33 seq_printf(s, "err_code = 0x%x\n", tre->err_code); in hidma_ll_chstats()
34 seq_printf(s, "status = 0x%x\n", tre->status); in hidma_ll_chstats()
35 seq_printf(s, "idx = 0x%x\n", tre->idx); in hidma_ll_chstats()
36 seq_printf(s, "dma_sig = 0x%x\n", tre->dma_sig); in hidma_ll_chstats()
37 seq_printf(s, "dev_name=%s\n", tre in hidma_ll_chstats()
[all...]
/kernel/linux/linux-6.6/drivers/dma/qcom/
H A Dhidma_ll.c118 struct hidma_tre *tre; in hidma_ll_free() local
125 tre = &lldev->trepool[tre_ch]; in hidma_ll_free()
126 if (atomic_read(&tre->allocated) != true) { in hidma_ll_free()
131 atomic_set(&tre->allocated, 0); in hidma_ll_free()
138 struct hidma_tre *tre; in hidma_ll_request() local
153 tre = &lldev->trepool[i]; in hidma_ll_request()
154 tre->dma_sig = sig; in hidma_ll_request()
155 tre->dev_name = dev_name; in hidma_ll_request()
156 tre->callback = callback; in hidma_ll_request()
157 tre in hidma_ll_request()
179 struct hidma_tre *tre; hidma_ll_tre_complete() local
191 struct hidma_tre *tre; hidma_post_completed() local
526 struct hidma_tre *tre; hidma_ll_queue_request() local
602 struct hidma_tre *tre; hidma_ll_set_transfer_params() local
837 struct hidma_tre *tre; hidma_ll_status() local
[all...]
H A Dhidma_dbg.c18 struct hidma_tre *tre; in hidma_ll_chstats() local
28 tre = &lldev->trepool[tre_ch]; in hidma_ll_chstats()
30 seq_printf(s, "allocated=%d\n", atomic_read(&tre->allocated)); in hidma_ll_chstats()
31 seq_printf(s, "queued = 0x%x\n", tre->queued); in hidma_ll_chstats()
32 seq_printf(s, "err_info = 0x%x\n", tre->err_info); in hidma_ll_chstats()
33 seq_printf(s, "err_code = 0x%x\n", tre->err_code); in hidma_ll_chstats()
34 seq_printf(s, "status = 0x%x\n", tre->status); in hidma_ll_chstats()
35 seq_printf(s, "idx = 0x%x\n", tre->idx); in hidma_ll_chstats()
36 seq_printf(s, "dma_sig = 0x%x\n", tre->dma_sig); in hidma_ll_chstats()
37 seq_printf(s, "dev_name=%s\n", tre in hidma_ll_chstats()
[all...]
H A Dgpi.c532 struct gpi_tre tre[MAX_TRE]; member
934 void *tre = ch_ring->base + (ch_ring->el_size * imed_event->tre_index); in gpi_process_imed_data_event() local
963 gpi_tre = tre; in gpi_process_imed_data_event()
975 * we need to update ring rp to tre + 1 in gpi_process_imed_data_event()
977 tre += ch_ring->el_size; in gpi_process_imed_data_event()
978 if (tre >= (ch_ring->base + ch_ring->len)) in gpi_process_imed_data_event()
979 tre = ch_ring->base; in gpi_process_imed_data_event()
980 ch_ring->rp = tre; in gpi_process_imed_data_event()
1454 /* copy tre into transfer ring */
1461 /* get next tre locatio in gpi_queue_xfer()
1644 struct gpi_tre *tre; gpi_create_i2c_tre() local
1719 struct gpi_tre *tre; gpi_create_spi_tre() local
1861 void *tre, *wp = NULL; gpi_issue_pending() local
[all...]
/kernel/linux/linux-5.10/drivers/bus/mhi/host/
H A Dinternal.h300 #define MHI_TRE_GET_CMD_CHID(tre) (((tre)->dword[1] >> 24) & 0xFF)
301 #define MHI_TRE_GET_CMD_TYPE(tre) (((tre)->dword[1] >> 16) & 0xFF)
307 #define MHI_TRE_GET_EV_PTR(tre) ((tre)->ptr)
308 #define MHI_TRE_GET_EV_CODE(tre) (((tre)->dword[0] >> 24) & 0xFF)
309 #define MHI_TRE_GET_EV_LEN(tre) ((tre)
[all...]
H A Dmain.c538 "Event element points outside of the tre ring\n"); in parse_xfer_event()
695 struct mhi_tre *tre) in mhi_process_cmd_completion()
697 dma_addr_t ptr = MHI_TRE_GET_EV_PTR(tre); in mhi_process_cmd_completion()
718 mhi_chan->ccs = MHI_TRE_GET_EV_CODE(tre); in mhi_process_cmd_completion()
1277 /* prepare the cmd tre */ in mhi_send_cmd()
694 mhi_process_cmd_completion(struct mhi_controller *mhi_cntrl, struct mhi_tre *tre) mhi_process_cmd_completion() argument
/kernel/linux/linux-5.10/drivers/net/ipa/
H A Dgsi_trans.c516 struct gsi_tre tre; in gsi_trans_tre_fill() local
518 tre.addr = cpu_to_le64(addr); in gsi_trans_tre_fill()
519 tre.len_opcode = gsi_tre_len_opcode(opcode, len); in gsi_trans_tre_fill()
520 tre.reserved = 0; in gsi_trans_tre_fill()
521 tre.flags = gsi_tre_flags(last_tre, bei, opcode); in gsi_trans_tre_fill()
526 *dest_tre = tre; in gsi_trans_tre_fill()
/kernel/linux/linux-6.6/drivers/net/ipa/
H A Dgsi_trans.c521 struct gsi_tre tre; in gsi_trans_tre_fill() local
523 tre.addr = cpu_to_le64(addr); in gsi_trans_tre_fill()
524 tre.len_opcode = gsi_tre_len_opcode(opcode, len); in gsi_trans_tre_fill()
525 tre.reserved = 0; in gsi_trans_tre_fill()
526 tre.flags = gsi_tre_flags(last_tre, bei, opcode); in gsi_trans_tre_fill()
531 *dest_tre = tre; in gsi_trans_tre_fill()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_entity.h152 u32 tre; member
H A Dcxgb4_debugfs.c909 unsigned int tre = TIMERRESOLUTION_G(res); in clk_show() local
911 unsigned long long tp_tick_us = (cclk_ps << tre) / 1000000; /* in us */ in clk_show()
916 unit_conv(buf, sizeof(buf), (cclk_ps << tre), 1000000)); in clk_show()
H A Dcxgb4.h349 unsigned int tre; /* log2 of core clocks per TP tick */ member
H A Dcudbg_lib.c1981 clk_info_buff->tre = TIMERRESOLUTION_G(clk_info_buff->res); in cudbg_collect_clk_info()
1983 tp_tick_us = (clk_info_buff->cclk_ps << clk_info_buff->tre) / 1000000; in cudbg_collect_clk_info()
H A Dt4_hw.c9447 adap->params.tp.tre = TIMERRESOLUTION_G(v); in t4_init_tp_params()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_entity.h152 u32 tre; member
H A Dcxgb4_debugfs.c909 unsigned int tre = TIMERRESOLUTION_G(res); in clk_show() local
911 unsigned long long tp_tick_us = (cclk_ps << tre) / 1000000; /* in us */ in clk_show()
916 unit_conv(buf, sizeof(buf), (cclk_ps << tre), 1000000)); in clk_show()
H A Dcxgb4.h349 unsigned int tre; /* log2 of core clocks per TP tick */ member
H A Dcudbg_lib.c1981 clk_info_buff->tre = TIMERRESOLUTION_G(clk_info_buff->res); in cudbg_collect_clk_info()
1983 tp_tick_us = (clk_info_buff->cclk_ps << clk_info_buff->tre) / 1000000; in cudbg_collect_clk_info()
H A Dt4_hw.c9416 adap->params.tp.tre = TIMERRESOLUTION_G(v); in t4_init_tp_params()
/kernel/linux/linux-6.6/drivers/bus/mhi/host/
H A Dmain.c612 "Event element points outside of the tre ring\n"); in parse_xfer_event()
772 struct mhi_ring_element *tre) in mhi_process_cmd_completion()
774 dma_addr_t ptr = MHI_TRE_GET_EV_PTR(tre); in mhi_process_cmd_completion()
795 mhi_chan->ccs = MHI_TRE_GET_EV_CODE(tre); in mhi_process_cmd_completion()
1297 /* prepare the cmd tre */ in mhi_send_cmd()
771 mhi_process_cmd_completion(struct mhi_controller *mhi_cntrl, struct mhi_ring_element *tre) mhi_process_cmd_completion() argument
/kernel/linux/linux-6.6/drivers/bus/mhi/ep/
H A Dmain.c72 struct mhi_ring_element *tre, u32 len, enum mhi_ev_ccs code) in mhi_ep_send_completion_event()
81 event->ptr = cpu_to_le64(ring->rbase + ring->rd_offset * sizeof(*tre)); in mhi_ep_send_completion_event()
85 ret = mhi_ep_send_event(mhi_cntrl, ring->er_index, event, MHI_TRE_DATA_GET_BEI(tre)); in mhi_ep_send_completion_event()
71 mhi_ep_send_completion_event(struct mhi_ep_cntrl *mhi_cntrl, struct mhi_ep_ring *ring, struct mhi_ring_element *tre, u32 len, enum mhi_ev_ccs code) mhi_ep_send_completion_event() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_hw.c2738 unsigned int tre = fls(core_clk / (1000000 / TP_TMR_RES)) - 1; in tp_set_timers() local
2741 unsigned int tps = core_clk >> tre; in tp_set_timers()
2743 t3_write_reg(adap, A_TP_TIMER_RESOLUTION, V_TIMERRESOLUTION(tre) | in tp_set_timers()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_hw.c2673 unsigned int tre = fls(core_clk / (1000000 / TP_TMR_RES)) - 1; in tp_set_timers() local
2676 unsigned int tps = core_clk >> tre; in tp_set_timers()
2678 t3_write_reg(adap, A_TP_TIMER_RESOLUTION, V_TIMERRESOLUTION(tre) | in tp_set_timers()

Completed in 78 milliseconds