Lines Matching refs:stid
1631 int stid; in cxgb4_alloc_stid() local
1635 stid = find_first_zero_bit(t->stid_bmap, t->nstids); in cxgb4_alloc_stid()
1636 if (stid < t->nstids) in cxgb4_alloc_stid()
1637 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_stid()
1639 stid = -1; in cxgb4_alloc_stid()
1641 stid = bitmap_find_free_region(t->stid_bmap, t->nstids, 1); in cxgb4_alloc_stid()
1642 if (stid < 0) in cxgb4_alloc_stid()
1643 stid = -1; in cxgb4_alloc_stid()
1645 if (stid >= 0) { in cxgb4_alloc_stid()
1646 t->stid_tab[stid].data = data; in cxgb4_alloc_stid()
1647 stid += t->stid_base; in cxgb4_alloc_stid()
1660 return stid; in cxgb4_alloc_stid()
1668 int stid; in cxgb4_alloc_sftid() local
1672 stid = find_next_zero_bit(t->stid_bmap, in cxgb4_alloc_sftid()
1674 if (stid < (t->nstids + t->nsftids)) in cxgb4_alloc_sftid()
1675 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_sftid()
1677 stid = -1; in cxgb4_alloc_sftid()
1679 stid = -1; in cxgb4_alloc_sftid()
1681 if (stid >= 0) { in cxgb4_alloc_sftid()
1682 t->stid_tab[stid].data = data; in cxgb4_alloc_sftid()
1683 stid -= t->nstids; in cxgb4_alloc_sftid()
1684 stid += t->sftid_base; in cxgb4_alloc_sftid()
1688 return stid; in cxgb4_alloc_sftid()
1694 void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family) in cxgb4_free_stid() argument
1697 if (t->nsftids && (stid >= t->sftid_base)) { in cxgb4_free_stid()
1698 stid -= t->sftid_base; in cxgb4_free_stid()
1699 stid += t->nstids; in cxgb4_free_stid()
1701 stid -= t->stid_base; in cxgb4_free_stid()
1706 __clear_bit(stid, t->stid_bmap); in cxgb4_free_stid()
1708 bitmap_release_region(t->stid_bmap, stid, 1); in cxgb4_free_stid()
1709 t->stid_tab[stid].data = NULL; in cxgb4_free_stid()
1710 if (stid < t->nstids) { in cxgb4_free_stid()
1925 int cxgb4_create_server(const struct net_device *dev, unsigned int stid, in cxgb4_create_server() argument
1942 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, stid)); in cxgb4_create_server()
1966 int cxgb4_create_server6(const struct net_device *dev, unsigned int stid, in cxgb4_create_server6() argument
1983 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ6, stid)); in cxgb4_create_server6()
1999 int cxgb4_remove_server(const struct net_device *dev, unsigned int stid, in cxgb4_remove_server() argument
2015 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, stid)); in cxgb4_remove_server()
2917 int cxgb4_create_server_filter(const struct net_device *dev, unsigned int stid, in cxgb4_create_server_filter() argument
2930 stid -= adap->tids.sftid_base; in cxgb4_create_server_filter()
2931 stid += adap->tids.nftids; in cxgb4_create_server_filter()
2935 f = &adap->tids.ftid_tab[stid]; in cxgb4_create_server_filter()
2976 f->tid = stid + adap->tids.ftid_base; in cxgb4_create_server_filter()
2977 ret = set_filter_wr(adap, stid); in cxgb4_create_server_filter()
2987 int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid, in cxgb4_remove_server_filter() argument
2996 stid -= adap->tids.sftid_base; in cxgb4_remove_server_filter()
2997 stid += adap->tids.nftids; in cxgb4_remove_server_filter()
2999 f = &adap->tids.ftid_tab[stid]; in cxgb4_remove_server_filter()
3003 return delete_filter(adap, stid); in cxgb4_remove_server_filter()