Lines Matching refs:stid

1504 	int stid;  in cxgb4_alloc_stid()  local
1508 stid = find_first_zero_bit(t->stid_bmap, t->nstids); in cxgb4_alloc_stid()
1509 if (stid < t->nstids) in cxgb4_alloc_stid()
1510 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_stid()
1512 stid = -1; in cxgb4_alloc_stid()
1514 stid = bitmap_find_free_region(t->stid_bmap, t->nstids, 2); in cxgb4_alloc_stid()
1515 if (stid < 0) in cxgb4_alloc_stid()
1516 stid = -1; in cxgb4_alloc_stid()
1518 if (stid >= 0) { in cxgb4_alloc_stid()
1519 t->stid_tab[stid].data = data; in cxgb4_alloc_stid()
1520 stid += t->stid_base; in cxgb4_alloc_stid()
1531 return stid; in cxgb4_alloc_stid()
1539 int stid; in cxgb4_alloc_sftid() local
1543 stid = find_next_zero_bit(t->stid_bmap, in cxgb4_alloc_sftid()
1545 if (stid < (t->nstids + t->nsftids)) in cxgb4_alloc_sftid()
1546 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_sftid()
1548 stid = -1; in cxgb4_alloc_sftid()
1550 stid = -1; in cxgb4_alloc_sftid()
1552 if (stid >= 0) { in cxgb4_alloc_sftid()
1553 t->stid_tab[stid].data = data; in cxgb4_alloc_sftid()
1554 stid -= t->nstids; in cxgb4_alloc_sftid()
1555 stid += t->sftid_base; in cxgb4_alloc_sftid()
1559 return stid; in cxgb4_alloc_sftid()
1565 void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family) in cxgb4_free_stid() argument
1568 if (t->nsftids && (stid >= t->sftid_base)) { in cxgb4_free_stid()
1569 stid -= t->sftid_base; in cxgb4_free_stid()
1570 stid += t->nstids; in cxgb4_free_stid()
1572 stid -= t->stid_base; in cxgb4_free_stid()
1577 __clear_bit(stid, t->stid_bmap); in cxgb4_free_stid()
1579 bitmap_release_region(t->stid_bmap, stid, 2); in cxgb4_free_stid()
1580 t->stid_tab[stid].data = NULL; in cxgb4_free_stid()
1581 if (stid < t->nstids) { in cxgb4_free_stid()
1751 int cxgb4_create_server(const struct net_device *dev, unsigned int stid, in cxgb4_create_server() argument
1768 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, stid)); in cxgb4_create_server()
1792 int cxgb4_create_server6(const struct net_device *dev, unsigned int stid, in cxgb4_create_server6() argument
1809 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ6, stid)); in cxgb4_create_server6()
1825 int cxgb4_remove_server(const struct net_device *dev, unsigned int stid, in cxgb4_remove_server() argument
1841 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, stid)); in cxgb4_remove_server()
2814 int cxgb4_create_server_filter(const struct net_device *dev, unsigned int stid, in cxgb4_create_server_filter() argument
2827 stid -= adap->tids.sftid_base; in cxgb4_create_server_filter()
2828 stid += adap->tids.nftids; in cxgb4_create_server_filter()
2832 f = &adap->tids.ftid_tab[stid]; in cxgb4_create_server_filter()
2870 ret = set_filter_wr(adap, stid); in cxgb4_create_server_filter()
2880 int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid, in cxgb4_remove_server_filter() argument
2890 stid -= adap->tids.sftid_base; in cxgb4_remove_server_filter()
2891 stid += adap->tids.nftids; in cxgb4_remove_server_filter()
2893 f = &adap->tids.ftid_tab[stid]; in cxgb4_remove_server_filter()
2897 ret = delete_filter(adap, stid); in cxgb4_remove_server_filter()