Lines Matching refs:lc

347 	lookup_ctrl_t lc;  in qry_e2g()  local
350 SET_UID_LCP(&lc, OBJ_PG, 0); in qry_e2g()
354 lc.data[0].ui = uid; in qry_e2g()
355 puid = (uint32_t)cache_lookup(&lc, NULL, in qry_e2g()
377 lookup_ctrl_t lc; in qry_i2g() local
387 lc.curr_uid = uid; in qry_i2g()
388 lc.type = OBJ_PG; in qry_i2g()
389 lc.id[0] = ATTR_INDEX_PG(ISNS_PG_ISCSI_NAME_ATTR_ID); in qry_i2g()
390 lc.op[0] = OP_STRING; in qry_i2g()
391 lc.data[0].ptr = lcp->data[1].ptr; in qry_i2g()
392 lc.op[1] = 0; in qry_i2g()
394 uid = is_obj_there(&lc); in qry_i2g()
441 lookup_ctrl_t lc; in qry_p2g() local
453 lc.curr_uid = uid; in qry_p2g()
454 lc.type = OBJ_PG; in qry_p2g()
455 lc.id[0] = ATTR_INDEX_PG(ISNS_PG_PORTAL_IP_ADDR_ATTR_ID); in qry_p2g()
456 lc.op[0] = OP_MEMORY_IP6; in qry_p2g()
457 lc.data[0].ip = lcp->data[1].ip; in qry_p2g()
458 lc.id[1] = ATTR_INDEX_PG(ISNS_PG_PORTAL_PORT_ATTR_ID); in qry_p2g()
459 lc.op[1] = OP_INTEGER; in qry_p2g()
460 lc.data[1].ui = lcp->data[2].ui; in qry_p2g()
461 lc.op[2] = 0; in qry_p2g()
463 uid = is_obj_there(&lc); in qry_p2g()
496 lookup_ctrl_t lc; in qry_g2i() local
506 lc.curr_uid = uid; in qry_g2i()
507 lc.type = OBJ_ISCSI; in qry_g2i()
508 lc.id[0] = ATTR_INDEX_ISCSI(ISNS_ISCSI_NAME_ATTR_ID); in qry_g2i()
509 lc.op[0] = OP_STRING; in qry_g2i()
510 lc.data[0].ptr = lcp->data[1].ptr; in qry_g2i()
511 lc.op[1] = 0; in qry_g2i()
513 uid = is_obj_there(&lc); in qry_g2i()
540 lookup_ctrl_t lc; in qry_g2p() local
551 lc.curr_uid = uid; in qry_g2p()
552 lc.type = OBJ_PORTAL; in qry_g2p()
553 lc.id[0] = ATTR_INDEX_PORTAL( in qry_g2p()
555 lc.op[0] = OP_MEMORY_IP6; in qry_g2p()
556 lc.data[0].ip = lcp->data[1].ip; in qry_g2p()
557 lc.id[1] = ATTR_INDEX_PORTAL( in qry_g2p()
559 lc.op[1] = OP_INTEGER; in qry_g2p()
560 lc.data[1].ui = lcp->data[2].ui; in qry_g2p()
561 lc.op[2] = 0; in qry_g2p()
563 uid = is_obj_there(&lc); in qry_g2p()
698 lookup_ctrl_t lc; in cb_attrs_match() local
703 lc.op[1] = 0; in cb_attrs_match()
707 lc.id[0] = i; in cb_attrs_match()
708 lc.op[0] = get_op_method(attrs->tag); in cb_attrs_match()
709 lc.data[0].ptr = attrs->value.ptr; in cb_attrs_match()
710 match = key_cmp(&lc, obj) == 0 ? 1 : 0; in cb_attrs_match()
726 lookup_ctrl_t lc; in attrs_match() local
728 SET_UID_LCP(&lc, type, uid); in attrs_match()
730 lc.data[1].ptr = (uchar_t *)attrs; in attrs_match()
732 match = cache_lookup(&lc, NULL, cb_attrs_match); in attrs_match()
801 lookup_ctrl_t lc = { 0 }; /* !!! need to be empty */ in qry_and_match() local
841 lc.type = t; in qry_and_match()
842 lc.id[0] = UID_ATTR_INDEX[t]; in qry_and_match()
843 lc.op[0] = OP_INTEGER; in qry_and_match()
850 lc.data[0].ui = uid; in qry_and_match()
851 ec = vex->f(&lc); in qry_and_match()
852 uid = lc.curr_uid; in qry_and_match()
859 ec = vex->f(&lc); in qry_and_match()
860 uid = lc.curr_uid; in qry_and_match()
1036 lookup_ctrl_t lc; in get_next_obj() local
1046 lc.curr_uid = 0; in get_next_obj()
1047 lc.type = type; in get_next_obj()
1048 lc.op[1] = 0; in get_next_obj()
1049 lc.op[2] = 0; in get_next_obj()
1056 lc.id[0] = ATTR_INDEX_ENTITY(ISNS_EID_ATTR_ID); in get_next_obj()
1057 lc.op[0] = OP_STRING; in get_next_obj()
1058 lc.data[0].ptr = (uchar_t *)value; in get_next_obj()
1061 lc.id[0] = ATTR_INDEX_ISCSI(ISNS_ISCSI_NAME_ATTR_ID); in get_next_obj()
1062 lc.op[0] = OP_STRING; in get_next_obj()
1063 lc.data[0].ptr = (uchar_t *)value; in get_next_obj()
1066 lc.id[0] = ATTR_INDEX_ISCSI( in get_next_obj()
1068 lc.op[0] = OP_INTEGER; in get_next_obj()
1069 lc.data[0].ui = ntohl(*(uint32_t *)value); in get_next_obj()
1072 lc.id[0] = ATTR_INDEX_PORTAL( in get_next_obj()
1074 lc.op[0] = OP_MEMORY_IP6; in get_next_obj()
1075 lc.data[0].ip = (in6_addr_t *)value; in get_next_obj()
1081 lc.id[1] = ATTR_INDEX_PORTAL( in get_next_obj()
1083 lc.op[1] = OP_INTEGER; in get_next_obj()
1084 lc.data[1].ui = ntohl(*(uint32_t *)value); in get_next_obj()
1090 lc.id[0] = ATTR_INDEX_PORTAL(ISNS_PORTAL_INDEX_ATTR_ID); in get_next_obj()
1091 lc.op[0] = OP_INTEGER; in get_next_obj()
1092 lc.data[0].ui = ntohl(*(uint32_t *)value); in get_next_obj()
1095 lc.id[0] = ATTR_INDEX_PG(ISNS_PG_INDEX_ATTR_ID); in get_next_obj()
1096 lc.op[0] = OP_INTEGER; in get_next_obj()
1097 lc.data[0].ui = ntohl(*(uint32_t *)value); in get_next_obj()
1103 old = is_obj_there(&lc); in get_next_obj()
1189 lookup_ctrl_t lc; in get_qry_attrs() local
1191 SET_UID_LCP(&lc, type, uid); in get_qry_attrs()
1193 lc.id[1] = tlv_len; in get_qry_attrs()
1194 lc.data[1].ptr = (uchar_t *)tlv; in get_qry_attrs()
1195 lc.data[2].ptr = (uchar_t *)conn; in get_qry_attrs()
1197 ec = cache_lookup(&lc, NULL, cb_qry_rsp); in get_qry_attrs()