/drivers/usb/host/ |
H A D | ohci-hub.c | 557 u32 rh = roothub_a (ohci); local 561 desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; 569 if (rh & RH_A_NPS) /* no power switching? */ 571 if (rh & RH_A_PSM) /* per-port power switching? */ 573 if (rh & RH_A_NOCP) /* no overcurrent reporting? */ 575 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */ 580 rh = roothub_b (ohci); 583 desc->u.hs.DeviceRemovable[0] = rh & RH_B_DR; 585 desc->u.hs.DeviceRemovable[1] = (rh & RH_B_DR) >> 8;
|
H A D | ohci-omap.c | 244 u32 rh = roothub_a (ohci); local 247 rh &= ~RH_A_NPS; 253 rh &= ~RH_A_NOCP; 263 ohci_writel(ohci, rh, &ohci->regs->roothub.a);
|
H A D | r8a66597-hcd.c | 1016 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local 1018 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST; 1019 rh->scount = R8A66597_MAX_SAMPLING; 1021 rh->port |= USB_PORT_STAT_CONNECTION; 1023 rh->port &= ~USB_PORT_STAT_CONNECTION; 1024 rh->port |= USB_PORT_STAT_C_CONNECTION << 16; 1060 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local 1062 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED); 1064 rh->port |= USB_PORT_STAT_HIGH_SPEED; 1066 rh 1706 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local 2164 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local 2270 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local 2301 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local 2368 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; local [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_v4l2.c | 149 __u16 rw, rh; local 183 rh = fmt->fmt.pix.height; 190 d = min(w, rw) * min(h, rh); 191 d = w*h + rw*rh - 2*d;
|
/drivers/md/ |
H A D | dm-region-hash.c | 102 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_sector - rh->target_begin); 135 return reg->rh->context; 145 sector_t dm_rh_get_region_size(struct dm_region_hash *rh) argument 168 struct dm_region_hash *rh; local 234 dm_region_hash_destroy(struct dm_region_hash *rh) argument 259 dm_rh_dirty_log(struct dm_region_hash *rh) argument 265 rh_hash(struct dm_region_hash *rh, region_t region) argument 270 __rh_lookup(struct dm_region_hash *rh, region_t region) argument 282 __rh_insert(struct dm_region_hash *rh, struct dm_region *reg) argument 287 __rh_alloc(struct dm_region_hash *rh, region_t region) argument 323 __rh_find(struct dm_region_hash *rh, region_t region) argument 337 dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block) argument 365 struct dm_region_hash *rh = reg->rh; local 394 dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio) argument 436 dm_rh_update_states(struct dm_region_hash *rh, int errors_handled) argument 499 rh_inc(struct dm_region_hash *rh, region_t region) argument 522 dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios) argument 534 dm_rh_dec(struct dm_region_hash *rh, region_t region) argument 583 __rh_recovery_prepare(struct dm_region_hash *rh) argument 618 dm_rh_recovery_prepare(struct dm_region_hash *rh) argument 641 dm_rh_recovery_start(struct dm_region_hash *rh) argument 659 struct dm_region_hash *rh = reg->rh; local 674 dm_rh_recovery_in_flight(struct dm_region_hash *rh) argument 680 dm_rh_flush(struct dm_region_hash *rh) argument 686 dm_rh_delay(struct dm_region_hash *rh, struct bio *bio) argument 697 dm_rh_stop_recovery(struct dm_region_hash *rh) argument 707 dm_rh_start_recovery(struct dm_region_hash *rh) argument [all...] |
H A D | dm-raid1.c | 61 struct dm_region_hash *rh; member in struct:mirror_set 333 sector_t region_size = dm_rh_get_region_size(ms->rh); 338 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key); 357 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key); 375 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); 381 dm_rh_recovery_prepare(ms->rh); 386 while ((reg = dm_rh_recovery_start(ms->rh))) { 430 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); 431 region_t region = dm_rh_bio_to_region(ms->rh, bio); 543 int state = dm_rh_get_state(ms->rh, regio [all...] |
/drivers/scsi/fnic/ |
H A D | vnic_dev.c | 66 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 D | vnic_dev.c | 84 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/net/ethernet/microchip/ |
H A D | enc28j60.c | 301 int rl, rh; local 305 rh = spi_read_op(priv, ENC28J60_READ_CTRL_REG, address + 1); 307 return (rh << 8) | rl;
|
/drivers/scsi/lpfc/ |
H A D | lpfc_ct.c | 1365 REG_HBA *rh; local 1420 rh = (REG_HBA *) & CtReq->un.PortID; 1421 memcpy(&rh->hi.PortName, &vport->fc_sparam.portName, 1424 rh->rpl.EntryCnt = be32_to_cpu(1); 1425 memcpy(&rh->rpl.pe, &vport->fc_sparam.portName, 1430 ab = (ATTRIBUTE_BLOCK *) ((uint8_t *) rh + size); 1437 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); 1447 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); 1457 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); 1467 ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh [all...] |
/drivers/net/ethernet/broadcom/ |
H A D | b44.c | 631 struct rx_header *rh; local 675 rh = (struct rx_header *) skb->data; 677 rh->len = 0; 678 rh->flags = 0; 706 struct rx_header *rh; local 717 rh = (struct rx_header *) src_map->skb->data; 718 rh->len = 0; 719 rh->flags = 0; 762 struct rx_header *rh; local 768 rh [all...] |
/drivers/net/ethernet/sun/ |
H A D | niu.c | 3423 struct rx_pkt_hdr1 *rh; local 3486 len += sizeof(*rh); 3487 len = min_t(int, len, sizeof(*rh) + VLAN_ETH_HLEN); 3490 rh = (struct rx_pkt_hdr1 *) skb->data; 3492 skb->rxhash = ((u32)rh->hashval2_0 << 24 | 3493 (u32)rh->hashval2_1 << 16 | 3494 (u32)rh->hashval1_1 << 8 | 3495 (u32)rh->hashval1_2 << 0); 3496 skb_pull(skb, sizeof(*rh));
|