Lines Matching defs:t3dev
234 "t3dev 0x%p, tid %u, skb 0x%p.\n",
744 static int do_iscsi_hdr(struct t3cdev *t3dev, struct sk_buff *skb, void *ctx)
891 struct t3cdev *t3dev = (struct t3cdev *)csk->cdev->lldev;
894 l2t_release(t3dev, csk->l2t);
906 struct t3cdev *t3dev = (struct t3cdev *)csk->cdev->lldev;
923 cxgb3_remove_tid(t3dev, (void *)csk, csk->tid);
957 struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev;
971 csk->l2t = t3_l2t_get(t3dev, dst, ndev,
979 csk->atid = cxgb3_alloc_atid(t3dev, &t3_client, csk);
998 csk->wr_max_cred = csk->wr_cred = T3C_DATA(t3dev)->max_wrs - 1;
1015 cxgb3_free_atid(t3dev, csk->atid);
1018 l2t_release(t3dev, csk->l2t);
1041 struct t3cdev *t3dev = (struct t3cdev *)cdev->lldev;
1047 if (t3dev->ctl(t3dev, GET_WR_LEN, &wr_len) < 0 ||
1048 t3dev->ctl(t3dev, GET_PORTS, &port) < 0 ||
1049 t3dev->ctl(t3dev, GET_RX_PAGE_INFO, &rx_page_info) < 0) {
1050 pr_warn("t3 0x%p, offload up, ioctl failed.\n", t3dev);
1287 static void cxgb3i_dev_close(struct t3cdev *t3dev)
1289 struct cxgbi_device *cdev = cxgbi_device_find_by_lldev(t3dev);
1301 * @t3dev: t3cdev adapter
1303 static void cxgb3i_dev_open(struct t3cdev *t3dev)
1305 struct cxgbi_device *cdev = cxgbi_device_find_by_lldev(t3dev);
1306 struct adapter *adapter = tdev2adap(t3dev);
1316 pr_warn("device 0x%p register failed.\n", t3dev);
1321 cdev->lldev = t3dev;
1353 pr_info("cdev 0x%p, f 0x%x, t3dev 0x%p open, err %d.\n",
1354 cdev, cdev ? cdev->flags : 0, t3dev, err);
1361 static void cxgb3i_dev_event_handler(struct t3cdev *t3dev, u32 event, u32 port)
1363 struct cxgbi_device *cdev = cxgbi_device_find_by_lldev(t3dev);
1367 t3dev, cdev, event, port);