Lines Matching refs:buf_pos
562 struct smc_buf_desc *buf_pos; in _smc_llc_get_next_rmb() local
565 buf_pos = list_first_entry_or_null(&lgr->rmbs[*buf_lst], in _smc_llc_get_next_rmb()
567 if (buf_pos) in _smc_llc_get_next_rmb()
568 return buf_pos; in _smc_llc_get_next_rmb()
577 struct smc_buf_desc *buf_pos) in smc_llc_get_next_rmb() argument
581 if (!buf_pos || list_is_last(&buf_pos->list, &lgr->rmbs[*buf_lst])) { in smc_llc_get_next_rmb()
585 buf_next = list_next_entry(buf_pos, list); in smc_llc_get_next_rmb()
600 struct smc_buf_desc *buf_pos; in smc_llc_fill_ext_v2() local
615 buf_pos = smc_llc_get_first_rmb(lgr, &buf_lst); in smc_llc_fill_ext_v2()
617 if (!buf_pos) in smc_llc_fill_ext_v2()
619 rmb = buf_pos; in smc_llc_fill_ext_v2()
625 buf_pos = smc_llc_get_next_rmb(lgr, &buf_lst, buf_pos); in smc_llc_fill_ext_v2()
626 while (buf_pos && !(buf_pos)->used) in smc_llc_fill_ext_v2()
627 buf_pos = smc_llc_get_next_rmb(lgr, &buf_lst, buf_pos); in smc_llc_fill_ext_v2()
827 int *buf_lst, struct smc_buf_desc **buf_pos) in smc_llc_add_link_cont() argument
851 if (!*buf_pos) { in smc_llc_add_link_cont()
857 rmb = *buf_pos; in smc_llc_add_link_cont()
866 *buf_pos = smc_llc_get_next_rmb(lgr, buf_lst, *buf_pos); in smc_llc_add_link_cont()
867 while (*buf_pos && !(*buf_pos)->used) in smc_llc_add_link_cont()
868 *buf_pos = smc_llc_get_next_rmb(lgr, buf_lst, *buf_pos); in smc_llc_add_link_cont()
887 struct smc_buf_desc *buf_pos; in smc_llc_cli_rkey_exchange() local
894 buf_pos = smc_llc_get_first_rmb(lgr, &buf_lst); in smc_llc_cli_rkey_exchange()
914 &buf_lst, &buf_pos); in smc_llc_cli_rkey_exchange()
1311 struct smc_buf_desc *buf_pos; in smc_llc_srv_rkey_exchange() local
1318 buf_pos = smc_llc_get_first_rmb(lgr, &buf_lst); in smc_llc_srv_rkey_exchange()
1321 &buf_lst, &buf_pos); in smc_llc_srv_rkey_exchange()