Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c177 const struct cxgbi_sock *csk) in set_queue() argument
197 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument
201 int wscale = cxgbi_sock_compute_wscale(csk->mss_idx); in send_act_open_req()
204 unsigned int qid_atid = ((unsigned int)csk->atid) | in send_act_open_req()
205 (((unsigned int)csk->rss_qid) << 14); in send_act_open_req()
209 MSS_IDX(csk->mss_idx) | in send_act_open_req()
210 L2T_IDX(((struct l2t_entry *)csk->l2t)->idx) | in send_act_open_req()
211 TX_CHAN(csk->tx_chan) | in send_act_open_req()
212 SMAC_SEL(csk->smac_idx) | in send_act_open_req()
218 RSS_QUEUE(csk->rss_qid); in send_act_open_req()
[all …]
/linux-2.6.39/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c172 static int push_tx_frames(struct cxgbi_sock *csk, int req_completion);
174 static void send_act_open_req(struct cxgbi_sock *csk, struct sk_buff *skb, in send_act_open_req() argument
183 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, csk->atid)); in send_act_open_req()
184 req->local_port = csk->saddr.sin_port; in send_act_open_req()
185 req->peer_port = csk->daddr.sin_port; in send_act_open_req()
186 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
187 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req()
190 V_WND_SCALE(wscale) | V_MSS_IDX(csk->mss_idx) | in send_act_open_req()
197 csk, csk->state, csk->flags, csk->atid, in send_act_open_req()
200 csk->mss_idx, e->idx, e->smt_idx); in send_act_open_req()
[all …]
/linux-2.6.39/drivers/scsi/cxgbi/
Dlibcxgbi.c78 struct cxgbi_sock *csk; in cxgbi_device_portmap_cleanup() local
83 csk = pmap->port_csk[i]; in cxgbi_device_portmap_cleanup()
87 csk, cdev); in cxgbi_device_portmap_cleanup()
88 spin_lock_bh(&csk->lock); in cxgbi_device_portmap_cleanup()
89 cxgbi_sock_set_flag(csk, CTPF_OFFLOAD_DOWN); in cxgbi_device_portmap_cleanup()
90 cxgbi_sock_closed(csk); in cxgbi_device_portmap_cleanup()
91 spin_unlock_bh(&csk->lock); in cxgbi_device_portmap_cleanup()
92 cxgbi_sock_put(csk); in cxgbi_device_portmap_cleanup()
316 static int sock_get_port(struct cxgbi_sock *csk) in sock_get_port() argument
318 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-2.6.39/drivers/net/
Dcnic.c145 static inline void csk_hold(struct cnic_sock *csk) in csk_hold() argument
147 atomic_inc(&csk->ref_count); in csk_hold()
150 static inline void csk_put(struct cnic_sock *csk) in csk_put() argument
152 atomic_dec(&csk->ref_count); in csk_put()
251 static int cnic_in_use(struct cnic_sock *csk) in cnic_in_use() argument
253 return test_bit(SK_F_INUSE, &csk->flags); in cnic_in_use()
281 struct cnic_sock *csk) in cnic_send_nlmsg() argument
294 if (csk) { in cnic_send_nlmsg()
300 path_req.handle = (u64) csk->l5_cid; in cnic_send_nlmsg()
301 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_send_nlmsg()
[all …]
/linux-2.6.39/drivers/isdn/mISDN/
Dsocket.c483 struct sock *csk; in data_sock_bind() local
507 sk_for_each(csk, node, &data_sockets.head) { in data_sock_bind()
508 if (sk == csk) in data_sock_bind()
510 if (_pms(csk)->dev != _pms(sk)->dev) in data_sock_bind()
512 if (csk->sk_protocol >= ISDN_P_B_START) in data_sock_bind()
514 if (IS_ISDN_P_TE(csk->sk_protocol) in data_sock_bind()
/linux-2.6.39/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c1523 struct cnic_sock *csk; in bnx2i_host_get_param() local
1528 csk = bnx2i_ep->cm_sk; in bnx2i_host_get_param()
1529 if (test_bit(SK_F_IPV6, &csk->flags)) in bnx2i_host_get_param()
1530 len = sprintf(buf, "%pI6\n", csk->src_ip); in bnx2i_host_get_param()
1532 len = sprintf(buf, "%pI4\n", csk->src_ip); in bnx2i_host_get_param()