/linux-master/drivers/scsi/cxgbi/cxgb4i/ |
H A D | cxgb4i.c | 208 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, argument 211 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); 212 int wscale = cxgbi_sock_compute_wscale(csk->mss_idx); 215 unsigned int qid_atid = ((unsigned int)csk->atid) | 216 (((unsigned int)csk->rss_qid) << 14); 220 MSS_IDX_V(csk->mss_idx) | 221 L2T_IDX_V(((struct l2t_entry *)csk->l2t)->idx) | 222 TX_CHAN_V(csk->tx_chan) | 223 SMAC_SEL_V(csk->smac_idx) | 225 RCV_BUFSIZ_V(csk 327 send_act_open_req6(struct cxgbi_sock *csk, struct sk_buff *skb, struct l2t_entry *e) argument 441 send_close_req(struct cxgbi_sock *csk) argument 463 struct cxgbi_sock *csk = (struct cxgbi_sock *)handle; local 474 send_abort_req(struct cxgbi_sock *csk) argument 509 send_abort_rpl(struct cxgbi_sock *csk, int rst_status) argument 531 send_rx_credits(struct cxgbi_sock *csk, u32 credits) argument 614 send_tx_flowc_wr(struct cxgbi_sock *csk) argument 714 cxgb4i_make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb, int dlen, int len, u32 credits, int compl) argument 767 push_tx_frames(struct cxgbi_sock *csk, int req_completion) argument 880 free_atid(struct cxgbi_sock *csk) argument 893 struct cxgbi_sock *csk; local 991 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer); local 1045 struct cxgbi_sock *csk; local 1094 struct cxgbi_sock *csk; local 1115 struct cxgbi_sock *csk; local 1134 abort_status_to_errno(struct cxgbi_sock *csk, int abort_reason, int *need_rst) argument 1154 struct cxgbi_sock *csk; local 1202 struct cxgbi_sock *csk; local 1226 struct cxgbi_sock *csk; local 1247 struct cxgbi_sock *csk; local 1352 struct cxgbi_sock *csk; local 1414 cxgb4i_process_ddpvld(struct cxgbi_sock *csk, struct sk_buff *skb, u32 ddpvld) argument 1448 struct cxgbi_sock *csk; local 1514 struct cxgbi_sock *csk; local 1605 struct cxgbi_sock *csk; local 1630 struct cxgbi_sock *csk; local 1653 alloc_cpls(struct cxgbi_sock *csk) argument 1676 l2t_put(struct cxgbi_sock *csk) argument 1685 release_offload_resources(struct cxgbi_sock *csk) argument 1766 init_act_open(struct cxgbi_sock *csk) 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) argument 2051 ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo) argument 2077 ddp_setup_conn_pgidx(struct cxgbi_sock *csk, unsigned int tid, int pg_idx) argument 2110 ddp_setup_conn_digest(struct cxgbi_sock *csk, unsigned int tid, int hcrc, int dcrc) argument 2429 struct cxgbi_sock *csk = pmap->port_csk[i]; local [all...] |
/linux-master/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, argument 162 unsigned int wscale = cxgbi_sock_compute_wscale(csk->rcv_win); 168 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); 169 req->local_port = csk->saddr.sin_port; 170 req->peer_port = csk->daddr.sin_port; 171 req->local_ip = csk->saddr.sin_addr.s_addr; 172 req->peer_ip = csk->daddr.sin_addr.s_addr; 175 V_WND_SCALE(wscale) | V_MSS_IDX(csk->mss_idx) | 178 V_RCV_BUFSIZ(csk 201 send_close_req(struct cxgbi_sock *csk) argument 240 send_abort_req(struct cxgbi_sock *csk) argument 276 send_abort_rpl(struct cxgbi_sock *csk, int rst_status) argument 299 send_rx_credits(struct cxgbi_sock *csk, u32 credits) argument 352 make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb, int len, int req_completion) argument 394 push_tx_frames(struct cxgbi_sock *csk, int req_completion) argument 466 free_atid(struct cxgbi_sock *csk) argument 477 struct cxgbi_sock *csk = ctx; local 550 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer); local 573 struct cxgbi_sock *csk = ctx; local 608 struct cxgbi_sock *csk = ctx; local 626 struct cxgbi_sock *csk = ctx; local 644 abort_status_to_errno(struct cxgbi_sock *csk, int abort_reason, int *need_rst) argument 664 struct cxgbi_sock *csk = ctx; local 711 struct cxgbi_sock *csk = ctx; local 746 struct cxgbi_sock *csk = ctx; local 850 struct cxgbi_sock *csk = ctx; local 866 alloc_cpls(struct cxgbi_sock *csk) argument 889 l2t_put(struct cxgbi_sock *csk) argument 904 release_offload_resources(struct cxgbi_sock *csk) argument 953 init_act_open(struct cxgbi_sock *csk) argument 1096 ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbi_sock *csk, struct cxgbi_task_tag_info *ttinfo) argument 1153 ddp_setup_conn_pgidx(struct cxgbi_sock *csk, unsigned int tid, int pg_idx) argument 1189 ddp_setup_conn_digest(struct cxgbi_sock *csk, unsigned int tid, int hcrc, int dcrc) argument [all...] |
/linux-master/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_cm.c | 469 struct cxgbit_sock *csk) 472 conn->login_sockaddr = csk->com.remote_addr; 473 conn->local_sockaddr = csk->com.local_addr; 479 struct cxgbit_sock *csk; local 504 csk = list_first_entry(&cnp->np_accept_list, 508 list_del_init(&csk->accept_node); 510 conn->context = csk; 511 csk->conn = conn; 513 cxgbit_set_conn_info(np, conn, csk); 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) argument 603 struct cxgbit_sock *csk, *tmp; local 622 cxgbit_send_halfclose(struct cxgbit_sock *csk) argument 641 struct cxgbit_sock *csk = handle; local 658 cxgbit_send_abort_req(struct cxgbit_sock *csk) argument 679 __cxgbit_abort_conn(struct cxgbit_sock *csk, struct sk_buff *skb) argument 698 cxgbit_abort_conn(struct cxgbit_sock *csk) argument 718 __cxgbit_free_conn(struct cxgbit_sock *csk) argument 759 cxgbit_set_emss(struct cxgbit_sock *csk, u16 opt) argument 777 cxgbit_free_skb(struct cxgbit_sock *csk) argument 795 struct cxgbit_sock *csk; local 827 cxgbit_set_tcp_window(struct cxgbit_sock *csk, struct port_info *pi) 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) argument 1045 cxgbit_send_rx_credits(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1060 cxgbit_rx_data_ack(struct cxgbit_sock *csk) argument 1094 cxgbit_alloc_csk_skb(struct cxgbit_sock *csk) argument 1130 cxgbit_pass_accept_rpl(struct cxgbit_sock *csk, struct cpl_pass_accept_req *req) argument 1219 struct cxgbit_sock *csk = NULL; local 1389 cxgbit_tx_flowc_wr_credits(struct cxgbit_sock *csk, u32 *nparamsp, u32 *flowclenp) argument 1416 cxgbit_send_tx_flowc_wr(struct cxgbit_sock *csk) argument 1489 cxgbit_send_tcb_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1508 cxgbit_setup_conn_digest(struct cxgbit_sock *csk) argument 1545 cxgbit_setup_conn_pgidx(struct cxgbit_sock *csk, u32 pg_idx) argument 1628 struct cxgbit_sock *csk; local 1662 cxgbit_queue_rx_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1671 cxgbit_peer_close(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1699 cxgbit_close_con_rpl(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1723 cxgbit_abort_req_rss(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1785 cxgbit_abort_rpl_rss(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1808 cxgbit_credit_err(const struct cxgbit_sock *csk) argument 1835 cxgbit_fw4_ack(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1899 struct cxgbit_sock *csk; local 1920 struct cxgbit_sock *csk; local 1939 __cxgbit_process_rx_cpl(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1952 cxgbit_process_rx_cpl(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1961 struct cxgbit_sock *csk; local [all...] |
H A D | cxgbit_target.c | 27 __cxgbit_alloc_skb(struct cxgbit_sock *csk, u32 len, bool iso) argument 46 submode |= (csk->submode & CXGBIT_SUBMODE_DCRC); 60 submode |= (csk->submode & CXGBIT_SUBMODE_HCRC); 67 static struct sk_buff *cxgbit_alloc_skb(struct cxgbit_sock *csk, u32 len) argument 69 return __cxgbit_alloc_skb(csk, len, false); 159 cxgbit_tx_data_wr(struct cxgbit_sock *csk, struct sk_buff *skb, u32 dlen, argument 163 const struct cxgb4_lld_info *lldi = &csk->com.cdev->lldi; 186 req->flowid_len16 = cpu_to_be32(FW_WR_FLOWID_V(csk->tid) | 201 void cxgbit_push_tx_frames(struct cxgbit_sock *csk) argument 205 while (csk 286 cxgbit_unlock_sock(struct cxgbit_sock *csk) argument 311 cxgbit_queue_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 393 cxgbit_tx_datain_iso(struct cxgbit_sock *csk, struct iscsit_cmd *cmd, struct iscsi_datain_req *dr) argument 484 cxgbit_tx_datain(struct cxgbit_sock *csk, struct iscsit_cmd *cmd, const struct iscsi_datain *datain) argument 517 struct cxgbit_sock *csk = conn->context; local 536 struct cxgbit_sock *csk = conn->context; local 574 struct cxgbit_sock *csk = conn->context; local 596 cxgbit_set_digest(struct cxgbit_sock *csk) argument 628 cxgbit_set_iso_npdu(struct cxgbit_sock *csk) argument 679 cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk) argument 717 struct cxgbit_sock *csk = conn->context; local 777 struct cxgbit_sock *csk = conn->context; local 835 cxgbit_allocate_cmd(struct cxgbit_sock *csk) argument 860 struct cxgbit_sock *csk = conn->context; local 967 cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) argument 995 cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk) argument 1087 cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) argument 1155 cxgbit_handle_text_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) argument 1208 cxgbit_target_rx_opcode(struct cxgbit_sock *csk) argument 1286 cxgbit_rx_opcode(struct cxgbit_sock *csk) argument 1322 cxgbit_rx_login_pdu(struct cxgbit_sock *csk) argument 1365 cxgbit_process_iscsi_pdu(struct cxgbit_sock *csk, struct sk_buff *skb, int idx) argument 1408 cxgbit_lro_hskb_reset(struct cxgbit_sock *csk) argument 1424 cxgbit_lro_skb_merge(struct cxgbit_sock *csk, struct sk_buff *skb, u8 pdu_idx) argument 1494 cxgbit_process_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1534 cxgbit_t5_rx_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1560 cxgbit_rx_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1578 cxgbit_rx_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 1594 cxgbit_rxq_len(struct cxgbit_sock *csk, struct sk_buff_head *rxq) argument 1606 cxgbit_wait_rxq(struct cxgbit_sock *csk) argument 1631 struct cxgbit_sock *csk = conn->context; local 1647 struct cxgbit_sock *csk = conn->context; local [all...] |
H A D | cxgbit_ddp.c | 98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, argument 103 struct cxgbit_device *cdev = csk->com.cdev; 110 skb = cxgbit_ppod_init_idata(cdev, ppm, idx, npods, csk->tid); 121 __skb_queue_tail(&csk->ppodq, skb); 127 cxgbit_ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, argument 143 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, 171 cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, argument 174 struct cxgbit_device *cdev = csk->com.cdev; 212 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset, 215 ret = cxgbit_ddp_set_map(ppm, csk, ttinf 233 struct cxgbit_sock *csk = conn->context; local 271 struct cxgbit_sock *csk = conn->context; local [all...] |
H A D | cxgbit.h | 258 static inline void cxgbit_get_csk(struct cxgbit_sock *csk) argument 260 kref_get(&csk->kref); 263 static inline void cxgbit_put_csk(struct cxgbit_sock *csk) argument 265 kref_put(&csk->kref, _cxgbit_free_csk); 278 static inline void cxgbit_sock_reset_wr_list(struct cxgbit_sock *csk) argument 280 csk->wr_pending_tail = NULL; 281 csk->wr_pending_head = NULL; 284 static inline struct sk_buff *cxgbit_sock_peek_wr(const struct cxgbit_sock *csk) argument 286 return csk->wr_pending_head; 290 cxgbit_sock_enqueue_wr(struct cxgbit_sock *csk, struc argument 303 cxgbit_sock_dequeue_wr(struct cxgbit_sock *csk) argument [all...] |
H A D | cxgbit_main.c | 98 struct cxgbit_sock *csk; local 103 list_for_each_entry(csk, &cdev->cskq.list, list) { 108 spin_lock_bh(&csk->rxq.lock); 109 __skb_queue_tail(&csk->rxq, skb); 110 if (skb_queue_len(&csk->rxq) == 1) 112 spin_unlock_bh(&csk->rxq.lock); 115 wake_up(&csk->waitq); 173 cxgbit_process_ddpvld(struct cxgbit_sock *csk, struct cxgbit_lro_pdu_cb *pdu_cb, argument 178 pr_info("tid 0x%x, status 0x%x, hcrc bad.\n", csk->tid, ddpvld); 183 pr_info("tid 0x%x, status 0x%x, dcrc bad.\n", csk 316 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl, const __be64 *rsp, struct napi_struct *napi) argument 340 cxgbit_queue_lro_skb(struct cxgbit_sock *csk, struct sk_buff *skb) argument 357 struct cxgbit_sock *csk = lro_cb->csk; 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) argument 441 struct cxgbit_sock *csk = NULL; local 541 struct cxgbit_sock *csk; local [all...] |
H A D | cxgbit_lro.h | 22 struct cxgbit_sock *csk; member in struct:cxgbit_lro_cb
|
/linux-master/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 98 struct cxgbi_sock *csk; local 103 csk = pmap->port_csk[i]; 106 "csk 0x%p, cdev 0x%p, offload down.\n", 107 csk, cdev); 108 spin_lock_bh(&csk->lock); 109 cxgbi_sock_set_flag(csk, CTPF_OFFLOAD_DOWN); 110 cxgbi_sock_closed(csk); 111 spin_unlock_bh(&csk->lock); 112 cxgbi_sock_put(csk); 424 struct cxgbi_sock *csk local 439 sock_get_port(struct cxgbi_sock *csk) argument 500 sock_put_port(struct cxgbi_sock *csk) argument 540 cxgbi_sock_free_cpl_skbs(struct cxgbi_sock *csk) argument 559 struct cxgbi_sock *csk = kzalloc(sizeof(*csk), GFP_NOIO); local 613 struct cxgbi_sock *csk = NULL; local 729 struct cxgbi_sock *csk = NULL; local 830 cxgbi_sock_established(struct cxgbi_sock *csk, unsigned int snd_isn, unsigned int opt) argument 840 cxgbi_inform_iscsi_conn_closing(struct cxgbi_sock *csk) argument 855 cxgbi_sock_closed(struct cxgbi_sock *csk) argument 873 need_active_close(struct cxgbi_sock *csk) argument 907 cxgbi_sock_fail_act_open(struct cxgbi_sock *csk, int errno) argument 923 struct cxgbi_sock *csk = (struct cxgbi_sock *)skb->sk; local 940 cxgbi_sock_rcv_abort_rpl(struct cxgbi_sock *csk) argument 959 cxgbi_sock_rcv_peer_close(struct cxgbi_sock *csk) argument 992 cxgbi_sock_rcv_close_conn_rpl(struct cxgbi_sock *csk, u32 snd_nxt) argument 1023 cxgbi_sock_rcv_wr_ack(struct cxgbi_sock *csk, unsigned int credits, unsigned int snd_una, int seq_chk) argument 1087 cxgbi_sock_find_best_mtu(struct cxgbi_sock *csk, unsigned short mtu) argument 1098 cxgbi_sock_select_mss(struct cxgbi_sock *csk, unsigned int pmtu) argument 1115 cxgbi_sock_skb_entail(struct cxgbi_sock *csk, struct sk_buff *skb) argument 1122 cxgbi_sock_purge_wr_queue(struct cxgbi_sock *csk) argument 1131 cxgbi_sock_check_wr_invariants(const struct cxgbi_sock *csk) argument 1264 struct cxgbi_sock *csk = cconn->cep->csk; local 1451 cxgbi_conn_tx_open(struct cxgbi_sock *csk) argument 1508 skb_read_pdu_bhs(struct cxgbi_sock *csk, struct iscsi_conn *conn, struct sk_buff *skb) argument 1600 csk_return_rx_credits(struct cxgbi_sock *csk, int copied) argument 1626 cxgbi_conn_pdu_ready(struct cxgbi_sock *csk) argument 1892 struct cxgbi_sock *csk = cconn->cep ? cconn->cep->csk : NULL; local 2273 cxgbi_sock_tx_queue_up(struct cxgbi_sock *csk, struct sk_buff *skb) argument 2342 cxgbi_sock_send_skb(struct cxgbi_sock *csk, struct sk_buff *skb) argument 2369 struct cxgbi_sock *csk = NULL; local 2574 struct cxgbi_sock *csk = cconn->cep->csk; local 2619 struct cxgbi_sock *csk; local 2678 struct cxgbi_sock *csk; local 2837 struct cxgbi_sock *csk = find_sock_on_port(chba->cdev, local 2862 struct cxgbi_sock *csk; local 2956 struct cxgbi_sock *csk = cep->csk; local 2968 struct cxgbi_sock *csk = cep->csk; 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, argument 276 __set_bit(flag, &csk->flags); 278 "csk 0x%p,%u,0x%lx, bit %d.\n", 279 csk, csk->state, csk 282 cxgbi_sock_clear_flag(struct cxgbi_sock *csk, enum cxgbi_sock_flags flag) argument 291 cxgbi_sock_flag(struct cxgbi_sock *csk, enum cxgbi_sock_flags flag) argument 299 cxgbi_sock_set_state(struct cxgbi_sock *csk, int state) argument 309 struct cxgbi_sock *csk = container_of(kref, local 320 __cxgbi_sock_put(const char *fn, struct cxgbi_sock *csk) argument 329 __cxgbi_sock_get(const char *fn, struct cxgbi_sock *csk) argument 338 cxgbi_sock_is_closing(struct cxgbi_sock *csk) argument 343 cxgbi_sock_is_established(struct cxgbi_sock *csk) argument 348 cxgbi_sock_purge_write_queue(struct cxgbi_sock *csk) argument 386 cxgbi_sock_reset_wr_list(struct cxgbi_sock *csk) argument 391 cxgbi_sock_enqueue_wr(struct cxgbi_sock *csk, struct sk_buff *skb) argument 408 cxgbi_sock_count_pending_wrs(const struct cxgbi_sock *csk) argument 420 cxgbi_sock_peek_wr(const struct cxgbi_sock *csk) argument 425 cxgbi_sock_dequeue_wr(struct cxgbi_sock *csk) argument 539 struct cxgbi_sock *csk; member in struct:cxgbi_endpoint [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | sctp_hello.c | 33 int csk, ret, len; local 42 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); 43 if (csk < 0) { 50 ret = bind(csk, (struct sockaddr *)&ss, len); 58 ret = connect(csk, (struct sockaddr *)&ss, len); 64 ret = send(csk, buf, strlen(buf) + 1, 0); 69 close(csk); 77 int lsk, csk, ret, len; local 122 csk = accept(lsk, (struct sockaddr *)NULL, (socklen_t *)NULL); 123 if (csk < [all...] |
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.c | 60 struct chtls_sock *csk = kzalloc(sizeof(*csk), GFP_ATOMIC); local 62 if (!csk) 65 csk->txdata_skb_cache = alloc_skb(TXDATA_SKB_LEN, GFP_ATOMIC); 66 if (!csk->txdata_skb_cache) { 67 kfree(csk); 71 kref_init(&csk->kref); 72 csk->cdev = cdev; 73 skb_queue_head_init(&csk->txq); 74 csk 87 struct chtls_sock *csk = local 144 struct chtls_sock *csk; local 181 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 192 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 226 struct chtls_sock *csk; local 247 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 299 struct chtls_sock *csk; local 341 struct chtls_sock *csk; local 481 struct chtls_sock *csk; local 500 struct chtls_sock *csk = rcu_dereference_sk_user_data(child); local 610 struct chtls_sock *csk; local 626 struct chtls_sock *csk = local 820 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 900 struct chtls_sock *csk; local 942 chtls_select_mss(const struct chtls_sock *csk, unsigned int pmtu, struct cpl_pass_accept_req *req) argument 1014 struct chtls_sock *csk; local 1089 chtls_set_tcp_window(struct chtls_sock *csk) argument 1120 struct chtls_sock *csk; local 1296 struct chtls_sock *csk; local 1499 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1522 struct chtls_sock *csk = sk->sk_user_data; local 1540 struct chtls_sock *csk; local 1574 struct chtls_sock *csk; local 1659 check_sk_callbacks(struct chtls_sock *csk) argument 1683 struct chtls_sock *csk; local 1745 struct chtls_sock *csk; local 1807 struct chtls_sock *csk; local 1876 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1920 struct chtls_sock *csk; local 2022 struct chtls_sock *csk; local 2055 struct chtls_sock *csk; local 2073 struct chtls_sock *csk; local 2110 struct chtls_sock *csk = sk->sk_user_data; local 2152 struct chtls_sock *csk; local 2180 struct chtls_sock *csk; local 2225 struct chtls_sock *csk = sk->sk_user_data; local [all...] |
H A D | chtls_io.c | 25 static bool is_tls_tx(struct chtls_sock *csk) argument 27 return csk->tlshws.txkey >= 0; 30 static bool is_tls_rx(struct chtls_sock *csk) argument 32 return csk->tlshws.rxkey >= 0; 45 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 47 return DIV_ROUND_UP(size, csk->tlshws.mfs); 93 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 101 skb_set_queue_mapping(skb, (csk->txq_idx << 1) | CPL_PRIORITY_DATA); 109 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 127 ret = cxgb4_immdata_send(csk 168 struct chtls_sock *csk; local 222 struct chtls_sock *csk; local 279 struct chtls_sock *csk; local 349 struct chtls_sock *csk; local 446 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 483 struct chtls_sock *csk; local 514 struct chtls_sock *csk; local 540 chtls_wr_size(struct chtls_sock *csk, const struct sk_buff *skb, bool size) argument 559 is_ofld_imm(struct chtls_sock *csk, const struct sk_buff *skb) argument 596 chtls_push_frames(struct chtls_sock *csk, int comp) argument 730 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 767 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 821 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 851 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 879 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1012 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1254 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1283 send_rx_credits(struct chtls_sock *csk, u32 credits) argument 1314 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1344 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 1669 struct chtls_sock *csk; local [all...] |
H A D | chtls_hw.c | 23 static void __set_tcb_field_direct(struct chtls_sock *csk, argument 29 INIT_TP_WR_CPL(req, CPL_SET_TCB_FIELD, csk->tid); 30 req->wr.wr_mid |= htonl(FW_WR_FLOWID_V(csk->tid)); 32 QUEUENO_V(csk->rss_qid)); 45 struct chtls_sock *csk; local 50 csk = rcu_dereference_sk_user_data(sk); 53 __set_tcb_field_direct(csk, req, word, mask, val, cookie, no_reply); 54 set_wr_txq(skb, CPL_PRIORITY_CONTROL, csk->port_id); 65 struct chtls_sock *csk; local 78 csk 136 struct chtls_sock *csk; local 178 get_new_keyid(struct chtls_sock *csk, u32 optname) argument 207 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 250 chtls_key_info(struct chtls_sock *csk, struct _key_ctx *kctx, u32 keylen, u32 optname, int cipher_type) argument 336 chtls_set_scmd(struct chtls_sock *csk) argument 357 chtls_setkey(struct chtls_sock *csk, u32 keylen, u32 optname, int cipher_type) argument [all...] |
H A D | chtls_cm.h | 186 static inline void chtls_reset_wr_list(struct chtls_sock *csk) argument 188 csk->wr_skb_head = NULL; 189 csk->wr_skb_tail = NULL; 192 static inline void enqueue_wr(struct chtls_sock *csk, struct sk_buff *skb) argument 198 if (!csk->wr_skb_head) 199 csk->wr_skb_head = skb; 201 WR_SKB_CB(csk->wr_skb_tail)->next_wr = skb; 202 csk->wr_skb_tail = skb; 207 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 210 skb = csk [all...] |
H A D | chtls.h | 464 static inline void csk_set_flag(struct chtls_sock *csk, argument 467 __set_bit(flag, &csk->flags); 470 static inline void csk_reset_flag(struct chtls_sock *csk, argument 473 __clear_bit(flag, &csk->flags); 476 static inline bool csk_conn_inline(const struct chtls_sock *csk) argument 478 return test_bit(CSK_CONN_INLINE, &csk->flags); 483 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local 485 if (!csk_conn_inline(csk)) 487 return test_bit(flag, &csk->flags); 490 static inline int csk_flag_nochk(const struct chtls_sock *csk, argument 528 struct chtls_sock *csk = container_of(ref, struct chtls_sock, local 533 __chtls_sock_put(const char *fn, struct chtls_sock *csk) argument 538 __chtls_sock_get(const char *fn, struct chtls_sock *csk) argument 547 struct chtls_sock *csk = rcu_dereference_sk_user_data(sk); local [all...] |
H A D | chtls_main.c | 494 struct chtls_sock *csk; local 499 csk = rcu_dereference_sk_user_data(sk); 518 crypto_info = (struct tls_crypto_info *)&csk->tlshws.crypto_info; 564 rc = chtls_setkey(csk, keylen, optname, cipher_type);
|
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | cnic.c | 152 static inline void csk_hold(struct cnic_sock *csk) argument 154 atomic_inc(&csk->ref_count); 157 static inline void csk_put(struct cnic_sock *csk) argument 159 atomic_dec(&csk->ref_count); 285 static int cnic_in_use(struct cnic_sock *csk) argument 287 return test_bit(SK_F_INUSE, &csk->flags); 319 struct cnic_sock *csk) 332 if (csk) { 338 path_req.handle = (u64) csk->l5_cid; 339 if (test_bit(SK_F_IPV6, &csk 318 cnic_send_nlmsg(struct cnic_local *cp, u32 type, struct cnic_sock *csk) argument 381 struct cnic_sock *csk; local 430 cnic_offld_prep(struct cnic_sock *csk) argument 443 cnic_close_prep(struct cnic_sock *csk) argument 457 cnic_abort_prep(struct cnic_sock *csk) argument 2136 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; local 3381 cnic_cm_offload_pg(struct cnic_sock *csk) argument 3423 cnic_cm_update_pg(struct cnic_sock *csk) argument 3451 cnic_cm_upload_pg(struct cnic_sock *csk) argument 3469 cnic_cm_conn_req(struct cnic_sock *csk) argument 3553 cnic_cm_close_req(struct cnic_sock *csk) argument 3570 cnic_cm_abort_req(struct cnic_sock *csk) argument 3587 cnic_cm_create(struct cnic_dev *dev, int ulp_type, u32 cid, u32 l5_cid, struct cnic_sock **csk, void *context) argument 3631 cnic_cm_cleanup(struct cnic_sock *csk) argument 3642 cnic_close_conn(struct cnic_sock *csk) argument 3651 cnic_cm_destroy(struct cnic_sock *csk) argument 3754 cnic_resolve_addr(struct cnic_sock *csk, struct cnic_sockaddr *saddr) argument 3762 cnic_get_route(struct cnic_sock *csk, struct cnic_sockaddr *saddr) argument 3833 cnic_init_csk_state(struct cnic_sock *csk) argument 3840 cnic_cm_connect(struct cnic_sock *csk, struct cnic_sockaddr *saddr) argument 3869 cnic_cm_abort(struct cnic_sock *csk) argument 3896 cnic_cm_close(struct cnic_sock *csk) argument 3914 cnic_cm_upcall(struct cnic_local *cp, struct cnic_sock *csk, u8 opcode) argument 3937 cnic_cm_set_pg(struct cnic_sock *csk) argument 3953 struct cnic_sock *csk = &cp->csk_tbl[l5_cid]; local 3997 struct cnic_sock *csk; local 4123 cnic_ready_to_close(struct cnic_sock *csk, u32 opcode) argument 4149 cnic_close_bnx2_conn(struct cnic_sock *csk, u32 opcode) argument 4178 cnic_close_bnx2x_conn(struct cnic_sock *csk, u32 opcode) argument 4365 struct cnic_sock *csk = &cp->csk_tbl[i]; local [all...] |
/linux-master/net/kcm/ |
H A D | kcmsock.c | 49 static void report_csk_error(struct sock *csk, int err) argument 51 csk->sk_err = EPIPE; 52 sk_error_report(csk); 58 struct sock *csk = psock->sk; local 90 report_csk_error(csk, err); 1218 struct sock *csk; local 1229 csk = csock->sk; 1230 if (!csk) 1233 lock_sock(csk); 1236 if ((csk 1348 struct sock *csk = psock->sk; local 1448 struct sock *csk; local [all...] |
/linux-master/drivers/isdn/mISDN/ |
H A D | socket.c | 469 struct sock *csk; local 493 sk_for_each(csk, &data_sockets.head) { 494 if (sk == csk) 496 if (_pms(csk)->dev != _pms(sk)->dev) 498 if (csk->sk_protocol >= ISDN_P_B_START) 500 if (IS_ISDN_P_TE(csk->sk_protocol)
|
/linux-master/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 1582 struct cnic_sock *csk; local 1587 csk = bnx2i_ep->cm_sk; 1588 if (test_bit(SK_F_IPV6, &csk->flags)) 1589 len = sprintf(buf, "%pI6\n", csk->src_ip); 1591 len = sprintf(buf, "%pI4\n", csk->src_ip);
|
/linux-master/include/net/ |
H A D | sock.h | 1792 static inline bool sock_allow_reclassification(const struct sock *csk) argument 1794 struct sock *sk = (struct sock *)csk;
|