Lines Matching defs:index

2207 	 * check if led index is -1, if so set it to max value for
2210 if (led_state.index == -1) {
2211 led_state.index = MAX_LED_ID;
2214 /* is the index in a valid range */
2215 if ((led_state.index > MAX_LED_ID) || (led_state.index < 0)) {
2220 EBUS_IDX_LED1_STATUS + led_state.index, &res);
2251 ssp->led_names[led_state.index]);
2899 "loop index %d ssp->cssp_prog 0x%x", i, ssp->cssp_prog);
4035 bscv_get_label(char labels[][MAX_LOM2_NAME_STR], int limit, int index)
4041 if (limit < 0 || index < 0 || index > limit)
4044 return (labels[index]);
4302 "index 0x%x size 0x%x", prog->index, prog->size);
4306 if (prog->index == 2) {
4320 } else if (prog->index == 0) {
4322 } else if (prog->index == 1) {
4554 bscv_do_page_data_once(bscv_soft_state_t *ssp, uint32_t index,
4565 BSCV_TRACE(ssp, 'P', "bscv_do_page_data_once", "index 0x%x", index);
4568 if (index + pagesize < image_size) {
4569 bscv_rep_rw8(ssp, chan_prog, imagep + index,
4577 size = (image_size - index);
4578 bscv_rep_rw8(ssp, chan_prog, imagep + index,
4594 *(imagep + index + i);
4615 uint32_t index, uint32_t image_size, uint32_t pagesize, uint8_t *imagep,
4622 BSCV_TRACE(ssp, 'P', "bscv_do_page", "index 0x%x", index);
4631 retval = bscv_set_page(ssp, loadaddr + index);
4635 retval, loadaddr + index,
4646 retval = bscv_do_page_data_once(ssp, index, image_size,
4652 " attempt %d, index 0x%x, checksum 0x%x, %s image",
4654 index, checksum, is_image2 ? "main" : "loader");
4657 BSCV_TRACE(ssp, 'U', "bscv_do_page", "Returning 0x%x for index 0x%x,"
4658 " checksum 0x%x, %s image", retval, index, checksum,
4669 uint32_t index;
4673 for (index = 0; index < image_size; index += pagesize) {
4674 retval = bscv_do_page(ssp, loadaddr, index, image_size,
4794 if ((prog->index & 0x7FFF) != ssp->prog_index) {
4797 prog->index & 0x7fff, ssp->prog_index);
4806 if ((prog->index & 0x7fff) == 0) {
4822 if (prog->index & 0x8000) {