Home
last modified time | relevance | path

Searched refs:tdc (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/drivers/dma/
H A Dtegra20-apb-dma.c176 typedef void (*dma_isr_handler)(struct tegra_dma_channel *tdc,
235 static inline void tdc_write(struct tegra_dma_channel *tdc, in tdc_write() argument
238 writel(val, tdc->chan_addr + reg); in tdc_write()
241 static inline u32 tdc_read(struct tegra_dma_channel *tdc, u32 reg) in tdc_read() argument
243 return readl(tdc->chan_addr + reg); in tdc_read()
257 static inline struct device *tdc2dev(struct tegra_dma_channel *tdc) in tdc2dev() argument
259 return &tdc->dma_chan.dev->device; in tdc2dev()
265 static struct tegra_dma_desc *tegra_dma_desc_get(struct tegra_dma_channel *tdc) in tegra_dma_desc_get() argument
270 spin_lock_irqsave(&tdc->lock, flags); in tegra_dma_desc_get()
273 list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { in tegra_dma_desc_get()
[all …]
H A Dtegra186-gpc-dma.c184 int (*terminate)(struct tegra_dma_channel *tdc);
223 struct tegra_dma_channel *tdc; member
261 static inline void tdc_write(struct tegra_dma_channel *tdc, in tdc_write() argument
264 writel_relaxed(val, tdc->tdma->base_addr + tdc->chan_base_offset + reg); in tdc_write()
267 static inline u32 tdc_read(struct tegra_dma_channel *tdc, u32 reg) in tdc_read() argument
269 return readl_relaxed(tdc->tdma->base_addr + tdc->chan_base_offset + reg); in tdc_read()
282 static inline struct device *tdc2dev(struct tegra_dma_channel *tdc) in tdc2dev() argument
284 return tdc->vc.chan.device->dev; in tdc2dev()
287 static void tegra_dma_dump_chan_regs(struct tegra_dma_channel *tdc) in tegra_dma_dump_chan_regs() argument
289 dev_dbg(tdc2dev(tdc), "DMA Channel %d name %s register dump:\n", in tegra_dma_dump_chan_regs()
[all …]
H A Dtegra210-adma.c178 static inline void tdma_ch_write(struct tegra_adma_chan *tdc, u32 reg, u32 val) in tdma_ch_write() argument
180 writel(val, tdc->chan_addr + reg); in tdma_ch_write()
183 static inline u32 tdma_ch_read(struct tegra_adma_chan *tdc, u32 reg) in tdma_ch_read() argument
185 return readl(tdc->chan_addr + reg); in tdma_ch_read()
199 static inline struct device *tdc2dev(struct tegra_adma_chan *tdc) in tdc2dev() argument
201 return tdc->tdma->dev; in tdc2dev()
212 struct tegra_adma_chan *tdc = to_tegra_adma_chan(dc); in tegra_adma_slave_config() local
214 memcpy(&tdc->sconfig, sconfig, sizeof(*sconfig)); in tegra_adma_slave_config()
245 static int tegra_adma_request_alloc(struct tegra_adma_chan *tdc, in tegra_adma_request_alloc() argument
248 struct tegra_adma *tdma = tdc->tdma; in tegra_adma_request_alloc()
[all …]
/openbmc/qemu/hw/s390x/
H A Dtod-kvm.c119 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in kvm_s390_tod_realize() local
122 tdc->parent_realize(dev, &local_err); in kvm_s390_tod_realize()
138 S390TODClass *tdc = S390_TOD_CLASS(oc); in kvm_s390_tod_class_init() local
141 &tdc->parent_realize); in kvm_s390_tod_class_init()
142 tdc->get = kvm_s390_tod_get; in kvm_s390_tod_class_init()
143 tdc->set = kvm_s390_tod_set; in kvm_s390_tod_class_init()
H A Dtod.c59 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in s390_tod_save() local
63 tdc->get(td, &tod, &err); in s390_tod_save()
80 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in s390_tod_load() local
93 tdc->set(td, &tod, &err); in s390_tod_load()
H A Dtod-tcg.c57 S390TODClass *tdc = S390_TOD_CLASS(oc); in qemu_s390_tod_class_init() local
59 tdc->get = qemu_s390_tod_get; in qemu_s390_tod_class_init()
60 tdc->set = qemu_s390_tod_set; in qemu_s390_tod_class_init()
/openbmc/linux/drivers/net/can/dev/
H A Dnetlink.c143 struct can_tdc tdc = { 0 }; in can_tdc_changelink() local
161 tdc.tdcv = tdcv; in can_tdc_changelink()
170 tdc.tdco = tdco; in can_tdc_changelink()
179 tdc.tdcf = tdcf; in can_tdc_changelink()
182 priv->tdc = tdc; in can_tdc_changelink()
234 memset(&priv->tdc, 0, sizeof(priv->tdc)); in can_changelink()
336 memset(&priv->tdc, 0, sizeof(priv->tdc)); in can_changelink()
349 can_calc_tdco(&priv->tdc, priv->tdc_const, &dbt, in can_changelink()
471 struct can_tdc *tdc = &priv->tdc; in can_tdc_fill_info() local
498 tdcv = tdc->tdcv; in can_tdc_fill_info()
[all …]
H A Dcalc_bittiming.c174 void can_calc_tdco(struct can_tdc *tdc, const struct can_tdc_const *tdc_const, in can_calc_tdco() argument
195 tdc->tdco = min(sample_point_in_tc, tdc_const->tdco_max); in can_calc_tdco()
/openbmc/linux/tools/testing/selftests/tc-testing/
H A DREADME1 tdc - Linux Traffic Control (tc) unit testing suite
5 tdc is a Python script to load tc unit tests from a separate JSON file and
20 * The kernel must have the appropriate infrastructure enabled to run all tdc
26 ./tdc.py -c
29 In the current release, tdc run will abort due to a failure in setup or
44 using the -p option when running tdc:
45 ./tdc.py -p /path/to/tc
51 To use tdc, root privileges are required. This is because the
60 to tdc when starting a test run; the veth pair will still be created
63 Running tdc without any arguments will run all tests. Refer to the section
[all …]
H A Dtdc.sh6 ./tdc.py -c actions --nobuildebpf
7 ./tdc.py -c qdisc
H A DMakefile30 TEST_PROGS += ./tdc.sh
31 TEST_FILES := tdc*.py Tdc*.py plugins plugin-lib tc-tests
H A DTODO.txt8 - Improve error messages when tdc aborts its run. Partially done - still
13 - Allow tdc to write its results to file.
/openbmc/linux/tools/testing/selftests/tc-testing/creating-testcases/
H A DAddingTestCases.txt1 tdc - Adding test cases for tdc
12 Include the 'id' field, but do not assign a value. Running tdc with the -i
15 tdc will recursively search the 'tc-tests' subdirectory (or the
19 tdc with the -f argument and the path to your file, or the -D argument
37 then tdc will not execute the test case in question. However,
56 tdc will compare this value against the actual returned value.
83 in the test cases. tdc will output a series of TAP results for the skipped
/openbmc/linux/tools/testing/selftests/tc-testing/plugin-lib/
H A DREADME-PLUGINS1 tdc.py will look for plugins in a directory plugins off the cwd.
5 tdc.py
14 tdc.py will find them and use them.
/openbmc/linux/tools/testing/selftests/tc-testing/creating-plugins/
H A DAddingPlugins.txt1 tdc - Adding plugins for tdc
48 TAP output. The tdc.py script will do that for the test suite as
84 The adjust_command method must return the adjusted command so tdc
92 conflict with any from tdc.py or from other plugins that will be used
/openbmc/linux/include/linux/can/
H A Dbittiming.h121 void can_calc_tdco(struct can_tdc *tdc, const struct can_tdc_const *tdc_const,
134 can_calc_tdco(struct can_tdc *tdc, const struct can_tdc_const *tdc_const, in can_calc_tdco() argument
H A Ddev.h52 struct can_tdc tdc; member
121 return (s32)priv->tdc.tdco - sample_point_in_tc; in can_get_relative_tdco()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_diag.c105 struct qib_diag_client *tdc, *rdc; in return_client() local
112 tdc = dc->dd->diag_client; in return_client()
113 while (tdc) { in return_client()
114 if (dc == tdc->next) { in return_client()
115 tdc->next = dc->next; in return_client()
119 tdc = tdc->next; in return_client()
/openbmc/linux/drivers/platform/x86/
H A Dintel_ips.c1237 int tdp, tdc; in cpu_clamp_show() local
1242 tdc = (int)((turbo_override & TURBO_TDC_MASK) >> TURBO_TDC_SHIFT); in cpu_clamp_show()
1246 tdc = tdc * 10 / 8; in cpu_clamp_show()
1250 tdc / 10, tdc % 10); in cpu_clamp_show()
/openbmc/linux/arch/s390/include/asm/
H A Dctl_reg.h124 unsigned long tdc : 2; member
/openbmc/qemu/target/s390x/tcg/
H A Dmisc_helper.c93 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in HELPER()
96 tdc->get(td, &tod, &error_abort); in HELPER()
225 S390TODClass *tdc = S390_TOD_GET_CLASS(td); in HELPER() local
232 tdc->set(td, &tod, &error_abort); in HELPER()
/openbmc/linux/drivers/net/can/ifi_canfd/
H A Difi_canfd.c673 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local
698 tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); in ifi_canfd_set_bittiming()
699 tdc &= IFI_CANFD_TDELAY_MASK; in ifi_canfd_set_bittiming()
700 writel(IFI_CANFD_TDELAY_EN | tdc, priv->base + IFI_CANFD_TDELAY); in ifi_canfd_set_bittiming()
/openbmc/linux/drivers/net/can/usb/
H A Desd_usb.c235 struct esd_usb_3_tdc_cfg tdc; /* TDC configuration */ member
1135 baud_x->tdc.tdc_mode = ESD_USB_3_TDC_MODE_AUTO; in esd_usb_3_set_bittiming()
1136 baud_x->tdc.ssp_offset = 0; in esd_usb_3_set_bittiming()
1137 baud_x->tdc.ssp_shift = 0; in esd_usb_3_set_bittiming()
1138 baud_x->tdc.tdc_filter = 0; in esd_usb_3_set_bittiming()
/openbmc/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_fd.c434 tx_conf_msg.tdco = cpu_to_le16(priv->can.tdc.tdco); in es58x_fd_enable_channel()
435 tx_conf_msg.tdcf = cpu_to_le16(priv->can.tdc.tdcf); in es58x_fd_enable_channel()
/openbmc/linux/arch/s390/kernel/
H A Dptrace.c60 cr2_new.tdc = 0; in update_cr_regs()
63 cr2_new.tdc = 1; in update_cr_regs()
65 cr2_new.tdc = 2; in update_cr_regs()

12