| /linux/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->rcv_win >> 10); in send_act_open_req() [all …]
|
| /linux/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->rcv_win >> 10)); in send_act_open_req() [all …]
|
| /linux/drivers/target/iscsi/cxgbit/ |
| H A D | cxgbit_cm.c | 469 struct cxgbit_sock *csk) in cxgbit_set_conn_info() argument 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); [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->wr_cred && ((skb = skb_peek(&csk->txq)) != NULL)) { in cxgbit_push_tx_frames() [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->tid, ddpvld); in cxgbit_process_ddpvld() [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, struct sk_buff *skb) in cxgbit_sock_enqueue_wr() argument [all …]
|
| H A D | cxgbit_ddp.c | 98 cxgbit_ppod_write_idata(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, in cxgbit_ppod_write_idata() argument 103 struct cxgbit_device *cdev = csk->com.cdev; in cxgbit_ppod_write_idata() 110 skb = cxgbit_ppod_init_idata(cdev, ppm, idx, npods, csk->tid); in cxgbit_ppod_write_idata() 121 __skb_queue_tail(&csk->ppodq, skb); in cxgbit_ppod_write_idata() 127 cxgbit_ddp_set_map(struct cxgbi_ppm *ppm, struct cxgbit_sock *csk, in cxgbit_ddp_set_map() argument 143 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, in cxgbit_ddp_set_map() 171 cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, in cxgbit_ddp_reserve() argument 174 struct cxgbit_device *cdev = csk->com.cdev; in cxgbit_ddp_reserve() 212 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset, in cxgbit_ddp_reserve() 215 ret = cxgbit_ddp_set_map(ppm, csk, ttinfo); in cxgbit_ddp_reserve() [all …]
|
| H A D | cxgbit_lro.h | 22 struct cxgbit_sock *csk; member
|
| /linux/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_obj(*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) argument 84 #define cxgbi_is_iso_disabled(csk) ((csk)->disable_iso) argument 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() 279 csk, csk->state, csk->flags, flag); in cxgbi_sock_set_flag() 282 static inline void cxgbi_sock_clear_flag(struct cxgbi_sock *csk, in cxgbi_sock_clear_flag() argument 285 __clear_bit(flag, &csk->flags); in cxgbi_sock_clear_flag() 288 csk, csk->state, csk->flags, flag); in cxgbi_sock_clear_flag() 291 static inline int cxgbi_sock_flag(struct cxgbi_sock *csk, in cxgbi_sock_flag() argument 294 if (csk == NULL) in cxgbi_sock_flag() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | sctp_hello.c | 32 int csk, ret, len; in do_client() local 41 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); in do_client() 42 if (csk < 0) { in do_client() 49 ret = bind(csk, (struct sockaddr *)&ss, len); in do_client() 57 ret = connect(csk, (struct sockaddr *)&ss, len); in do_client() 61 recv(csk, NULL, 0, 0); in do_client() 62 close(csk); in do_client() 70 int lsk, csk, ret, len; in main() local 114 csk = accept(lsk, (struct sockaddr *)NULL, (socklen_t *)NULL); in main() 115 if (csk < 0) { in main() [all …]
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | cnic.c | 153 static inline void csk_hold(struct cnic_sock *csk) in csk_hold() argument 155 atomic_inc(&csk->ref_count); in csk_hold() 158 static inline void csk_put(struct cnic_sock *csk) in csk_put() argument 160 atomic_dec(&csk->ref_count); in csk_put() 286 static int cnic_in_use(struct cnic_sock *csk) in cnic_in_use() argument 288 return test_bit(SK_F_INUSE, &csk->flags); in cnic_in_use() 320 struct cnic_sock *csk) in cnic_send_nlmsg() argument 333 if (csk) { in cnic_send_nlmsg() 339 path_req.handle = (u64) csk->l5_cid; in cnic_send_nlmsg() 340 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_send_nlmsg() [all …]
|
| /linux/net/kcm/ |
| H A D | kcmsock.c | 53 static void report_csk_error(struct sock *csk, int err) in report_csk_error() 55 csk->sk_err = EPIPE; in report_csk_error() 56 sk_error_report(csk); in report_csk_error() 62 struct sock *csk = psock->sk; in kcm_abort_tx_psock() 94 report_csk_error(csk, err); in kcm_abort_tx_psock() 1246 struct sock *csk; in kcm_attach() 1257 csk = csock->sk; in kcm_attach() 1258 if (!csk) in kcm_attach() 1261 lock_sock(csk); in kcm_attach() 1266 if (!sk_is_tcp(csk)) { in kcm_attach() 52 report_csk_error(struct sock * csk,int err) report_csk_error() argument 61 struct sock *csk = psock->sk; kcm_abort_tx_psock() local 1245 struct sock *csk; kcm_attach() local 1375 struct sock *csk = psock->sk; kcm_unattach() local 1475 struct sock *csk; kcm_unattach_ioctl() local [all...] |
| /linux/drivers/scsi/bnx2i/ |
| H A D | bnx2i_iscsi.c | 1583 struct cnic_sock *csk; in bnx2i_host_get_param() 1588 csk = bnx2i_ep->cm_sk; in bnx2i_host_get_param() 1589 if (test_bit(SK_F_IPV6, &csk->flags)) in bnx2i_host_get_param() 1590 len = sprintf(buf, "%pI6\n", csk->src_ip); in bnx2i_host_get_param() 1592 len = sprintf(buf, "%pI4\n", csk->src_ip); in bnx2i_host_get_param() 1582 struct cnic_sock *csk; bnx2i_host_get_param() local
|
| /linux/include/net/ |
| H A D | sock.h | 1835 static inline bool sock_allow_reclassification(const struct sock *csk) in sock_allow_reclassification() 1837 struct sock *sk = (struct sock *)csk; in sock_allow_reclassification() 1833 sock_allow_reclassification(const struct sock * csk) sock_allow_reclassification() argument
|