Home
last modified time | relevance | path

Searched refs:ptd (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/thermal/intel/
H A Dintel_pch_thermal.c96 static int pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, in pch_wpt_add_acpi_psv_trip() argument
102 adev = ACPI_COMPANION(&ptd->pdev->dev); in pch_wpt_add_acpi_psv_trip()
114 static int pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, in pch_wpt_add_acpi_psv_trip() argument
123 struct pch_thermal_device *ptd = thermal_zone_device_priv(tzd); in pch_thermal_get_temp() local
125 *temp = GET_WPT_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP)); in pch_thermal_get_temp()
165 struct pch_thermal_device *ptd; in intel_pch_thermal_probe() local
171 ptd = devm_kzalloc(&pdev->dev, sizeof(*ptd), GFP_KERNEL); in intel_pch_thermal_probe()
172 if (!ptd) in intel_pch_thermal_probe()
175 pci_set_drvdata(pdev, ptd); in intel_pch_thermal_probe()
176 ptd->pdev = pdev; in intel_pch_thermal_probe()
[all …]
/linux/drivers/usb/isp1760/
H A Disp1760-hcd.c58 struct ptd { struct
494 struct ptd *ptd) in isp1760_ptd_read() argument
496 u16 src_offset = ptd_offset + slot * sizeof(*ptd); in isp1760_ptd_read()
502 bank_reads8(priv->base, src_offset, ISP_BANK_0, (void *)ptd, in isp1760_ptd_read()
503 sizeof(*ptd)); in isp1760_ptd_read()
507 struct ptd *ptd) in isp1763_ptd_read() argument
509 u16 src_offset = ptd_offset + slot * sizeof(*ptd); in isp1763_ptd_read()
514 ptd->dw0 = le32_to_dw(le32_ptd.dw0); in isp1763_ptd_read()
515 ptd->dw1 = le32_to_dw(le32_ptd.dw1); in isp1763_ptd_read()
516 ptd->dw2 = le32_to_dw(le32_ptd.dw2); in isp1763_ptd_read()
[all …]
/linux/drivers/usb/host/
H A Disp116x.h162 struct ptd { struct
304 struct ptd ptd; member
542 #define PTD_DIR_STR(ptd) ({char __c; \ argument
543 switch(PTD_GET_DIR(ptd)){ \
553 static inline void dump_ptd(struct ptd *ptd) in dump_ptd() argument
556 PTD_GET_CC(ptd), PTD_GET_FA(ptd), in dump_ptd()
557 PTD_DIR_STR(ptd), PTD_GET_EP(ptd), in dump_ptd()
558 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd), in dump_ptd()
559 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd), in dump_ptd()
560 PTD_GET_SPD(ptd), PTD_GET_LAST(ptd)); in dump_ptd()
[all …]
H A Disp1362.h202 struct ptd { struct
226 #define PTD_HEADER_SIZE sizeof(struct ptd) argument
385 struct ptd ptd; member
864 static void dump_ptd(struct ptd *ptd) in dump_ptd() argument
867 container_of(ptd, struct isp1362_ep, ptd), in dump_ptd()
868 PTD_GET_CC(ptd), PTD_GET_EP(ptd), PTD_GET_DIR(ptd), in dump_ptd()
869 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd), in dump_ptd()
870 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd), PTD_GET_FA(ptd), in dump_ptd()
871 PTD_GET_SPD(ptd), PTD_GET_SF_INT(ptd), PTD_GET_PR(ptd), PTD_GET_LAST(ptd)); in dump_ptd()
872 DBG(0, " %04x %04x %04x %04x\n", ptd->count, ptd->mps, ptd->len, ptd->faddr); in dump_ptd()
[all …]
H A Disp116x-hcd.c169 struct ptd *ptd; in pack_fifo() local
177 ptd = &ep->ptd; in pack_fifo()
178 dump_ptd(ptd); in pack_fifo()
179 dump_ptd_out_data(ptd, ep->data); in pack_fifo()
180 isp116x_write_data16(isp116x, ptd->count); in pack_fifo()
181 isp116x_write_data16(isp116x, ptd->mps); in pack_fifo()
182 isp116x_write_data16(isp116x, ptd->len); in pack_fifo()
183 isp116x_write_data16(isp116x, ptd->faddr); in pack_fifo()
184 buflen -= sizeof(struct ptd); in pack_fifo()
201 struct ptd *ptd; in unpack_fifo() local
[all …]
H A Disp1362-hcd.c264 struct ptd *ptd; in prepare_ptd() local
272 ptd = &ep->ptd; in prepare_ptd()
329 ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle); in prepare_ptd()
330 ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | in prepare_ptd()
332 ptd->len = PTD_LEN(len) | PTD_DIR(dir); in prepare_ptd()
333 ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); in prepare_ptd()
336 ptd->faddr |= PTD_SF_INT(ep->branch); in prepare_ptd()
337 ptd->faddr |= PTD_PR(ep->interval ? __ffs(ep->interval) : 0); in prepare_ptd()
340 ptd->faddr |= PTD_SF_ISO(fno); in prepare_ptd()
348 struct ptd *ptd = &ep->ptd; in isp1362_write_ptd() local
[all …]
H A Duhci-q.c205 struct uhci_td *ptd; in uhci_remove_td_from_frame_list() local
207 ptd = list_entry(td->fl_list.prev, struct uhci_td, fl_list); in uhci_remove_td_from_frame_list()
208 ptd->link = td->link; in uhci_remove_td_from_frame_list()
336 struct uhci_td *ptd; in uhci_cleanup_queue() local
340 ptd = list_entry(purbp->td_list.prev, struct uhci_td, in uhci_cleanup_queue()
344 ptd->link = td->link; in uhci_cleanup_queue()