Lines Matching refs:nx_sg
78 struct nx_sg *nx_build_sg_list(struct nx_sg *sg_head, in nx_build_sg_list()
84 struct nx_sg *sg; in nx_build_sg_list()
148 struct nx_sg *nx_walk_and_build(struct nx_sg *nx_dst, in nx_walk_and_build()
155 struct nx_sg *nx_sg = nx_dst; in nx_walk_and_build() local
174 while (len && (nx_sg - nx_dst) < sglen) { in nx_walk_and_build()
184 nx_sg = nx_build_sg_list(nx_sg, dst, &n, sglen - (nx_sg - nx_dst)); in nx_walk_and_build()
195 return nx_sg; in nx_walk_and_build()
206 static long int trim_sg_list(struct nx_sg *sg, in trim_sg_list()
207 struct nx_sg *end, in trim_sg_list()
216 struct nx_sg *last = end - 1; in trim_sg_list()
232 oplen = (sg - end) * sizeof(struct nx_sg); in trim_sg_list()
269 struct nx_sg *nx_insg = nx_ctx->in_sg; in nx_build_sg_lists()
270 struct nx_sg *nx_outsg = nx_ctx->out_sg; in nx_build_sg_lists()
274 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_build_sg_lists()
677 nx_ctx->in_sg = (struct nx_sg *)((u8 *)nx_ctx->csbcpb + NX_PAGE_SIZE); in nx_crypto_ctx_init()
678 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()