Lines Matching refs:dbptr
51 struct xgene_cle_dbptr *dbptr, u32 *buf) in xgene_cle_dbptr_to_hw() argument
53 buf[0] = SET_VAL(CLE_DROP, dbptr->drop); in xgene_cle_dbptr_to_hw()
54 buf[4] = SET_VAL(CLE_FPSEL, dbptr->fpsel) | in xgene_cle_dbptr_to_hw()
55 SET_VAL(CLE_NFPSEL, dbptr->nxtfpsel) | in xgene_cle_dbptr_to_hw()
56 SET_VAL(CLE_DSTQIDL, dbptr->dstqid); in xgene_cle_dbptr_to_hw()
58 buf[5] = SET_VAL(CLE_DSTQIDH, (u32)dbptr->dstqid >> CLE_DSTQIDL_LEN) | in xgene_cle_dbptr_to_hw()
59 SET_VAL(CLE_PRIORITY, dbptr->cle_priority); in xgene_cle_dbptr_to_hw()
198 xgene_cle_dbptr_to_hw(pdata, &ptree->dbptr[i], buf); in xgene_cle_setup_dbptr()
627 struct xgene_cle_dbptr *dbptr, in xgene_cle_setup_def_dbptr() argument
637 xgene_cle_dbptr_to_hw(pdata, dbptr, buf); in xgene_cle_setup_def_dbptr()
777 struct xgene_cle_dbptr dbptr[DB_MAX_PTRS]; in xgene_enet_cle_init() local
803 memset(dbptr, 0, sizeof(struct xgene_cle_dbptr) * DB_MAX_PTRS); in xgene_enet_cle_init()
804 dbptr[DB_RES_ACCEPT].fpsel = def_fpsel; in xgene_enet_cle_init()
805 dbptr[DB_RES_ACCEPT].nxtfpsel = def_nxtfpsel; in xgene_enet_cle_init()
806 dbptr[DB_RES_ACCEPT].dstqid = def_qid; in xgene_enet_cle_init()
807 dbptr[DB_RES_ACCEPT].cle_priority = 1; in xgene_enet_cle_init()
809 dbptr[DB_RES_DEF].fpsel = def_fpsel; in xgene_enet_cle_init()
810 dbptr[DB_RES_DEF].nxtfpsel = def_nxtfpsel; in xgene_enet_cle_init()
811 dbptr[DB_RES_DEF].dstqid = def_qid; in xgene_enet_cle_init()
812 dbptr[DB_RES_DEF].cle_priority = 7; in xgene_enet_cle_init()
813 xgene_cle_setup_def_dbptr(pdata, enet_cle, &dbptr[DB_RES_DEF], in xgene_enet_cle_init()
816 dbptr[DB_RES_DROP].drop = 1; in xgene_enet_cle_init()
825 ptree->dbptr = dbptr; in xgene_enet_cle_init()