Searched refs:rh (Results 1 - 14 of 14) sorted by relevance

/drivers/md/
H A Ddm-region-hash.c102 struct dm_region_hash *rh; /* FIXME: can we get rid of this ? */ member in struct:dm_region
116 static region_t dm_rh_sector_to_region(struct dm_region_hash *rh, sector_t sector) argument
118 return sector >> rh->region_shift;
121 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) argument
123 return region << rh->region_shift;
127 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio) argument
129 return dm_rh_sector_to_region(rh, bio->bi_iter.bi_sector -
130 rh->target_begin);
136 return reg->rh->context;
146 sector_t dm_rh_get_region_size(struct dm_region_hash *rh) argument
169 struct dm_region_hash *rh; local
235 dm_region_hash_destroy(struct dm_region_hash *rh) argument
260 dm_rh_dirty_log(struct dm_region_hash *rh) argument
266 rh_hash(struct dm_region_hash *rh, region_t region) argument
271 __rh_lookup(struct dm_region_hash *rh, region_t region) argument
283 __rh_insert(struct dm_region_hash *rh, struct dm_region *reg) argument
288 __rh_alloc(struct dm_region_hash *rh, region_t region) argument
324 __rh_find(struct dm_region_hash *rh, region_t region) argument
338 dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block) argument
366 struct dm_region_hash *rh = reg->rh; local
395 dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio) argument
440 dm_rh_update_states(struct dm_region_hash *rh, int errors_handled) argument
503 rh_inc(struct dm_region_hash *rh, region_t region) argument
526 dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios) argument
538 dm_rh_dec(struct dm_region_hash *rh, region_t region) argument
587 __rh_recovery_prepare(struct dm_region_hash *rh) argument
622 dm_rh_recovery_prepare(struct dm_region_hash *rh) argument
645 dm_rh_recovery_start(struct dm_region_hash *rh) argument
663 struct dm_region_hash *rh = reg->rh; local
678 dm_rh_recovery_in_flight(struct dm_region_hash *rh) argument
684 dm_rh_flush(struct dm_region_hash *rh) argument
690 dm_rh_delay(struct dm_region_hash *rh, struct bio *bio) argument
701 dm_rh_stop_recovery(struct dm_region_hash *rh) argument
711 dm_rh_start_recovery(struct dm_region_hash *rh) argument
[all...]
H A Ddm-raid1.c61 struct dm_region_hash *rh; member in struct:mirror_set
334 sector_t region_size = dm_rh_get_region_size(ms->rh);
339 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
358 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
376 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
382 dm_rh_recovery_prepare(ms->rh);
387 while ((reg = dm_rh_recovery_start(ms->rh))) {
431 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
432 region_t region = dm_rh_bio_to_region(ms->rh, bio);
544 int state = dm_rh_get_state(ms->rh, regio
[all...]
/drivers/dma/bestcomm/
H A Dsram.c97 bcom_sram->rh = rh_create(4);
110 rh_attach_region(bcom_sram->rh, 0, bcom_sram->size);
115 rh_attach_region(bcom_sram->rh, zbase - bcom_sram->base_phys, regaddr_p[1]);
140 rh_destroy(bcom_sram->rh);
154 offset = rh_alloc_align(bcom_sram->rh, size, align, NULL);
175 rh_free(bcom_sram->rh, offset);
/drivers/usb/wusbcore/
H A DMakefile14 rh.o \
/drivers/usb/host/
H A Dr8a66597-hcd.c1011 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
1013 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST;
1014 rh->scount = R8A66597_MAX_SAMPLING;
1016 rh->port |= USB_PORT_STAT_CONNECTION;
1018 rh->port &= ~USB_PORT_STAT_CONNECTION;
1019 rh->port |= USB_PORT_STAT_C_CONNECTION << 16;
1055 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
1057 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED);
1059 rh->port |= USB_PORT_STAT_HIGH_SPEED;
1061 rh
1701 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
2156 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
2262 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
2293 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
2360 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local
[all...]
H A Dohci-hub.c536 u32 rh = roothub_a (ohci); local
540 desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24;
548 if (rh & RH_A_NPS) /* no power switching? */
550 if (rh & RH_A_PSM) /* per-port power switching? */
552 if (rh & RH_A_NOCP) /* no overcurrent reporting? */
554 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */
559 rh = roothub_b (ohci);
562 desc->u.hs.DeviceRemovable[0] = rh & RH_B_DR;
564 desc->u.hs.DeviceRemovable[1] = (rh & RH_B_DR) >> 8;
H A Dohci-omap.c259 u32 rh = roothub_a (ohci); local
262 rh &= ~RH_A_NPS;
268 rh &= ~RH_A_NOCP;
278 ohci_writel(ohci, rh, &ohci->regs->roothub.a);
/drivers/scsi/fnic/
H A Dvnic_dev.c66 struct vnic_resource_header __iomem *rh; local
75 rh = bar->vaddr;
76 if (!rh) {
81 if (ioread32(&rh->magic) != VNIC_RES_MAGIC ||
82 ioread32(&rh->version) != VNIC_RES_VERSION) {
86 ioread32(&rh->magic), ioread32(&rh->version));
90 r = (struct vnic_resource __iomem *)(rh + 1);
/drivers/net/ethernet/cisco/enic/
H A Dvnic_dev.c84 struct vnic_resource_header __iomem *rh; local
97 rh = bar->vaddr;
99 if (!rh) {
105 if ((ioread32(&rh->magic) != VNIC_RES_MAGIC) ||
106 (ioread32(&rh->version) != VNIC_RES_VERSION)) {
113 ioread32(&rh->magic), ioread32(&rh->version));
121 r = (struct vnic_resource __iomem *)(rh + 1);
/drivers/scsi/lpfc/
H A Dlpfc_ct.c1358 REG_HBA *rh; local
1413 rh = (REG_HBA *) & CtReq->un.PortID;
1414 memcpy(&rh->hi.PortName, &vport->fc_sparam.portName,
1417 rh->rpl.EntryCnt = be32_to_cpu(1);
1418 memcpy(&rh->rpl.pe, &vport->fc_sparam.portName,
1423 ab = (ATTRIBUTE_BLOCK *) ((uint8_t *) rh + size);
1430 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size);
1440 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size);
1450 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size);
1460 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh
[all...]
/drivers/net/ethernet/broadcom/
H A Db44.c662 struct rx_header *rh; local
706 rh = (struct rx_header *) skb->data;
708 rh->len = 0;
709 rh->flags = 0;
737 struct rx_header *rh; local
748 rh = (struct rx_header *) src_map->skb->data;
749 rh->len = 0;
750 rh->flags = 0;
793 struct rx_header *rh; local
799 rh
[all...]
/drivers/media/usb/uvc/
H A Duvc_v4l2.c152 __u16 rw, rh; local
187 rh = fmt->fmt.pix.height;
194 d = min(w, rw) * min(h, rh);
195 d = w*h + rw*rh - 2*d;
/drivers/net/ethernet/microchip/
H A Denc28j60.c301 int rl, rh; local
305 rh = spi_read_op(priv, ENC28J60_READ_CTRL_REG, address + 1);
307 return (rh << 8) | rl;
/drivers/net/ethernet/sun/
H A Dniu.c3426 struct rx_pkt_hdr1 *rh; local
3489 len += sizeof(*rh);
3490 len = min_t(int, len, sizeof(*rh) + VLAN_ETH_HLEN);
3493 rh = (struct rx_pkt_hdr1 *) skb->data;
3496 ((u32)rh->hashval2_0 << 24 |
3497 (u32)rh->hashval2_1 << 16 |
3498 (u32)rh->hashval1_1 << 8 |
3499 (u32)rh->hashval1_2 << 0),
3501 skb_pull(skb, sizeof(*rh));

Completed in 331 milliseconds