Home
last modified time | relevance | path

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

/drivers/thermal/intel/
Dintel_pch_thermal.c102 static void pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, in pch_wpt_add_acpi_psv_trip() argument
107 ptd->psv_trip_id = -1; in pch_wpt_add_acpi_psv_trip()
109 adev = ACPI_COMPANION(&ptd->pdev->dev); in pch_wpt_add_acpi_psv_trip()
121 ptd->psv_temp = trip_temp; in pch_wpt_add_acpi_psv_trip()
122 ptd->psv_trip_id = *nr_trips; in pch_wpt_add_acpi_psv_trip()
129 static void pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, in pch_wpt_add_acpi_psv_trip() argument
132 ptd->psv_trip_id = -1; in pch_wpt_add_acpi_psv_trip()
137 static int pch_wpt_init(struct pch_thermal_device *ptd, int *nr_trips) in pch_wpt_init() argument
145 if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) { in pch_wpt_init()
146 ptd->bios_enabled = true; in pch_wpt_init()
[all …]
/drivers/usb/isp1760/
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 …]
/drivers/usb/host/
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 …]
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 …]
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 …]
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 …]
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()