Lines Matching defs:prop
1467 const struct nvmf_prop *prop = &nvmf_props[i];
1469 if ((ofst >= prop->ofst) && (ofst + size <= prop->ofst + prop->size)) {
1470 return prop;
1483 const struct nvmf_prop *prop;
1506 prop = find_prop(cmd->ofst, size);
1507 if (prop == NULL || prop->get_cb == NULL) {
1513 SPDK_DEBUGLOG(nvmf, "name: %s\n", prop->name);
1515 response->value.u64 = prop->get_cb(ctrlr);
1517 if (size != prop->size) {
1518 /* The size must be 4 and the prop->size is 8. Figure out which part of the property to read. */
1520 assert(prop->size == 8);
1522 if (cmd->ofst == prop->ofst) {
1542 const struct nvmf_prop *prop;
1564 prop = find_prop(cmd->ofst, size);
1565 if (prop == NULL || prop->set_cb == NULL) {
1572 SPDK_DEBUGLOG(nvmf, "name: %s\n", prop->name);
1576 if (prop->size == 4) {
1577 ret = prop->set_cb(ctrlr, (uint32_t)value);
1578 } else if (size != prop->size) {
1579 /* The size must be 4 and the prop->size is 8. Figure out which part of the property to write. */
1581 assert(prop->size == 8);
1583 if (cmd->ofst == prop->ofst) {
1584 ret = prop->set_cb(ctrlr, (uint32_t)value);
1586 ret = prop->set_upper_cb(ctrlr, (uint32_t)value);
1589 ret = prop->set_cb(ctrlr, (uint32_t)value);
1591 ret = prop->set_upper_cb(ctrlr, (uint32_t)(value >> 32));
1596 SPDK_ERRLOG("prop set_cb failed\n");