Lines Matching refs:dba
40 dba_db1_data *dba; in DBA_OPEN_FUNC() local
70 dba = pemalloc(sizeof(*dba), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
71 dba->dbp = db; in DBA_OPEN_FUNC()
73 info->dbf = dba; in DBA_OPEN_FUNC()
80 dba_db1_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
81 dba->dbp->close(dba->dbp); in DBA_CLOSE_FUNC()
87 dba_db1_data *dba = info->dbf; in DBA_FETCH_FUNC() local
95 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
103 dba_db1_data *dba = info->dbf; in DBA_UPDATE_FUNC() local
113 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
118 dba_db1_data *dba = info->dbf; in DBA_EXISTS_FUNC() local
125 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
130 dba_db1_data *dba = info->dbf; in DBA_DELETE_FUNC() local
136 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
141 dba_db1_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
148 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
156 dba_db1_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
163 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()