Lines Matching defs:ptd
161 struct ptd {
212 /* Hardware transfer status codes -- CC from ptd->count */
305 struct ptd ptd;
554 #define PTD_DIR_STR(ptd) ({char __c; \
555 switch(PTD_GET_DIR(ptd)){ \
565 static inline void dump_ptd(struct ptd *ptd)
568 PTD_GET_CC(ptd), PTD_GET_FA(ptd),
569 PTD_DIR_STR(ptd), PTD_GET_EP(ptd),
570 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd),
571 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd),
572 PTD_GET_SPD(ptd), PTD_GET_LAST(ptd));
575 static inline void dump_ptd_out_data(struct ptd *ptd, u8 * buf)
579 if (PTD_GET_DIR(ptd) != PTD_DIR_IN && PTD_GET_LEN(ptd)) {
581 for (k = 0; k < PTD_GET_LEN(ptd); ++k)
587 static inline void dump_ptd_in_data(struct ptd *ptd, u8 * buf)
591 if (PTD_GET_DIR(ptd) == PTD_DIR_IN && PTD_GET_COUNT(ptd)) {
593 for (k = 0; k < PTD_GET_COUNT(ptd); ++k)
597 if (PTD_GET_LAST(ptd))
603 #define dump_ptd(ptd) do{}while(0)
604 #define dump_ptd_in_data(ptd,buf) do{}while(0)
605 #define dump_ptd_out_data(ptd,buf) do{}while(0)