• Home
  • Raw
  • Download

Lines Matching refs:r2t

41 	struct iscsi_r2t *r2t;  in iscsit_add_r2t_to_list()  local
47 r2t = kmem_cache_zalloc(lio_r2t_cache, GFP_ATOMIC); in iscsit_add_r2t_to_list()
48 if (!r2t) { in iscsit_add_r2t_to_list()
52 INIT_LIST_HEAD(&r2t->r2t_list); in iscsit_add_r2t_to_list()
54 r2t->recovery_r2t = recovery; in iscsit_add_r2t_to_list()
55 r2t->r2t_sn = (!r2t_sn) ? cmd->r2t_sn++ : r2t_sn; in iscsit_add_r2t_to_list()
56 r2t->offset = offset; in iscsit_add_r2t_to_list()
57 r2t->xfer_len = xfer_len; in iscsit_add_r2t_to_list()
58 list_add_tail(&r2t->r2t_list, &cmd->cmd_r2t_list); in iscsit_add_r2t_to_list()
72 struct iscsi_r2t *r2t; in iscsit_get_r2t_for_eos() local
75 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_get_r2t_for_eos()
76 if ((r2t->offset <= offset) && in iscsit_get_r2t_for_eos()
77 (r2t->offset + r2t->xfer_len) >= (offset + length)) { in iscsit_get_r2t_for_eos()
79 return r2t; in iscsit_get_r2t_for_eos()
91 struct iscsi_r2t *r2t; in iscsit_get_r2t_from_list() local
94 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_get_r2t_from_list()
95 if (!r2t->sent_r2t) { in iscsit_get_r2t_from_list()
97 return r2t; in iscsit_get_r2t_from_list()
107 void iscsit_free_r2t(struct iscsi_r2t *r2t, struct iscsit_cmd *cmd) in iscsit_free_r2t() argument
111 list_del(&r2t->r2t_list); in iscsit_free_r2t()
112 kmem_cache_free(lio_r2t_cache, r2t); in iscsit_free_r2t()
117 struct iscsi_r2t *r2t, *r2t_tmp; in iscsit_free_r2ts_from_list() local
120 list_for_each_entry_safe(r2t, r2t_tmp, &cmd->cmd_r2t_list, r2t_list) in iscsit_free_r2ts_from_list()
121 iscsit_free_r2t(r2t, cmd); in iscsit_free_r2ts_from_list()
227 struct iscsi_r2t *r2t; in iscsit_get_holder_for_r2tsn() local
230 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_get_holder_for_r2tsn()
231 if (r2t->r2t_sn == r2t_sn) { in iscsit_get_holder_for_r2tsn()
233 return r2t; in iscsit_get_holder_for_r2tsn()