Lines Matching refs:stid
1478 int stid; in cxgb4_alloc_stid() local
1482 stid = find_first_zero_bit(t->stid_bmap, t->nstids); in cxgb4_alloc_stid()
1483 if (stid < t->nstids) in cxgb4_alloc_stid()
1484 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_stid()
1486 stid = -1; in cxgb4_alloc_stid()
1488 stid = bitmap_find_free_region(t->stid_bmap, t->nstids, 2); in cxgb4_alloc_stid()
1489 if (stid < 0) in cxgb4_alloc_stid()
1490 stid = -1; in cxgb4_alloc_stid()
1492 if (stid >= 0) { in cxgb4_alloc_stid()
1493 t->stid_tab[stid].data = data; in cxgb4_alloc_stid()
1494 stid += t->stid_base; in cxgb4_alloc_stid()
1505 return stid; in cxgb4_alloc_stid()
1513 int stid; in cxgb4_alloc_sftid() local
1517 stid = find_next_zero_bit(t->stid_bmap, in cxgb4_alloc_sftid()
1519 if (stid < (t->nstids + t->nsftids)) in cxgb4_alloc_sftid()
1520 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_sftid()
1522 stid = -1; in cxgb4_alloc_sftid()
1524 stid = -1; in cxgb4_alloc_sftid()
1526 if (stid >= 0) { in cxgb4_alloc_sftid()
1527 t->stid_tab[stid].data = data; in cxgb4_alloc_sftid()
1528 stid -= t->nstids; in cxgb4_alloc_sftid()
1529 stid += t->sftid_base; in cxgb4_alloc_sftid()
1533 return stid; in cxgb4_alloc_sftid()
1539 void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family) in cxgb4_free_stid() argument
1542 if (t->nsftids && (stid >= t->sftid_base)) { in cxgb4_free_stid()
1543 stid -= t->sftid_base; in cxgb4_free_stid()
1544 stid += t->nstids; in cxgb4_free_stid()
1546 stid -= t->stid_base; in cxgb4_free_stid()
1551 __clear_bit(stid, t->stid_bmap); in cxgb4_free_stid()
1553 bitmap_release_region(t->stid_bmap, stid, 2); in cxgb4_free_stid()
1554 t->stid_tab[stid].data = NULL; in cxgb4_free_stid()
1714 int cxgb4_create_server(const struct net_device *dev, unsigned int stid, in cxgb4_create_server() argument
1731 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, stid)); in cxgb4_create_server()
1755 int cxgb4_create_server6(const struct net_device *dev, unsigned int stid, in cxgb4_create_server6() argument
1772 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ6, stid)); in cxgb4_create_server6()
1788 int cxgb4_remove_server(const struct net_device *dev, unsigned int stid, in cxgb4_remove_server() argument
1804 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, stid)); in cxgb4_remove_server()
2769 int cxgb4_create_server_filter(const struct net_device *dev, unsigned int stid, in cxgb4_create_server_filter() argument
2782 stid -= adap->tids.sftid_base; in cxgb4_create_server_filter()
2783 stid += adap->tids.nftids; in cxgb4_create_server_filter()
2787 f = &adap->tids.ftid_tab[stid]; in cxgb4_create_server_filter()
2825 ret = set_filter_wr(adap, stid); in cxgb4_create_server_filter()
2835 int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid, in cxgb4_remove_server_filter() argument
2845 stid -= adap->tids.sftid_base; in cxgb4_remove_server_filter()
2846 stid += adap->tids.nftids; in cxgb4_remove_server_filter()
2848 f = &adap->tids.ftid_tab[stid]; in cxgb4_remove_server_filter()
2852 ret = delete_filter(adap, stid); in cxgb4_remove_server_filter()