• Home
  • Raw
  • Download

Lines Matching refs:request

23 typedef enum rq_end_io_ret (rq_end_io_fn)(struct request *, blk_status_t);
84 struct request { struct
106 struct request *rq_next; argument
205 static inline enum req_op req_op(const struct request *req) in req_op() argument
210 static inline bool blk_rq_is_passthrough(struct request *rq) in blk_rq_is_passthrough()
215 static inline unsigned short req_get_ioprio(struct request *req) in req_get_ioprio()
238 struct request *__req = NULL; \
248 struct request *__req = NULL; \
262 #define rq_list_empty(list) ((list) == (struct request *) NULL)
271 static inline void rq_list_move(struct request **src, struct request **dst, in rq_list_move()
272 struct request *rq, struct request *prev) in rq_list_move()
542 struct request *rq;
546 typedef bool (busy_tag_iter_fn)(struct request *, void *);
574 void (*queue_rqs)(struct request **rqlist);
592 void (*set_rq_budget_token)(struct request *, int);
596 int (*get_rq_budget_token)(struct request *);
601 enum blk_eh_timer_return (*timeout)(struct request *);
611 void (*complete)(struct request *);
631 int (*init_request)(struct blk_mq_tag_set *set, struct request *,
636 void (*exit_request)(struct blk_mq_tag_set *set, struct request *,
643 void (*cleanup_rq)(struct request *);
661 void (*show_rq)(struct seq_file *m, struct request *rq);
728 void blk_mq_free_request(struct request *rq);
741 struct request *blk_mq_alloc_request(struct request_queue *q, blk_opf_t opf,
743 struct request *blk_mq_alloc_request_hctx(struct request_queue *q,
759 struct request **rqs;
760 struct request **static_rqs;
770 static inline struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, in blk_mq_tag_to_rq()
786 u32 blk_mq_unique_tag(struct request *rq);
802 static inline enum mq_rq_state blk_mq_rq_state(struct request *rq) in blk_mq_rq_state()
807 static inline int blk_mq_request_started(struct request *rq) in blk_mq_request_started()
812 static inline int blk_mq_request_completed(struct request *rq) in blk_mq_request_completed()
824 static inline void blk_mq_set_request_complete(struct request *rq) in blk_mq_set_request_complete()
833 static inline void blk_mq_complete_request_direct(struct request *rq, in blk_mq_complete_request_direct()
834 void (*complete)(struct request *rq)) in blk_mq_complete_request_direct()
840 void blk_mq_start_request(struct request *rq);
841 void blk_mq_end_request(struct request *rq, blk_status_t error);
842 void __blk_mq_end_request(struct request *rq, blk_status_t error);
849 static inline bool blk_mq_need_time_stamp(struct request *rq) in blk_mq_need_time_stamp()
854 static inline bool blk_mq_is_reserved_rq(struct request *rq) in blk_mq_is_reserved_rq()
863 static inline bool blk_mq_add_to_batch(struct request *req, in blk_mq_add_to_batch()
880 void blk_mq_requeue_request(struct request *rq, bool kick_requeue_list);
883 void blk_mq_complete_request(struct request *rq);
884 bool blk_mq_complete_request_remote(struct request *rq);
913 unsigned int blk_mq_rq_cpu(struct request *rq);
933 static inline struct request *blk_mq_rq_from_pdu(void *pdu) in blk_mq_rq_from_pdu()
935 return pdu - sizeof(struct request); in blk_mq_rq_from_pdu()
947 static inline void *blk_mq_rq_to_pdu(struct request *rq) in blk_mq_rq_to_pdu()
959 static inline void blk_mq_cleanup_rq(struct request *rq) in blk_mq_cleanup_rq()
965 static inline void blk_rq_bio_prep(struct request *rq, struct bio *bio, in blk_rq_bio_prep()
977 static inline bool rq_is_sync(struct request *rq) in rq_is_sync()
982 void blk_rq_init(struct request_queue *q, struct request *rq);
983 int blk_rq_prep_clone(struct request *rq, struct request *rq_src,
986 void blk_rq_unprep_clone(struct request *rq);
987 blk_status_t blk_insert_cloned_request(struct request *rq);
998 int blk_rq_map_user(struct request_queue *, struct request *,
1000 int blk_rq_map_user_io(struct request *, struct rq_map_data *,
1002 int blk_rq_map_user_iov(struct request_queue *, struct request *,
1005 int blk_rq_map_kern(struct request_queue *, struct request *, void *,
1007 int blk_rq_append_bio(struct request *rq, struct bio *bio);
1008 void blk_execute_rq_nowait(struct request *rq, bool at_head);
1009 blk_status_t blk_execute_rq(struct request *rq, bool at_head);
1010 bool blk_rq_is_poll(struct request *rq);
1041 static inline sector_t blk_rq_pos(const struct request *rq) in blk_rq_pos()
1046 static inline unsigned int blk_rq_bytes(const struct request *rq) in blk_rq_bytes()
1051 static inline int blk_rq_cur_bytes(const struct request *rq) in blk_rq_cur_bytes()
1060 static inline unsigned int blk_rq_sectors(const struct request *rq) in blk_rq_sectors()
1065 static inline unsigned int blk_rq_cur_sectors(const struct request *rq) in blk_rq_cur_sectors()
1070 static inline unsigned int blk_rq_stats_sectors(const struct request *rq) in blk_rq_stats_sectors()
1081 static inline unsigned int blk_rq_payload_bytes(struct request *rq) in blk_rq_payload_bytes()
1092 static inline struct bio_vec req_bvec(struct request *rq) in req_bvec()
1099 static inline unsigned int blk_rq_count_bios(struct request *rq) in blk_rq_count_bios()
1110 void blk_steal_bios(struct bio_list *list, struct request *rq);
1118 bool blk_update_request(struct request *rq, blk_status_t error,
1120 void blk_abort_request(struct request *);
1131 static inline unsigned short blk_rq_nr_phys_segments(struct request *rq) in blk_rq_nr_phys_segments()
1142 static inline unsigned short blk_rq_nr_discard_segments(struct request *rq) in blk_rq_nr_discard_segments()
1147 int __blk_rq_map_sg(struct request_queue *q, struct request *rq,
1149 static inline int blk_rq_map_sg(struct request_queue *q, struct request *rq, in blk_rq_map_sg()
1156 void blk_dump_rq_flags(struct request *, char *);
1159 static inline unsigned int blk_rq_zone_no(struct request *rq) in blk_rq_zone_no()
1164 static inline unsigned int blk_rq_zone_is_seq(struct request *rq) in blk_rq_zone_is_seq()
1169 bool blk_req_needs_zone_write_lock(struct request *rq);
1170 bool blk_req_zone_write_trylock(struct request *rq);
1171 void __blk_req_zone_write_lock(struct request *rq);
1172 void __blk_req_zone_write_unlock(struct request *rq);
1174 static inline void blk_req_zone_write_lock(struct request *rq) in blk_req_zone_write_lock()
1180 static inline void blk_req_zone_write_unlock(struct request *rq) in blk_req_zone_write_unlock()
1186 static inline bool blk_req_zone_is_write_locked(struct request *rq) in blk_req_zone_is_write_locked()
1192 static inline bool blk_req_can_dispatch_to_zone(struct request *rq) in blk_req_can_dispatch_to_zone()
1199 static inline bool blk_req_needs_zone_write_lock(struct request *rq) in blk_req_needs_zone_write_lock()
1204 static inline void blk_req_zone_write_lock(struct request *rq) in blk_req_zone_write_lock()
1208 static inline void blk_req_zone_write_unlock(struct request *rq) in blk_req_zone_write_unlock()
1211 static inline bool blk_req_zone_is_write_locked(struct request *rq) in blk_req_zone_is_write_locked()
1216 static inline bool blk_req_can_dispatch_to_zone(struct request *rq) in blk_req_can_dispatch_to_zone()