/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmutil/ |
H A D | d11.c | 41 static void brcmu_d11n_encchspec(struct brcmu_chan *ch) in brcmu_d11n_encchspec() argument 43 if (ch->bw == BRCMU_CHAN_BW_20) in brcmu_d11n_encchspec() 44 ch->sb = BRCMU_CHAN_SB_NONE; in brcmu_d11n_encchspec() 46 ch->chspec = 0; in brcmu_d11n_encchspec() 47 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_CH_MASK, in brcmu_d11n_encchspec() 48 BRCMU_CHSPEC_CH_SHIFT, ch->chnum); in brcmu_d11n_encchspec() 49 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_SB_MASK, in brcmu_d11n_encchspec() 50 0, d11n_sb(ch->sb)); in brcmu_d11n_encchspec() 51 brcmu_maskset16(&ch->chspec, BRCMU_CHSPEC_D11N_BW_MASK, in brcmu_d11n_encchspec() 52 0, d11n_bw(ch->bw)); in brcmu_d11n_encchspec() [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | mISDNisar.c | 68 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { in send_mbox() 97 if (isar->ch[0].bch.debug & DEBUG_HW_BFIFO) { in rcv_mbox() 174 u32 saved_debug = isar->ch[0].bch.debug; in load_firmware() 193 isar->ch[0].bch.debug &= ~DEBUG_HW_BFIFO; in load_firmware() 280 isar->ch[0].bch.debug = saved_debug; in load_firmware() 392 isar->ch[0].bch.debug = saved_debug; in load_firmware() 401 deliver_status(struct isar_ch *ch, int status) in deliver_status() argument 403 pr_debug("%s: HL->LL FAXIND %x\n", ch->is->name, status); in deliver_status() 404 _queue_data(&ch->bch.ch, PH_CONTROL_IND, status, 0, NULL, GFP_ATOMIC); in deliver_status() 408 isar_rcv_frame(struct isar_ch *ch) in isar_rcv_frame() argument [all …]
|
/openbmc/linux/drivers/tty/serial/jsm/ |
H A D | jsm_cls.c | 52 static void cls_set_cts_flow_control(struct jsm_channel *ch) in cls_set_cts_flow_control() argument 54 u8 lcrb = readb(&ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 55 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_cts_flow_control() 62 writeb(UART_EXAR654_ENHANCED_REGISTER_SET, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 64 isr_fcr = readb(&ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control() 70 writeb(isr_fcr, &ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control() 73 writeb(lcrb, &ch->ch_cls_uart->lcr); in cls_set_cts_flow_control() 81 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_cts_flow_control() 84 writeb((UART_FCR_ENABLE_FIFO), &ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control() 88 &ch->ch_cls_uart->isr_fcr); in cls_set_cts_flow_control() [all …]
|
H A D | jsm_neo.c | 35 static void neo_set_cts_flow_control(struct jsm_channel *ch) in neo_set_cts_flow_control() argument 38 ier = readb(&ch->ch_neo_uart->ier); in neo_set_cts_flow_control() 39 efr = readb(&ch->ch_neo_uart->efr); in neo_set_cts_flow_control() 41 jsm_dbg(PARAM, &ch->ch_bd->pci_dev, "Setting CTSFLOW\n"); in neo_set_cts_flow_control() 51 writeb(0, &ch->ch_neo_uart->efr); in neo_set_cts_flow_control() 54 writeb(efr, &ch->ch_neo_uart->efr); in neo_set_cts_flow_control() 57 writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), &ch->ch_neo_uart->fctr); in neo_set_cts_flow_control() 60 writeb(8, &ch->ch_neo_uart->tfifo); in neo_set_cts_flow_control() 61 ch->ch_t_tlevel = 8; in neo_set_cts_flow_control() 63 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_cts_flow_control() [all …]
|
/openbmc/linux/drivers/misc/sgi-xp/ |
H A D | xpc_channel.c | 27 xpc_process_connect(struct xpc_channel *ch, unsigned long *irq_flags) in xpc_process_connect() argument 31 lockdep_assert_held(&ch->lock); in xpc_process_connect() 33 if (!(ch->flags & XPC_C_OPENREQUEST) || in xpc_process_connect() 34 !(ch->flags & XPC_C_ROPENREQUEST)) { in xpc_process_connect() 38 DBUG_ON(!(ch->flags & XPC_C_CONNECTING)); in xpc_process_connect() 40 if (!(ch->flags & XPC_C_SETUP)) { in xpc_process_connect() 41 spin_unlock_irqrestore(&ch->lock, *irq_flags); in xpc_process_connect() 42 ret = xpc_arch_ops.setup_msg_structures(ch); in xpc_process_connect() 43 spin_lock_irqsave(&ch->lock, *irq_flags); in xpc_process_connect() 46 XPC_DISCONNECT_CHANNEL(ch, ret, irq_flags); in xpc_process_connect() [all …]
|
/openbmc/qemu/hw/misc/macio/ |
H A D | mac_dbdma.c | 59 #define DBDMA_DPRINTFCH(ch, fmt, ...) do { \ argument 61 if ((1ul << (ch)->channel) & DEBUG_DBDMA_CHANMASK) { \ 62 printf("DBDMA[%02x]: " fmt , (ch)->channel, ## __VA_ARGS__); \ 70 static DBDMAState *dbdma_from_ch(DBDMA_channel *ch) in dbdma_from_ch() argument 72 return container_of(ch, DBDMAState, channels[ch->channel]); in dbdma_from_ch() 76 static void dump_dbdma_cmd(DBDMA_channel *ch, dbdma_cmd *cmd) in dump_dbdma_cmd() argument 78 DBDMA_DPRINTFCH(ch, "dbdma_cmd %p\n", cmd); in dump_dbdma_cmd() 79 DBDMA_DPRINTFCH(ch, " req_count 0x%04x\n", le16_to_cpu(cmd->req_count)); in dump_dbdma_cmd() 80 DBDMA_DPRINTFCH(ch, " command 0x%04x\n", le16_to_cpu(cmd->command)); in dump_dbdma_cmd() 81 DBDMA_DPRINTFCH(ch, " phy_addr 0x%08x\n", le32_to_cpu(cmd->phy_addr)); in dump_dbdma_cmd() [all …]
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-dpr.c | 118 struct dcss_dpr_ch ch[3]; member 121 static void dcss_dpr_write(struct dcss_dpr_ch *ch, u32 val, u32 ofs) in dcss_dpr_write() argument 123 struct dcss_dpr *dpr = ch->dpr; in dcss_dpr_write() 125 dcss_ctxld_write(dpr->ctxld, dpr->ctx_id, val, ch->base_ofs + ofs); in dcss_dpr_write() 130 struct dcss_dpr_ch *ch; in dcss_dpr_ch_init_all() local 134 ch = &dpr->ch[i]; in dcss_dpr_ch_init_all() 136 ch->base_ofs = dpr_base + i * 0x1000; in dcss_dpr_ch_init_all() 138 ch->base_reg = ioremap(ch->base_ofs, SZ_4K); in dcss_dpr_ch_init_all() 139 if (!ch->base_reg) { in dcss_dpr_ch_init_all() 140 dev_err(dpr->dev, "dpr: unable to remap ch %d base\n", in dcss_dpr_ch_init_all() [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | sh_cmt.c | 241 static inline u32 sh_cmt_read_cmstr(struct sh_cmt_channel *ch) in sh_cmt_read_cmstr() argument 243 if (ch->iostart) in sh_cmt_read_cmstr() 244 return ch->cmt->info->read_control(ch->iostart, 0); in sh_cmt_read_cmstr() 246 return ch->cmt->info->read_control(ch->cmt->mapbase, 0); in sh_cmt_read_cmstr() 249 static inline void sh_cmt_write_cmstr(struct sh_cmt_channel *ch, u32 value) in sh_cmt_write_cmstr() argument 251 u32 old_value = sh_cmt_read_cmstr(ch); in sh_cmt_write_cmstr() 254 if (ch->iostart) { in sh_cmt_write_cmstr() 255 ch->cmt->info->write_control(ch->iostart, 0, value); in sh_cmt_write_cmstr() 256 udelay(ch->cmt->reg_delay); in sh_cmt_write_cmstr() 258 ch->cmt->info->write_control(ch->cmt->mapbase, 0, value); in sh_cmt_write_cmstr() [all …]
|
H A D | sh_tmu.c | 84 static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr) in sh_tmu_read() argument 89 switch (ch->tmu->model) { in sh_tmu_read() 91 return ioread8(ch->tmu->mapbase + 2); in sh_tmu_read() 93 return ioread8(ch->tmu->mapbase + 4); in sh_tmu_read() 100 return ioread16(ch->base + offs); in sh_tmu_read() 102 return ioread32(ch->base + offs); in sh_tmu_read() 105 static inline void sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr, in sh_tmu_write() argument 111 switch (ch->tmu->model) { in sh_tmu_write() 113 return iowrite8(value, ch->tmu->mapbase + 2); in sh_tmu_write() 115 return iowrite8(value, ch->tmu->mapbase + 4); in sh_tmu_write() [all …]
|
/openbmc/linux/include/linux/mfd/ |
H A D | max5970.h | 31 #define MAX5970_REG_CURRENT_L(ch) (0x01 + (ch) * 4) argument 32 #define MAX5970_REG_CURRENT_H(ch) (0x00 + (ch) * 4) argument 33 #define MAX5970_REG_VOLTAGE_L(ch) (0x03 + (ch) * 4) argument 34 #define MAX5970_REG_VOLTAGE_H(ch) (0x02 + (ch) * 4) argument 37 #define MAX5970_MON(reg, ch) (((reg) >> ((ch) * 2)) & MAX5970_MON_MASK) argument 40 #define MAX5970_REG_CH_UV_WARN_H(ch) (0x1A + (ch) * 10) argument 41 #define MAX5970_REG_CH_UV_WARN_L(ch) (0x1B + (ch) * 10) argument 42 #define MAX5970_REG_CH_UV_CRIT_H(ch) (0x1C + (ch) * 10) argument 43 #define MAX5970_REG_CH_UV_CRIT_L(ch) (0x1D + (ch) * 10) argument 44 #define MAX5970_REG_CH_OV_WARN_H(ch) (0x1E + (ch) * 10) argument [all …]
|
/openbmc/qemu/hw/dma/ |
H A D | omap_dma.c | 122 struct omap_dma_channel_s ch[32]; member 143 static void omap_dma_channel_load(struct omap_dma_channel_s *ch) in omap_dma_channel_load() argument 145 struct omap_dma_reg_set_s *a = &ch->active_set; in omap_dma_channel_load() 147 int omap_3_1 = !ch->omap_3_1_compatible_disable; in omap_dma_channel_load() 154 a->src = ch->addr[0]; in omap_dma_channel_load() 155 a->dest = ch->addr[1]; in omap_dma_channel_load() 156 a->frames = ch->frames; in omap_dma_channel_load() 157 a->elements = ch->elements; in omap_dma_channel_load() 158 a->pck_elements = ch->frame_index[!ch->src_sync]; in omap_dma_channel_load() 163 if (unlikely(!ch->elements || !ch->frames)) { in omap_dma_channel_load() [all …]
|
H A D | soc_dma.c | 25 static void transfer_mem2mem(struct soc_dma_ch_s *ch) in transfer_mem2mem() argument 27 memcpy(ch->paddr[0], ch->paddr[1], ch->bytes); in transfer_mem2mem() 28 ch->paddr[0] += ch->bytes; in transfer_mem2mem() 29 ch->paddr[1] += ch->bytes; in transfer_mem2mem() 32 static void transfer_mem2fifo(struct soc_dma_ch_s *ch) in transfer_mem2fifo() argument 34 ch->io_fn[1](ch->io_opaque[1], ch->paddr[0], ch->bytes); in transfer_mem2fifo() 35 ch->paddr[0] += ch->bytes; in transfer_mem2fifo() 38 static void transfer_fifo2mem(struct soc_dma_ch_s *ch) in transfer_fifo2mem() argument 40 ch->io_fn[0](ch->io_opaque[0], ch->paddr[1], ch->bytes); in transfer_fifo2mem() 41 ch->paddr[1] += ch->bytes; in transfer_fifo2mem() [all …]
|
H A D | sifive_pdma.c | 71 static void sifive_pdma_run(SiFivePDMAState *s, int ch) in sifive_pdma_run() argument 73 uint64_t bytes = s->chan[ch].next_bytes; in sifive_pdma_run() 74 uint64_t dst = s->chan[ch].next_dst; in sifive_pdma_run() 75 uint64_t src = s->chan[ch].next_src; in sifive_pdma_run() 76 uint32_t config = s->chan[ch].next_config; in sifive_pdma_run() 112 s->chan[ch].state = DMA_CHAN_STATE_STARTED; in sifive_pdma_run() 113 s->chan[ch].control &= ~CONTROL_DONE; in sifive_pdma_run() 114 s->chan[ch].control &= ~CONTROL_ERR; in sifive_pdma_run() 117 s->chan[ch].exec_config = config; in sifive_pdma_run() 118 s->chan[ch].exec_bytes = bytes; in sifive_pdma_run() [all …]
|
H A D | bcm2835_dma.c | 58 BCM2835DMAChan *ch = &s->chan[c]; in bcm2835_dma_update() local 66 while ((s->enable & (1 << c)) && (ch->conblk_ad != 0)) { in bcm2835_dma_update() 68 ch->ti = ldl_le_phys(&s->dma_as, ch->conblk_ad); in bcm2835_dma_update() 69 ch->source_ad = ldl_le_phys(&s->dma_as, ch->conblk_ad + 4); in bcm2835_dma_update() 70 ch->dest_ad = ldl_le_phys(&s->dma_as, ch->conblk_ad + 8); in bcm2835_dma_update() 71 ch->txfr_len = ldl_le_phys(&s->dma_as, ch->conblk_ad + 12); in bcm2835_dma_update() 72 ch->stride = ldl_le_phys(&s->dma_as, ch->conblk_ad + 16); in bcm2835_dma_update() 73 ch->nextconbk = ldl_le_phys(&s->dma_as, ch->conblk_ad + 20); in bcm2835_dma_update() 76 if (ch->ti & BCM2708_DMA_TDMODE) { in bcm2835_dma_update() 78 ylen += (ch->txfr_len >> 16) & 0x3fff; in bcm2835_dma_update() [all …]
|
H A D | pl330.c | 592 static inline void pl330_fault(PL330Chan *ch, uint32_t flags) in pl330_fault() argument 594 trace_pl330_fault(ch, flags); in pl330_fault() 595 ch->fault_type |= flags; in pl330_fault() 596 if (ch->state == pl330_chan_fault) { in pl330_fault() 599 ch->state = pl330_chan_fault; in pl330_fault() 600 ch->parent->num_faulting++; in pl330_fault() 601 if (ch->parent->num_faulting == 1) { in pl330_fault() 603 qemu_irq_raise(ch->parent->irq_abort); in pl330_fault() 611 * CH - channel executing the instruction 617 static void pl330_dmaadxh(PL330Chan *ch, uint8_t *args, bool ra, bool neg) in pl330_dmaadxh() argument [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | moxart-dma.c | 185 struct moxart_chan *ch = to_moxart_dma_chan(chan); in moxart_terminate_all() local 190 dev_dbg(chan2dev(chan), "%s: ch=%p\n", __func__, ch); in moxart_terminate_all() 192 spin_lock_irqsave(&ch->vc.lock, flags); in moxart_terminate_all() 194 if (ch->desc) { in moxart_terminate_all() 195 moxart_dma_desc_free(&ch->desc->vd); in moxart_terminate_all() 196 ch->desc = NULL; in moxart_terminate_all() 199 ctrl = readl(ch->base + REG_OFF_CTRL); in moxart_terminate_all() 201 writel(ctrl, ch->base + REG_OFF_CTRL); in moxart_terminate_all() 203 vchan_get_all_descriptors(&ch->vc, &head); in moxart_terminate_all() 204 spin_unlock_irqrestore(&ch->vc.lock, flags); in moxart_terminate_all() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | ch.c | 87 #define ch_printk(prefix, ch, fmt, a...) \ argument 88 sdev_prefix_printk(prefix, (ch)->device, (ch)->name, fmt, ##a) 93 ch_printk(KERN_DEBUG, ch, fmt, ##arg); \ 98 ch_printk(level, ch, fmt, ##arg); \ 186 ch_do_scsi(scsi_changer *ch, unsigned char *cmd, int cmd_len, in ch_do_scsi() argument 200 result = scsi_execute_cmd(ch->device, cmd, op, buffer, buflength, in ch_do_scsi() 206 scsi_print_sense_hdr(ch->device, ch->name, &sshdr); in ch_do_scsi() 211 ch->unit_attention = 1; in ch_do_scsi() 223 ch_elem_to_typecode(scsi_changer *ch, u_int elem) in ch_elem_to_typecode() argument 228 if (elem >= ch->firsts[i] && in ch_elem_to_typecode() [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | ctcm_fsms.c | 188 * ch : The channel, the error belongs to. 191 void ctcm_ccw_check_rc(struct channel *ch, int rc, char *msg) in ctcm_ccw_check_rc() argument 195 CTCM_FUNTAIL, ch->id, msg, rc); in ctcm_ccw_check_rc() 199 ch->id); in ctcm_ccw_check_rc() 200 fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch); in ctcm_ccw_check_rc() 204 ch->id); in ctcm_ccw_check_rc() 205 fsm_event(ch->fsm, CTC_EVENT_IO_ENODEV, ch); in ctcm_ccw_check_rc() 210 fsm_event(ch->fsm, CTC_EVENT_IO_UNKNOWN, ch); in ctcm_ccw_check_rc() 248 struct channel *ch = arg; in chx_txdone() local 249 struct net_device *dev = ch->netdev; in chx_txdone() [all …]
|
H A D | ctcm_main.c | 72 * ch The channel where this skb has been received. 75 void ctcm_unpack_skb(struct channel *ch, struct sk_buff *pskb) in ctcm_unpack_skb() argument 77 struct net_device *dev = ch->netdev; in ctcm_unpack_skb() 91 if ((ch->protocol == CTCM_PROTO_S390) && in ctcm_unpack_skb() 93 if (!(ch->logflags & LOG_FLAG_ILLEGALPKT)) { in ctcm_unpack_skb() 94 ch->logflags |= LOG_FLAG_ILLEGALPKT; in ctcm_unpack_skb() 113 if (!(ch->logflags & LOG_FLAG_ILLEGALSIZE)) { in ctcm_unpack_skb() 119 ch->logflags |= LOG_FLAG_ILLEGALSIZE; in ctcm_unpack_skb() 130 if (!(ch->logflags & LOG_FLAG_OVERRUN)) { in ctcm_unpack_skb() 135 ch->logflags |= LOG_FLAG_OVERRUN; in ctcm_unpack_skb() [all …]
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | hwchannel.c | 46 if (likely(bch->ch.peer)) { in bchannel_bh() 47 err = bch->ch.recv(bch->ch.peer, skb); in bchannel_bh() 57 mISDN_initdchannel(struct dchannel *ch, int maxlen, void *phf) in mISDN_initdchannel() argument 59 test_and_set_bit(FLG_HDLC, &ch->Flags); in mISDN_initdchannel() 60 ch->maxlen = maxlen; in mISDN_initdchannel() 61 ch->hw = NULL; in mISDN_initdchannel() 62 ch->rx_skb = NULL; in mISDN_initdchannel() 63 ch->tx_skb = NULL; in mISDN_initdchannel() 64 ch->tx_idx = 0; in mISDN_initdchannel() 65 ch->phfunc = phf; in mISDN_initdchannel() [all …]
|
H A D | stack.c | 36 mISDN_queue_message(struct mISDNchannel *ch, struct sk_buff *skb) in mISDN_queue_message() argument 38 _queue_message(ch->st, skb); in mISDN_queue_message() 45 struct mISDNchannel *ch; in get_channel4id() local 48 list_for_each_entry(ch, &st->layer2, list) { in get_channel4id() 49 if (id == ch->nr) in get_channel4id() 52 ch = NULL; in get_channel4id() 55 return ch; in get_channel4id() 86 struct mISDNchannel *ch; in send_layer2() local 93 list_for_each_entry(ch, &st->layer2, list) { in send_layer2() 94 if (list_is_last(&ch->list, &st->layer2)) { in send_layer2() [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | sh_mobile_lcdcfb.c | 213 struct sh_mobile_lcdc_chan ch[2]; member 398 struct sh_mobile_lcdc_chan *ch = handle; in lcdc_sys_write_index() local 400 lcdc_write(ch->lcdc, _LDDWD0R, data | LDDWDxR_WDACT); in lcdc_sys_write_index() 401 lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0); in lcdc_sys_write_index() 402 lcdc_write(ch->lcdc, _LDDWAR, LDDWAR_WA | in lcdc_sys_write_index() 403 (lcdc_chan_is_sublcd(ch) ? 2 : 0)); in lcdc_sys_write_index() 404 lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0); in lcdc_sys_write_index() 409 struct sh_mobile_lcdc_chan *ch = handle; in lcdc_sys_write_data() local 411 lcdc_write(ch->lcdc, _LDDWD0R, data | LDDWDxR_WDACT | LDDWDxR_RSW); in lcdc_sys_write_data() 412 lcdc_wait_bit(ch->lcdc, _LDSR, LDSR_AS, 0); in lcdc_sys_write_data() [all …]
|
/openbmc/linux/drivers/rapidio/ |
H A D | rio_cm.c | 228 static int riocm_ch_close(struct rio_channel *ch); 248 static int riocm_cmp(struct rio_channel *ch, enum rio_cm_state cmp) in riocm_cmp() argument 252 spin_lock_bh(&ch->lock); in riocm_cmp() 253 ret = (ch->state == cmp); in riocm_cmp() 254 spin_unlock_bh(&ch->lock); in riocm_cmp() 258 static int riocm_cmp_exch(struct rio_channel *ch, in riocm_cmp_exch() argument 263 spin_lock_bh(&ch->lock); in riocm_cmp_exch() 264 ret = (ch->state == cmp); in riocm_cmp_exch() 266 ch->state = exch; in riocm_cmp_exch() 267 spin_unlock_bh(&ch->lock); in riocm_cmp_exch() [all …]
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | lantiq_etop.c | 97 struct ltq_etop_chan ch[MAX_DMA_CHAN]; member 107 ltq_etop_alloc_skb(struct ltq_etop_chan *ch) in ltq_etop_alloc_skb() argument 109 struct ltq_etop_priv *priv = netdev_priv(ch->netdev); in ltq_etop_alloc_skb() 111 ch->skb[ch->dma.desc] = netdev_alloc_skb(ch->netdev, MAX_DMA_DATA_LEN); in ltq_etop_alloc_skb() 112 if (!ch->skb[ch->dma.desc]) in ltq_etop_alloc_skb() 114 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb() 115 dma_map_single(&priv->pdev->dev, ch->skb[ch->dma.desc]->data, in ltq_etop_alloc_skb() 117 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb() 118 CPHYSADDR(ch->skb[ch->dma.desc]->data); in ltq_etop_alloc_skb() 119 ch->dma.desc_base[ch->dma.desc].ctl = in ltq_etop_alloc_skb() [all …]
|
/openbmc/linux/drivers/phy/renesas/ |
H A D | phy-rcar-gen3-usb2.c | 101 struct rcar_gen3_chan *ch; member 143 struct rcar_gen3_chan *ch = container_of(work, struct rcar_gen3_chan, in rcar_gen3_phy_usb2_work() local 146 if (ch->extcon_host) { in rcar_gen3_phy_usb2_work() 147 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); in rcar_gen3_phy_usb2_work() 148 extcon_set_state_sync(ch->extcon, EXTCON_USB, false); in rcar_gen3_phy_usb2_work() 150 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); in rcar_gen3_phy_usb2_work() 151 extcon_set_state_sync(ch->extcon, EXTCON_USB, true); in rcar_gen3_phy_usb2_work() 155 static void rcar_gen3_set_host_mode(struct rcar_gen3_chan *ch, int host) in rcar_gen3_set_host_mode() argument 157 void __iomem *usb2_base = ch->base; in rcar_gen3_set_host_mode() 160 dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, host); in rcar_gen3_set_host_mode() [all …]
|