Home
last modified time | relevance | path

Searched refs:csk (Results 1 – 7 of 7) sorted by relevance

/linux-3.4.99/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c158 const struct cxgbi_sock *csk) in set_queue() argument
178 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument
182 int wscale = cxgbi_sock_compute_wscale(csk->mss_idx); in send_act_open_req()
185 unsigned int qid_atid = ((unsigned int)csk->atid) | in send_act_open_req()
186 (((unsigned int)csk->rss_qid) << 14); in send_act_open_req()
190 MSS_IDX(csk->mss_idx) | in send_act_open_req()
191 L2T_IDX(((struct l2t_entry *)csk->l2t)->idx) | in send_act_open_req()
192 TX_CHAN(csk->tx_chan) | in send_act_open_req()
193 SMAC_SEL(csk->smac_idx) | in send_act_open_req()
199 RSS_QUEUE(csk->rss_qid); in send_act_open_req()
[all …]
/linux-3.4.99/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c153 static int push_tx_frames(struct cxgbi_sock *csk, int req_completion);
155 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument
164 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req()
165 req->local_port = csk->saddr.sin_port; in send_act_open_req()
166 req->peer_port = csk->daddr.sin_port; in send_act_open_req()
167 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
168 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req()
171 V_WND_SCALE(wscale) | V_MSS_IDX(csk->mss_idx) | in send_act_open_req()
178 csk, csk->state, csk->flags, csk->atid, in send_act_open_req()
181 csk->mss_idx, e->idx, e->smt_idx); in send_act_open_req()
[all …]
/linux-3.4.99/drivers/scsi/cxgbi/
Dlibcxgbi.c79 struct cxgbi_sock *csk; in cxgbi_device_portmap_cleanup() local
84 csk = pmap->port_csk[i]; in cxgbi_device_portmap_cleanup()
88 csk, cdev); in cxgbi_device_portmap_cleanup()
89 spin_lock_bh(&csk->lock); in cxgbi_device_portmap_cleanup()
90 cxgbi_sock_set_flag(csk, CTPF_OFFLOAD_DOWN); in cxgbi_device_portmap_cleanup()
91 cxgbi_sock_closed(csk); in cxgbi_device_portmap_cleanup()
92 spin_unlock_bh(&csk->lock); in cxgbi_device_portmap_cleanup()
93 cxgbi_sock_put(csk); in cxgbi_device_portmap_cleanup()
317 static int sock_get_port(struct cxgbi_sock *csk) in sock_get_port() argument
319 struct cxgbi_device *cdev = csk->cdev; in sock_get_port()
[all …]
Dlibcxgbi.h310 static inline void cxgbi_sock_set_flag(struct cxgbi_sock *csk, in cxgbi_sock_set_flag() argument
313 __set_bit(flag, &csk->flags); in cxgbi_sock_set_flag()
316 csk, csk->state, csk->flags, flag); in cxgbi_sock_set_flag()
319 static inline void cxgbi_sock_clear_flag(struct cxgbi_sock *csk, in cxgbi_sock_clear_flag() argument
322 __clear_bit(flag, &csk->flags); in cxgbi_sock_clear_flag()
325 csk, csk->state, csk->flags, flag); in cxgbi_sock_clear_flag()
328 static inline int cxgbi_sock_flag(struct cxgbi_sock *csk, in cxgbi_sock_flag() argument
331 if (csk == NULL) in cxgbi_sock_flag()
333 return test_bit(flag, &csk->flags); in cxgbi_sock_flag()
336 static inline void cxgbi_sock_set_state(struct cxgbi_sock *csk, int state) in cxgbi_sock_set_state() argument
[all …]
/linux-3.4.99/drivers/net/ethernet/broadcom/
Dcnic.c148 static inline void csk_hold(struct cnic_sock *csk) in csk_hold() argument
150 atomic_inc(&csk->ref_count); in csk_hold()
153 static inline void csk_put(struct cnic_sock *csk) in csk_put() argument
155 atomic_dec(&csk->ref_count); in csk_put()
269 static int cnic_in_use(struct cnic_sock *csk) in cnic_in_use() argument
271 return test_bit(SK_F_INUSE, &csk->flags); in cnic_in_use()
299 struct cnic_sock *csk) in cnic_send_nlmsg() argument
312 if (csk) { in cnic_send_nlmsg()
318 path_req.handle = (u64) csk->l5_cid; in cnic_send_nlmsg()
319 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_send_nlmsg()
[all …]
/linux-3.4.99/drivers/isdn/mISDN/
Dsocket.c482 struct sock *csk; in data_sock_bind() local
506 sk_for_each(csk, node, &data_sockets.head) { in data_sock_bind()
507 if (sk == csk) in data_sock_bind()
509 if (_pms(csk)->dev != _pms(sk)->dev) in data_sock_bind()
511 if (csk->sk_protocol >= ISDN_P_B_START) in data_sock_bind()
513 if (IS_ISDN_P_TE(csk->sk_protocol) in data_sock_bind()
/linux-3.4.99/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c1560 struct cnic_sock *csk; in bnx2i_host_get_param() local
1565 csk = bnx2i_ep->cm_sk; in bnx2i_host_get_param()
1566 if (test_bit(SK_F_IPV6, &csk->flags)) in bnx2i_host_get_param()
1567 len = sprintf(buf, "%pI6\n", csk->src_ip); in bnx2i_host_get_param()
1569 len = sprintf(buf, "%pI4\n", csk->src_ip); in bnx2i_host_get_param()