Lines Matching defs:lsp

108  * entry's contents (buf) and its linked-list representation (listp). lsp
114 * contain only the property information in lsp.
118 process_prop_set(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
126 if (lsp->ls_propname == NULL) {
135 if (strcmp(lip->li_name, lsp->ls_propname) == 0)
155 nlip->li_name = lsp->ls_propname;
176 for (i = 0; i < *lsp->ls_valcntp; i++) {
181 (*lvpp)->lv_name = lsp->ls_propval[i];
187 generate_prop_line(lsp->ls_name, buf, listp, statusp);
189 generate_prop_line(lsp->ls_name, buf, nlip, statusp);
207 * associated values are copied to the array lsp->ls_propval.
211 process_prop_get(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
222 if (strcmp(lip->li_name, lsp->ls_propname) == 0)
231 (void) strncpy(lsp->ls_propval[valcnt], lvp->lv_name,
234 if (++valcnt >= *lsp->ls_valcntp && lvp->lv_nextval != NULL) {
245 *lsp->ls_valcntp = valcnt;
252 * database. lsp->ls_name is not user-specified but instead is set to
257 process_prop_init(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
284 status = (*lsp->ls_initop)(handle, lsp->ls_name, lip->li_name,
393 process_prop_line(dladm_handle_t handle, prop_db_state_t *lsp, char *buf,
413 if (lsp->ls_name != NULL) {
421 llen = strlen(lsp->ls_name);
422 if (strncmp(str, lsp->ls_name, llen) != 0 ||
428 * and assign it to lsp->ls_name.
434 lsp->ls_name = str;
450 cont = (*lsp->ls_op)(handle, lsp, buf, lip, statusp);
453 lsp->ls_name = NULL;
459 lsp->ls_name = NULL;
471 prop_db_state_t *lsp = arg;
487 cont = process_prop_line(handle, lsp, buf, &status);
498 if (lsp->ls_op == process_prop_set) {
503 (void) (*lsp->ls_op)(handle, lsp, buf, NULL, &status);
508 if (lsp->ls_op == process_prop_get)