Lines Matching defs:ptd
161 struct ptd {
212 /* Hardware transfer status codes -- CC from ptd->count */
304 struct ptd ptd;
553 #define PTD_DIR_STR(ptd) ({char __c; \
554 switch(PTD_GET_DIR(ptd)){ \
564 static inline void dump_ptd(struct ptd *ptd)
567 PTD_GET_CC(ptd), PTD_GET_FA(ptd),
568 PTD_DIR_STR(ptd), PTD_GET_EP(ptd),
569 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd),
570 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd),
571 PTD_GET_SPD(ptd), PTD_GET_LAST(ptd));
574 static inline void dump_ptd_out_data(struct ptd *ptd, u8 * buf)
578 if (PTD_GET_DIR(ptd) != PTD_DIR_IN && PTD_GET_LEN(ptd)) {
580 for (k = 0; k < PTD_GET_LEN(ptd); ++k)
586 static inline void dump_ptd_in_data(struct ptd *ptd, u8 * buf)
590 if (PTD_GET_DIR(ptd) == PTD_DIR_IN && PTD_GET_COUNT(ptd)) {
592 for (k = 0; k < PTD_GET_COUNT(ptd); ++k)
596 if (PTD_GET_LAST(ptd))
602 #define dump_ptd(ptd) do{}while(0)
603 #define dump_ptd_in_data(ptd,buf) do{}while(0)
604 #define dump_ptd_out_data(ptd,buf) do{}while(0)