Home
last modified time | relevance | path

Searched refs:krec (Results 1 – 6 of 6) sorted by relevance

/external/libdrm/nouveau/
Dpushbuf.c56 struct nouveau_pushbuf_krec *krec; member
83 struct nouveau_pushbuf_krec *krec = nvpb->krec; in pushbuf_kref_fits() local
94 if (krec->vram_used + bo->size > dev->vram_limit) in pushbuf_kref_fits()
96 krec->vram_used += bo->size; in pushbuf_kref_fits()
104 if (krec->gart_used + bo->size <= dev->gart_limit) { in pushbuf_kref_fits()
105 krec->gart_used += bo->size; in pushbuf_kref_fits()
113 krec->vram_used + bo->size <= dev->vram_limit) { in pushbuf_kref_fits()
115 krec->vram_used += bo->size; in pushbuf_kref_fits()
123 kref = krec->buffer; in pushbuf_kref_fits()
124 for (i = 0; i < krec->nr_buffer; i++, kref++) { in pushbuf_kref_fits()
[all …]
/external/python/cpython2/Modules/
Dbsddbmodule.c248 DBT krec, drec; in bsddb_length() local
253 &krec, &drec,R_FIRST); in bsddb_length()
256 &krec, &drec, R_NEXT)) in bsddb_length()
272 DBT krec, drec; in bsddb_subscript() local
285 krec.data = &recno; in bsddb_subscript()
286 krec.size = sizeof(recno); in bsddb_subscript()
294 krec.data = data; in bsddb_subscript()
295 krec.size = size; in bsddb_subscript()
300 status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); in bsddb_subscript()
325 DBT krec, drec; in bsddb_ass_sub() local
[all …]
Ddbmmodule.c99 datum drec, krec; in dbm_subscript() local
102 if (!PyArg_Parse(key, "s#", &krec.dptr, &tmp_size) ) in dbm_subscript()
105 krec.dsize = tmp_size; in dbm_subscript()
107 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
124 datum krec, drec; in dbm_ass_sub() local
127 if ( !PyArg_Parse(v, "s#", &krec.dptr, &tmp_size) ) { in dbm_ass_sub()
132 krec.dsize = tmp_size; in dbm_ass_sub()
139 if ( dbm_delete(dp->di_dbm, krec) < 0 ) { in dbm_ass_sub()
152 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()
Dgdbmmodule.c118 datum drec, krec; in dbm_subscript() local
120 if (!PyArg_Parse(key, "s#", &krec.dptr, &krec.dsize) ) in dbm_subscript()
128 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
142 datum krec, drec; in dbm_ass_sub() local
144 if (!PyArg_Parse(v, "s#", &krec.dptr, &krec.dsize) ) { in dbm_ass_sub()
156 if (gdbm_delete(dp->di_dbm, krec) < 0) { in dbm_ass_sub()
169 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in dbm_ass_sub()
/external/python/cpython3/Modules/
D_dbmmodule.c105 datum drec, krec; in dbm_subscript() local
108 if (!PyArg_Parse(key, "s#", &krec.dptr, &tmp_size) ) in dbm_subscript()
111 krec.dsize = tmp_size; in dbm_subscript()
113 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
129 datum krec, drec; in dbm_ass_sub() local
132 if ( !PyArg_Parse(v, "s#", &krec.dptr, &tmp_size) ) { in dbm_ass_sub()
137 krec.dsize = tmp_size; in dbm_ass_sub()
144 if ( dbm_delete(dp->di_dbm, krec) < 0 ) { in dbm_ass_sub()
156 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()
D_gdbmmodule.c126 datum drec, krec; in dbm_subscript() local
128 if (!PyArg_Parse(key, "s#", &krec.dptr, &krec.dsize) ) in dbm_subscript()
136 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
174 datum krec, drec; in dbm_ass_sub() local
176 if (!PyArg_Parse(v, "s#", &krec.dptr, &krec.dsize) ) { in dbm_ass_sub()
188 if (gdbm_delete(dp->di_dbm, krec) < 0) { in dbm_ass_sub()
200 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in dbm_ass_sub()