Lines Matching refs:proto
314 struct di_devlink_handle *hdp, proto = {0};
407 proto.dev_dir = dev_dir;
408 proto.db_dir = db_dir;
409 proto.flags = flags;
410 proto.lock_fd = -1;
417 if (HDL_RDWR(&proto)) {
418 if (enter_db_lock(&proto, root_dir) != 1) {
423 DB(&proto)->db_fd = -1;
430 *hdp = proto;
434 * in the dev_dir field (obtained from the proto handle).
439 if ((hdp->dev_dir = strdup(proto.dev_dir)) == NULL) {
444 if ((hdp->db_dir = strdup(proto.db_dir)) == NULL) {
453 if (HDL_RDWR(&proto)) {
455 get_db_path(&proto, DB_FILE, path, sizeof (path));
457 exit_db_lock(&proto);