Lines Matching refs:ptd
162 struct ptd {
213 /* Hardware transfer status codes -- CC from ptd->count */
305 struct ptd ptd;
543 #define PTD_DIR_STR(ptd) ({char __c; \
544 switch(PTD_GET_DIR(ptd)){ \
554 static inline void dump_ptd(struct ptd *ptd)
557 PTD_GET_CC(ptd), PTD_GET_FA(ptd),
558 PTD_DIR_STR(ptd), PTD_GET_EP(ptd),
559 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd),
560 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd),
561 PTD_GET_SPD(ptd), PTD_GET_LAST(ptd));
564 static inline void dump_ptd_out_data(struct ptd *ptd, u8 * buf)
568 if (PTD_GET_DIR(ptd) != PTD_DIR_IN && PTD_GET_LEN(ptd)) {
570 for (k = 0; k < PTD_GET_LEN(ptd); ++k)
576 static inline void dump_ptd_in_data(struct ptd *ptd, u8 * buf)
580 if (PTD_GET_DIR(ptd) == PTD_DIR_IN && PTD_GET_COUNT(ptd)) {
582 for (k = 0; k < PTD_GET_COUNT(ptd); ++k)
586 if (PTD_GET_LAST(ptd))
592 #define dump_ptd(ptd) do{}while(0)
593 #define dump_ptd_in_data(ptd,buf) do{}while(0)
594 #define dump_ptd_out_data(ptd,buf) do{}while(0)