Lines Matching refs:pattr

338 i_dladm_part_create(dladm_handle_t handle, dladm_part_attr_t *pattr)  in i_dladm_part_create()  argument
345 ioc.ibdioc.ioc_linkid = pattr->dia_physlinkid; in i_dladm_part_create()
347 ioc.ioc_partid = pattr->dia_partlinkid; in i_dladm_part_create()
348 ioc.ioc_pkey = pattr->dia_pkey; in i_dladm_part_create()
349 ioc.ibdioc.ioc_port_inst = pattr->dia_instance; in i_dladm_part_create()
350 ioc.ioc_force_create = ((pattr->dia_flags & DLADM_OPT_FORCE) in i_dladm_part_create()
362 dladm_part_attr_t *pattr) in dladm_part_persist_conf() argument
370 status = dladm_create_conf(handle, pname, pattr->dia_partlinkid, in dladm_part_persist_conf()
379 status = dladm_datalink_id2info(handle, pattr->dia_physlinkid, in dladm_part_persist_conf()
390 u64 = pattr->dia_pkey; in dladm_part_persist_conf()
398 if (pattr->dia_flags & DLADM_OPT_FORCE) { in dladm_part_persist_conf()
436 dladm_part_attr_t pattr; in dladm_part_create() local
438 pattr.dia_pkey = pkey; in dladm_part_create()
439 pattr.dia_physlinkid = physlinkid; /* IB Phys link's datalink id */ in dladm_part_create()
440 pattr.dia_flags = flags; in dladm_part_create()
448 if (pattr.dia_pkey <= IB_PKEY_INVALID_FULL) in dladm_part_create()
455 if ((status = dladm_datalink_id2info(handle, pattr.dia_physlinkid, NULL, in dladm_part_create()
467 if ((status = dladm_phys_info(handle, pattr.dia_physlinkid, &dpa, in dladm_part_create()
471 if (dladm_parselink(dpa.dp_dev, NULL, (uint_t *)&pattr.dia_instance) != in dladm_part_create()
477 DATALINK_CLASS_PART, DL_IB, flags, &pattr.dia_partlinkid)) != in dladm_part_create()
484 status = i_dladm_part_create(handle, &pattr); in dladm_part_create()
494 if (pattr.dia_flags & DLADM_OPT_PERSIST) { in dladm_part_create()
495 status = dladm_part_persist_conf(handle, pname, &pattr); in dladm_part_create()
510 pattr.dia_partlinkid, aip->ai_name, aip->ai_val, in dladm_part_create()
511 aip->ai_count, pattr.dia_flags); in dladm_part_create()
519 (void) dladm_remove_conf(handle, pattr.dia_partlinkid); in dladm_part_create()
522 pattr.dia_partlinkid); in dladm_part_create()
523 (void) dladm_destroy_datalink_id(handle, pattr.dia_partlinkid, in dladm_part_create()
528 *partlinkid = pattr.dia_partlinkid; in dladm_part_create()
620 dladm_part_attr_t pattr; in i_dladm_part_up() local
670 pattr.dia_flags = DLADM_OPT_FORCE | DLADM_OPT_ACTIVE | in i_dladm_part_up()
673 pattr.dia_physlinkid = linkid; in i_dladm_part_up()
675 pattr.dia_partlinkid = plinkid; in i_dladm_part_up()
676 pattr.dia_pkey = pkey; in i_dladm_part_up()
677 if (dladm_parselink(dpa.dp_dev, NULL, (uint_t *)&pattr.dia_instance) != in i_dladm_part_up()
682 if (i_dladm_part_create(handle, &pattr) == DLADM_STATUS_OK && in i_dladm_part_up()