Lines Matching refs:dba
36 #define DB1_DATA dba_db1_data *dba = info->dbf
45 dba_db1_data *dba; in DBA_OPEN_FUNC() local
79 dba = pemalloc(sizeof(*dba), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
80 dba->dbp = db; in DBA_OPEN_FUNC()
82 info->dbf = dba; in DBA_OPEN_FUNC()
90 dba->dbp->close(dba->dbp); in DBA_CLOSE_FUNC()
101 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
117 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
126 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
134 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
146 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
162 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()