Lines Matching refs:direction

47 			       enum tls_offload_ctx_dir direction)  in __nfp_net_tls_conn_cnt_changed()  argument
52 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in __nfp_net_tls_conn_cnt_changed()
73 enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_cnt_changed() argument
79 if (__nfp_net_tls_conn_cnt_changed(nn, add, direction)) { in nfp_net_tls_conn_cnt_changed()
83 __nfp_net_tls_conn_cnt_changed(nn, -add, direction); in nfp_net_tls_conn_cnt_changed()
91 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add() argument
93 return nfp_net_tls_conn_cnt_changed(nn, 1, direction); in nfp_net_tls_conn_add()
97 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove() argument
99 return nfp_net_tls_conn_cnt_changed(nn, -1, direction); in nfp_net_tls_conn_remove()
176 struct sock *sk, int direction) in nfp_net_tls_set_ipv4() argument
182 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_set_ipv4()
194 struct sock *sk, int direction) in nfp_net_tls_set_ipv6() argument
201 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_set_ipv6()
215 int direction) in nfp_net_tls_set_l4() argument
221 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_set_l4()
230 static u8 nfp_tls_1_2_dir_to_opcode(enum tls_offload_ctx_dir direction) in nfp_tls_1_2_dir_to_opcode() argument
232 switch (direction) { in nfp_tls_1_2_dir_to_opcode()
245 enum tls_offload_ctx_dir direction) in nfp_net_cipher_supported() argument
251 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in nfp_net_cipher_supported()
265 enum tls_offload_ctx_dir direction, in nfp_net_tls_add() argument
286 if (!nfp_net_cipher_supported(nn, crypto_info->cipher_type, direction)) in nfp_net_tls_add()
308 err = nfp_net_tls_conn_add(nn, direction); in nfp_net_tls_add()
321 front->opcode = nfp_tls_1_2_dir_to_opcode(direction); in nfp_net_tls_add()
328 back = nfp_net_tls_set_ipv6(nn, req, sk, direction); in nfp_net_tls_add()
330 back = nfp_net_tls_set_ipv4(nn, req, sk, direction); in nfp_net_tls_add()
332 nfp_net_tls_set_l4(front, back, sk, direction); in nfp_net_tls_add()
363 err, direction == TLS_OFFLOAD_CTX_DIR_TX); in nfp_net_tls_add()
386 ntls = tls_driver_ctx(sk, direction); in nfp_net_tls_add()
388 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in nfp_net_tls_add()
392 if (direction == TLS_OFFLOAD_CTX_DIR_TX) in nfp_net_tls_add()
405 nfp_net_tls_conn_remove(nn, direction); in nfp_net_tls_add()
411 enum tls_offload_ctx_dir direction) in nfp_net_tls_del() argument
416 nfp_net_tls_conn_remove(nn, direction); in nfp_net_tls_del()
418 ntls = __tls_driver_ctx(tls_ctx, direction); in nfp_net_tls_del()
424 u8 *rcd_sn, enum tls_offload_ctx_dir direction) in nfp_net_tls_resync() argument
434 flags = direction == TLS_OFFLOAD_CTX_DIR_TX ? GFP_KERNEL : GFP_ATOMIC; in nfp_net_tls_resync()
439 ntls = tls_driver_ctx(sk, direction); in nfp_net_tls_resync()
442 req->opcode = nfp_tls_1_2_dir_to_opcode(direction); in nfp_net_tls_resync()
449 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in nfp_net_tls_resync()