Home
last modified time | relevance | path

Searched refs:rq1 (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/kernel/sched/
Dsched.h1491 static inline void double_rq_lock(struct rq *rq1, struct rq *rq2);
1597 static inline void double_rq_lock(struct rq *rq1, struct rq *rq2) in double_rq_lock() argument
1598 __acquires(rq1->lock) in double_rq_lock()
1602 if (rq1 == rq2) { in double_rq_lock()
1603 raw_spin_lock(&rq1->lock); in double_rq_lock()
1606 if (rq1 < rq2) { in double_rq_lock()
1607 raw_spin_lock(&rq1->lock); in double_rq_lock()
1611 raw_spin_lock_nested(&rq1->lock, SINGLE_DEPTH_NESTING); in double_rq_lock()
1622 static inline void double_rq_unlock(struct rq *rq1, struct rq *rq2) in double_rq_unlock() argument
1623 __releases(rq1->lock) in double_rq_unlock()
[all …]
/linux-4.1.27/block/
Dcfq-iosched.c1077 cfq_choose_req(struct cfq_data *cfqd, struct request *rq1, struct request *rq2, sector_t last) in cfq_choose_req() argument
1085 if (rq1 == NULL || rq1 == rq2) in cfq_choose_req()
1088 return rq1; in cfq_choose_req()
1090 if (rq_is_sync(rq1) != rq_is_sync(rq2)) in cfq_choose_req()
1091 return rq_is_sync(rq1) ? rq1 : rq2; in cfq_choose_req()
1093 if ((rq1->cmd_flags ^ rq2->cmd_flags) & REQ_PRIO) in cfq_choose_req()
1094 return rq1->cmd_flags & REQ_PRIO ? rq1 : rq2; in cfq_choose_req()
1096 s1 = blk_rq_pos(rq1); in cfq_choose_req()
1132 return rq1; in cfq_choose_req()
1137 return rq1; in cfq_choose_req()
[all …]
/linux-4.1.27/net/key/
Daf_key.c2438 static int ipsecrequests_to_migrate(struct sadb_x_ipsecrequest *rq1, int len, in ipsecrequests_to_migrate() argument
2446 len < rq1->sadb_x_ipsecrequest_len) in ipsecrequests_to_migrate()
2450 err = parse_sockaddr_pair((struct sockaddr *)(rq1 + 1), in ipsecrequests_to_migrate()
2451 rq1->sadb_x_ipsecrequest_len, in ipsecrequests_to_migrate()
2457 rq2 = (struct sadb_x_ipsecrequest *)((u8 *)rq1 + rq1->sadb_x_ipsecrequest_len); in ipsecrequests_to_migrate()
2458 len -= rq1->sadb_x_ipsecrequest_len; in ipsecrequests_to_migrate()
2472 if (rq1->sadb_x_ipsecrequest_proto != rq2->sadb_x_ipsecrequest_proto || in ipsecrequests_to_migrate()
2473 rq1->sadb_x_ipsecrequest_mode != rq2->sadb_x_ipsecrequest_mode || in ipsecrequests_to_migrate()
2474 rq1->sadb_x_ipsecrequest_reqid != rq2->sadb_x_ipsecrequest_reqid) in ipsecrequests_to_migrate()
2477 m->proto = rq1->sadb_x_ipsecrequest_proto; in ipsecrequests_to_migrate()
[all …]