Lines Matching refs:item
5989 * with item 'item'.
5995 ddi_soft_state_zalloc(void *state, int item)
6001 if ((state == NULL) || (item < 0))
6018 if (item < ss->n_items && array[item] != NULL) {
6031 if (item >= ss->n_items) {
6054 while (new_n_items < (1 + item))
6057 ASSERT(new_n_items >= (1 + item)); /* sanity check! */
6079 ASSERT(array != NULL && item < ss->n_items && array[item] == NULL);
6081 array[item] = new_element;
6107 ddi_get_soft_state(void *state, int item)
6111 ASSERT((ss != NULL) && (item >= 0));
6113 if (item < ss->n_items && ss->array != NULL)
6114 return (ss->array[item]);
6119 * Free the state structure corresponding to 'item.' Freeing an
6125 * Passing an item number that is out of bounds, or a null pointer will
6129 ddi_soft_state_free(void *state, int item)
6149 } else if (item < 0 || item >= ss->n_items) {
6150 cmn_err(CE_WARN, "%s item %d not in range [0..%lu]: %s",
6151 msg, item, ss->n_items - 1, mod_containing_pc(caller()));
6152 } else if (array[item] != NULL) {
6153 element = array[item];
6154 array[item] = NULL;
6180 int item;
6197 for (item = 0; item < ss->n_items; item++)
6198 ddi_soft_state_free(ss, item);