Home
last modified time | relevance | path

Searched refs:rq (Results 1 – 24 of 24) sorted by relevance

/include/linux/
Dblk-mq.h210 static inline bool blk_rq_is_passthrough(struct request *rq) in blk_rq_is_passthrough() argument
212 return blk_op_is_passthrough(req_op(rq)); in blk_rq_is_passthrough()
220 #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ) argument
222 #define rq_dma_dir(rq) \ argument
223 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE)
225 #define rq_list_add(listptr, rq) do { \ argument
226 (rq)->rq_next = *(listptr); \
227 *(listptr) = rq; \
230 #define rq_list_add_tail(lastpptr, rq) do { \ argument
231 (rq)->rq_next = NULL; \
[all …]
Dt10-pi.h40 static inline u32 t10_pi_ref_tag(struct request *rq) in t10_pi_ref_tag() argument
42 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in t10_pi_ref_tag()
45 if (rq->q->integrity.interval_exp) in t10_pi_ref_tag()
46 shift = rq->q->integrity.interval_exp; in t10_pi_ref_tag()
48 return blk_rq_pos(rq) >> (shift - SECTOR_SHIFT) & 0xffffffff; in t10_pi_ref_tag()
71 static inline u64 ext_pi_ref_tag(struct request *rq) in ext_pi_ref_tag() argument
73 unsigned int shift = ilog2(queue_logical_block_size(rq->q)); in ext_pi_ref_tag()
76 if (rq->q->integrity.interval_exp) in ext_pi_ref_tag()
77 shift = rq->q->integrity.interval_exp; in ext_pi_ref_tag()
79 return lower_48_bits(blk_rq_pos(rq) >> (shift - SECTOR_SHIFT)); in ext_pi_ref_tag()
Dblktrace_api.h75 extern void blk_add_driver_data(struct request *rq, void *data, size_t len);
85 # define blk_add_driver_data(rq, data, len) do {} while (0) argument
115 static inline sector_t blk_rq_trace_sector(struct request *rq) in blk_rq_trace_sector() argument
121 if (blk_rq_is_passthrough(rq) || blk_rq_pos(rq) == (sector_t)-1) in blk_rq_trace_sector()
123 return blk_rq_pos(rq); in blk_rq_trace_sector()
126 static inline unsigned int blk_rq_trace_nr_sectors(struct request *rq) in blk_rq_trace_nr_sectors() argument
128 return blk_rq_is_passthrough(rq) ? 0 : blk_rq_sectors(rq); in blk_rq_trace_nr_sectors()
Dblk-integrity.h102 static inline bool blk_integrity_rq(struct request *rq) in blk_integrity_rq() argument
104 return rq->cmd_flags & REQ_INTEGRITY; in blk_integrity_rq()
111 static inline struct bio_vec *rq_integrity_vec(struct request *rq) in rq_integrity_vec() argument
113 if (WARN_ON_ONCE(queue_max_integrity_segments(rq->q) > 1)) in rq_integrity_vec()
115 return rq->bio->bi_integrity->bip_vec; in rq_integrity_vec()
174 static inline int blk_integrity_rq(struct request *rq) in blk_integrity_rq() argument
179 static inline struct bio_vec *rq_integrity_vec(struct request *rq) in rq_integrity_vec() argument
Dmii.h51 static inline struct mii_ioctl_data *if_mii(struct ifreq *rq) in if_mii() argument
53 return (struct mii_ioctl_data *) &rq->ifr_ifru; in if_mii()
Ddevice-mapper.h64 struct request *rq,
493 union map_info *dm_get_rq_mapinfo(struct request *rq);
Dsched.h66 struct rq;
316 extern struct task_struct *pick_migrate_task(struct rq *rq);
Dblkdev.h640 #define blk_noretry_request(rq) \ argument
641 ((rq)->cmd_flags & (REQ_FAILFAST_DEV|REQ_FAILFAST_TRANSPORT| \
Dlibata.h1083 bool ata_scsi_dma_need_drain(struct request *rq);
Dpci.h1320 int pcie_set_readrq(struct pci_dev *dev, int rq);
/include/trace/hooks/
Dsched.h25 struct rq;
27 TP_PROTO(struct rq *rq),
28 TP_ARGS(rq));
31 TP_PROTO(struct rq *rq, struct task_struct *p, int flags),
32 TP_ARGS(rq, p, flags), 1);
35 TP_PROTO(struct rq *rq, struct task_struct *p, int flags),
36 TP_ARGS(rq, p, flags), 1);
89 TP_PROTO(struct sched_group *busiest, struct rq *dst_rq, int *out_balance),
103 TP_PROTO(struct rq *this_rq, struct rq_flags *rf,
108 TP_PROTO(struct rq *rq, unsigned int *flags, int *done),
[all …]
Dufshcd.h31 TP_PROTO(struct ufs_hba *hba, struct request *rq,
33 TP_ARGS(hba, rq, lrbp, err));
/include/trace/events/
Dblock.h75 TP_PROTO(struct request *rq),
77 TP_ARGS(rq),
88 __entry->dev = rq->q->disk ? disk_devt(rq->q->disk) : 0;
89 __entry->sector = blk_rq_trace_sector(rq);
90 __entry->nr_sector = blk_rq_trace_nr_sectors(rq);
92 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags);
105 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
107 TP_ARGS(rq, error, nr_bytes),
119 __entry->dev = rq->q->disk ? disk_devt(rq->q->disk) : 0;
120 __entry->sector = blk_rq_pos(rq);
[all …]
Dnbd.h64 struct request *rq),
66 TP_ARGS(nbd_request, index, rq),
77 __entry->request = rq;
97 struct request *rq),
99 TP_ARGS(nbd_request, index, rq),
Dsched.h723 TP_PROTO(struct rq *rq),
724 TP_ARGS(rq));
727 TP_PROTO(struct rq *rq),
728 TP_ARGS(rq));
731 TP_PROTO(struct rq *rq),
732 TP_ARGS(rq));
735 TP_PROTO(struct rq *rq),
736 TP_ARGS(rq));
743 TP_PROTO(struct rq *rq),
744 TP_ARGS(rq));
[all …]
/include/linux/sched/
Dnohz.h18 void calc_load_nohz_remote(struct rq *rq);
22 static inline void calc_load_nohz_remote(struct rq *rq) { } in calc_load_nohz_remote() argument
/include/linux/sunrpc/
Dsvcauth.h130 int (*accept)(struct svc_rqst *rq);
131 int (*release)(struct svc_rqst *rq);
133 int (*set_client)(struct svc_rqst *rq);
/include/rdma/
Drdmavt_qp.h276 static inline u32 rvt_get_rq_count(struct rvt_rq *rq, u32 head, u32 tail) in rvt_get_rq_count() argument
281 count += rq->size; in rvt_get_rq_count()
453 struct rvt_rq rq; member
544 static inline struct rvt_rwqe *rvt_get_rwqe_ptr(struct rvt_rq *rq, unsigned n) in rvt_get_rwqe_ptr() argument
547 ((char *)rq->kwq->curr_wq + in rvt_get_rwqe_ptr()
549 rq->max_sge * sizeof(struct ib_sge)) * n); in rvt_get_rwqe_ptr()
952 static inline void rvt_free_rq(struct rvt_rq *rq) in rvt_free_rq() argument
954 kvfree(rq->kwq); in rvt_free_rq()
955 rq->kwq = NULL; in rvt_free_rq()
956 vfree(rq->wq); in rvt_free_rq()
[all …]
/include/drm/
Dgpu_scheduler.h89 struct drm_sched_rq *rq; member
509 void drm_sched_rq_add_entity(struct drm_sched_rq *rq,
511 void drm_sched_rq_remove_entity(struct drm_sched_rq *rq,
/include/soc/mscc/
Docelot_ptp.h56 struct ptp_clock_request *rq, int on);
/include/linux/mtd/
Dblktrans.h32 struct request_queue *rq; member
/include/scsi/
Dscsi_cmnd.h307 struct request *rq = blk_mq_rq_from_pdu(scmd); in scsi_prot_ref_tag() local
309 return t10_pi_ref_tag(rq); in scsi_prot_ref_tag()
Dscsi_host.h309 bool (* dma_need_drain)(struct request *rq);
/include/linux/fsl/
Dptp_qoriq.h195 struct ptp_clock_request *rq, int on);