/drivers/md/ |
D | dm-region-hash.c | 103 struct dm_region_hash *rh; /* FIXME: can we get rid of this ? */ member 117 static region_t dm_rh_sector_to_region(struct dm_region_hash *rh, sector_t sector) in dm_rh_sector_to_region() argument 119 return sector >> rh->region_shift; in dm_rh_sector_to_region() 122 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) in dm_rh_region_to_sector() argument 124 return region << rh->region_shift; in dm_rh_region_to_sector() 128 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio) in dm_rh_bio_to_region() argument 130 return dm_rh_sector_to_region(rh, bio->bi_iter.bi_sector - in dm_rh_bio_to_region() 131 rh->target_begin); in dm_rh_bio_to_region() 137 return reg->rh->context; in dm_rh_region_context() 147 sector_t dm_rh_get_region_size(struct dm_region_hash *rh) in dm_rh_get_region_size() argument [all …]
|
D | dm-raid1.c | 65 struct dm_region_hash *rh; member 336 sector_t region_size = dm_rh_get_region_size(ms->rh); in recover() 341 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key); in recover() 360 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key); in recover() 387 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in do_recovery() 392 dm_rh_recovery_prepare(ms->rh); in do_recovery() 397 while ((reg = dm_rh_recovery_start(ms->rh))) in do_recovery() 439 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_available() 440 region_t region = dm_rh_bio_to_region(ms->rh, bio); in mirror_available() 555 int state = dm_rh_get_state(ms->rh, region, may_block); in region_in_sync() [all …]
|
/drivers/i3c/master/mipi-i3c-hci/ |
D | dma.c | 55 #define rh_reg_read(r) readl(rh->regs + (RH_##r)) 56 #define rh_reg_write(r, v) writel(v, rh->regs + (RH_##r)) 168 struct hci_rh_data *rh; in hci_dma_cleanup() local 175 rh = &rings->headers[i]; in hci_dma_cleanup() 182 if (rh->xfer) in hci_dma_cleanup() 184 rh->xfer_struct_sz * rh->xfer_entries, in hci_dma_cleanup() 185 rh->xfer, rh->xfer_dma); in hci_dma_cleanup() 186 if (rh->resp) in hci_dma_cleanup() 188 rh->resp_struct_sz * rh->xfer_entries, in hci_dma_cleanup() 189 rh->resp, rh->resp_dma); in hci_dma_cleanup() [all …]
|
/drivers/dma/bestcomm/ |
D | sram.c | 97 bcom_sram->rh = rh_create(4); in bcom_sram_init() 110 rh_attach_region(bcom_sram->rh, 0, bcom_sram->size); in bcom_sram_init() 115 rh_attach_region(bcom_sram->rh, zbase - bcom_sram->base_phys, regaddr_p[1]); in bcom_sram_init() 140 rh_destroy(bcom_sram->rh); in bcom_sram_cleanup() 154 offset = rh_alloc_align(bcom_sram->rh, size, align, NULL); in bcom_sram_alloc() 175 rh_free(bcom_sram->rh, offset); in bcom_sram_free()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_droq.c | 351 recv_pkt->rh = info->rh; in octeon_create_recv_info() 530 union octeon_rh *rh, in octeon_droq_dispatch_pkt() argument 539 disp_fn = octeon_get_dispatch(oct, (u16)rh->r.opcode, in octeon_droq_dispatch_pkt() 540 (u16)rh->r.subcode); in octeon_droq_dispatch_pkt() 548 rinfo->recv_pkt->rh = *rh; in octeon_droq_dispatch_pkt() 556 (unsigned int)rh->r.opcode, in octeon_droq_dispatch_pkt() 557 (unsigned int)rh->r.subcode); in octeon_droq_dispatch_pkt() 599 union octeon_rh *rh; in octeon_droq_fast_process_packets() local 624 rh = &info->rh; in octeon_droq_fast_process_packets() 627 rh->r_dh.len += (ROUNDUP8(OCT_DROQ_INFO_SIZE) / sizeof(u64)); in octeon_droq_fast_process_packets() [all …]
|
D | lio_core.c | 573 union octeon_rh *rh, in liquidio_push_packet() argument 628 r_dh_off = (rh->r_dh.len - 1) * BYTES_PER_DHLEN_UNIT; in liquidio_push_packet() 631 if (rh->r_dh.has_hwtstamp) { in liquidio_push_packet() 652 if (rh->r_dh.has_hash) { in liquidio_push_packet() 660 skb_pull(skb, rh->r_dh.len * BYTES_PER_DHLEN_UNIT); in liquidio_push_packet() 664 (((rh->r_dh.encap_on) && in liquidio_push_packet() 665 (rh->r_dh.csum_verified & CNNIC_TUN_CSUM_VERIFIED)) || in liquidio_push_packet() 666 (!(rh->r_dh.encap_on) && in liquidio_push_packet() 667 ((rh->r_dh.csum_verified & CNNIC_CSUM_VERIFIED) == in liquidio_push_packet() 677 if (rh->r_dh.encap_on) { in liquidio_push_packet() [all …]
|
D | octeon_device.c | 1208 (u32)recv_pkt->rh.r_core_drv_init.app_mode), in octeon_core_drv_init() 1210 oct->app_mode = (u32)recv_pkt->rh.r_core_drv_init.app_mode; in octeon_core_drv_init() 1211 if (recv_pkt->rh.r_core_drv_init.app_mode == CVM_DRV_NIC_APP) { in octeon_core_drv_init() 1213 (u32)recv_pkt->rh.r_core_drv_init.max_nic_ports; in octeon_core_drv_init() 1215 (u32)recv_pkt->rh.r_core_drv_init.num_gmx_ports; in octeon_core_drv_init() 1224 oct->fw_info.app_cap_flags = recv_pkt->rh.r_core_drv_init.app_cap_flags; in octeon_core_drv_init() 1225 oct->fw_info.app_mode = (u32)recv_pkt->rh.r_core_drv_init.app_mode; in octeon_core_drv_init() 1226 oct->pfvf_hsword.app_mode = (u32)recv_pkt->rh.r_core_drv_init.app_mode; in octeon_core_drv_init() 1228 oct->pfvf_hsword.pkind = recv_pkt->rh.r_core_drv_init.pkind; in octeon_core_drv_init()
|
D | octeon_network.h | 39 u64 rh; member 69 u64 rh; member 75 u64 rh; member 86 u64 rh; member
|
D | lio_vf_rep.c | 300 union octeon_rh *rh; in lio_vf_rep_pkt_recv() local 309 rh = &recv_pkt->rh; in lio_vf_rep_pkt_recv() 310 ifidx = rh->r.ossp; in lio_vf_rep_pkt_recv() 328 skb_pull(skb, rh->r_dh.len * BYTES_PER_DHLEN_UNIT); in lio_vf_rep_pkt_recv()
|
D | octeon_droq.h | 58 union octeon_rh rh; member 148 union octeon_rh rh; member
|
D | liquidio_common.h | 904 static inline int opcode_slow_path(union octeon_rh *rh) in opcode_slow_path() argument 908 subcode1 = OPCODE_SUBCODE((rh)->r.opcode, (rh)->r.subcode); in opcode_slow_path() 1035 u64 rh; member
|
/drivers/usb/host/ |
D | r8a66597-hcd.c | 996 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in start_root_hub_sampling() local 998 rh->old_syssts = r8a66597_read(r8a66597, get_syssts_reg(port)) & LNST; in start_root_hub_sampling() 999 rh->scount = R8A66597_MAX_SAMPLING; in start_root_hub_sampling() 1001 rh->port |= USB_PORT_STAT_CONNECTION; in start_root_hub_sampling() 1003 rh->port &= ~USB_PORT_STAT_CONNECTION; in start_root_hub_sampling() 1004 rh->port |= USB_PORT_STAT_C_CONNECTION << 16; in start_root_hub_sampling() 1040 struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; in r8a66597_usb_connect() local 1042 rh->port &= ~(USB_PORT_STAT_HIGH_SPEED | USB_PORT_STAT_LOW_SPEED); in r8a66597_usb_connect() 1044 rh->port |= USB_PORT_STAT_HIGH_SPEED; in r8a66597_usb_connect() 1046 rh->port |= USB_PORT_STAT_LOW_SPEED; in r8a66597_usb_connect() [all …]
|
D | ohci-hub.c | 539 u32 rh = roothub_a (ohci); in ohci_hub_descriptor() local 543 desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; in ohci_hub_descriptor() 551 if (rh & RH_A_NPS) /* no power switching? */ in ohci_hub_descriptor() 553 if (rh & RH_A_PSM) /* per-port power switching? */ in ohci_hub_descriptor() 555 if (rh & RH_A_NOCP) /* no overcurrent reporting? */ in ohci_hub_descriptor() 557 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */ in ohci_hub_descriptor() 562 rh = roothub_b (ohci); in ohci_hub_descriptor() 565 desc->u.hs.DeviceRemovable[0] = rh & RH_B_DR; in ohci_hub_descriptor() 567 desc->u.hs.DeviceRemovable[1] = (rh & RH_B_DR) >> 8; in ohci_hub_descriptor()
|
D | ohci-omap.c | 180 u32 rh = roothub_a (ohci); in ohci_omap_reset() local 183 rh &= ~RH_A_NPS; in ohci_omap_reset() 189 rh &= ~RH_A_NOCP; in ohci_omap_reset() 197 ohci_writel(ohci, rh, &ohci->regs->roothub.a); in ohci_omap_reset()
|
/drivers/scsi/snic/ |
D | vnic_dev.c | 85 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local 98 rh = bar->vaddr; in vnic_dev_discover_res() 99 if (!rh) { in vnic_dev_discover_res() 105 if (ioread32(&rh->magic) != VNIC_RES_MAGIC || in vnic_dev_discover_res() 106 ioread32(&rh->version) != VNIC_RES_VERSION) { in vnic_dev_discover_res() 109 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res() 114 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
|
/drivers/scsi/fnic/ |
D | vnic_dev.c | 90 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local 99 rh = bar->vaddr; in vnic_dev_discover_res() 100 if (!rh) { in vnic_dev_discover_res() 105 if (ioread32(&rh->magic) != VNIC_RES_MAGIC || in vnic_dev_discover_res() 106 ioread32(&rh->version) != VNIC_RES_VERSION) { in vnic_dev_discover_res() 110 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res() 114 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
|
/drivers/soc/qcom/ |
D | cmd-db.c | 139 const struct rsc_hdr **rh) in cmd_db_get_header() argument 163 if (rh) in cmd_db_get_header() 164 *rh = rsc_hdr; in cmd_db_get_header()
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_dev.c | 47 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local 60 rh = bar->vaddr; in vnic_dev_discover_res() 62 if (!rh) { in vnic_dev_discover_res() 68 if ((ioread32(&rh->magic) != VNIC_RES_MAGIC) || in vnic_dev_discover_res() 69 (ioread32(&rh->version) != VNIC_RES_VERSION)) { in vnic_dev_discover_res() 75 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res() 83 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
|
/drivers/net/ethernet/broadcom/ |
D | b44.c | 658 struct rx_header *rh; in b44_alloc_rx_skb() local 702 rh = (struct rx_header *) skb->data; in b44_alloc_rx_skb() 704 rh->len = 0; in b44_alloc_rx_skb() 705 rh->flags = 0; in b44_alloc_rx_skb() 733 struct rx_header *rh; in b44_recycle_rx() local 744 rh = (struct rx_header *) src_map->skb->data; in b44_recycle_rx() 745 rh->len = 0; in b44_recycle_rx() 746 rh->flags = 0; in b44_recycle_rx() 789 struct rx_header *rh; in b44_rx() local 795 rh = (struct rx_header *) skb->data; in b44_rx() [all …]
|
/drivers/usb/gadget/function/ |
D | uvc_v4l2.c | 135 u16 rw, u16 rh) in find_closest_frame_by_size() argument 159 d = min(w, rw) * min(h, rh); in find_closest_frame_by_size() 160 d = w*h + rw*rh - 2*d; in find_closest_frame_by_size() 172 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size()
|
/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 164 u16 rw, rh; in uvc_v4l2_try_format() local 199 rh = fmt->fmt.pix.height; in uvc_v4l2_try_format() 206 d = min(w, rw) * min(h, rh); in uvc_v4l2_try_format() 207 d = w*h + rw*rh - 2*d; in uvc_v4l2_try_format()
|
/drivers/crypto/cavium/nitrox/ |
D | nitrox_csr.h | 489 u64 rh : 1; member 495 u64 rh : 1;
|
D | nitrox_hal.c | 206 pkt_slc_ctl.s.rh = 1; in enable_pkt_solicit_port()
|
/drivers/scsi/lpfc/ |
D | lpfc_ct.c | 3443 struct lpfc_fdmi_reg_hba *rh; in lpfc_fdmi_cmd() local 3500 rh = (struct lpfc_fdmi_reg_hba *)&CtReq->un.PortID; in lpfc_fdmi_cmd() 3502 memcpy(&rh->hi.PortName, &phba->pport->fc_sparam.portName, in lpfc_fdmi_cmd() 3508 rh->rpl.EntryCnt = cpu_to_be32(1); in lpfc_fdmi_cmd() 3509 memcpy(&rh->rpl.pe.PortName, in lpfc_fdmi_cmd() 3519 ab = (struct lpfc_fdmi_attr_block *)((uint8_t *)rh + size); in lpfc_fdmi_cmd() 3534 ((uint8_t *)rh + size)); in lpfc_fdmi_cmd() 3553 rh = (struct lpfc_fdmi_reg_hba *)pab; in lpfc_fdmi_cmd() 3555 memcpy(&rh->hi.PortName, in lpfc_fdmi_cmd()
|
/drivers/net/ethernet/microchip/ |
D | enc28j60.c | 293 int rl, rh; in nolock_regw_read() local 297 rh = spi_read_op(priv, ENC28J60_READ_CTRL_REG, address + 1); in nolock_regw_read() 299 return (rh << 8) | rl; in nolock_regw_read()
|