Lines Matching +full:packet +full:- +full:oriented
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
38 #define HTC_MAX_PAYLOAD_LENGTH (4096 - sizeof(struct htc_frame_hdr))
109 /* TODO -remove me, but we have to fix BMI first */
126 /* packet flags */
135 #define NUM_CONTROL_RX_BUFFERS (NUM_CONTROL_BUFFERS - NUM_CONTROL_TX_BUFFERS)
151 * NOTE: do not remove or re-arrange the fields, these are minimally
152 * required to take advantage of 4-byte lookaheads in some hardware
169 /* end of 4-byte lookahead */
257 /* ------ endpoint IDS ------ */
260 ENDPOINT_UNUSED = -1,
288 /* wrapper around endpoint-specific packets */
292 /* caller's per packet specific context */
317 /* endpoint that this packet was sent/recv'd from */
332 * optimization for network-oriented data, the HTC packet
333 * can pass the network buffer corresponding to the HTC packet
391 * indicates the endpoint is over-subscribed.
412 * the number of credits that the current pending TX packet needs
431 * that has non-zero credits to recover.
457 * number of times the host set the credit-low flag in a send
541 struct htc_packet packet; member
551 HTC_SEND_QUEUE_OK = 0, /* packet was queued */
552 HTC_SEND_QUEUE_DROP = 1, /* this packet should be dropped */
562 int (*tx)(struct htc_target *target, struct htc_packet *packet);
602 /* protects endpoint->txq */
642 static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, in set_htc_pkt_info() argument
646 packet->pkt_cntxt = context; in set_htc_pkt_info()
647 packet->buf = buf; in set_htc_pkt_info()
648 packet->act_len = len; in set_htc_pkt_info()
649 packet->endpoint = eid; in set_htc_pkt_info()
650 packet->info.tx.tag = tag; in set_htc_pkt_info()
653 static inline void htc_rxpkt_reset(struct htc_packet *packet) in htc_rxpkt_reset() argument
655 packet->buf = packet->buf_start; in htc_rxpkt_reset()
656 packet->act_len = 0; in htc_rxpkt_reset()
659 static inline void set_htc_rxpkt_info(struct htc_packet *packet, void *context, in set_htc_rxpkt_info() argument
663 packet->pkt_cntxt = context; in set_htc_rxpkt_info()
664 packet->buf = buf; in set_htc_rxpkt_info()
665 packet->buf_start = buf; in set_htc_rxpkt_info()
666 packet->buf_len = len; in set_htc_rxpkt_info()
667 packet->endpoint = eid; in set_htc_rxpkt_info()