Lines Matching refs:cdev
184 l2t_send(csk->cdev->lldev, skb, csk->l2t); in send_act_open_req()
265 l2t_send(csk->cdev->lldev, skb, csk->l2t); in send_abort_req()
288 cxgb3_ofld_send(csk->cdev->lldev, skb); in send_abort_rpl()
317 cxgb3_ofld_send(csk->cdev->lldev, skb); in send_rx_credits()
454 l2t_send(csk->cdev->lldev, skb, csk->l2t); in push_tx_frames()
468 cxgb3_free_atid(csk->cdev->lldev, csk->atid); in free_atid()
489 cxgb3_insert_tid(csk->cdev->lldev, &t3_client, csk, tid); in do_act_establish()
605 static int do_peer_close(struct t3cdev *cdev, struct sk_buff *skb, void *ctx) in do_peer_close() argument
622 static int do_close_con_rpl(struct t3cdev *cdev, struct sk_buff *skb, in do_close_con_rpl() argument
660 static int do_abort_req(struct t3cdev *cdev, struct sk_buff *skb, void *ctx) in do_abort_req() argument
707 static int do_abort_rpl(struct t3cdev *cdev, struct sk_buff *skb, void *ctx) in do_abort_rpl() argument
779 csk->cdev->ports[csk->port_id]->name, csk->tid, in do_iscsi_hdr()
789 csk->cdev->ports[csk->port_id]->name, csk->tid, in do_iscsi_hdr()
814 csk->cdev->ports[csk->port_id]->name, in do_iscsi_hdr()
847 static int do_wr_ack(struct t3cdev *cdev, struct sk_buff *skb, void *ctx) in do_wr_ack() argument
895 struct t3cdev *t3dev = (struct t3cdev *)csk->cdev->lldev; in l2t_put()
906 struct t3cdev *t3dev = (struct t3cdev *)csk->cdev->lldev; in release_offload_resources()
928 csk->cdev = NULL; in release_offload_resources()
956 struct cxgbi_device *cdev = csk->cdev; in init_act_open() local
957 struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev; in init_act_open()
958 struct net_device *ndev = cdev->ports[csk->port_id]; in init_act_open()
959 struct cxgbi_hba *chba = cdev->hbas[csk->port_id]; in init_act_open()
1031 int cxgb3i_ofld_init(struct cxgbi_device *cdev) in cxgb3i_ofld_init() argument
1033 struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev; in cxgb3i_ofld_init()
1049 rc = cxgbi_device_portmap_create(cdev, cxgb3i_sport_base, in cxgb3i_ofld_init()
1055 cdev->csk_release_offload_resources = release_offload_resources; in cxgb3i_ofld_init()
1056 cdev->csk_push_tx_frames = push_tx_frames; in cxgb3i_ofld_init()
1057 cdev->csk_send_abort_req = send_abort_req; in cxgb3i_ofld_init()
1058 cdev->csk_send_close_req = send_close_req; in cxgb3i_ofld_init()
1059 cdev->csk_send_rx_credits = send_rx_credits; in cxgb3i_ofld_init()
1060 cdev->csk_alloc_cpls = alloc_cpls; in cxgb3i_ofld_init()
1061 cdev->csk_init_act_open = init_act_open; in cxgb3i_ofld_init()
1063 pr_info("cdev 0x%p, offload up, added.\n", cdev); in cxgb3i_ofld_init()
1087 struct cxgbi_device *cdev = csk->cdev; in ddp_set_map() local
1088 struct cxgbi_ddp_info *ddp = cdev->ddp; in ddp_set_map()
1108 cxgb3_ofld_send(cdev->lldev, skb); in ddp_set_map()
1116 struct cxgbi_device *cdev = chba->cdev; in ddp_clear_map() local
1117 struct cxgbi_ddp_info *ddp = cdev->ddp; in ddp_clear_map()
1123 cdev, idx, npods, tag); in ddp_clear_map()
1136 cxgb3_ofld_send(cdev->lldev, skb); in ddp_clear_map()
1164 cxgb3_ofld_send(csk->cdev->lldev, skb); in ddp_setup_conn_pgidx()
1201 cxgb3_ofld_send(csk->cdev->lldev, skb); in ddp_setup_conn_digest()
1212 static void t3_ddp_cleanup(struct cxgbi_device *cdev) in t3_ddp_cleanup() argument
1214 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in t3_ddp_cleanup()
1216 if (cxgbi_ddp_cleanup(cdev)) { in t3_ddp_cleanup()
1227 static int cxgb3i_ddp_init(struct cxgbi_device *cdev) in cxgb3i_ddp_init() argument
1229 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in cxgb3i_ddp_init()
1239 cdev->ddp = ddp; in cxgb3i_ddp_init()
1250 err = cxgbi_ddp_init(cdev, uinfo.llimit, uinfo.ulimit, in cxgb3i_ddp_init()
1255 ddp = cdev->ddp; in cxgb3i_ddp_init()
1267 cxgbi_ddp_cleanup(cdev); in cxgb3i_ddp_init()
1272 cdev->csk_ddp_setup_digest = ddp_setup_conn_digest; in cxgb3i_ddp_init()
1273 cdev->csk_ddp_setup_pgidx = ddp_setup_conn_pgidx; in cxgb3i_ddp_init()
1274 cdev->csk_ddp_set = ddp_set_map; in cxgb3i_ddp_init()
1275 cdev->csk_ddp_clear = ddp_clear_map; in cxgb3i_ddp_init()
1287 struct cxgbi_device *cdev = cxgbi_device_find_by_lldev(t3dev); in cxgb3i_dev_close() local
1289 if (!cdev || cdev->flags & CXGBI_FLAG_ADAPTER_RESET) { in cxgb3i_dev_close()
1290 pr_info("0x%p close, f 0x%x.\n", cdev, cdev ? cdev->flags : 0); in cxgb3i_dev_close()
1294 cxgbi_device_unregister(cdev); in cxgb3i_dev_close()
1303 struct cxgbi_device *cdev = cxgbi_device_find_by_lldev(t3dev); in cxgb3i_dev_open() local
1307 if (cdev) { in cxgb3i_dev_open()
1308 pr_info("0x%p, updating.\n", cdev); in cxgb3i_dev_open()
1312 cdev = cxgbi_device_register(0, adapter->params.nports); in cxgb3i_dev_open()
1313 if (!cdev) { in cxgb3i_dev_open()
1318 cdev->flags = CXGBI_FLAG_DEV_T3 | CXGBI_FLAG_IPV4_SET; in cxgb3i_dev_open()
1319 cdev->lldev = t3dev; in cxgb3i_dev_open()
1320 cdev->pdev = adapter->pdev; in cxgb3i_dev_open()
1321 cdev->ports = adapter->port; in cxgb3i_dev_open()
1322 cdev->nports = adapter->params.nports; in cxgb3i_dev_open()
1323 cdev->mtus = adapter->params.mtus; in cxgb3i_dev_open()
1324 cdev->nmtus = NMTUS; in cxgb3i_dev_open()
1325 cdev->rx_credit_thres = cxgb3i_rx_credit_thres; in cxgb3i_dev_open()
1326 cdev->skb_tx_rsvd = CXGB3I_TX_HEADER_LEN; in cxgb3i_dev_open()
1327 cdev->skb_rx_extra = sizeof(struct cpl_iscsi_hdr_norss); in cxgb3i_dev_open()
1328 cdev->dev_ddp_cleanup = t3_ddp_cleanup; in cxgb3i_dev_open()
1329 cdev->itp = &cxgb3i_iscsi_transport; in cxgb3i_dev_open()
1331 err = cxgb3i_ddp_init(cdev); in cxgb3i_dev_open()
1333 pr_info("0x%p ddp init failed\n", cdev); in cxgb3i_dev_open()
1337 err = cxgb3i_ofld_init(cdev); in cxgb3i_dev_open()
1339 pr_info("0x%p offload init failed\n", cdev); in cxgb3i_dev_open()
1343 err = cxgbi_hbas_add(cdev, CXGB3I_MAX_LUN, CXGBI_MAX_CONN, in cxgb3i_dev_open()
1348 for (i = 0; i < cdev->nports; i++) in cxgb3i_dev_open()
1349 cdev->hbas[i]->ipv4addr = in cxgb3i_dev_open()
1350 cxgb3i_get_private_ipv4addr(cdev->ports[i]); in cxgb3i_dev_open()
1353 cdev, cdev ? cdev->flags : 0, t3dev, err); in cxgb3i_dev_open()
1357 cxgbi_device_unregister(cdev); in cxgb3i_dev_open()
1362 struct cxgbi_device *cdev = cxgbi_device_find_by_lldev(t3dev); in cxgb3i_dev_event_handler() local
1366 t3dev, cdev, event, port); in cxgb3i_dev_event_handler()
1367 if (!cdev) in cxgb3i_dev_event_handler()
1372 cdev->flags |= CXGBI_FLAG_ADAPTER_RESET; in cxgb3i_dev_event_handler()
1375 cdev->flags &= ~CXGBI_FLAG_ADAPTER_RESET; in cxgb3i_dev_event_handler()