Lines Matching defs:tlabel

31  *   These routines track the tlabel usage for a 1394 adapter.
46 * Initialize the tlabel structures. These structures will be protected
49 * for the rest of the tlabel functions.
61 /* alloc space for tlabel data */
68 * Initialize tlabel structure. We start with max node set to the
83 * used in normal tlabel processing (i.e. not just during
121 * alloc a tlabel based on the node id. If alloc fails, we are out of
123 * bad tlabel's are free to be used again.
167 * If there are any bad tlabels, see if the last bad tlabel recorded for
189 * Find a free tlabel. This will break out of the loop once it finds a
190 * tlabel. There are a total of TLABEL_RANGE tlabels. The alloc
191 * rotates the check so that we don't always use the same tlabel. It
192 * stores the last tlabel used in last.
196 /* if the next tlabel to check is free */
198 /* we are using this tlabel */
211 * next tlabel next alloc(). Note the rollover at
225 /* unlock the tlabel structure */
234 * This tlabel is not free, lets go to the next one. Note the
262 * free the previously alloc()'d tlabel. Once a tlabel has been free'd, it
270 uint_t tlabel;
278 /* figure out what node and tlabel we are using */
280 tlabel = tlabel_info->tbi_tlabel;
289 * Put the tlabel back in the free list and NULL out the (void *) in the
294 tlabel_handle->tb_lookup[node_number][tlabel] = NULL;
295 tlabel_handle->tb_free[node_number] |= ((uint64_t)1 << tlabel);
305 * Register an opaque command with an alloc()'d tlabel. Each nodeID has it's
306 * own tlabel list.
313 uint_t tlabel;
322 /* figure out what node and tlabel we are using */
324 tlabel = tlabel_info->tbi_tlabel;
329 tlabel_handle->tb_lookup[node_number][tlabel] = cmd;
341 * specified tlabel from alloc(). If a tlabel was not registered, cmd ='s
349 uint_t tlabel;
359 /* figure out what node and tlabel we are using */
361 tlabel = tlabel_info->tbi_tlabel;
369 *cmd = tlabel_handle->tb_lookup[node_number][tlabel];
384 * Register the specified tlabel as bad. tlabel_lookup() will no longer
385 * return a registered opaque command and this tlabel will not be returned
394 uint_t tlabel;
401 /* figure out what node and tlabel we are using */
403 tlabel = tlabel_info->tbi_tlabel & TLABEL_MASK;
411 * Put the tlabel in the bad list and NULL out the (void *) in the
412 * lookup structure. We may see this tlabel shortly if the device is
420 tlabel_handle->tb_bad[node_number] |= ((uint64_t)1 << tlabel);
421 tlabel_handle->tb_lookup[node_number][tlabel] = NULL;
431 * resets the tlabel tracking structures to an initial state where no
466 * Mark all tlabels as free. No bad tlabels. Start the first tlabel
499 * if ((current time + reclaim time) >= last bad tlabel time)
511 * We do not need to lock the tlabel structure in this because we are