Home
last modified time | relevance | path

Searched refs:rh (Results 1 – 11 of 11) sorted by relevance

/drivers/md/
Ddm-region-hash.c97 struct dm_region_hash *rh; /* FIXME: can we get rid of this ? */ member
111 static region_t dm_rh_sector_to_region(struct dm_region_hash *rh, sector_t sector) in dm_rh_sector_to_region() argument
113 return sector >> rh->region_shift; in dm_rh_sector_to_region()
116 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) in dm_rh_region_to_sector() argument
118 return region << rh->region_shift; in dm_rh_region_to_sector()
122 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio) in dm_rh_bio_to_region() argument
124 return dm_rh_sector_to_region(rh, bio->bi_sector - rh->target_begin); in dm_rh_bio_to_region()
130 return reg->rh->context; in dm_rh_region_context()
140 sector_t dm_rh_get_region_size(struct dm_region_hash *rh) in dm_rh_get_region_size() argument
142 return rh->region_size; in dm_rh_get_region_size()
[all …]
Ddm-raid1.c62 struct dm_region_hash *rh; member
287 sector_t region_size = dm_rh_get_region_size(ms->rh); in recover()
292 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key); in recover()
311 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key); in recover()
329 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in do_recovery()
335 dm_rh_recovery_prepare(ms->rh); in do_recovery()
340 while ((reg = dm_rh_recovery_start(ms->rh))) { in do_recovery()
384 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_available()
385 region_t region = dm_rh_bio_to_region(ms->rh, bio); in mirror_available()
467 int state = dm_rh_get_state(ms->rh, region, may_block); in region_in_sync()
[all …]
/drivers/usb/host/
Dr8a66597-hcd.c987 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in start_root_hub_sampling() local
989 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST; in start_root_hub_sampling()
990 rh->scount = R8A66597_MAX_SAMPLING; in start_root_hub_sampling()
992 rh->port |= 1 << USB_PORT_FEAT_CONNECTION; in start_root_hub_sampling()
994 rh->port &= ~(1 << USB_PORT_FEAT_CONNECTION); in start_root_hub_sampling()
995 rh->port |= 1 << USB_PORT_FEAT_C_CONNECTION; in start_root_hub_sampling()
1023 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_usb_connect() local
1026 rh->port |= (1 << USB_PORT_FEAT_HIGHSPEED); in r8a66597_usb_connect()
1028 rh->port |= (1 << USB_PORT_FEAT_LOWSPEED); in r8a66597_usb_connect()
1030 rh->port &= ~(1 << USB_PORT_FEAT_RESET); in r8a66597_usb_connect()
[all …]
Dohci-hub.c552 u32 rh = roothub_a (ohci); in ohci_hub_descriptor() local
556 desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; in ohci_hub_descriptor()
564 if (rh & RH_A_NPS) /* no power switching? */ in ohci_hub_descriptor()
566 if (rh & RH_A_PSM) /* per-port power switching? */ in ohci_hub_descriptor()
568 if (rh & RH_A_NOCP) /* no overcurrent reporting? */ in ohci_hub_descriptor()
570 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */ in ohci_hub_descriptor()
575 rh = roothub_b (ohci); in ohci_hub_descriptor()
577 desc->bitmap [0] = rh & RH_B_DR; in ohci_hub_descriptor()
579 desc->bitmap [1] = (rh & RH_B_DR) >> 8; in ohci_hub_descriptor()
Dohci-omap.c244 u32 rh = roothub_a (ohci); in ohci_omap_init() local
247 rh &= ~RH_A_NPS; in ohci_omap_init()
253 rh &= ~RH_A_NOCP; in ohci_omap_init()
263 ohci_writel(ohci, rh, &ohci->regs->roothub.a); in ohci_omap_init()
/drivers/net/enic/
Dvnic_dev.c68 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local
77 rh = bar->vaddr; in vnic_dev_discover_res()
78 if (!rh) { in vnic_dev_discover_res()
83 if (ioread32(&rh->magic) != VNIC_RES_MAGIC || in vnic_dev_discover_res()
84 ioread32(&rh->version) != VNIC_RES_VERSION) { in vnic_dev_discover_res()
88 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res()
92 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
/drivers/scsi/lpfc/
Dlpfc_ct.c1317 REG_HBA *rh; in lpfc_fdmi_cmd() local
1372 rh = (REG_HBA *) & CtReq->un.PortID; in lpfc_fdmi_cmd()
1373 memcpy(&rh->hi.PortName, &vport->fc_sparam.portName, in lpfc_fdmi_cmd()
1376 rh->rpl.EntryCnt = be32_to_cpu(1); in lpfc_fdmi_cmd()
1377 memcpy(&rh->rpl.pe, &vport->fc_sparam.portName, in lpfc_fdmi_cmd()
1382 ab = (ATTRIBUTE_BLOCK *) ((uint8_t *) rh + size); in lpfc_fdmi_cmd()
1389 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); in lpfc_fdmi_cmd()
1399 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); in lpfc_fdmi_cmd()
1409 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); in lpfc_fdmi_cmd()
1419 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); in lpfc_fdmi_cmd()
[all …]
/drivers/net/
Db44.c641 struct rx_header *rh; in b44_alloc_rx_skb() local
685 rh = (struct rx_header *) skb->data; in b44_alloc_rx_skb()
687 rh->len = 0; in b44_alloc_rx_skb()
688 rh->flags = 0; in b44_alloc_rx_skb()
716 struct rx_header *rh; in b44_recycle_rx() local
727 rh = (struct rx_header *) src_map->skb->data; in b44_recycle_rx()
728 rh->len = 0; in b44_recycle_rx()
729 rh->flags = 0; in b44_recycle_rx()
772 struct rx_header *rh; in b44_rx() local
778 rh = (struct rx_header *) skb->data; in b44_rx()
[all …]
Denc28j60.c302 int rl, rh; in nolock_regw_read() local
306 rh = spi_read_op(priv, ENC28J60_READ_CTRL_REG, address + 1); in nolock_regw_read()
308 return (rh << 8) | rl; in nolock_regw_read()
/drivers/usb/wusbcore/
DMakefile12 rh.o \
/drivers/media/video/uvc/
Duvc_v4l2.c106 __u16 rw, rh; in uvc_v4l2_try_format() local
140 rh = fmt->fmt.pix.height; in uvc_v4l2_try_format()
147 d = min(w, rw) * min(h, rh); in uvc_v4l2_try_format()
148 d = w*h + rw*rh - 2*d; in uvc_v4l2_try_format()