Lines Matching refs:permit

72 	struct rtrs_permit *permit;  in __rtrs_get_permit()  local
88 permit = get_permit(clt, bit); in __rtrs_get_permit()
89 WARN_ON(permit->mem_id != bit); in __rtrs_get_permit()
90 permit->cpu_id = raw_smp_processor_id(); in __rtrs_get_permit()
91 permit->con_type = con_type; in __rtrs_get_permit()
93 return permit; in __rtrs_get_permit()
97 struct rtrs_permit *permit) in __rtrs_put_permit() argument
99 clear_bit_unlock(permit->mem_id, clt->permits_map); in __rtrs_put_permit()
120 struct rtrs_permit *permit; in rtrs_clt_get_permit() local
123 permit = __rtrs_get_permit(clt, con_type); in rtrs_clt_get_permit()
124 if (permit || !can_wait) in rtrs_clt_get_permit()
125 return permit; in rtrs_clt_get_permit()
130 permit = __rtrs_get_permit(clt, con_type); in rtrs_clt_get_permit()
131 if (permit) in rtrs_clt_get_permit()
139 return permit; in rtrs_clt_get_permit()
152 struct rtrs_permit *permit) in rtrs_clt_put_permit() argument
154 if (WARN_ON(!test_bit(permit->mem_id, clt->permits_map))) in rtrs_clt_put_permit()
157 __rtrs_put_permit(clt, permit); in rtrs_clt_put_permit()
181 struct rtrs_permit *permit) in rtrs_permit_to_clt_con() argument
185 if (permit->con_type == RTRS_IO_CON) in rtrs_permit_to_clt_con()
186 id = (permit->cpu_id % (clt_path->s.irq_con_num - 1)) + 1; in rtrs_permit_to_clt_con()
947 struct rtrs_permit *permit, void *priv, in rtrs_clt_init_req() argument
955 req->permit = permit; in rtrs_clt_init_req()
963 req->con = rtrs_permit_to_clt_con(clt_path, permit); in rtrs_clt_init_req()
981 struct rtrs_permit *permit, void *priv, in rtrs_clt_get_req() argument
988 req = &clt_path->reqs[permit->mem_id]; in rtrs_clt_get_req()
989 rtrs_clt_init_req(req, clt_path, conf, permit, priv, vec, usr_len, in rtrs_clt_get_req()
1004 req = &alive_path->reqs[fail_req->permit->mem_id]; in rtrs_clt_get_copy_req()
1005 rtrs_clt_init_req(req, alive_path, fail_req->conf, fail_req->permit, in rtrs_clt_get_copy_req()
1112 imm = req->permit->mem_off + req->data_len + req->usr_len; in rtrs_clt_write_req()
1114 buf_id = req->permit->mem_id; in rtrs_clt_write_req()
1245 imm = req->permit->mem_off + req->data_len + req->usr_len; in rtrs_clt_read_req()
1247 buf_id = req->permit->mem_id; in rtrs_clt_read_req()
1423 struct rtrs_permit *permit; in alloc_permits() local
1425 permit = get_permit(clt, i); in alloc_permits()
1426 permit->mem_id = i; in alloc_permits()
1427 permit->mem_off = i << (MAX_IMM_PAYL_BITS - chunk_bits); in alloc_permits()
2980 struct rtrs_clt_sess *clt, struct rtrs_permit *permit, in rtrs_clt_request() argument
3019 req = rtrs_clt_get_req(clt_path, ops->conf_fn, permit, ops->priv, in rtrs_clt_request()