Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 34) sorted by relevance

12

/drivers/scsi/
Dlibiscsi.c106 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu() local
120 if (left > conn->max_xmit_dlength) { in iscsi_prep_data_out_pdu()
121 hton24(hdr->dlength, conn->max_xmit_dlength); in iscsi_prep_data_out_pdu()
122 r2t->data_count = conn->max_xmit_dlength; in iscsi_prep_data_out_pdu()
129 conn->dataout_pdus_cnt++; in iscsi_prep_data_out_pdu()
220 struct iscsi_conn *conn = task->conn; in iscsi_prep_scsi_cmd_pdu() local
221 struct iscsi_session *session = conn->session; in iscsi_prep_scsi_cmd_pdu()
228 rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_CMD); in iscsi_prep_scsi_cmd_pdu()
239 task->conn->session->age); in iscsi_prep_scsi_cmd_pdu()
250 hdr->exp_statsn = cpu_to_be32(conn->exp_statsn); in iscsi_prep_scsi_cmd_pdu()
[all …]
Discsi_tcp.c76 struct iscsi_conn *conn = rd_desc->arg.data; in iscsi_sw_tcp_recv() local
84 consumed = iscsi_tcp_recv_skb(conn, skb, offset, 0, &status); in iscsi_sw_tcp_recv()
95 struct iscsi_conn *conn = sk->sk_user_data; in iscsi_sw_tcp_data_ready() local
96 struct iscsi_tcp_conn *tcp_conn = conn->dd_data; in iscsi_sw_tcp_data_ready()
107 rd_desc.arg.data = conn; in iscsi_sw_tcp_data_ready()
122 struct iscsi_conn *conn; in iscsi_sw_tcp_state_change() local
128 conn = (struct iscsi_conn*)sk->sk_user_data; in iscsi_sw_tcp_state_change()
129 session = conn->session; in iscsi_sw_tcp_state_change()
135 iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED); in iscsi_sw_tcp_state_change()
138 tcp_conn = conn->dd_data; in iscsi_sw_tcp_state_change()
[all …]
Dlibiscsi_tcp.c400 struct iscsi_conn *conn = tcp_conn->iscsi_conn; in iscsi_tcp_data_recv_done() local
406 rc = iscsi_complete_pdu(conn, tcp_conn->in.hdr, in iscsi_tcp_data_recv_done()
407 conn->data, tcp_conn->in.datalen); in iscsi_tcp_data_recv_done()
418 struct iscsi_conn *conn = tcp_conn->iscsi_conn; in iscsi_tcp_data_recv_prep() local
421 if (conn->datadgst_en & in iscsi_tcp_data_recv_prep()
422 !(conn->session->tt->caps & CAP_DIGEST_OFFLOAD)) in iscsi_tcp_data_recv_prep()
426 conn->data, tcp_conn->in.datalen, in iscsi_tcp_data_recv_prep()
466 static int iscsi_tcp_data_in(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_tcp_data_in() argument
468 struct iscsi_tcp_conn *tcp_conn = conn->dd_data; in iscsi_tcp_data_in()
474 iscsi_update_cmdsn(conn->session, (struct iscsi_nopin*)rhdr); in iscsi_tcp_data_in()
[all …]
Dscsi_transport_iscsi.c295 static uint32_t iscsi_conn_get_sid(struct iscsi_cls_conn *conn) in iscsi_conn_get_sid() argument
297 struct iscsi_cls_session *sess = iscsi_dev_to_session(conn->dev.parent); in iscsi_conn_get_sid()
326 struct iscsi_cls_conn *conn; in iscsi_conn_lookup() local
329 list_for_each_entry(conn, &connlist, conn_list) { in iscsi_conn_lookup()
330 if ((conn->cid == cid) && (iscsi_conn_get_sid(conn) == sid)) { in iscsi_conn_lookup()
332 return conn; in iscsi_conn_lookup()
777 struct iscsi_cls_conn *conn = iscsi_dev_to_conn(dev); in iscsi_conn_release() local
778 struct device *parent = conn->dev.parent; in iscsi_conn_release()
780 kfree(conn); in iscsi_conn_release()
881 struct iscsi_cls_conn *conn; in iscsi_create_conn() local
[all …]
/drivers/s390/net/
Dnetiucv.c223 struct iucv_connection *conn; member
234 struct iucv_connection *conn; member
515 struct iucv_connection *conn = path->private; in netiucv_callback_rx() local
518 ev.conn = conn; in netiucv_callback_rx()
520 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx()
526 struct iucv_connection *conn = path->private; in netiucv_callback_txdone() local
529 ev.conn = conn; in netiucv_callback_txdone()
531 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); in netiucv_callback_txdone()
536 struct iucv_connection *conn = path->private; in netiucv_callback_connack() local
538 fsm_event(conn->fsm, CONN_EVENT_CONN_ACK, conn); in netiucv_callback_connack()
[all …]
/drivers/scsi/cxgb3i/
Dcxgb3i_iscsi.c314 if (cconn && cconn->conn) { in cxgb3i_ep_disconnect()
319 iscsi_suspend_tx(cconn->conn); in cxgb3i_ep_disconnect()
401 static inline int cxgb3i_conn_max_xmit_dlength(struct iscsi_conn *conn) in cxgb3i_conn_max_xmit_dlength() argument
404 struct iscsi_tcp_conn *tcp_conn = conn->dd_data; in cxgb3i_conn_max_xmit_dlength()
409 if (conn->max_xmit_dlength) in cxgb3i_conn_max_xmit_dlength()
410 conn->max_xmit_dlength = min(conn->max_xmit_dlength, max); in cxgb3i_conn_max_xmit_dlength()
412 conn->max_xmit_dlength = max; in cxgb3i_conn_max_xmit_dlength()
413 align_pdu_size(conn->max_xmit_dlength); in cxgb3i_conn_max_xmit_dlength()
415 conn, conn->max_xmit_dlength); in cxgb3i_conn_max_xmit_dlength()
425 static inline int cxgb3i_conn_max_recv_dlength(struct iscsi_conn *conn) in cxgb3i_conn_max_recv_dlength() argument
[all …]
Dcxgb3i_pdu.c44 static inline int read_pdu_skb(struct iscsi_conn *conn, struct sk_buff *skb, in read_pdu_skb() argument
50 bytes_read = iscsi_tcp_recv_skb(conn, skb, offset, offloaded, &status); in read_pdu_skb()
62 iscsi_conn_printk(KERN_ERR, conn, "Invalid pdu or skb."); in read_pdu_skb()
67 iscsi_conn_printk(KERN_ERR, conn, "Invalid iscsi_tcp_recv_skb " in read_pdu_skb()
73 static int cxgb3i_conn_read_pdu_skb(struct iscsi_conn *conn, in cxgb3i_conn_read_pdu_skb() argument
76 struct iscsi_tcp_conn *tcp_conn = conn->dd_data; in cxgb3i_conn_read_pdu_skb()
82 conn, skb, skb->len, skb_ulp_mode(skb)); in cxgb3i_conn_read_pdu_skb()
85 iscsi_conn_failure(conn, ISCSI_ERR_PROTO); in cxgb3i_conn_read_pdu_skb()
89 if (conn->hdrdgst_en && (skb_ulp_mode(skb) & ULP2_FLAG_HCRC_ERROR)) { in cxgb3i_conn_read_pdu_skb()
90 iscsi_conn_failure(conn, ISCSI_ERR_HDR_DGST); in cxgb3i_conn_read_pdu_skb()
[all …]
/drivers/infiniband/ulp/iser/
Discsi_iser.c94 iscsi_iser_recv(struct iscsi_conn *conn, in iscsi_iser_recv() argument
113 rc = iscsi_complete_pdu(conn, hdr, rx_data, rx_data_len); in iscsi_iser_recv()
119 iscsi_conn_failure(conn, rc); in iscsi_iser_recv()
140 struct iscsi_iser_conn *iser_conn = task->conn->dd_data; in iscsi_iser_task_init()
167 iscsi_iser_mtask_xmit(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_iser_mtask_xmit() argument
171 debug_scsi("task deq [cid %d itt 0x%x]\n", conn->id, task->itt); in iscsi_iser_mtask_xmit()
173 error = iser_send_control(conn, task); in iscsi_iser_mtask_xmit()
182 iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED); in iscsi_iser_mtask_xmit()
188 iscsi_iser_task_xmit_unsol_data(struct iscsi_conn *conn, in iscsi_iser_task_xmit_unsol_data() argument
203 error = iser_send_data_out(conn, task, &hdr); in iscsi_iser_task_xmit_unsol_data()
[all …]
Diser_initiator.c140 edtl, task->itt, task->conn); in iser_prepare_write_cmd()
178 static int iser_post_receive_control(struct iscsi_conn *conn) in iser_post_receive_control() argument
180 struct iscsi_iser_conn *iser_conn = conn->dd_data; in iser_post_receive_control()
193 if (conn->c_stage != ISCSI_CONN_STARTED) in iser_post_receive_control()
300 int iser_conn_set_full_featured_mode(struct iscsi_conn *conn) in iser_conn_set_full_featured_mode() argument
302 struct iscsi_iser_conn *iser_conn = conn->dd_data; in iser_conn_set_full_featured_mode()
320 if (iser_post_receive_control(conn) != 0) { in iser_conn_set_full_featured_mode()
322 i, conn); in iser_conn_set_full_featured_mode()
326 iser_dbg("Posted %d post recv bufs, conn:0x%p\n", i, conn); in iser_conn_set_full_featured_mode()
331 iser_check_xmit(struct iscsi_conn *conn, void *task) in iser_check_xmit() argument
[all …]
Discsi_iser.h300 int iser_conn_set_full_featured_mode(struct iscsi_conn *conn);
302 int iser_send_control(struct iscsi_conn *conn,
305 int iser_send_command(struct iscsi_conn *conn,
308 int iser_send_data_out(struct iscsi_conn *conn,
312 void iscsi_iser_recv(struct iscsi_conn *conn,
/drivers/video/aty/
Dradeon_i2c.c138 int radeon_probe_i2c_connector(struct radeonfb_info *rinfo, int conn, in radeon_probe_i2c_connector() argument
143 edid = fb_ddc_read(&rinfo->i2c[conn-1].adapter); in radeon_probe_i2c_connector()
148 pr_debug("radeonfb: I2C (port %d) ... not found\n", conn); in radeon_probe_i2c_connector()
155 pr_debug("radeonfb: I2C (port %d) ... found LVDS panel\n", conn); in radeon_probe_i2c_connector()
158 pr_debug("radeonfb: I2C (port %d) ... found TMDS panel\n", conn); in radeon_probe_i2c_connector()
162 pr_debug("radeonfb: I2C (port %d) ... found CRT display\n", conn); in radeon_probe_i2c_connector()
/drivers/video/nvidia/
Dnv_of.c30 int nvidia_probe_of_connector(struct fb_info *info, int conn, u8 **out_edid) in nvidia_probe_of_connector() argument
53 if ((pname[len-1] == 'A' && conn == 1) || in nvidia_probe_of_connector()
54 (pname[len-1] == 'B' && conn == 2)) { in nvidia_probe_of_connector()
77 printk(KERN_DEBUG "nvidiafb: Found OF EDID for head %d\n", conn); in nvidia_probe_of_connector()
Dnv_i2c.c151 int nvidia_probe_i2c_connector(struct fb_info *info, int conn, u8 **out_edid) in nvidia_probe_i2c_connector() argument
156 if (par->chan[conn - 1].par) in nvidia_probe_i2c_connector()
157 edid = fb_ddc_read(&par->chan[conn - 1].adapter); in nvidia_probe_i2c_connector()
159 if (!edid && conn == 1) { in nvidia_probe_i2c_connector()
Dnv_proto.h37 int nvidia_probe_i2c_connector(struct fb_info *info, int conn,
46 int nvidia_probe_of_connector(struct fb_info *info, int conn,
49 static inline int nvidia_probe_of_connector(struct fb_info *info, int conn, in nvidia_probe_of_connector() argument
/drivers/isdn/hardware/mISDN/
Dhfcpci.c98 unsigned char conn; member
279 hc->hw.conn = 0x09; in reset_hfcpci()
281 hc->hw.conn = 0x36; /* set data flow directions */ in reset_hfcpci()
294 Write_hfc(hc, HFCPCI_CONNECT, hc->hw.conn); in reset_hfcpci()
1339 hc->hw.conn &= ~0x18; in mode_hfcpci()
1346 hc->hw.conn &= ~0x03; in mode_hfcpci()
1368 hc->hw.conn &= ~0x18; in mode_hfcpci()
1375 hc->hw.conn &= ~0x03; in mode_hfcpci()
1398 hc->hw.conn &= 0xc7; in mode_hfcpci()
1399 hc->hw.conn |= 0x08; in mode_hfcpci()
[all …]
/drivers/video/i810/
Di810-i2c.c150 int i810_probe_i2c_connector(struct fb_info *info, u8 **out_edid, int conn) in i810_probe_i2c_connector() argument
155 DPRINTK("i810-i2c: Probe DDC%i Bus\n", conn+1); in i810_probe_i2c_connector()
156 if (conn < par->ddc_num) { in i810_probe_i2c_connector()
157 edid = fb_ddc_read(&par->chan[conn].adapter); in i810_probe_i2c_connector()
Di810_main.h40 int conn);
45 int conn) in i810_probe_i2c_connector() argument
/drivers/video/riva/
Drivafb-i2c.c154 int __devinit riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid) in riva_probe_i2c_connector() argument
158 if (par->chan[conn].par) in riva_probe_i2c_connector()
159 edid = fb_ddc_read(&par->chan[conn].adapter); in riva_probe_i2c_connector()
Drivafb.h75 int riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid);
/drivers/isdn/hisax/
Dhfc_sx.c402 cs->hw.hfcsx.conn = 0x36; /* set data flow directions */ in reset_hfcsx()
403 Write_hfc(cs, HFCSX_CONNECT, cs->hw.hfcsx.conn); in reset_hfcsx()
633 cs->hw.hfcsx.conn |= 0x10; /* B2-IOM -> B2-ST */ in hfcsx_auxcmd()
639 Write_hfc(cs, HFCSX_CONNECT, cs->hw.hfcsx.conn); in hfcsx_auxcmd()
975 cs->hw.hfcsx.conn = (cs->hw.hfcsx.conn & ~7) | 1; in HFCSX_l1hw()
976 Write_hfc(cs, HFCSX_CONNECT, cs->hw.hfcsx.conn); in HFCSX_l1hw()
981 cs->hw.hfcsx.conn = (cs->hw.hfcsx.conn & ~0x38) | 0x08; in HFCSX_l1hw()
982 Write_hfc(cs, HFCSX_CONNECT, cs->hw.hfcsx.conn); in HFCSX_l1hw()
1084 cs->hw.hfcsx.conn &= ~0x18; in mode_hfcsx()
1088 cs->hw.hfcsx.conn &= ~0x03; in mode_hfcsx()
[all …]
Dhfc_pci.c149 cs->hw.hfcpci.conn = 0x36; /* set data flow directions */ in reset_hfcpci()
150 Write_hfc(cs, HFCPCI_CONNECT, cs->hw.hfcpci.conn); in reset_hfcpci()
810 cs->hw.hfcpci.conn |= 0x10; /* B2-IOM -> B2-ST */ in hfcpci_auxcmd()
815 Write_hfc(cs, HFCPCI_CONNECT, cs->hw.hfcpci.conn); in hfcpci_auxcmd()
1210 cs->hw.hfcpci.conn = (cs->hw.hfcpci.conn & ~7) | 1; in HFCPCI_l1hw()
1211 Write_hfc(cs, HFCPCI_CONNECT, cs->hw.hfcpci.conn); in HFCPCI_l1hw()
1217 cs->hw.hfcpci.conn = (cs->hw.hfcpci.conn & ~0x38) | 0x08; in HFCPCI_l1hw()
1218 Write_hfc(cs, HFCPCI_CONNECT, cs->hw.hfcpci.conn); in HFCPCI_l1hw()
1326 cs->hw.hfcpci.conn &= ~0x18; in mode_hfcpci()
1331 cs->hw.hfcpci.conn &= ~0x03; in mode_hfcpci()
[all …]
Dhfc_2bds0.c415 cs->hw.hfcD.conn |= 0x18; in mode_2bs0()
418 cs->hw.hfcD.conn |= 0x3; in mode_2bs0()
425 cs->hw.hfcD.conn &= ~0x18; in mode_2bs0()
429 cs->hw.hfcD.conn &= ~0x3; in mode_2bs0()
436 cs->hw.hfcD.conn &= ~0x18; in mode_2bs0()
440 cs->hw.hfcD.conn &= ~0x3; in mode_2bs0()
447 WriteReg(cs, HFCD_DATA, HFCD_CONN, cs->hw.hfcD.conn); in mode_2bs0()
/drivers/infiniband/core/
Dcma.c911 event->param.conn.private_data = private_data; in cma_set_rep_event_data()
912 event->param.conn.private_data_len = IB_CM_REP_PRIVATE_DATA_SIZE; in cma_set_rep_event_data()
913 event->param.conn.responder_resources = rep_data->responder_resources; in cma_set_rep_event_data()
914 event->param.conn.initiator_depth = rep_data->initiator_depth; in cma_set_rep_event_data()
915 event->param.conn.flow_control = rep_data->flow_control; in cma_set_rep_event_data()
916 event->param.conn.rnr_retry_count = rep_data->rnr_retry_count; in cma_set_rep_event_data()
917 event->param.conn.srq = rep_data->srq; in cma_set_rep_event_data()
918 event->param.conn.qp_num = rep_data->remote_qpn; in cma_set_rep_event_data()
975 event.param.conn.private_data = ib_event->private_data; in cma_ib_handler()
976 event.param.conn.private_data_len = IB_CM_REJ_PRIVATE_DATA_SIZE; in cma_ib_handler()
[all …]
/drivers/video/matrox/
Dmatroxfb_base.c1035 u_int32_t conn = 0; in matroxfb_ioctl() local
1040 conn |= 1 << i; in matroxfb_ioctl()
1043 if (put_user(conn, (u_int32_t __user *)arg)) in matroxfb_ioctl()
1049 u_int32_t conn = 0; in matroxfb_ioctl() local
1057 conn |= 1 << i; in matroxfb_ioctl()
1063 if (conn & MATROXFB_OUTPUT_CONN_DFP) in matroxfb_ioctl()
1064 conn &= ~MATROXFB_OUTPUT_CONN_SECONDARY; in matroxfb_ioctl()
1065 if (conn & MATROXFB_OUTPUT_CONN_SECONDARY) in matroxfb_ioctl()
1066 conn &= ~MATROXFB_OUTPUT_CONN_DFP; in matroxfb_ioctl()
1068 if (put_user(conn, (u_int32_t __user *)arg)) in matroxfb_ioctl()
[all …]
/drivers/scsi/qla4xxx/
Dql4_os.c62 static int qla4xxx_conn_get_param(struct iscsi_cls_conn *conn,
193 static int qla4xxx_conn_get_param(struct iscsi_cls_conn *conn, in qla4xxx_conn_get_param() argument
200 session = iscsi_dev_to_session(conn->dev.parent); in qla4xxx_conn_get_param()
258 if (ddb_entry->conn) { in qla4xxx_destroy_sess()
276 ddb_entry->conn = iscsi_create_conn(ddb_entry->sess, 0, 0); in qla4xxx_add_sess()
277 if (!ddb_entry->conn) { in qla4xxx_add_sess()
355 iscsi_conn_error_event(ddb_entry->conn, ISCSI_ERR_CONN_FAILED); in qla4xxx_mark_device_missing()

12