Lines Matching +defs:val +defs:channel

249 	ddi_acc_handle_t	ch_handle;  /* per channel access handle */
251 unsigned int map_count; /* Number of mappings to channel */
252 boolean_t map_dog; /* channel is mapped for watchdog */
316 * Flag to indicate that we are using per channel
327 * channel state data, protected by ch_mutex
328 * channel claim/release requests are protected by this mutex.
331 struct bscbus_channel_state channel[BSCBUS_MAX_CHANNELS];
458 bscbus_put_reg(struct bscbus_channel_state *csp, uint_t reg, uint8_t val)
462 csp->ch_regs + reg, val);
469 uint8_t val;
472 val = ddi_get8(csp->ch_handle,
475 val = DUMMY_VALUE;
477 return (val);
499 bscbus_pat_dog(struct bscbus_channel_state *csp, uint8_t val)
506 bscbus_cmd_log(csp, BSC_CMD_DOGPAT, 0, val);
517 bscbus_put_reg(csp, H8_IDRC, val);
527 bscbus_put_reg(csp, H8_IDRC, val);
535 bscbus_put_reg(csp, H8_IDRC, val);
621 "state %d; val $%x",
884 "interrupt fault cleared channel %d", csp->chno);
926 bscbus_cmd(HANDLE_TYPE *hdlp, ptrdiff_t vreg, uint_t val, uint_t cmd)
958 *csp->cmdp++ = val & 0x7f;
959 if (val >= 0x80)
1026 "interrupt_failed channel %d", csp->chno);
1038 val = csp->result;
1040 val = DUMMY_VALUE;
1062 return (val);
1094 bscbus_vreg_put8(HANDLE_TYPE *hdlp, uint8_t *addr, uint8_t val)
1114 (void) bscbus_cmd(hdlp, ADDR_TO_VREG(addr), val, BSCBUS_CMD_WRITE);
1177 bscbus_pat_put8(HANDLE_TYPE *hdlp, uint8_t *addr, uint8_t val)
1197 bscbus_pat_dog(csp, val);
1256 bscbus_event_put16(HANDLE_TYPE *hdlp, uint16_t *addr, uint16_t val)
1260 _NOTE(ARGUNUSED(val))
1362 bscbus_meta_put32(HANDLE_TYPE *hdlp, uint32_t *addr, uint32_t val)
1379 HANDLE_FAULT(hdlp) = val;
1442 bscbus_no_put8(HANDLE_TYPE *hdlp, uint8_t *addr, uint8_t val)
1444 _NOTE(ARGUNUSED(addr, val))
1489 bscbus_no_put16(HANDLE_TYPE *hdlp, uint16_t *addr, uint16_t val)
1491 _NOTE(ARGUNUSED(addr, val))
1536 bscbus_no_put64(HANDLE_TYPE *hdlp, uint64_t *addr, uint64_t val)
1538 _NOTE(ARGUNUSED(addr, val))
1596 "resetting channel %d", csp->chno);
1619 "clearing busy status for channel %d", csp->chno);
1647 * channel should be idle so it is safe.
1708 * We map the regs later on a per channel basis.
1724 "claim channel for channel %d, count %d",
1728 /* No-one is using this channel - initialise it */
1730 "initialise channel %d, count %d",
1741 /* Map appropriate register set for this channel */
1789 * this channel. If we fail to setup interrupts we
1801 "bscbus channel %d", csp->chno);
1808 "level - channel not usable.");
1834 * The channel is now live and may
1847 /* unmap regs for failed channel */
1864 /* No-one is now using this channel - shutdown channel */
1866 "shutdown channel %d, count %d",
1887 "release channel %d, count %d",
2172 &ssp->channel[LOMBUS_SPACE_TO_CHANNEL(rsp->lombus_space)],
2342 ASSERT(ssp->channel[chno].map_count == 0);
2422 struct bscbus_channel_state *csp = &ssp->channel[chno];
2476 bscbus_hw_reset(&ssp->channel[chno]);