Lines Matching refs:nx_sg
91 struct nx_sg *nx_build_sg_list(struct nx_sg *sg_head, in nx_build_sg_list()
97 struct nx_sg *sg; in nx_build_sg_list()
161 struct nx_sg *nx_walk_and_build(struct nx_sg *nx_dst, in nx_walk_and_build()
168 struct nx_sg *nx_sg = nx_dst; in nx_walk_and_build() local
187 while (len && (nx_sg - nx_dst) < sglen) { in nx_walk_and_build()
197 nx_sg = nx_build_sg_list(nx_sg, dst, &n, sglen - (nx_sg - nx_dst)); in nx_walk_and_build()
208 return nx_sg; in nx_walk_and_build()
218 static long int trim_sg_list(struct nx_sg *sg, in trim_sg_list()
219 struct nx_sg *end, in trim_sg_list()
228 struct nx_sg *last = end - 1; in trim_sg_list()
244 oplen = (sg - end) * sizeof(struct nx_sg); in trim_sg_list()
281 struct nx_sg *nx_insg = nx_ctx->in_sg; in nx_build_sg_lists()
282 struct nx_sg *nx_outsg = nx_ctx->out_sg; in nx_build_sg_lists()
286 nx_driver.of.max_sg_len/sizeof(struct nx_sg)); in nx_build_sg_lists()
690 nx_ctx->in_sg = (struct nx_sg *)((u8 *)nx_ctx->csbcpb + NX_PAGE_SIZE); in nx_crypto_ctx_init()
691 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()