Lines Matching defs:host

24  * Number of host interrupts reaching the main MPU sub-system. Note that this
25 * is not the same as the total number of host interrupts supported by the PRUSS
30 /* minimum starting host interrupt number for MPU */
75 * @value: The currently mapped value (channel or host)
86 * @num_host_events: number of host events (which is equal to number of
97 * @channel_host: current state of channel to host mappings
98 * @irqs: kernel irq numbers corresponding to PRUSS host interrupts
117 * struct pruss_host_irq_data - PRUSS host irq data structure
119 * @host_irq: host irq number
154 static void pruss_intc_update_hmr(struct pruss_intc *intc, u8 ch, u8 host)
163 val |= host << offset;
166 dev_dbg(intc->dev, "CH%d -> HOST%d (HMR%d 0x%08x)\n", ch, host, idx,
181 u8 ch, host, reg_idx;
189 host = intc->channel_host[ch].value;
201 pruss_intc_update_hmr(intc, ch, host);
203 /* enable host interrupts */
204 pruss_intc_write_reg(intc, PRU_INTC_HIEISR, host);
207 dev_dbg(dev, "mapped system_event = %lu channel = %d host = %d",
208 hwirq, ch, host);
224 u8 ch, host, reg_idx;
230 host = intc->channel_host[ch].value;
233 /* disable host interrupts */
234 pruss_intc_write_reg(intc, PRU_INTC_HIDISR, host);
252 dev_dbg(intc->dev, "unmapped system_event = %lu channel = %d host = %d\n",
253 hwirq, ch, host);
282 /* clear all host interrupt map registers, 4 channels per register */
376 int channel, int host)
394 intc->channel_host[channel].value != host) {
395 dev_err(dev, "channel %d (req. host %d) already assigned to host %d\n",
396 channel, host, intc->channel_host[channel].value);
402 intc->channel_host[channel].value = host;
416 int ret, sys_event, channel, host;
433 host = intspec[2];
434 if (host < 0 || host >= intc->soc_config->num_host_events) {
435 dev_err(dev, "%d is not valid host irq number\n", host);
440 ret = pruss_intc_validate_mapping(intc, sys_event, channel, host);