• Home
  • Raw
  • Download

Lines Matching defs:rvt_qp

332 struct rvt_qp {  struct
338 struct rvt_qp __rcu *next; /* link list for QPN hash table */ argument
339 struct rvt_swqe *s_wq; /* send work queue */
340 struct rvt_mmap_info *ip;
342 unsigned long timeout_jiffies; /* computed from timeout */
344 int srate_mbps; /* s_srate (below) converted to Mbit/s */
345 pid_t pid; /* pid for user mode QPs */
346 u32 remote_qpn;
347 u32 qkey; /* QKEY for this QP (for UD or RD) */
348 u32 s_size; /* send work queue size */
350 u16 pmtu; /* decoded from path_mtu */
351 u8 log_pmtu; /* shift for pmtu */
352 u8 state; /* QP state */
353 u8 allowed_ops; /* high order bits of allowed opcodes */
354 u8 qp_access_flags;
355 u8 alt_timeout; /* Alternate path timeout for this QP */
356 u8 timeout; /* Timeout for this QP */
357 u8 s_srate;
358 u8 s_mig_state;
359 u8 port_num;
360 u8 s_pkey_index; /* PKEY index to use */
361 u8 s_alt_pkey_index; /* Alternate path PKEY index to use */
362 u8 r_max_rd_atomic; /* max number of RDMA read/atomic to receive */
363 u8 s_max_rd_atomic; /* max number of RDMA read/atomic to send */
364 u8 s_retry_cnt; /* number of times to retry */
365 u8 s_rnr_retry_cnt;
366 u8 r_min_rnr_timer; /* retry timeout value for RNR NAKs */
367 u8 s_max_sge; /* size of s_wq->sg_list */
368 u8 s_draining;
371 atomic_t refcount ____cacheline_aligned_in_smp;
372 wait_queue_head_t wait;
374 struct rvt_ack_entry *s_ack_queue;
375 struct rvt_sge_state s_rdma_read_sge;
377 spinlock_t r_lock ____cacheline_aligned_in_smp; /* used for APM */
378 u32 r_psn; /* expected rcv packet sequence number */
379 unsigned long r_aflags;
380 u64 r_wr_id; /* ID for current receive WQE */
381 u32 r_ack_psn; /* PSN for next ACK or atomic ACK */
382 u32 r_len; /* total length of r_sge */
383 u32 r_rcv_len; /* receive data len processed */
384 u32 r_msn; /* message sequence number */
386 u8 r_state; /* opcode of last packet received */
387 u8 r_flags;
388 u8 r_head_ack_queue; /* index into s_ack_queue[] */
389 u8 r_adefered; /* defered ack count */
391 struct list_head rspwait; /* link for waiting to respond */
393 struct rvt_sge_state r_sge; /* current receive data */
394 struct rvt_rq r_rq; /* receive work queue */
397 spinlock_t s_hlock ____cacheline_aligned_in_smp;
398 u32 s_head; /* new entries added here */
399 u32 s_next_psn; /* PSN for next request */
400 u32 s_avail; /* number of entries avail */
401 u32 s_ssn; /* SSN of tail entry */
402 atomic_t s_reserved_used; /* reserved entries in use */
404 spinlock_t s_lock ____cacheline_aligned_in_smp;
405 u32 s_flags;
406 struct rvt_sge_state *s_cur_sge;
407 struct rvt_swqe *s_wqe;
408 struct rvt_sge_state s_sge; /* current send request data */
409 struct rvt_mregion *s_rdma_mr;
410 u32 s_len; /* total length of s_sge */
411 u32 s_rdma_read_len; /* total length of s_rdma_read_sge */
412 u32 s_last_psn; /* last response PSN processed */
413 u32 s_sending_psn; /* lowest PSN that is being sent */
414 u32 s_sending_hpsn; /* highest PSN that is being sent */
415 u32 s_psn; /* current packet sequence number */
416 u32 s_ack_rdma_psn; /* PSN for sending RDMA read responses */
417 u32 s_ack_psn; /* PSN for acking sends and RDMA writes */
418 u32 s_tail; /* next entry to process */
419 u32 s_cur; /* current work queue entry */
420 u32 s_acked; /* last un-ACK'ed entry */
421 u32 s_last; /* last completed entry */
422 u32 s_lsn; /* limit sequence number (credit) */
423 u32 s_ahgpsn; /* set to the psn in the copy of the header */
424 u16 s_cur_size; /* size of send packet in bytes */
425 u16 s_rdma_ack_cnt;
426 u8 s_hdrwords; /* size of s_hdr in 32 bit words */
427 s8 s_ahgidx;
428 u8 s_state; /* opcode of last packet sent */
429 u8 s_ack_state; /* opcode of packet to ACK */
430 u8 s_nak_state; /* non-zero if NAK is pending */
431 u8 r_nak_state; /* non-zero if NAK is pending */
432 u8 s_retry; /* requester retry counter */
433 u8 s_rnr_retry; /* requester RNR retry counter */
434 u8 s_num_rd_atomic; /* number of RDMA read/atomic pending */
435 u8 s_tail_ack_queue; /* index into s_ack_queue[] */
436 u8 s_acked_ack_queue; /* index into s_ack_queue[] */
438 struct rvt_sge_state s_ack_rdma_sge;
439 struct timer_list s_timer;
440 struct hrtimer s_rnr_timer;
464 static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) in ibqp_to_rvtqp() argument