Lines Matching refs:sgs
1022 struct scatterlist sgs[2]; in decrypt_control_remainder() local
1027 sg_init_table(sgs, 2); in decrypt_control_remainder()
1028 sg_set_buf(&sgs[0], con->v2.in_kvecs[0].iov_base, rem_len); in decrypt_control_remainder()
1029 sg_set_buf(&sgs[1], con->v2.in_buf, pt_len); in decrypt_control_remainder()
1031 return gcm_crypt(con, false, sgs, sgs, in decrypt_control_remainder()
1171 struct scatterlist sgs[2]; in prepare_head_secure_big() local
1174 sg_init_table(sgs, 2); in prepare_head_secure_big()
1175 sg_set_buf(&sgs[0], base, rem - base); in prepare_head_secure_big()
1176 sg_set_buf(&sgs[1], pmbl_tag, CEPH_GCM_TAG_LEN); in prepare_head_secure_big()
1177 ret = gcm_crypt(con, true, sgs, sgs, rem - base); in prepare_head_secure_big()
1185 sg_init_one(&sgs[0], rem, pmbl_tag - rem); in prepare_head_secure_big()
1186 ret = gcm_crypt(con, true, sgs, sgs, rem_tag - rem); in prepare_head_secure_big()