Lines Matching defs:ipath_qp
357 struct ipath_qp { struct
359 struct ipath_qp *next; /* link list for QPN hash table */ argument
360 struct ipath_qp *timer_next; /* link list for ipath_ib_timer() */ argument
361 struct ipath_qp *pio_next; /* link for ipath_ib_piobufavail() */ argument
362 struct list_head piowait; /* link for wait PIO buf */
363 struct list_head timerwait; /* link for waiting for timeouts */
364 struct ib_ah_attr remote_ah_attr;
365 struct ipath_ib_header s_hdr; /* next packet header to send */
366 atomic_t refcount;
367 wait_queue_head_t wait;
368 wait_queue_head_t wait_dma;
369 struct tasklet_struct s_task;
370 struct ipath_mmap_info *ip;
371 struct ipath_sge_state *s_cur_sge;
372 struct ipath_verbs_txreq *s_tx;
373 struct ipath_sge_state s_sge; /* current send request data */
374 struct ipath_ack_entry s_ack_queue[IPATH_MAX_RDMA_ATOMIC + 1];
375 struct ipath_sge_state s_ack_rdma_sge;
376 struct ipath_sge_state s_rdma_read_sge;
377 struct ipath_sge_state r_sge; /* current receive data */
378 spinlock_t s_lock;
379 atomic_t s_dma_busy;
380 u16 s_pkt_delay;
381 u16 s_hdrwords; /* size of s_hdr in 32 bit words */
382 u32 s_cur_size; /* size of send packet in bytes */
383 u32 s_len; /* total length of s_sge */
384 u32 s_rdma_read_len; /* total length of s_rdma_read_sge */
385 u32 s_next_psn; /* PSN for next request */
386 u32 s_last_psn; /* last response PSN processed */
387 u32 s_psn; /* current packet sequence number */
388 u32 s_ack_rdma_psn; /* PSN for sending RDMA read responses */
389 u32 s_ack_psn; /* PSN for acking sends and RDMA writes */
390 u32 s_rnr_timeout; /* number of milliseconds for RNR timeout */
391 u32 r_ack_psn; /* PSN for next ACK or atomic ACK */
392 u64 r_wr_id; /* ID for current receive WQE */
393 unsigned long r_aflags;
394 u32 r_len; /* total length of r_sge */
395 u32 r_rcv_len; /* receive data len processed */
396 u32 r_psn; /* expected rcv packet sequence number */
397 u32 r_msn; /* message sequence number */
398 u8 state; /* QP state */
399 u8 s_state; /* opcode of last packet sent */
400 u8 s_ack_state; /* opcode of packet to ACK */
401 u8 s_nak_state; /* non-zero if NAK is pending */
402 u8 r_state; /* opcode of last packet received */
403 u8 r_nak_state; /* non-zero if NAK is pending */
404 u8 r_min_rnr_timer; /* retry timeout value for RNR NAKs */
405 u8 r_flags;
406 u8 r_max_rd_atomic; /* max number of RDMA read/atomic to receive */
407 u8 r_head_ack_queue; /* index into s_ack_queue[] */
408 u8 qp_access_flags;
409 u8 s_max_sge; /* size of s_wq->sg_list */
410 u8 s_retry_cnt; /* number of times to retry */
411 u8 s_rnr_retry_cnt;
412 u8 s_retry; /* requester retry counter */
413 u8 s_rnr_retry; /* requester RNR retry counter */
414 u8 s_pkey_index; /* PKEY index to use */
415 u8 s_max_rd_atomic; /* max number of RDMA read/atomic to send */
416 u8 s_num_rd_atomic; /* number of RDMA read/atomic pending */
417 u8 s_tail_ack_queue; /* index into s_ack_queue[] */
418 u8 s_flags;
419 u8 s_dmult;
420 u8 s_draining;
421 u8 timeout; /* Timeout for this QP */
422 enum ib_mtu path_mtu;
423 u32 remote_qpn;
424 u32 qkey; /* QKEY for this QP (for UD or RD) */
425 u32 s_size; /* send work queue size */
426 u32 s_head; /* new entries added here */
427 u32 s_tail; /* next entry to process */
428 u32 s_cur; /* current work queue entry */
429 u32 s_last; /* last un-ACK'ed entry */
430 u32 s_ssn; /* SSN of tail entry */
431 u32 s_lsn; /* limit sequence number (credit) */
432 struct ipath_swqe *s_wq; /* send work queue */
433 struct ipath_swqe *s_wqe;
434 struct ipath_sge *r_ud_sg_list;
435 struct ipath_rq r_rq; /* receive work queue */
436 struct ipath_sge r_sg_list[0]; /* verified SGEs */