Home
last modified time | relevance | path

Searched full:gpd (Results 1 – 25 of 91) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_qmu.c13 * By preparing General Purpose Descriptor (GPD) and Buffer Descriptor (BD),
16 * And now only GPD is supported.
34 #define GET_GPD_HWO(gpd) (le32_to_cpu((gpd)->dw0_info) & GPD_FLAGS_HWO) argument
133 struct qmu_gpd *gpd) in gpd_virt_to_dma() argument
139 offset = gpd - gpd_head; in gpd_virt_to_dma()
143 return dma_base + (offset * sizeof(*gpd)); in gpd_virt_to_dma()
146 static void gpd_ring_init(struct mtu3_gpd_ring *ring, struct qmu_gpd *gpd) in gpd_ring_init() argument
148 ring->start = gpd; in gpd_ring_init()
149 ring->enqueue = gpd; in gpd_ring_init()
150 ring->dequeue = gpd; in gpd_ring_init()
[all …]
Dmtu3_trace.h124 __field(struct qmu_gpd *, gpd)
134 __entry->gpd = mreq->gpd;
141 TP_printk("%s: req %p gpd %p len %u/%u %s%s --> %d",
142 __get_str(name), __entry->mreq, __entry->gpd,
176 TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
177 TP_ARGS(mep, gpd),
180 __field(struct qmu_gpd *, gpd)
188 __entry->gpd = gpd;
189 __entry->dw0 = le32_to_cpu(gpd->dw0_info);
190 __entry->dw1 = le32_to_cpu(gpd->next_gpd);
[all …]
Dmtu3.h143 * General Purpose Descriptor (GPD):
144 * The format of TX GPD is a little different from RX one.
145 * And the size of GPD is 16 bytes.
150 * bit2: Bypass (BPS), 1: HW skips this GPD if HWO = 1
158 * @next_gpd: Physical address of the next GPD
177 * dma: physical base address of GPD segment
178 * start: virtual base address of GPD segment
179 * end: the last GPD element
180 * enqueue: the first empty GPD to use
181 * dequeue: the first completed GPD serviced by ISR
[all …]
Dmtu3_debugfs.c223 struct qmu_gpd *gpd; in mtu3_qmu_gpd_show() local
230 gpd = ring->start; in mtu3_qmu_gpd_show()
231 if (!gpd || !(mep->flags & MTU3_EP_ENABLED)) { in mtu3_qmu_gpd_show()
236 for (i = 0; i < MAX_GPD_NUM; i++, gpd++) { in mtu3_qmu_gpd_show()
237 dma = ring->dma + i * sizeof(*gpd); in mtu3_qmu_gpd_show()
238 seq_printf(sf, "gpd.%03d -> %pad, %p: %08x %08x %08x %08x\n", in mtu3_qmu_gpd_show()
239 i, &dma, gpd, gpd->dw0_info, gpd->next_gpd, in mtu3_qmu_gpd_show()
240 gpd->buffer, gpd->dw3_info); in mtu3_qmu_gpd_show()
253 {"qmu-gpd", mtu3_qmu_gpd_show, },
/kernel/linux/linux-6.6/drivers/usb/mtu3/
Dmtu3_qmu.c13 * By preparing General Purpose Descriptor (GPD) and Buffer Descriptor (BD),
16 * And now only GPD is supported.
34 #define GET_GPD_HWO(gpd) (le32_to_cpu((gpd)->dw0_info) & GPD_FLAGS_HWO) argument
133 struct qmu_gpd *gpd) in gpd_virt_to_dma() argument
139 offset = gpd - gpd_head; in gpd_virt_to_dma()
143 return dma_base + (offset * sizeof(*gpd)); in gpd_virt_to_dma()
146 static void gpd_ring_init(struct mtu3_gpd_ring *ring, struct qmu_gpd *gpd) in gpd_ring_init() argument
148 ring->start = gpd; in gpd_ring_init()
149 ring->enqueue = gpd; in gpd_ring_init()
150 ring->dequeue = gpd; in gpd_ring_init()
[all …]
Dmtu3_trace.h122 __field(struct qmu_gpd *, gpd)
132 __entry->gpd = mreq->gpd;
139 TP_printk("%s: req %p gpd %p len %u/%u %s%s --> %d",
140 __get_str(name), __entry->mreq, __entry->gpd,
174 TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
175 TP_ARGS(mep, gpd),
178 __field(struct qmu_gpd *, gpd)
186 __entry->gpd = gpd;
187 __entry->dw0 = le32_to_cpu(gpd->dw0_info);
188 __entry->dw1 = le32_to_cpu(gpd->next_gpd);
[all …]
Dmtu3.h148 * General Purpose Descriptor (GPD):
149 * The format of TX GPD is a little different from RX one.
150 * And the size of GPD is 16 bytes.
155 * bit2: Bypass (BPS), 1: HW skips this GPD if HWO = 1
163 * @next_gpd: Physical address of the next GPD
182 * dma: physical base address of GPD segment
183 * start: virtual base address of GPD segment
184 * end: the last GPD element
185 * enqueue: the first empty GPD to use
186 * dequeue: the first completed GPD serviced by ISR
[all …]
Dmtu3_debugfs.c224 struct qmu_gpd *gpd; in mtu3_qmu_gpd_show() local
231 gpd = ring->start; in mtu3_qmu_gpd_show()
232 if (!gpd || !(mep->flags & MTU3_EP_ENABLED)) { in mtu3_qmu_gpd_show()
237 for (i = 0; i < MAX_GPD_NUM; i++, gpd++) { in mtu3_qmu_gpd_show()
238 dma = ring->dma + i * sizeof(*gpd); in mtu3_qmu_gpd_show()
239 seq_printf(sf, "gpd.%03d -> %pad, %p: %08x %08x %08x %08x\n", in mtu3_qmu_gpd_show()
240 i, &dma, gpd, gpd->dw0_info, gpd->next_gpd, in mtu3_qmu_gpd_show()
241 gpd->buffer, gpd->dw3_info); in mtu3_qmu_gpd_show()
254 {"qmu-gpd", mtu3_qmu_gpd_show, },
/kernel/linux/linux-6.6/drivers/net/wwan/t7xx/
Dt7xx_hif_cldma.c81 static void t7xx_cldma_gpd_set_data_ptr(struct cldma_gpd *gpd, dma_addr_t data_ptr) in t7xx_cldma_gpd_set_data_ptr() argument
83 gpd->data_buff_bd_ptr_h = cpu_to_le32(upper_32_bits(data_ptr)); in t7xx_cldma_gpd_set_data_ptr()
84 gpd->data_buff_bd_ptr_l = cpu_to_le32(lower_32_bits(data_ptr)); in t7xx_cldma_gpd_set_data_ptr()
87 static void t7xx_cldma_gpd_set_next_ptr(struct cldma_gpd *gpd, dma_addr_t next_ptr) in t7xx_cldma_gpd_set_next_ptr() argument
89 gpd->next_gpd_ptr_h = cpu_to_le32(upper_32_bits(next_ptr)); in t7xx_cldma_gpd_set_next_ptr()
90 gpd->next_gpd_ptr_l = cpu_to_le32(lower_32_bits(next_ptr)); in t7xx_cldma_gpd_set_next_ptr()
125 struct cldma_gpd *gpd; in t7xx_cldma_gpd_rx_from_q() local
133 gpd = req->gpd; in t7xx_cldma_gpd_rx_from_q()
134 if ((gpd->flags & GPD_FLAGS_HWO) || !req->skb) { in t7xx_cldma_gpd_rx_from_q()
163 skb_put(skb, le16_to_cpu(gpd->data_buff_len)); in t7xx_cldma_gpd_rx_from_q()
[all …]
Dt7xx_hif_cldma.h59 struct cldma_gpd *gpd; /* Virtual address for CPU */ member
97 /* Assumes T/R GPD/BD/SPD have the same size */
/kernel/linux/linux-5.10/drivers/soc/xilinx/
Dzynqmp_pm_domains.c30 * @gpd: Generic power domain
35 struct generic_pm_domain gpd; member
77 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_power_on()
109 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_power_off()
158 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_attach_dev()
191 pd = container_of(domain, struct zynqmp_pm_domain, gpd); in zynqmp_gpd_detach_dev()
218 pd = container_of(genpd_data->domains[0], struct zynqmp_pm_domain, gpd); in zynqmp_gpd_xlate()
276 pd->gpd.name = kasprintf(GFP_KERNEL, "domain%d", i); in zynqmp_gpd_probe()
277 pd->gpd.power_off = zynqmp_gpd_power_off; in zynqmp_gpd_probe()
278 pd->gpd.power_on = zynqmp_gpd_power_on; in zynqmp_gpd_probe()
[all …]
/kernel/linux/linux-5.10/arch/mips/boot/dts/ingenic/
Dqi_lb60.dts42 gpio = <&gpd 2 0>;
51 gpio = <&gpd 4 0>;
101 gpios = <&gpd 29 GPIO_ACTIVE_LOW>;
112 row-gpios = <&gpd 18 0>, <&gpd 19 0>, <&gpd 20 0>, <&gpd 21 0>,
113 <&gpd 22 0>, <&gpd 23 0>, <&gpd 24 0>, <&gpd 26 0>;
195 gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
352 cd-gpios = <&gpd 0 GPIO_ACTIVE_HIGH>;
Drs90.dts67 gpios = <&gpd 21 GPIO_ACTIVE_LOW>;
92 gpios = <&gpd 17 GPIO_ACTIVE_LOW>;
141 simple-audio-card,hp-det-gpio = <&gpd 16 GPIO_ACTIVE_LOW>;
/kernel/linux/linux-6.6/arch/mips/boot/dts/ingenic/
Dqi_lb60.dts42 gpio = <&gpd 2 0>;
51 gpio = <&gpd 4 0>;
101 gpios = <&gpd 29 GPIO_ACTIVE_LOW>;
112 row-gpios = <&gpd 18 0>, <&gpd 19 0>, <&gpd 20 0>, <&gpd 21 0>,
113 <&gpd 22 0>, <&gpd 23 0>, <&gpd 24 0>, <&gpd 26 0>;
195 gpios = <&gpd 28 GPIO_ACTIVE_LOW>;
352 cd-gpios = <&gpd 0 GPIO_ACTIVE_HIGH>;
Drs90.dts77 gpios = <&gpd 21 GPIO_ACTIVE_LOW>;
102 gpios = <&gpd 17 GPIO_ACTIVE_LOW>;
151 simple-audio-card,hp-det-gpio = <&gpd 16 GPIO_ACTIVE_LOW>;
/kernel/linux/linux-6.6/drivers/pmdomain/xilinx/
Dzynqmp-pm-domains.c28 * @gpd: Generic power domain
33 struct generic_pm_domain gpd; member
39 container_of(pm_domain, struct zynqmp_pm_domain, gpd)
277 pd->gpd.name = kasprintf(GFP_KERNEL, "domain%d", i); in zynqmp_gpd_probe()
278 pd->gpd.power_off = zynqmp_gpd_power_off; in zynqmp_gpd_probe()
279 pd->gpd.power_on = zynqmp_gpd_power_on; in zynqmp_gpd_probe()
280 pd->gpd.attach_dev = zynqmp_gpd_attach_dev; in zynqmp_gpd_probe()
281 pd->gpd.detach_dev = zynqmp_gpd_detach_dev; in zynqmp_gpd_probe()
283 domains[i] = &pd->gpd; in zynqmp_gpd_probe()
286 pm_genpd_init(&pd->gpd, NULL, true); in zynqmp_gpd_probe()
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_panel_orientation_quirks.c291 }, { /* GPD MicroPC (generic strings, also match on bios date) */
299 }, { /* GPD MicroPC (later BIOS versions with proper DMI strings) */
301 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
305 }, { /* GPD Win Max */
307 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
312 * GPD Pocket, note that the DMI data is less generic then
324 }, { /* GPD Pocket 2 (generic strings, also match on bios date) */
332 }, { /* GPD Win (same note on DMI match as GPD Pocket) */
340 }, { /* GPD Win 2 (too generic strings, also match on bios date) */
348 }, { /* GPD Win 2 (correct DMI strings) */
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_panel_orientation_quirks.c175 }, { /* GPD MicroPC (generic strings, also match on bios date) */
183 }, { /* GPD MicroPC (later BIOS versions with proper DMI strings) */
185 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
189 }, { /* GPD Win Max */
191 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
196 * GPD Pocket, note that the the DMI data is less generic then
208 }, { /* GPD Pocket 2 (generic strings, also match on bios date) */
216 }, { /* GPD Win (same note on DMI match as GPD Pocket) */
224 }, { /* GPD Win 2 (too generic strings, also match on bios date) */
232 }, { /* GPD Win 3 */
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/samsung/
Ds3c64xx-pinctrl.dtsi40 gpd: gpd-gpio-bank { label
329 samsung,pins = "gpd-0", "gpd-2", "gpd-3", "gpd-4";
335 samsung,pins = "gpd-1";
368 samsung,pins = "gpd-0", "gpd-2", "gpd-3", "gpd-4";
374 samsung,pins = "gpd-1";
392 samsung,pins = "gpd-0", "gpd-1", "gpd-2", "gpd-3", "gpd-4";
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Ds3c64xx-pinctrl.dtsi40 gpd: gpd-gpio-bank { label
329 samsung,pins = "gpd-0", "gpd-2", "gpd-3", "gpd-4";
335 samsung,pins = "gpd-1";
368 samsung,pins = "gpd-0", "gpd-2", "gpd-3", "gpd-4";
374 samsung,pins = "gpd-1";
392 samsung,pins = "gpd-0", "gpd-1", "gpd-2", "gpd-3", "gpd-4";
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acp.c122 struct generic_pm_domain gpd; member
130 apd = container_of(genpd, struct acp_pm_domain, gpd); in acp_poweroff()
149 apd = container_of(genpd, struct acp_pm_domain, gpd); in acp_poweron()
165 struct generic_pm_domain *gpd = data; in acp_genpd_add_device() local
168 ret = pm_genpd_add_device(gpd, dev); in acp_genpd_add_device()
229 adev->acp.acp_genpd->gpd.name = "ACP_AUDIO"; in acp_hw_init()
230 adev->acp.acp_genpd->gpd.power_off = acp_poweroff; in acp_hw_init()
231 adev->acp.acp_genpd->gpd.power_on = acp_poweron; in acp_hw_init()
236 pm_genpd_init(&adev->acp.acp_genpd->gpd, NULL, false); in acp_hw_init()
354 r = device_for_each_child(adev->acp.parent, &adev->acp.acp_genpd->gpd, in acp_hw_init()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acp.c127 struct generic_pm_domain gpd; member
135 apd = container_of(genpd, struct acp_pm_domain, gpd); in acp_poweroff()
152 apd = container_of(genpd, struct acp_pm_domain, gpd); in acp_poweron()
166 struct generic_pm_domain *gpd = data; in acp_genpd_add_device() local
169 ret = pm_genpd_add_device(gpd, dev); in acp_genpd_add_device()
259 adev->acp.acp_genpd->gpd.name = "ACP_AUDIO"; in acp_hw_init()
260 adev->acp.acp_genpd->gpd.power_off = acp_poweroff; in acp_hw_init()
261 adev->acp.acp_genpd->gpd.power_on = acp_poweron; in acp_hw_init()
264 pm_genpd_init(&adev->acp.acp_genpd->gpd, NULL, false); in acp_hw_init()
324 r = device_for_each_child(adev->acp.parent, &adev->acp.acp_genpd->gpd, in acp_hw_init()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/x86/
Dutils.c95 * The GPD win BIOS dated 20170221 has disabled the accelerometer, the
100 * only the GPD win and pocket entries' board_name is "Default string".
102 * Unfortunately the GPD pocket also uses these strings and its BIOS
103 * was copy-pasted from the GPD win, so it has a disabled KIOX000A
126 * The GPD win/pocket have a PCI wifi card, but its DSDT has the SDIO
/kernel/linux/linux-5.10/drivers/mmc/host/
Dmtk-sd.c346 struct mt_gpdma_desc *gpd; /* pointer to gpd array */ member
348 dma_addr_t gpd_addr; /* the physical address of gpd array */
652 struct mt_gpdma_desc *gpd; in msdc_dma_setup() local
657 gpd = dma->gpd; in msdc_dma_setup()
660 /* modify gpd */ in msdc_dma_setup()
661 gpd->gpd_info |= GPDMA_DESC_HWO; in msdc_dma_setup()
662 gpd->gpd_info |= GPDMA_DESC_BDP; in msdc_dma_setup()
664 gpd->gpd_info &= ~GPDMA_DESC_CHECKSUM; in msdc_dma_setup()
665 gpd->gpd_info |= msdc_dma_calcs((u8 *) gpd, 16) << 8; in msdc_dma_setup()
1757 /* init gpd and bd list in msdc_drv_probe */
[all …]
/kernel/linux/linux-6.6/drivers/mmc/host/
Dmtk-sd.c369 struct mt_gpdma_desc *gpd; /* pointer to gpd array */ member
371 dma_addr_t gpd_addr; /* the physical address of gpd array */
711 struct mt_gpdma_desc *gpd; in msdc_dma_setup() local
716 gpd = dma->gpd; in msdc_dma_setup()
719 /* modify gpd */ in msdc_dma_setup()
720 gpd->gpd_info |= GPDMA_DESC_HWO; in msdc_dma_setup()
721 gpd->gpd_info |= GPDMA_DESC_BDP; in msdc_dma_setup()
723 gpd->gpd_info &= ~GPDMA_DESC_CHECKSUM; in msdc_dma_setup()
724 gpd->gpd_info |= msdc_dma_calcs((u8 *) gpd, 16) << 8; in msdc_dma_setup()
1868 /* init gpd and bd list in msdc_drv_probe */
[all …]

1234