/Linux-v5.10/drivers/thermal/intel/ |
D | intel_pch_thermal.c | 81 static void pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, in pch_wpt_add_acpi_psv_trip() argument 86 ptd->psv_trip_id = -1; in pch_wpt_add_acpi_psv_trip() 88 adev = ACPI_COMPANION(&ptd->pdev->dev); in pch_wpt_add_acpi_psv_trip() 100 ptd->psv_temp = trip_temp; in pch_wpt_add_acpi_psv_trip() 101 ptd->psv_trip_id = *nr_trips; in pch_wpt_add_acpi_psv_trip() 108 static void pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, in pch_wpt_add_acpi_psv_trip() argument 111 ptd->psv_trip_id = -1; in pch_wpt_add_acpi_psv_trip() 116 static int pch_wpt_init(struct pch_thermal_device *ptd, int *nr_trips) in pch_wpt_init() argument 124 if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) { in pch_wpt_init() 125 ptd->bios_enabled = true; in pch_wpt_init() [all …]
|
/Linux-v5.10/drivers/usb/isp1760/ |
D | isp1760-hcd.c | 53 struct ptd { struct 282 struct ptd *ptd) in ptd_read() argument 285 ISP_BANK(0) + ptd_offset + slot*sizeof(*ptd)); in ptd_read() 287 bank_reads8(base, ptd_offset + slot*sizeof(*ptd), ISP_BANK(0), in ptd_read() 288 (void *) ptd, sizeof(*ptd)); in ptd_read() 292 struct ptd *ptd) in ptd_write() argument 294 mem_writes8(base, ptd_offset + slot*sizeof(*ptd) + sizeof(ptd->dw0), in ptd_write() 295 &ptd->dw1, 7*sizeof(ptd->dw1)); in ptd_write() 299 mem_writes8(base, ptd_offset + slot*sizeof(*ptd), &ptd->dw0, in ptd_write() 300 sizeof(ptd->dw0)); in ptd_write() [all …]
|
/Linux-v5.10/drivers/usb/host/ |
D | isp116x.h | 162 struct ptd { struct 305 struct ptd ptd; member 543 #define PTD_DIR_STR(ptd) ({char __c; \ argument 544 switch(PTD_GET_DIR(ptd)){ \ 554 static inline void dump_ptd(struct ptd *ptd) in dump_ptd() argument 557 PTD_GET_CC(ptd), PTD_GET_FA(ptd), in dump_ptd() 558 PTD_DIR_STR(ptd), PTD_GET_EP(ptd), in dump_ptd() 559 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd), in dump_ptd() 560 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd), in dump_ptd() 561 PTD_GET_SPD(ptd), PTD_GET_LAST(ptd)); in dump_ptd() [all …]
|
D | isp1362.h | 202 struct ptd { struct 226 #define PTD_HEADER_SIZE sizeof(struct ptd) argument 385 struct ptd ptd; member 919 static void dump_ptd(struct ptd *ptd) in dump_ptd() argument 922 container_of(ptd, struct isp1362_ep, ptd), in dump_ptd() 923 PTD_GET_CC(ptd), PTD_GET_EP(ptd), PTD_GET_DIR(ptd), in dump_ptd() 924 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd), in dump_ptd() 925 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd), PTD_GET_FA(ptd), in dump_ptd() 926 PTD_GET_SPD(ptd), PTD_GET_SF_INT(ptd), PTD_GET_PR(ptd), PTD_GET_LAST(ptd)); in dump_ptd() 927 DBG(0, " %04x %04x %04x %04x\n", ptd->count, ptd->mps, ptd->len, ptd->faddr); in dump_ptd() [all …]
|
D | isp116x-hcd.c | 169 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 …]
|
D | isp1362-hcd.c | 264 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 …]
|
D | uhci-q.c | 205 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()
|