ctbl 37 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c static unsigned int clip_addr_hash(struct clip_tbl *ctbl, const u32 *addr, ctbl 40 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c return v6 ? ipv6_clip_hash(ctbl, addr) : ctbl 41 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ipv4_clip_hash(ctbl, addr); ctbl 77 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c struct clip_tbl *ctbl = adap->clipt; ctbl 83 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c if (!ctbl) ctbl 86 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c hash = clip_addr_hash(ctbl, addr, v6); ctbl 88 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_lock_bh(&ctbl->lock); ctbl 89 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_for_each_entry(cte, &ctbl->hash_list[hash], list) { ctbl 98 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_unlock_bh(&ctbl->lock); ctbl 103 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_unlock_bh(&ctbl->lock); ctbl 105 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c write_lock_bh(&ctbl->lock); ctbl 106 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c if (!list_empty(&ctbl->ce_free_head)) { ctbl 107 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ce = list_first_entry(&ctbl->ce_free_head, ctbl 113 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c atomic_dec(&ctbl->nfree); ctbl 114 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_add_tail(&ce->list, &ctbl->hash_list[hash]); ctbl 121 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c write_unlock_bh(&ctbl->lock); ctbl 135 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c write_unlock_bh(&ctbl->lock); ctbl 141 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c write_unlock_bh(&ctbl->lock); ctbl 150 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c struct clip_tbl *ctbl = adap->clipt; ctbl 156 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c if (!ctbl) ctbl 159 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c hash = clip_addr_hash(ctbl, addr, v6); ctbl 161 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_lock_bh(&ctbl->lock); ctbl 162 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_for_each_entry(cte, &ctbl->hash_list[hash], list) { ctbl 171 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_unlock_bh(&ctbl->lock); ctbl 175 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_unlock_bh(&ctbl->lock); ctbl 179 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c write_lock_bh(&ctbl->lock); ctbl 184 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_add_tail(&ce->list, &ctbl->ce_free_head); ctbl 185 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c atomic_inc(&ctbl->nfree); ctbl 190 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c write_unlock_bh(&ctbl->lock); ctbl 255 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c struct clip_tbl *ctbl = adapter->clipt; ctbl 260 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_lock_bh(&ctbl->lock); ctbl 263 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c for (i = 0 ; i < ctbl->clipt_size; ++i) { ctbl 264 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_for_each_entry(ce, &ctbl->hash_list[i], list) { ctbl 271 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c seq_printf(seq, "Free clip entries : %d\n", atomic_read(&ctbl->nfree)); ctbl 273 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c read_unlock_bh(&ctbl->lock); ctbl 282 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c struct clip_tbl *ctbl; ctbl 292 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ctbl = kvzalloc(struct_size(ctbl, hash_list, clipt_size), GFP_KERNEL); ctbl 293 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c if (!ctbl) ctbl 296 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ctbl->clipt_start = clipt_start; ctbl 297 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ctbl->clipt_size = clipt_size; ctbl 298 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c INIT_LIST_HEAD(&ctbl->ce_free_head); ctbl 300 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c atomic_set(&ctbl->nfree, clipt_size); ctbl 301 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c rwlock_init(&ctbl->lock); ctbl 303 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c for (i = 0; i < ctbl->clipt_size; ++i) ctbl 304 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c INIT_LIST_HEAD(&ctbl->hash_list[i]); ctbl 308 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c kvfree(ctbl); ctbl 311 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ctbl->cl_list = (void *)cl_list; ctbl 315 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_add_tail(&cl_list[i].list, &ctbl->ce_free_head); ctbl 318 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c return ctbl; ctbl 323 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c struct clip_tbl *ctbl = adap->clipt; ctbl 325 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c if (ctbl) { ctbl 326 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c if (ctbl->cl_list) ctbl 327 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c kvfree(ctbl->cl_list); ctbl 328 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c kvfree(ctbl); ctbl 78 scripts/conmakehash.c FILE *ctbl; ctbl 91 scripts/conmakehash.c ctbl = stdin; ctbl 96 scripts/conmakehash.c ctbl = fopen(tblname = argv[1], "r"); ctbl 97 scripts/conmakehash.c if ( !ctbl ) ctbl 114 scripts/conmakehash.c while ( fgets(buffer, sizeof(buffer), ctbl) != NULL ) ctbl 237 scripts/conmakehash.c fclose(ctbl);