/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb4i/ |
H A D | cxgb4i.c | 207 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument 210 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req() 211 int wscale = cxgbi_sock_compute_wscale(csk->mss_idx); in send_act_open_req() 214 unsigned int qid_atid = ((unsigned int)csk->atid) | in send_act_open_req() 215 (((unsigned int)csk->rss_qid) << 14); in send_act_open_req() 219 MSS_IDX_V(csk->mss_idx) | in send_act_open_req() 220 L2T_IDX_V(((struct l2t_entry *)csk->l2t)->idx) | in send_act_open_req() 221 TX_CHAN_V(csk->tx_chan) | in send_act_open_req() 222 SMAC_SEL_V(csk->smac_idx) | in send_act_open_req() 224 RCV_BUFSIZ_V(csk in send_act_open_req() 326 send_act_open_req6(struct cxgbi_sock *csk, struct sk_buff *skb, struct l2t_entry *e) send_act_open_req6() argument 440 send_close_req(struct cxgbi_sock *csk) send_close_req() argument 462 struct cxgbi_sock *csk = (struct cxgbi_sock *)handle; abort_arp_failure() local 473 send_abort_req(struct cxgbi_sock *csk) send_abort_req() argument 508 send_abort_rpl(struct cxgbi_sock *csk, int rst_status) send_abort_rpl() argument 530 send_rx_credits(struct cxgbi_sock *csk, u32 credits) send_rx_credits() argument 613 send_tx_flowc_wr(struct cxgbi_sock *csk) send_tx_flowc_wr() argument 713 cxgb4i_make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb, int dlen, int len, u32 credits, int compl) cxgb4i_make_tx_data_wr() argument 766 push_tx_frames(struct cxgbi_sock *csk, int req_completion) push_tx_frames() argument 879 free_atid(struct cxgbi_sock *csk) free_atid() argument 892 struct cxgbi_sock *csk; do_act_establish() local 990 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer); csk_act_open_retry_timer() local 1044 struct cxgbi_sock *csk; do_act_open_rpl() local 1093 struct cxgbi_sock *csk; do_peer_close() local 1114 struct cxgbi_sock *csk; do_close_con_rpl() local 1133 abort_status_to_errno(struct cxgbi_sock *csk, int abort_reason, int *need_rst) abort_status_to_errno() argument 1153 struct cxgbi_sock *csk; do_abort_req_rss() local 1201 struct cxgbi_sock *csk; do_abort_rpl_rss() local 1225 struct cxgbi_sock *csk; do_rx_data() local 1246 struct cxgbi_sock *csk; do_rx_iscsi_hdr() local 1351 struct cxgbi_sock *csk; do_rx_iscsi_data() local 1413 cxgb4i_process_ddpvld(struct cxgbi_sock *csk, struct sk_buff *skb, u32 ddpvld) cxgb4i_process_ddpvld() argument 1447 struct cxgbi_sock *csk; do_rx_data_ddp() local 1513 struct cxgbi_sock *csk; do_rx_iscsi_cmp() local 1604 struct cxgbi_sock *csk; do_fw4_ack() local 1629 struct cxgbi_sock *csk; do_set_tcb_rpl() local 1652 alloc_cpls(struct cxgbi_sock *csk) alloc_cpls() argument 1675 l2t_put(struct cxgbi_sock *csk) l2t_put() argument 1684 release_offload_resources(struct cxgbi_sock *csk) release_offload_resources() argument 1765 init_act_open(struct cxgbi_sock *csk) init_act_open() argument 2015 ddp_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo, unsigned int idx, unsigned int npods, struct scatterlist **sg_pp, unsigned int *sg_off) ddp_ppod_write_idata() argument 2050 ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo) ddp_set_map() argument 2076 ddp_setup_conn_pgidx(struct cxgbi_sock *csk, unsigned int tid, int pg_idx) ddp_setup_conn_pgidx() argument 2109 ddp_setup_conn_digest(struct cxgbi_sock *csk, unsigned int tid, int hcrc, int dcrc) ddp_setup_conn_digest() argument 2428 struct cxgbi_sock *csk = pmap->port_csk[i]; cxgb4_dcb_change_notify() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/cxgb4i/ |
H A D | cxgb4i.c | 208 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument 211 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req() 212 int wscale = cxgbi_sock_compute_wscale(csk->mss_idx); in send_act_open_req() 215 unsigned int qid_atid = ((unsigned int)csk->atid) | in send_act_open_req() 216 (((unsigned int)csk->rss_qid) << 14); in send_act_open_req() 220 MSS_IDX_V(csk->mss_idx) | in send_act_open_req() 221 L2T_IDX_V(((struct l2t_entry *)csk->l2t)->idx) | in send_act_open_req() 222 TX_CHAN_V(csk->tx_chan) | in send_act_open_req() 223 SMAC_SEL_V(csk->smac_idx) | in send_act_open_req() 225 RCV_BUFSIZ_V(csk in send_act_open_req() 327 send_act_open_req6(struct cxgbi_sock *csk, struct sk_buff *skb, struct l2t_entry *e) send_act_open_req6() argument 441 send_close_req(struct cxgbi_sock *csk) send_close_req() argument 463 struct cxgbi_sock *csk = (struct cxgbi_sock *)handle; abort_arp_failure() local 474 send_abort_req(struct cxgbi_sock *csk) send_abort_req() argument 509 send_abort_rpl(struct cxgbi_sock *csk, int rst_status) send_abort_rpl() argument 531 send_rx_credits(struct cxgbi_sock *csk, u32 credits) send_rx_credits() argument 614 send_tx_flowc_wr(struct cxgbi_sock *csk) send_tx_flowc_wr() argument 714 cxgb4i_make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb, int dlen, int len, u32 credits, int compl) cxgb4i_make_tx_data_wr() argument 767 push_tx_frames(struct cxgbi_sock *csk, int req_completion) push_tx_frames() argument 880 free_atid(struct cxgbi_sock *csk) free_atid() argument 893 struct cxgbi_sock *csk; do_act_establish() local 991 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer); csk_act_open_retry_timer() local 1045 struct cxgbi_sock *csk; do_act_open_rpl() local 1094 struct cxgbi_sock *csk; do_peer_close() local 1115 struct cxgbi_sock *csk; do_close_con_rpl() local 1134 abort_status_to_errno(struct cxgbi_sock *csk, int abort_reason, int *need_rst) abort_status_to_errno() argument 1154 struct cxgbi_sock *csk; do_abort_req_rss() local 1202 struct cxgbi_sock *csk; do_abort_rpl_rss() local 1226 struct cxgbi_sock *csk; do_rx_data() local 1247 struct cxgbi_sock *csk; do_rx_iscsi_hdr() local 1352 struct cxgbi_sock *csk; do_rx_iscsi_data() local 1414 cxgb4i_process_ddpvld(struct cxgbi_sock *csk, struct sk_buff *skb, u32 ddpvld) cxgb4i_process_ddpvld() argument 1448 struct cxgbi_sock *csk; do_rx_data_ddp() local 1514 struct cxgbi_sock *csk; do_rx_iscsi_cmp() local 1605 struct cxgbi_sock *csk; do_fw4_ack() local 1630 struct cxgbi_sock *csk; do_set_tcb_rpl() local 1653 alloc_cpls(struct cxgbi_sock *csk) alloc_cpls() argument 1676 l2t_put(struct cxgbi_sock *csk) l2t_put() argument 1685 release_offload_resources(struct cxgbi_sock *csk) release_offload_resources() argument 1766 init_act_open(struct cxgbi_sock *csk) init_act_open() argument 2016 ddp_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo, unsigned int idx, unsigned int npods, struct scatterlist **sg_pp, unsigned int *sg_off) ddp_ppod_write_idata() argument 2051 ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo) ddp_set_map() argument 2077 ddp_setup_conn_pgidx(struct cxgbi_sock *csk, unsigned int tid, int pg_idx) ddp_setup_conn_pgidx() argument 2110 ddp_setup_conn_digest(struct cxgbi_sock *csk, unsigned int tid, int hcrc, int dcrc) ddp_setup_conn_digest() argument 2429 struct cxgbi_sock *csk = pmap->port_csk[i]; cxgb4_dcb_change_notify() local [all...] |
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_cm.c | 469 struct cxgbit_sock *csk) in cxgbit_set_conn_info() 472 conn->login_sockaddr = csk->com.remote_addr; in cxgbit_set_conn_info() 473 conn->local_sockaddr = csk->com.local_addr; in cxgbit_set_conn_info() 479 struct cxgbit_sock *csk; in cxgbit_accept_np() local 504 csk = list_first_entry(&cnp->np_accept_list, in cxgbit_accept_np() 508 list_del_init(&csk->accept_node); in cxgbit_accept_np() 510 conn->context = csk; in cxgbit_accept_np() 511 csk->conn = conn; in cxgbit_accept_np() 513 cxgbit_set_conn_info(np, conn, csk); in cxgbit_accept_np() 598 static void __cxgbit_free_conn(struct cxgbit_sock *csk); 468 cxgbit_set_conn_info(struct iscsi_np *np, struct iscsit_conn *conn, struct cxgbit_sock *csk) cxgbit_set_conn_info() argument 603 struct cxgbit_sock *csk, *tmp; cxgbit_free_np() local 622 cxgbit_send_halfclose(struct cxgbit_sock *csk) cxgbit_send_halfclose() argument 641 struct cxgbit_sock *csk = handle; cxgbit_arp_failure_discard() local 658 cxgbit_send_abort_req(struct cxgbit_sock *csk) cxgbit_send_abort_req() argument 679 __cxgbit_abort_conn(struct cxgbit_sock *csk, struct sk_buff *skb) __cxgbit_abort_conn() argument 698 cxgbit_abort_conn(struct cxgbit_sock *csk) cxgbit_abort_conn() argument 718 __cxgbit_free_conn(struct cxgbit_sock *csk) __cxgbit_free_conn() argument 759 cxgbit_set_emss(struct cxgbit_sock *csk, u16 opt) cxgbit_set_emss() argument 777 cxgbit_free_skb(struct cxgbit_sock *csk) cxgbit_free_skb() argument 795 struct cxgbit_sock *csk; _cxgbit_free_csk() local 827 cxgbit_set_tcp_window(struct cxgbit_sock *csk, struct port_info *pi) cxgbit_set_tcp_window() argument 899 cxgbit_offload_init(struct cxgbit_sock *csk, int iptype, __u8 *peer_ip, u16 local_port, struct dst_entry *dst, struct cxgbit_device *cdev) cxgbit_offload_init() argument 1045 cxgbit_send_rx_credits(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_send_rx_credits() argument 1060 cxgbit_rx_data_ack(struct cxgbit_sock *csk) cxgbit_rx_data_ack() argument 1094 cxgbit_alloc_csk_skb(struct cxgbit_sock *csk) cxgbit_alloc_csk_skb() argument 1130 cxgbit_pass_accept_rpl(struct cxgbit_sock *csk, struct cpl_pass_accept_req *req) cxgbit_pass_accept_rpl() argument 1219 struct cxgbit_sock *csk = NULL; cxgbit_pass_accept_req() local 1389 cxgbit_tx_flowc_wr_credits(struct cxgbit_sock *csk, u32 *nparamsp, u32 *flowclenp) cxgbit_tx_flowc_wr_credits() argument 1416 cxgbit_send_tx_flowc_wr(struct cxgbit_sock *csk) cxgbit_send_tx_flowc_wr() argument 1489 cxgbit_send_tcb_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_send_tcb_skb() argument 1508 cxgbit_setup_conn_digest(struct cxgbit_sock *csk) cxgbit_setup_conn_digest() argument 1545 cxgbit_setup_conn_pgidx(struct cxgbit_sock *csk, u32 pg_idx) cxgbit_setup_conn_pgidx() argument 1628 struct cxgbit_sock *csk; cxgbit_pass_establish() local 1662 cxgbit_queue_rx_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_queue_rx_skb() argument 1671 cxgbit_peer_close(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_peer_close() argument 1699 cxgbit_close_con_rpl(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_close_con_rpl() argument 1723 cxgbit_abort_req_rss(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_abort_req_rss() argument 1785 cxgbit_abort_rpl_rss(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_abort_rpl_rss() argument 1808 cxgbit_credit_err(const struct cxgbit_sock *csk) cxgbit_credit_err() argument 1835 cxgbit_fw4_ack(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_fw4_ack() argument 1899 struct cxgbit_sock *csk; cxgbit_set_tcb_rpl() local 1920 struct cxgbit_sock *csk; cxgbit_rx_data() local 1939 __cxgbit_process_rx_cpl(struct cxgbit_sock *csk, struct sk_buff *skb) __cxgbit_process_rx_cpl() argument 1952 cxgbit_process_rx_cpl(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_process_rx_cpl() argument 1961 struct cxgbit_sock *csk; cxgbit_rx_cpl() local [all...] |
H A D | cxgbit_target.c | 27 __cxgbit_alloc_skb(struct cxgbit_sock *csk, u32 len, bool iso) in __cxgbit_alloc_skb() argument 46 submode |= (csk->submode & CXGBIT_SUBMODE_DCRC); in __cxgbit_alloc_skb() 60 submode |= (csk->submode & CXGBIT_SUBMODE_HCRC); in __cxgbit_alloc_skb() 67 static struct sk_buff *cxgbit_alloc_skb(struct cxgbit_sock *csk, u32 len) in cxgbit_alloc_skb() argument 69 return __cxgbit_alloc_skb(csk, len, false); in cxgbit_alloc_skb() 159 cxgbit_tx_data_wr(struct cxgbit_sock *csk, struct sk_buff *skb, u32 dlen, in cxgbit_tx_data_wr() argument 163 const struct cxgb4_lld_info *lldi = &csk->com.cdev->lldi; in cxgbit_tx_data_wr() 186 req->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(csk->tid) | in cxgbit_tx_data_wr() 201 void cxgbit_push_tx_frames(struct cxgbit_sock *csk) in cxgbit_push_tx_frames() argument 205 while (csk in cxgbit_push_tx_frames() 286 cxgbit_unlock_sock(struct cxgbit_sock *csk) cxgbit_unlock_sock() argument 311 cxgbit_queue_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_queue_skb() argument 393 cxgbit_tx_datain_iso(struct cxgbit_sock *csk, struct iscsit_cmd *cmd, struct iscsi_datain_req *dr) cxgbit_tx_datain_iso() argument 484 cxgbit_tx_datain(struct cxgbit_sock *csk, struct iscsit_cmd *cmd, const struct iscsi_datain *datain) cxgbit_tx_datain() argument 517 struct cxgbit_sock *csk = conn->context; cxgbit_xmit_datain_pdu() local 536 struct cxgbit_sock *csk = conn->context; cxgbit_xmit_nondatain_pdu() local 574 struct cxgbit_sock *csk = conn->context; cxgbit_validate_params() local 596 cxgbit_set_digest(struct cxgbit_sock *csk) cxgbit_set_digest() argument 628 cxgbit_set_iso_npdu(struct cxgbit_sock *csk) cxgbit_set_iso_npdu() argument 679 cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk) cxgbit_seq_pdu_inorder() argument 717 struct cxgbit_sock *csk = conn->context; cxgbit_set_params() local 777 struct cxgbit_sock *csk = conn->context; cxgbit_put_login_tx() local 835 cxgbit_allocate_cmd(struct cxgbit_sock *csk) cxgbit_allocate_cmd() argument 860 struct cxgbit_sock *csk = conn->context; cxgbit_handle_immediate_data() local 967 cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) cxgbit_handle_scsi_cmd() argument 995 cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk) cxgbit_handle_iscsi_dataout() argument 1087 cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) cxgbit_handle_nop_out() argument 1155 cxgbit_handle_text_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) cxgbit_handle_text_cmd() argument 1208 cxgbit_target_rx_opcode(struct cxgbit_sock *csk) cxgbit_target_rx_opcode() argument 1286 cxgbit_rx_opcode(struct cxgbit_sock *csk) cxgbit_rx_opcode() argument 1322 cxgbit_rx_login_pdu(struct cxgbit_sock *csk) cxgbit_rx_login_pdu() argument 1365 cxgbit_process_iscsi_pdu(struct cxgbit_sock *csk, struct sk_buff *skb, int idx) cxgbit_process_iscsi_pdu() argument 1408 cxgbit_lro_hskb_reset(struct cxgbit_sock *csk) cxgbit_lro_hskb_reset() argument 1424 cxgbit_lro_skb_merge(struct cxgbit_sock *csk, struct sk_buff *skb, u8 pdu_idx) cxgbit_lro_skb_merge() argument 1494 cxgbit_process_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_process_lro_skb() argument 1534 cxgbit_t5_rx_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_t5_rx_lro_skb() argument 1560 cxgbit_rx_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_rx_lro_skb() argument 1578 cxgbit_rx_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_rx_skb() argument 1594 cxgbit_rxq_len(struct cxgbit_sock *csk, struct sk_buff_head *rxq) cxgbit_rxq_len() argument 1606 cxgbit_wait_rxq(struct cxgbit_sock *csk) cxgbit_wait_rxq() argument 1631 struct cxgbit_sock *csk = conn->context; cxgbit_get_login_rx() local 1647 struct cxgbit_sock *csk = conn->context; cxgbit_get_rx_pdu() local [all...] |
H A D | cxgbit_main.c | 98 struct cxgbit_sock *csk; in cxgbit_close_conn() local 103 list_for_each_entry(csk, &cdev->cskq.list, list) { in cxgbit_close_conn() 108 spin_lock_bh(&csk->rxq.lock); in cxgbit_close_conn() 109 __skb_queue_tail(&csk->rxq, skb); in cxgbit_close_conn() 110 if (skb_queue_len(&csk->rxq) == 1) in cxgbit_close_conn() 112 spin_unlock_bh(&csk->rxq.lock); in cxgbit_close_conn() 115 wake_up(&csk->waitq); in cxgbit_close_conn() 173 cxgbit_process_ddpvld(struct cxgbit_sock *csk, struct cxgbit_lro_pdu_cb *pdu_cb, in cxgbit_process_ddpvld() argument 178 pr_info("tid 0x%x, status 0x%x, hcrc bad.\n", csk->tid, ddpvld); in cxgbit_process_ddpvld() 183 pr_info("tid 0x%x, status 0x%x, dcrc bad.\n", csk in cxgbit_process_ddpvld() 316 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl, const __be64 *rsp, struct napi_struct *napi) cxgbit_lro_init_skb() argument 340 cxgbit_queue_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_queue_lro_skb() argument 357 struct cxgbit_sock *csk = lro_cb->csk; cxgbit_lro_flush() local 379 cxgbit_lro_receive(struct cxgbit_sock *csk, u8 op, const __be64 *rsp, const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, struct napi_struct *napi) cxgbit_lro_receive() argument 441 struct cxgbit_sock *csk = NULL; cxgbit_uld_lro_rx_handler() local 541 struct cxgbit_sock *csk; cxgbit_update_dcb_priority() local [all...] |
H A D | cxgbit.h | 258 static inline void cxgbit_get_csk(struct cxgbit_sock *csk) in cxgbit_get_csk() argument 260 kref_get(&csk->kref); in cxgbit_get_csk() 263 static inline void cxgbit_put_csk(struct cxgbit_sock *csk) in cxgbit_put_csk() argument 265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk() 278 static inline void cxgbit_sock_reset_wr_list(struct cxgbit_sock *csk) in cxgbit_sock_reset_wr_list() argument 280 csk->wr_pending_tail = NULL; in cxgbit_sock_reset_wr_list() 281 csk->wr_pending_head = NULL; in cxgbit_sock_reset_wr_list() 284 static inline struct sk_buff *cxgbit_sock_peek_wr(const struct cxgbit_sock *csk) in cxgbit_sock_peek_wr() argument 286 return csk->wr_pending_head; in cxgbit_sock_peek_wr() 290 cxgbit_sock_enqueue_wr(struct cxgbit_sock *csk, struc argument 303 cxgbit_sock_dequeue_wr(struct cxgbit_sock *csk) cxgbit_sock_dequeue_wr() argument [all...] |
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_cm.c | 469 struct cxgbit_sock *csk) in cxgbit_set_conn_info() 472 conn->login_sockaddr = csk->com.remote_addr; in cxgbit_set_conn_info() 473 conn->local_sockaddr = csk->com.local_addr; in cxgbit_set_conn_info() 479 struct cxgbit_sock *csk; in cxgbit_accept_np() local 504 csk = list_first_entry(&cnp->np_accept_list, in cxgbit_accept_np() 508 list_del_init(&csk->accept_node); in cxgbit_accept_np() 510 conn->context = csk; in cxgbit_accept_np() 511 csk->conn = conn; in cxgbit_accept_np() 513 cxgbit_set_conn_info(np, conn, csk); in cxgbit_accept_np() 598 static void __cxgbit_free_conn(struct cxgbit_sock *csk); 468 cxgbit_set_conn_info(struct iscsi_np *np, struct iscsi_conn *conn, struct cxgbit_sock *csk) cxgbit_set_conn_info() argument 603 struct cxgbit_sock *csk, *tmp; cxgbit_free_np() local 622 cxgbit_send_halfclose(struct cxgbit_sock *csk) cxgbit_send_halfclose() argument 641 struct cxgbit_sock *csk = handle; cxgbit_arp_failure_discard() local 658 cxgbit_send_abort_req(struct cxgbit_sock *csk) cxgbit_send_abort_req() argument 679 __cxgbit_abort_conn(struct cxgbit_sock *csk, struct sk_buff *skb) __cxgbit_abort_conn() argument 698 cxgbit_abort_conn(struct cxgbit_sock *csk) cxgbit_abort_conn() argument 718 __cxgbit_free_conn(struct cxgbit_sock *csk) __cxgbit_free_conn() argument 759 cxgbit_set_emss(struct cxgbit_sock *csk, u16 opt) cxgbit_set_emss() argument 777 cxgbit_free_skb(struct cxgbit_sock *csk) cxgbit_free_skb() argument 795 struct cxgbit_sock *csk; _cxgbit_free_csk() local 827 cxgbit_set_tcp_window(struct cxgbit_sock *csk, struct port_info *pi) cxgbit_set_tcp_window() argument 897 cxgbit_offload_init(struct cxgbit_sock *csk, int iptype, __u8 *peer_ip, u16 local_port, struct dst_entry *dst, struct cxgbit_device *cdev) cxgbit_offload_init() argument 1043 cxgbit_send_rx_credits(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_send_rx_credits() argument 1058 cxgbit_rx_data_ack(struct cxgbit_sock *csk) cxgbit_rx_data_ack() argument 1092 cxgbit_alloc_csk_skb(struct cxgbit_sock *csk) cxgbit_alloc_csk_skb() argument 1128 cxgbit_pass_accept_rpl(struct cxgbit_sock *csk, struct cpl_pass_accept_req *req) cxgbit_pass_accept_rpl() argument 1218 struct cxgbit_sock *csk = NULL; cxgbit_pass_accept_req() local 1388 cxgbit_tx_flowc_wr_credits(struct cxgbit_sock *csk, u32 *nparamsp, u32 *flowclenp) cxgbit_tx_flowc_wr_credits() argument 1415 cxgbit_send_tx_flowc_wr(struct cxgbit_sock *csk) cxgbit_send_tx_flowc_wr() argument 1488 cxgbit_send_tcb_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_send_tcb_skb() argument 1507 cxgbit_setup_conn_digest(struct cxgbit_sock *csk) cxgbit_setup_conn_digest() argument 1544 cxgbit_setup_conn_pgidx(struct cxgbit_sock *csk, u32 pg_idx) cxgbit_setup_conn_pgidx() argument 1627 struct cxgbit_sock *csk; cxgbit_pass_establish() local 1664 cxgbit_queue_rx_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_queue_rx_skb() argument 1673 cxgbit_peer_close(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_peer_close() argument 1701 cxgbit_close_con_rpl(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_close_con_rpl() argument 1725 cxgbit_abort_req_rss(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_abort_req_rss() argument 1787 cxgbit_abort_rpl_rss(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_abort_rpl_rss() argument 1810 cxgbit_credit_err(const struct cxgbit_sock *csk) cxgbit_credit_err() argument 1837 cxgbit_fw4_ack(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_fw4_ack() argument 1901 struct cxgbit_sock *csk; cxgbit_set_tcb_rpl() local 1922 struct cxgbit_sock *csk; cxgbit_rx_data() local 1941 __cxgbit_process_rx_cpl(struct cxgbit_sock *csk, struct sk_buff *skb) __cxgbit_process_rx_cpl() argument 1954 cxgbit_process_rx_cpl(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_process_rx_cpl() argument 1963 struct cxgbit_sock *csk; cxgbit_rx_cpl() local [all...] |
H A D | cxgbit_target.c | 27 __cxgbit_alloc_skb(struct cxgbit_sock *csk, u32 len, bool iso) in __cxgbit_alloc_skb() argument 46 submode |= (csk->submode & CXGBIT_SUBMODE_DCRC); in __cxgbit_alloc_skb() 60 submode |= (csk->submode & CXGBIT_SUBMODE_HCRC); in __cxgbit_alloc_skb() 67 static struct sk_buff *cxgbit_alloc_skb(struct cxgbit_sock *csk, u32 len) in cxgbit_alloc_skb() argument 69 return __cxgbit_alloc_skb(csk, len, false); in cxgbit_alloc_skb() 159 cxgbit_tx_data_wr(struct cxgbit_sock *csk, struct sk_buff *skb, u32 dlen, in cxgbit_tx_data_wr() argument 163 const struct cxgb4_lld_info *lldi = &csk->com.cdev->lldi; in cxgbit_tx_data_wr() 186 req->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(csk->tid) | in cxgbit_tx_data_wr() 193 FW_OFLD_TX_DATA_WR_SHOVE_V(skb_peek(&csk->txq) ? 0 : 1)); in cxgbit_tx_data_wr() 201 void cxgbit_push_tx_frames(struct cxgbit_sock *csk) in cxgbit_push_tx_frames() argument 286 cxgbit_unlock_sock(struct cxgbit_sock *csk) cxgbit_unlock_sock() argument 311 cxgbit_queue_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_queue_skb() argument 393 cxgbit_tx_datain_iso(struct cxgbit_sock *csk, struct iscsi_cmd *cmd, struct iscsi_datain_req *dr) cxgbit_tx_datain_iso() argument 484 cxgbit_tx_datain(struct cxgbit_sock *csk, struct iscsi_cmd *cmd, const struct iscsi_datain *datain) cxgbit_tx_datain() argument 517 struct cxgbit_sock *csk = conn->context; cxgbit_xmit_datain_pdu() local 536 struct cxgbit_sock *csk = conn->context; cxgbit_xmit_nondatain_pdu() local 574 struct cxgbit_sock *csk = conn->context; cxgbit_validate_params() local 596 cxgbit_set_digest(struct cxgbit_sock *csk) cxgbit_set_digest() argument 628 cxgbit_set_iso_npdu(struct cxgbit_sock *csk) cxgbit_set_iso_npdu() argument 679 cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk) cxgbit_seq_pdu_inorder() argument 717 struct cxgbit_sock *csk = conn->context; cxgbit_set_params() local 777 struct cxgbit_sock *csk = conn->context; cxgbit_put_login_tx() local 835 cxgbit_allocate_cmd(struct cxgbit_sock *csk) cxgbit_allocate_cmd() argument 860 struct cxgbit_sock *csk = conn->context; cxgbit_handle_immediate_data() local 967 cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsi_cmd *cmd) cxgbit_handle_scsi_cmd() argument 995 cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk) cxgbit_handle_iscsi_dataout() argument 1087 cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsi_cmd *cmd) cxgbit_handle_nop_out() argument 1155 cxgbit_handle_text_cmd(struct cxgbit_sock *csk, struct iscsi_cmd *cmd) cxgbit_handle_text_cmd() argument 1208 cxgbit_target_rx_opcode(struct cxgbit_sock *csk) cxgbit_target_rx_opcode() argument 1286 cxgbit_rx_opcode(struct cxgbit_sock *csk) cxgbit_rx_opcode() argument 1322 cxgbit_rx_login_pdu(struct cxgbit_sock *csk) cxgbit_rx_login_pdu() argument 1365 cxgbit_process_iscsi_pdu(struct cxgbit_sock *csk, struct sk_buff *skb, int idx) cxgbit_process_iscsi_pdu() argument 1408 cxgbit_lro_hskb_reset(struct cxgbit_sock *csk) cxgbit_lro_hskb_reset() argument 1424 cxgbit_lro_skb_merge(struct cxgbit_sock *csk, struct sk_buff *skb, u8 pdu_idx) cxgbit_lro_skb_merge() argument 1494 cxgbit_process_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_process_lro_skb() argument 1534 cxgbit_rx_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_rx_lro_skb() argument 1560 cxgbit_rx_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_rx_skb() argument 1576 cxgbit_rxq_len(struct cxgbit_sock *csk, struct sk_buff_head *rxq) cxgbit_rxq_len() argument 1588 cxgbit_wait_rxq(struct cxgbit_sock *csk) cxgbit_wait_rxq() argument 1613 struct cxgbit_sock *csk = conn->context; cxgbit_get_login_rx() local 1629 struct cxgbit_sock *csk = conn->context; cxgbit_get_rx_pdu() local [all...] |
H A D | cxgbit_main.c | 91 struct cxgbit_sock *csk; in cxgbit_close_conn() local 96 list_for_each_entry(csk, &cdev->cskq.list, list) { in cxgbit_close_conn() 101 spin_lock_bh(&csk->rxq.lock); in cxgbit_close_conn() 102 __skb_queue_tail(&csk->rxq, skb); in cxgbit_close_conn() 103 if (skb_queue_len(&csk->rxq) == 1) in cxgbit_close_conn() 105 spin_unlock_bh(&csk->rxq.lock); in cxgbit_close_conn() 108 wake_up(&csk->waitq); in cxgbit_close_conn() 166 cxgbit_process_ddpvld(struct cxgbit_sock *csk, struct cxgbit_lro_pdu_cb *pdu_cb, in cxgbit_process_ddpvld() argument 171 pr_info("tid 0x%x, status 0x%x, hcrc bad.\n", csk->tid, ddpvld); in cxgbit_process_ddpvld() 176 pr_info("tid 0x%x, status 0x%x, dcrc bad.\n", csk in cxgbit_process_ddpvld() 309 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl, const __be64 *rsp, struct napi_struct *napi) cxgbit_lro_init_skb() argument 333 cxgbit_queue_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) cxgbit_queue_lro_skb() argument 350 struct cxgbit_sock *csk = lro_cb->csk; cxgbit_lro_flush() local 372 cxgbit_lro_receive(struct cxgbit_sock *csk, u8 op, const __be64 *rsp, const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, struct napi_struct *napi) cxgbit_lro_receive() argument 434 struct cxgbit_sock *csk = NULL; cxgbit_uld_lro_rx_handler() local 534 struct cxgbit_sock *csk; cxgbit_update_dcb_priority() local [all...] |
H A D | cxgbit.h | 258 static inline void cxgbit_get_csk(struct cxgbit_sock *csk) in cxgbit_get_csk() argument 260 kref_get(&csk->kref); in cxgbit_get_csk() 263 static inline void cxgbit_put_csk(struct cxgbit_sock *csk) in cxgbit_put_csk() argument 265 kref_put(&csk->kref, _cxgbit_free_csk); in cxgbit_put_csk() 278 static inline void cxgbit_sock_reset_wr_list(struct cxgbit_sock *csk) in cxgbit_sock_reset_wr_list() argument 280 csk->wr_pending_tail = NULL; in cxgbit_sock_reset_wr_list() 281 csk->wr_pending_head = NULL; in cxgbit_sock_reset_wr_list() 284 static inline struct sk_buff *cxgbit_sock_peek_wr(const struct cxgbit_sock *csk) in cxgbit_sock_peek_wr() argument 286 return csk->wr_pending_head; in cxgbit_sock_peek_wr() 290 cxgbit_sock_enqueue_wr(struct cxgbit_sock *csk, struc argument 303 cxgbit_sock_dequeue_wr(struct cxgbit_sock *csk) cxgbit_sock_dequeue_wr() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.c | 156 static int push_tx_frames(struct cxgbi_sock *csk, int req_completion); 158 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument 161 unsigned int wscale = cxgbi_sock_compute_wscale(csk->rcv_win); in send_act_open_req() 167 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req() 168 req->local_port = csk->saddr.sin_port; in send_act_open_req() 169 req->peer_port = csk->daddr.sin_port; in send_act_open_req() 170 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req() 171 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req() 174 V_WND_SCALE(wscale) | V_MSS_IDX(csk->mss_idx) | in send_act_open_req() 177 V_RCV_BUFSIZ(csk in send_act_open_req() 200 send_close_req(struct cxgbi_sock *csk) send_close_req() argument 239 send_abort_req(struct cxgbi_sock *csk) send_abort_req() argument 275 send_abort_rpl(struct cxgbi_sock *csk, int rst_status) send_abort_rpl() argument 298 send_rx_credits(struct cxgbi_sock *csk, u32 credits) send_rx_credits() argument 351 make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb, int len, int req_completion) make_tx_data_wr() argument 393 push_tx_frames(struct cxgbi_sock *csk, int req_completion) push_tx_frames() argument 465 free_atid(struct cxgbi_sock *csk) free_atid() argument 476 struct cxgbi_sock *csk = ctx; do_act_establish() local 549 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer); act_open_retry_timer() local 572 struct cxgbi_sock *csk = ctx; do_act_open_rpl() local 607 struct cxgbi_sock *csk = ctx; do_peer_close() local 625 struct cxgbi_sock *csk = ctx; do_close_con_rpl() local 643 abort_status_to_errno(struct cxgbi_sock *csk, int abort_reason, int *need_rst) abort_status_to_errno() argument 663 struct cxgbi_sock *csk = ctx; do_abort_req() local 710 struct cxgbi_sock *csk = ctx; do_abort_rpl() local 745 struct cxgbi_sock *csk = ctx; do_iscsi_hdr() local 849 struct cxgbi_sock *csk = ctx; do_wr_ack() local 865 alloc_cpls(struct cxgbi_sock *csk) alloc_cpls() argument 888 l2t_put(struct cxgbi_sock *csk) l2t_put() argument 903 release_offload_resources(struct cxgbi_sock *csk) release_offload_resources() argument 952 init_act_open(struct cxgbi_sock *csk) init_act_open() argument 1095 ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo) ddp_set_map() argument 1152 ddp_setup_conn_pgidx(struct cxgbi_sock *csk, unsigned int tid, int pg_idx) ddp_setup_conn_pgidx() argument 1188 ddp_setup_conn_digest(struct cxgbi_sock *csk, unsigned int tid, int hcrc, int dcrc) ddp_setup_conn_digest() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.c | 157 static int push_tx_frames(struct cxgbi_sock *csk, int req_completion); 159 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument 162 unsigned int wscale = cxgbi_sock_compute_wscale(csk->rcv_win); in send_act_open_req() 168 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req() 169 req->local_port = csk->saddr.sin_port; in send_act_open_req() 170 req->peer_port = csk->daddr.sin_port; in send_act_open_req() 171 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req() 172 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req() 175 V_WND_SCALE(wscale) | V_MSS_IDX(csk->mss_idx) | in send_act_open_req() 178 V_RCV_BUFSIZ(csk in send_act_open_req() 201 send_close_req(struct cxgbi_sock *csk) send_close_req() argument 240 send_abort_req(struct cxgbi_sock *csk) send_abort_req() argument 276 send_abort_rpl(struct cxgbi_sock *csk, int rst_status) send_abort_rpl() argument 299 send_rx_credits(struct cxgbi_sock *csk, u32 credits) send_rx_credits() argument 352 make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb, int len, int req_completion) make_tx_data_wr() argument 394 push_tx_frames(struct cxgbi_sock *csk, int req_completion) push_tx_frames() argument 466 free_atid(struct cxgbi_sock *csk) free_atid() argument 477 struct cxgbi_sock *csk = ctx; do_act_establish() local 550 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer); act_open_retry_timer() local 573 struct cxgbi_sock *csk = ctx; do_act_open_rpl() local 608 struct cxgbi_sock *csk = ctx; do_peer_close() local 626 struct cxgbi_sock *csk = ctx; do_close_con_rpl() local 644 abort_status_to_errno(struct cxgbi_sock *csk, int abort_reason, int *need_rst) abort_status_to_errno() argument 664 struct cxgbi_sock *csk = ctx; do_abort_req() local 711 struct cxgbi_sock *csk = ctx; do_abort_rpl() local 746 struct cxgbi_sock *csk = ctx; do_iscsi_hdr() local 850 struct cxgbi_sock *csk = ctx; do_wr_ack() local 866 alloc_cpls(struct cxgbi_sock *csk) alloc_cpls() argument 889 l2t_put(struct cxgbi_sock *csk) l2t_put() argument 904 release_offload_resources(struct cxgbi_sock *csk) release_offload_resources() argument 953 init_act_open(struct cxgbi_sock *csk) init_act_open() argument 1096 ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo) ddp_set_map() argument 1153 ddp_setup_conn_pgidx(struct cxgbi_sock *csk, unsigned int tid, int pg_idx) ddp_setup_conn_pgidx() argument 1189 ddp_setup_conn_digest(struct cxgbi_sock *csk, unsigned int tid, int hcrc, int dcrc) ddp_setup_conn_digest() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 98 struct cxgbi_sock *csk; in cxgbi_device_portmap_cleanup() local 103 csk = pmap->port_csk[i]; in cxgbi_device_portmap_cleanup() 106 "csk 0x%p, cdev 0x%p, offload down.\n", in cxgbi_device_portmap_cleanup() 107 csk, cdev); in cxgbi_device_portmap_cleanup() 108 spin_lock_bh(&csk->lock); in cxgbi_device_portmap_cleanup() 109 cxgbi_sock_set_flag(csk, CTPF_OFFLOAD_DOWN); in cxgbi_device_portmap_cleanup() 110 cxgbi_sock_closed(csk); in cxgbi_device_portmap_cleanup() 111 spin_unlock_bh(&csk->lock); in cxgbi_device_portmap_cleanup() 112 cxgbi_sock_put(csk); in cxgbi_device_portmap_cleanup() 424 struct cxgbi_sock *csk in find_sock_on_port() local 439 sock_get_port(struct cxgbi_sock *csk) sock_get_port() argument 500 sock_put_port(struct cxgbi_sock *csk) sock_put_port() argument 540 cxgbi_sock_free_cpl_skbs(struct cxgbi_sock *csk) cxgbi_sock_free_cpl_skbs() argument 559 struct cxgbi_sock *csk = kzalloc(sizeof(*csk), GFP_NOIO); cxgbi_sock_create() local 613 struct cxgbi_sock *csk = NULL; cxgbi_check_route() local 729 struct cxgbi_sock *csk = NULL; cxgbi_check_route6() local 830 cxgbi_sock_established(struct cxgbi_sock *csk, unsigned int snd_isn, unsigned int opt) cxgbi_sock_established() argument 840 cxgbi_inform_iscsi_conn_closing(struct cxgbi_sock *csk) cxgbi_inform_iscsi_conn_closing() argument 855 cxgbi_sock_closed(struct cxgbi_sock *csk) cxgbi_sock_closed() argument 873 need_active_close(struct cxgbi_sock *csk) need_active_close() argument 907 cxgbi_sock_fail_act_open(struct cxgbi_sock *csk, int errno) cxgbi_sock_fail_act_open() argument 923 struct cxgbi_sock *csk = (struct cxgbi_sock *)skb->sk; cxgbi_sock_act_open_req_arp_failure() local 940 cxgbi_sock_rcv_abort_rpl(struct cxgbi_sock *csk) cxgbi_sock_rcv_abort_rpl() argument 959 cxgbi_sock_rcv_peer_close(struct cxgbi_sock *csk) cxgbi_sock_rcv_peer_close() argument 992 cxgbi_sock_rcv_close_conn_rpl(struct cxgbi_sock *csk, u32 snd_nxt) cxgbi_sock_rcv_close_conn_rpl() argument 1023 cxgbi_sock_rcv_wr_ack(struct cxgbi_sock *csk, unsigned int credits, unsigned int snd_una, int seq_chk) cxgbi_sock_rcv_wr_ack() argument 1087 cxgbi_sock_find_best_mtu(struct cxgbi_sock *csk, unsigned short mtu) cxgbi_sock_find_best_mtu() argument 1098 cxgbi_sock_select_mss(struct cxgbi_sock *csk, unsigned int pmtu) cxgbi_sock_select_mss() argument 1115 cxgbi_sock_skb_entail(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_skb_entail() argument 1122 cxgbi_sock_purge_wr_queue(struct cxgbi_sock *csk) cxgbi_sock_purge_wr_queue() argument 1131 cxgbi_sock_check_wr_invariants(const struct cxgbi_sock *csk) cxgbi_sock_check_wr_invariants() argument 1264 struct cxgbi_sock *csk = cconn->cep->csk; cxgbi_ddp_reserve() local 1451 cxgbi_conn_tx_open(struct cxgbi_sock *csk) cxgbi_conn_tx_open() argument 1508 skb_read_pdu_bhs(struct cxgbi_sock *csk, struct iscsi_conn *conn, struct sk_buff *skb) skb_read_pdu_bhs() argument 1600 csk_return_rx_credits(struct cxgbi_sock *csk, int copied) csk_return_rx_credits() argument 1626 cxgbi_conn_pdu_ready(struct cxgbi_sock *csk) cxgbi_conn_pdu_ready() argument 1892 struct cxgbi_sock *csk = cconn->cep ? cconn->cep->csk : NULL; cxgbi_conn_alloc_pdu() local 2273 cxgbi_sock_tx_queue_up(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_tx_queue_up() argument 2342 cxgbi_sock_send_skb(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_send_skb() argument 2369 struct cxgbi_sock *csk = NULL; cxgbi_conn_xmit_pdu() local 2574 struct cxgbi_sock *csk = cconn->cep->csk; cxgbi_set_conn_param() local 2619 struct cxgbi_sock *csk; cxgbi_get_ep_param() local 2678 struct cxgbi_sock *csk; cxgbi_bind_conn() local 2837 struct cxgbi_sock *csk = find_sock_on_port(chba->cdev, cxgbi_get_host_param() local 2862 struct cxgbi_sock *csk; cxgbi_ep_connect() local 2956 struct cxgbi_sock *csk = cep->csk; cxgbi_ep_poll() local 2968 struct cxgbi_sock *csk = cep->csk; cxgbi_ep_disconnect() local [all...] |
H A D | libcxgbi.h | 84 #define cxgbi_is_iso_config(csk) ((csk)->cdev->skb_iso_txhdr) 85 #define cxgbi_is_iso_disabled(csk) ((csk)->disable_iso) 274 static inline void cxgbi_sock_set_flag(struct cxgbi_sock *csk, in cxgbi_sock_set_flag() argument 277 __set_bit(flag, &csk->flags); in cxgbi_sock_set_flag() 279 "csk 0x%p,%u,0x%lx, bit %d.\n", in cxgbi_sock_set_flag() 280 csk, csk->state, csk in cxgbi_sock_set_flag() 283 cxgbi_sock_clear_flag(struct cxgbi_sock *csk, enum cxgbi_sock_flags flag) cxgbi_sock_clear_flag() argument 292 cxgbi_sock_flag(struct cxgbi_sock *csk, enum cxgbi_sock_flags flag) cxgbi_sock_flag() argument 300 cxgbi_sock_set_state(struct cxgbi_sock *csk, int state) cxgbi_sock_set_state() argument 310 struct cxgbi_sock *csk = container_of(kref, cxgbi_sock_free() local 321 __cxgbi_sock_put(const char *fn, struct cxgbi_sock *csk) __cxgbi_sock_put() argument 330 __cxgbi_sock_get(const char *fn, struct cxgbi_sock *csk) __cxgbi_sock_get() argument 339 cxgbi_sock_is_closing(struct cxgbi_sock *csk) cxgbi_sock_is_closing() argument 344 cxgbi_sock_is_established(struct cxgbi_sock *csk) cxgbi_sock_is_established() argument 349 cxgbi_sock_purge_write_queue(struct cxgbi_sock *csk) cxgbi_sock_purge_write_queue() argument 387 cxgbi_sock_reset_wr_list(struct cxgbi_sock *csk) cxgbi_sock_reset_wr_list() argument 392 cxgbi_sock_enqueue_wr(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_enqueue_wr() argument 409 cxgbi_sock_count_pending_wrs(const struct cxgbi_sock *csk) cxgbi_sock_count_pending_wrs() argument 421 cxgbi_sock_peek_wr(const struct cxgbi_sock *csk) cxgbi_sock_peek_wr() argument 426 cxgbi_sock_dequeue_wr(struct cxgbi_sock *csk) cxgbi_sock_dequeue_wr() argument 540 struct cxgbi_sock *csk; global() member [all...] |
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 98 struct cxgbi_sock *csk; in cxgbi_device_portmap_cleanup() local 103 csk = pmap->port_csk[i]; in cxgbi_device_portmap_cleanup() 106 "csk 0x%p, cdev 0x%p, offload down.\n", in cxgbi_device_portmap_cleanup() 107 csk, cdev); in cxgbi_device_portmap_cleanup() 108 spin_lock_bh(&csk->lock); in cxgbi_device_portmap_cleanup() 109 cxgbi_sock_set_flag(csk, CTPF_OFFLOAD_DOWN); in cxgbi_device_portmap_cleanup() 110 cxgbi_sock_closed(csk); in cxgbi_device_portmap_cleanup() 111 spin_unlock_bh(&csk->lock); in cxgbi_device_portmap_cleanup() 112 cxgbi_sock_put(csk); in cxgbi_device_portmap_cleanup() 424 struct cxgbi_sock *csk in find_sock_on_port() local 439 sock_get_port(struct cxgbi_sock *csk) sock_get_port() argument 500 sock_put_port(struct cxgbi_sock *csk) sock_put_port() argument 540 cxgbi_sock_free_cpl_skbs(struct cxgbi_sock *csk) cxgbi_sock_free_cpl_skbs() argument 559 struct cxgbi_sock *csk = kzalloc(sizeof(*csk), GFP_NOIO); cxgbi_sock_create() local 613 struct cxgbi_sock *csk = NULL; cxgbi_check_route() local 729 struct cxgbi_sock *csk = NULL; cxgbi_check_route6() local 830 cxgbi_sock_established(struct cxgbi_sock *csk, unsigned int snd_isn, unsigned int opt) cxgbi_sock_established() argument 840 cxgbi_inform_iscsi_conn_closing(struct cxgbi_sock *csk) cxgbi_inform_iscsi_conn_closing() argument 855 cxgbi_sock_closed(struct cxgbi_sock *csk) cxgbi_sock_closed() argument 873 need_active_close(struct cxgbi_sock *csk) need_active_close() argument 907 cxgbi_sock_fail_act_open(struct cxgbi_sock *csk, int errno) cxgbi_sock_fail_act_open() argument 923 struct cxgbi_sock *csk = (struct cxgbi_sock *)skb->sk; cxgbi_sock_act_open_req_arp_failure() local 940 cxgbi_sock_rcv_abort_rpl(struct cxgbi_sock *csk) cxgbi_sock_rcv_abort_rpl() argument 959 cxgbi_sock_rcv_peer_close(struct cxgbi_sock *csk) cxgbi_sock_rcv_peer_close() argument 992 cxgbi_sock_rcv_close_conn_rpl(struct cxgbi_sock *csk, u32 snd_nxt) cxgbi_sock_rcv_close_conn_rpl() argument 1023 cxgbi_sock_rcv_wr_ack(struct cxgbi_sock *csk, unsigned int credits, unsigned int snd_una, int seq_chk) cxgbi_sock_rcv_wr_ack() argument 1087 cxgbi_sock_find_best_mtu(struct cxgbi_sock *csk, unsigned short mtu) cxgbi_sock_find_best_mtu() argument 1098 cxgbi_sock_select_mss(struct cxgbi_sock *csk, unsigned int pmtu) cxgbi_sock_select_mss() argument 1115 cxgbi_sock_skb_entail(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_skb_entail() argument 1122 cxgbi_sock_purge_wr_queue(struct cxgbi_sock *csk) cxgbi_sock_purge_wr_queue() argument 1131 cxgbi_sock_check_wr_invariants(const struct cxgbi_sock *csk) cxgbi_sock_check_wr_invariants() argument 1264 struct cxgbi_sock *csk = cconn->cep->csk; cxgbi_ddp_reserve() local 1451 cxgbi_conn_tx_open(struct cxgbi_sock *csk) cxgbi_conn_tx_open() argument 1508 skb_read_pdu_bhs(struct cxgbi_sock *csk, struct iscsi_conn *conn, struct sk_buff *skb) skb_read_pdu_bhs() argument 1600 csk_return_rx_credits(struct cxgbi_sock *csk, int copied) csk_return_rx_credits() argument 1626 cxgbi_conn_pdu_ready(struct cxgbi_sock *csk) cxgbi_conn_pdu_ready() argument 1892 struct cxgbi_sock *csk = cconn->cep ? cconn->cep->csk : NULL; cxgbi_conn_alloc_pdu() local 2273 cxgbi_sock_tx_queue_up(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_tx_queue_up() argument 2342 cxgbi_sock_send_skb(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_send_skb() argument 2369 struct cxgbi_sock *csk = NULL; cxgbi_conn_xmit_pdu() local 2574 struct cxgbi_sock *csk = cconn->cep->csk; cxgbi_set_conn_param() local 2619 struct cxgbi_sock *csk; cxgbi_get_ep_param() local 2678 struct cxgbi_sock *csk; cxgbi_bind_conn() local 2837 struct cxgbi_sock *csk = find_sock_on_port(chba->cdev, cxgbi_get_host_param() local 2862 struct cxgbi_sock *csk; cxgbi_ep_connect() local 2956 struct cxgbi_sock *csk = cep->csk; cxgbi_ep_poll() local 2968 struct cxgbi_sock *csk = cep->csk; cxgbi_ep_disconnect() local [all...] |
H A D | libcxgbi.h | 83 #define cxgbi_is_iso_config(csk) ((csk)->cdev->skb_iso_txhdr) 84 #define cxgbi_is_iso_disabled(csk) ((csk)->disable_iso) 273 static inline void cxgbi_sock_set_flag(struct cxgbi_sock *csk, in cxgbi_sock_set_flag() argument 276 __set_bit(flag, &csk->flags); in cxgbi_sock_set_flag() 278 "csk 0x%p,%u,0x%lx, bit %d.\n", in cxgbi_sock_set_flag() 279 csk, csk->state, csk in cxgbi_sock_set_flag() 282 cxgbi_sock_clear_flag(struct cxgbi_sock *csk, enum cxgbi_sock_flags flag) cxgbi_sock_clear_flag() argument 291 cxgbi_sock_flag(struct cxgbi_sock *csk, enum cxgbi_sock_flags flag) cxgbi_sock_flag() argument 299 cxgbi_sock_set_state(struct cxgbi_sock *csk, int state) cxgbi_sock_set_state() argument 309 struct cxgbi_sock *csk = container_of(kref, cxgbi_sock_free() local 320 __cxgbi_sock_put(const char *fn, struct cxgbi_sock *csk) __cxgbi_sock_put() argument 329 __cxgbi_sock_get(const char *fn, struct cxgbi_sock *csk) __cxgbi_sock_get() argument 338 cxgbi_sock_is_closing(struct cxgbi_sock *csk) cxgbi_sock_is_closing() argument 343 cxgbi_sock_is_established(struct cxgbi_sock *csk) cxgbi_sock_is_established() argument 348 cxgbi_sock_purge_write_queue(struct cxgbi_sock *csk) cxgbi_sock_purge_write_queue() argument 386 cxgbi_sock_reset_wr_list(struct cxgbi_sock *csk) cxgbi_sock_reset_wr_list() argument 391 cxgbi_sock_enqueue_wr(struct cxgbi_sock *csk, struct sk_buff *skb) cxgbi_sock_enqueue_wr() argument 408 cxgbi_sock_count_pending_wrs(const struct cxgbi_sock *csk) cxgbi_sock_count_pending_wrs() argument 420 cxgbi_sock_peek_wr(const struct cxgbi_sock *csk) cxgbi_sock_peek_wr() argument 425 cxgbi_sock_dequeue_wr(struct cxgbi_sock *csk) cxgbi_sock_dequeue_wr() argument 539 struct cxgbi_sock *csk; global() member [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.c | 60 struct chtls_sock *csk = kzalloc(sizeof(*csk), GFP_ATOMIC); in chtls_sock_create() local 62 if (!csk) in chtls_sock_create() 65 csk->txdata_skb_cache = alloc_skb(TXDATA_SKB_LEN, GFP_ATOMIC); in chtls_sock_create() 66 if (!csk->txdata_skb_cache) { in chtls_sock_create() 67 kfree(csk); in chtls_sock_create() 71 kref_init(&csk->kref); in chtls_sock_create() 72 csk->cdev = cdev; in chtls_sock_create() 73 skb_queue_head_init(&csk->txq); in chtls_sock_create() 74 csk in chtls_sock_create() 87 struct chtls_sock *csk = chtls_sock_release() local 144 struct chtls_sock *csk; assign_rxopt() local 181 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_purge_write_queue() local 192 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_purge_recv_queue() local 226 struct chtls_sock *csk; chtls_send_abort() local 247 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_send_reset() local 299 struct chtls_sock *csk; chtls_close_conn() local 341 struct chtls_sock *csk; chtls_close() local 481 struct chtls_sock *csk; chtls_destroy_sock() local 500 struct chtls_sock *csk = rcu_dereference_sk_user_data(child); reset_listen_child() local 610 struct chtls_sock *csk; cleanup_syn_rcv_conn() local 626 struct chtls_sock *csk = chtls_reset_synq() local 820 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_release_resources() local 900 struct chtls_sock *csk; chtls_pass_open_arp_failure() local 942 chtls_select_mss(const struct chtls_sock *csk, unsigned int pmtu, struct cpl_pass_accept_req *req) chtls_select_mss() argument 1014 struct chtls_sock *csk; chtls_pass_accept_rpl() local 1090 chtls_set_tcp_window(struct chtls_sock *csk) chtls_set_tcp_window() argument 1121 struct chtls_sock *csk; chtls_recv_sock() local 1296 struct chtls_sock *csk; chtls_pass_accept_request() local 1499 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); DECLARE_TASK_FUNC() local 1522 struct chtls_sock *csk = sk->sk_user_data; add_to_reap_list() local 1540 struct chtls_sock *csk; add_pass_open_to_parent() local 1574 struct chtls_sock *csk; chtls_pass_establish() local 1659 check_sk_callbacks(struct chtls_sock *csk) check_sk_callbacks() argument 1683 struct chtls_sock *csk; chtls_recv_data() local 1745 struct chtls_sock *csk; chtls_recv_pdu() local 1807 struct chtls_sock *csk; chtls_rx_hdr() local 1876 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_peer_close() local 1920 struct chtls_sock *csk; chtls_close_con_rpl() local 2022 struct chtls_sock *csk; chtls_send_abort_rpl() local 2055 struct chtls_sock *csk; bl_abort_syn_rcv() local 2073 struct chtls_sock *csk; abort_syn_rcv() local 2110 struct chtls_sock *csk = sk->sk_user_data; chtls_abort_req_rss() local 2152 struct chtls_sock *csk; chtls_abort_rpl_rss() local 2180 struct chtls_sock *csk; chtls_conn_cpl() local 2225 struct chtls_sock *csk = sk->sk_user_data; chtls_rx_ack() local [all...] |
H A D | chtls_hw.c | 23 static void __set_tcb_field_direct(struct chtls_sock *csk, in __set_tcb_field_direct() argument 29 INIT_TP_WR_CPL(req, CPL_SET_TCB_FIELD, csk->tid); in __set_tcb_field_direct() 30 req->wr.wr_mid |= htonl(FW_WR_FLOWID_V(csk->tid)); in __set_tcb_field_direct() 32 QUEUENO_V(csk->rss_qid)); in __set_tcb_field_direct() 45 struct chtls_sock *csk; in __set_tcb_field() local 50 csk = rcu_dereference_sk_user_data(sk); in __set_tcb_field() 53 __set_tcb_field_direct(csk, req, word, mask, val, cookie, no_reply); in __set_tcb_field() 54 set_wr_txq(skb, CPL_PRIORITY_CONTROL, csk->port_id); in __set_tcb_field() 65 struct chtls_sock *csk; in chtls_set_tcb_field() local 78 csk in chtls_set_tcb_field() 136 struct chtls_sock *csk; chtls_set_quiesce_ctrl() local 178 get_new_keyid(struct chtls_sock *csk, u32 optname) get_new_keyid() argument 207 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); free_tls_keyid() local 250 chtls_key_info(struct chtls_sock *csk, struct _key_ctx *kctx, u32 keylen, u32 optname, int cipher_type) chtls_key_info() argument 336 chtls_set_scmd(struct chtls_sock *csk) chtls_set_scmd() argument 357 chtls_setkey(struct chtls_sock *csk, u32 keylen, u32 optname, int cipher_type) chtls_setkey() argument [all...] |
H A D | chtls_io.c | 25 static bool is_tls_tx(struct chtls_sock *csk) in is_tls_tx() argument 27 return csk->tlshws.txkey >= 0; in is_tls_tx() 30 static bool is_tls_rx(struct chtls_sock *csk) in is_tls_rx() argument 32 return csk->tlshws.rxkey >= 0; in is_tls_rx() 45 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in nos_ivs() local 47 return DIV_ROUND_UP(size, csk->tlshws.mfs); in nos_ivs() 93 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in create_flowc_wr_skb() local 101 skb_set_queue_mapping(skb, (csk->txq_idx << 1) | CPL_PRIORITY_DATA); in create_flowc_wr_skb() 109 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in send_flowc_wr() local 127 ret = cxgb4_immdata_send(csk in send_flowc_wr() 168 struct chtls_sock *csk; send_tx_flowc_wr() local 222 struct chtls_sock *csk; tls_copy_ivs() local 279 struct chtls_sock *csk; tls_copy_tx_key() local 349 struct chtls_sock *csk; tls_tx_data_wr() local 446 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_expansion_size() local 483 struct chtls_sock *csk; make_tlstx_data_wr() local 514 struct chtls_sock *csk; make_tx_data_wr() local 540 chtls_wr_size(struct chtls_sock *csk, const struct sk_buff *skb, bool size) chtls_wr_size() argument 559 is_ofld_imm(struct chtls_sock *csk, const struct sk_buff *skb) is_ofld_imm() argument 596 chtls_push_frames(struct chtls_sock *csk, int comp) chtls_push_frames() argument 730 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); should_push() local 767 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_tcp_push() local 821 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); skb_entail() local 851 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); get_record_skb() local 879 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); push_frames_if_head() local 1009 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_sendmsg() local 1233 struct chtls_sock *csk; chtls_sendpage() local 1341 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_select_window() local 1370 send_rx_credits(struct chtls_sock *csk, u32 credits) send_rx_credits() argument 1401 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_cleanup_rbuf() local 1431 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_pt_recvmsg() local 1743 struct chtls_sock *csk; chtls_recvmsg() local [all...] |
H A D | chtls.h | 462 static inline void csk_set_flag(struct chtls_sock *csk, in csk_set_flag() argument 465 __set_bit(flag, &csk->flags); in csk_set_flag() 468 static inline void csk_reset_flag(struct chtls_sock *csk, in csk_reset_flag() argument 471 __clear_bit(flag, &csk->flags); in csk_reset_flag() 474 static inline bool csk_conn_inline(const struct chtls_sock *csk) in csk_conn_inline() argument 476 return test_bit(CSK_CONN_INLINE, &csk->flags); in csk_conn_inline() 481 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in csk_flag() local 483 if (!csk_conn_inline(csk)) in csk_flag() 485 return test_bit(flag, &csk->flags); in csk_flag() 488 static inline int csk_flag_nochk(const struct chtls_sock *csk, in csk_flag_nochk() argument 526 struct chtls_sock *csk = container_of(ref, struct chtls_sock, chtls_sock_free() local 531 __chtls_sock_put(const char *fn, struct chtls_sock *csk) __chtls_sock_put() argument 536 __chtls_sock_get(const char *fn, struct chtls_sock *csk) __chtls_sock_get() argument 545 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); send_or_defer() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.c | 60 struct chtls_sock *csk = kzalloc(sizeof(*csk), GFP_ATOMIC); in chtls_sock_create() local 62 if (!csk) in chtls_sock_create() 65 csk->txdata_skb_cache = alloc_skb(TXDATA_SKB_LEN, GFP_ATOMIC); in chtls_sock_create() 66 if (!csk->txdata_skb_cache) { in chtls_sock_create() 67 kfree(csk); in chtls_sock_create() 71 kref_init(&csk->kref); in chtls_sock_create() 72 csk->cdev = cdev; in chtls_sock_create() 73 skb_queue_head_init(&csk->txq); in chtls_sock_create() 74 csk in chtls_sock_create() 87 struct chtls_sock *csk = chtls_sock_release() local 144 struct chtls_sock *csk; assign_rxopt() local 181 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_purge_write_queue() local 192 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_purge_recv_queue() local 226 struct chtls_sock *csk; chtls_send_abort() local 247 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_send_reset() local 299 struct chtls_sock *csk; chtls_close_conn() local 341 struct chtls_sock *csk; chtls_close() local 481 struct chtls_sock *csk; chtls_destroy_sock() local 500 struct chtls_sock *csk = rcu_dereference_sk_user_data(child); reset_listen_child() local 610 struct chtls_sock *csk; cleanup_syn_rcv_conn() local 626 struct chtls_sock *csk = chtls_reset_synq() local 820 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_release_resources() local 900 struct chtls_sock *csk; chtls_pass_open_arp_failure() local 942 chtls_select_mss(const struct chtls_sock *csk, unsigned int pmtu, struct cpl_pass_accept_req *req) chtls_select_mss() argument 1014 struct chtls_sock *csk; chtls_pass_accept_rpl() local 1089 chtls_set_tcp_window(struct chtls_sock *csk) chtls_set_tcp_window() argument 1120 struct chtls_sock *csk; chtls_recv_sock() local 1296 struct chtls_sock *csk; chtls_pass_accept_request() local 1499 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); DECLARE_TASK_FUNC() local 1522 struct chtls_sock *csk = sk->sk_user_data; add_to_reap_list() local 1540 struct chtls_sock *csk; add_pass_open_to_parent() local 1574 struct chtls_sock *csk; chtls_pass_establish() local 1659 check_sk_callbacks(struct chtls_sock *csk) check_sk_callbacks() argument 1683 struct chtls_sock *csk; chtls_recv_data() local 1745 struct chtls_sock *csk; chtls_recv_pdu() local 1807 struct chtls_sock *csk; chtls_rx_hdr() local 1876 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_peer_close() local 1920 struct chtls_sock *csk; chtls_close_con_rpl() local 2022 struct chtls_sock *csk; chtls_send_abort_rpl() local 2055 struct chtls_sock *csk; bl_abort_syn_rcv() local 2073 struct chtls_sock *csk; abort_syn_rcv() local 2110 struct chtls_sock *csk = sk->sk_user_data; chtls_abort_req_rss() local 2152 struct chtls_sock *csk; chtls_abort_rpl_rss() local 2180 struct chtls_sock *csk; chtls_conn_cpl() local 2225 struct chtls_sock *csk = sk->sk_user_data; chtls_rx_ack() local [all...] |
H A D | chtls_hw.c | 23 static void __set_tcb_field_direct(struct chtls_sock *csk, in __set_tcb_field_direct() argument 29 INIT_TP_WR_CPL(req, CPL_SET_TCB_FIELD, csk->tid); in __set_tcb_field_direct() 30 req->wr.wr_mid |= htonl(FW_WR_FLOWID_V(csk->tid)); in __set_tcb_field_direct() 32 QUEUENO_V(csk->rss_qid)); in __set_tcb_field_direct() 45 struct chtls_sock *csk; in __set_tcb_field() local 50 csk = rcu_dereference_sk_user_data(sk); in __set_tcb_field() 53 __set_tcb_field_direct(csk, req, word, mask, val, cookie, no_reply); in __set_tcb_field() 54 set_wr_txq(skb, CPL_PRIORITY_CONTROL, csk->port_id); in __set_tcb_field() 65 struct chtls_sock *csk; in chtls_set_tcb_field() local 78 csk in chtls_set_tcb_field() 136 struct chtls_sock *csk; chtls_set_quiesce_ctrl() local 178 get_new_keyid(struct chtls_sock *csk, u32 optname) get_new_keyid() argument 207 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); free_tls_keyid() local 250 chtls_key_info(struct chtls_sock *csk, struct _key_ctx *kctx, u32 keylen, u32 optname, int cipher_type) chtls_key_info() argument 336 chtls_set_scmd(struct chtls_sock *csk) chtls_set_scmd() argument 357 chtls_setkey(struct chtls_sock *csk, u32 keylen, u32 optname, int cipher_type) chtls_setkey() argument [all...] |
H A D | chtls_io.c | 25 static bool is_tls_tx(struct chtls_sock *csk) in is_tls_tx() argument 27 return csk->tlshws.txkey >= 0; in is_tls_tx() 30 static bool is_tls_rx(struct chtls_sock *csk) in is_tls_rx() argument 32 return csk->tlshws.rxkey >= 0; in is_tls_rx() 45 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in nos_ivs() local 47 return DIV_ROUND_UP(size, csk->tlshws.mfs); in nos_ivs() 93 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in create_flowc_wr_skb() local 101 skb_set_queue_mapping(skb, (csk->txq_idx << 1) | CPL_PRIORITY_DATA); in create_flowc_wr_skb() 109 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in send_flowc_wr() local 127 ret = cxgb4_immdata_send(csk in send_flowc_wr() 168 struct chtls_sock *csk; send_tx_flowc_wr() local 222 struct chtls_sock *csk; tls_copy_ivs() local 279 struct chtls_sock *csk; tls_copy_tx_key() local 349 struct chtls_sock *csk; tls_tx_data_wr() local 446 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_expansion_size() local 483 struct chtls_sock *csk; make_tlstx_data_wr() local 514 struct chtls_sock *csk; make_tx_data_wr() local 540 chtls_wr_size(struct chtls_sock *csk, const struct sk_buff *skb, bool size) chtls_wr_size() argument 559 is_ofld_imm(struct chtls_sock *csk, const struct sk_buff *skb) is_ofld_imm() argument 596 chtls_push_frames(struct chtls_sock *csk, int comp) chtls_push_frames() argument 730 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); should_push() local 767 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_tcp_push() local 821 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); skb_entail() local 851 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); get_record_skb() local 879 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); push_frames_if_head() local 1012 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_sendmsg() local 1254 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_select_window() local 1283 send_rx_credits(struct chtls_sock *csk, u32 credits) send_rx_credits() argument 1314 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_cleanup_rbuf() local 1344 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); chtls_pt_recvmsg() local 1669 struct chtls_sock *csk; chtls_recvmsg() local [all...] |
H A D | chtls.h | 465 static inline void csk_set_flag(struct chtls_sock *csk, in csk_set_flag() argument 468 __set_bit(flag, &csk->flags); in csk_set_flag() 471 static inline void csk_reset_flag(struct chtls_sock *csk, in csk_reset_flag() argument 474 __clear_bit(flag, &csk->flags); in csk_reset_flag() 477 static inline bool csk_conn_inline(const struct chtls_sock *csk) in csk_conn_inline() argument 479 return test_bit(CSK_CONN_INLINE, &csk->flags); in csk_conn_inline() 484 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); in csk_flag() local 486 if (!csk_conn_inline(csk)) in csk_flag() 488 return test_bit(flag, &csk->flags); in csk_flag() 491 static inline int csk_flag_nochk(const struct chtls_sock *csk, in csk_flag_nochk() argument 529 struct chtls_sock *csk = container_of(ref, struct chtls_sock, chtls_sock_free() local 534 __chtls_sock_put(const char *fn, struct chtls_sock *csk) __chtls_sock_put() argument 539 __chtls_sock_get(const char *fn, struct chtls_sock *csk) __chtls_sock_get() argument 548 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); send_or_defer() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | sctp_hello.c | 33 int csk, ret, len; in do_client() local 42 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); in do_client() 43 if (csk < 0) { in do_client() 50 ret = bind(csk, (struct sockaddr *)&ss, len); in do_client() 58 ret = connect(csk, (struct sockaddr *)&ss, len); in do_client() 64 ret = send(csk, buf, strlen(buf) + 1, 0); in do_client() 69 close(csk); in do_client() 77 int lsk, csk, ret, len; in main() local 122 csk = accept(lsk, (struct sockaddr *)NULL, (socklen_t *)NULL); in main() 123 if (csk < in main() [all...] |