Lines Matching refs:direction

46 			       enum tls_offload_ctx_dir direction)  in __nfp_net_tls_conn_cnt_changed()  argument
51 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in __nfp_net_tls_conn_cnt_changed()
72 enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_cnt_changed() argument
78 if (__nfp_net_tls_conn_cnt_changed(nn, add, direction)) { in nfp_net_tls_conn_cnt_changed()
82 __nfp_net_tls_conn_cnt_changed(nn, -add, direction); in nfp_net_tls_conn_cnt_changed()
90 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add() argument
92 return nfp_net_tls_conn_cnt_changed(nn, 1, direction); in nfp_net_tls_conn_add()
96 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove() argument
98 return nfp_net_tls_conn_cnt_changed(nn, -1, direction); in nfp_net_tls_conn_remove()
175 struct sock *sk, int direction) in nfp_net_tls_set_ipv4() argument
181 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_set_ipv4()
193 struct sock *sk, int direction) in nfp_net_tls_set_ipv6() argument
200 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_set_ipv6()
214 int direction) in nfp_net_tls_set_l4() argument
220 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_set_l4()
229 static u8 nfp_tls_1_2_dir_to_opcode(enum tls_offload_ctx_dir direction) in nfp_tls_1_2_dir_to_opcode() argument
231 switch (direction) { in nfp_tls_1_2_dir_to_opcode()
244 enum tls_offload_ctx_dir direction) in nfp_net_cipher_supported() argument
250 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in nfp_net_cipher_supported()
264 enum tls_offload_ctx_dir direction, in nfp_net_tls_add() argument
285 if (!nfp_net_cipher_supported(nn, crypto_info->cipher_type, direction)) in nfp_net_tls_add()
307 err = nfp_net_tls_conn_add(nn, direction); in nfp_net_tls_add()
320 front->opcode = nfp_tls_1_2_dir_to_opcode(direction); in nfp_net_tls_add()
327 back = nfp_net_tls_set_ipv6(nn, req, sk, direction); in nfp_net_tls_add()
329 back = nfp_net_tls_set_ipv4(nn, req, sk, direction); in nfp_net_tls_add()
331 nfp_net_tls_set_l4(front, back, sk, direction); in nfp_net_tls_add()
362 err, direction == TLS_OFFLOAD_CTX_DIR_TX); in nfp_net_tls_add()
385 ntls = tls_driver_ctx(sk, direction); in nfp_net_tls_add()
387 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in nfp_net_tls_add()
391 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in nfp_net_tls_add()
403 nfp_net_tls_conn_remove(nn, direction); in nfp_net_tls_add()
409 enum tls_offload_ctx_dir direction) in nfp_net_tls_del() argument
414 nfp_net_tls_conn_remove(nn, direction); in nfp_net_tls_del()
416 ntls = __tls_driver_ctx(tls_ctx, direction); in nfp_net_tls_del()
422 u8 *rcd_sn, enum tls_offload_ctx_dir direction) in nfp_net_tls_resync() argument
431 flags = direction == TLS_OFFLOAD_CTX_DIR_TX ? GFP_KERNEL : GFP_ATOMIC; in nfp_net_tls_resync()
436 ntls = tls_driver_ctx(sk, direction); in nfp_net_tls_resync()
439 req->opcode = nfp_tls_1_2_dir_to_opcode(direction); in nfp_net_tls_resync()
445 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_resync()