Lines Matching refs:ptd
162 struct ptd {
213 /* Hardware transfer status codes -- CC from ptd->count */
304 struct ptd ptd;
542 #define PTD_DIR_STR(ptd) ({char __c; \
543 switch(PTD_GET_DIR(ptd)){ \
553 static inline void dump_ptd(struct ptd *ptd)
556 PTD_GET_CC(ptd), PTD_GET_FA(ptd),
557 PTD_DIR_STR(ptd), PTD_GET_EP(ptd),
558 PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd),
559 PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd),
560 PTD_GET_SPD(ptd), PTD_GET_LAST(ptd));
563 static inline void dump_ptd_out_data(struct ptd *ptd, u8 * buf)
567 if (PTD_GET_DIR(ptd) != PTD_DIR_IN && PTD_GET_LEN(ptd)) {
569 for (k = 0; k < PTD_GET_LEN(ptd); ++k)
575 static inline void dump_ptd_in_data(struct ptd *ptd, u8 * buf)
579 if (PTD_GET_DIR(ptd) == PTD_DIR_IN && PTD_GET_COUNT(ptd)) {
581 for (k = 0; k < PTD_GET_COUNT(ptd); ++k)
585 if (PTD_GET_LAST(ptd))
591 #define dump_ptd(ptd) do{}while(0)
592 #define dump_ptd_in_data(ptd,buf) do{}while(0)
593 #define dump_ptd_out_data(ptd,buf) do{}while(0)