| /drivers/md/ |
| A D | dm-region-hash.c | 187 rh = kzalloc(sizeof(*rh), GFP_KERNEL); in dm_region_hash_create() 271 return (unsigned int) ((region * rh->prime) >> rh->shift) & rh->mask; in rh_hash() 301 nreg->rh = rh; in __rh_alloc() 369 struct dm_region_hash *rh = reg->rh; in complete_resync_work() local 502 rh->log->type->flush(rh->log); in dm_rh_update_states() 536 rh_inc(rh, dm_rh_bio_to_region(rh, bio)); in dm_rh_inc_pending() 583 rh->wakeup_workers(rh->context); in dm_rh_dec() 666 struct dm_region_hash *rh = reg->rh; in dm_rh_recovery_end() local 676 rh->wakeup_workers(rh->context); in dm_rh_recovery_end() 689 return rh->log->type->flush(rh->log); in dm_rh_flush() [all …]
|
| A D | dm-raid1.c | 70 struct dm_region_hash *rh; member 397 dm_rh_recovery_prepare(ms->rh); in do_recovery() 756 dm_rh_inc_pending(ms->rh, &sync); in do_writes() 757 dm_rh_inc_pending(ms->rh, &nosync); in do_writes() 779 dm_rh_delay(ms->rh, bio); in do_writes() 821 dm_rh_mark_nosync(ms->rh, bio); in do_failures() 926 if (IS_ERR(ms->rh)) { in alloc_context() 943 dm_region_hash_destroy(ms->rh); in free_context() 1339 dm_rh_stop_recovery(ms->rh); in mirror_presuspend() 1342 !dm_rh_recovery_in_flight(ms->rh)); in mirror_presuspend() [all …]
|
| /drivers/i3c/master/mipi-i3c-hci/ |
| A D | dma.c | 169 rh->xfer_struct_sz * rh->xfer_entries, in hci_dma_cleanup() 170 rh->xfer, rh->xfer_dma); in hci_dma_cleanup() 173 rh->resp_struct_sz * rh->xfer_entries, in hci_dma_cleanup() 174 rh->resp, rh->resp_dma); in hci_dma_cleanup() 179 rh->ibi_status, rh->ibi_status_dma); in hci_dma_cleanup() 182 rh->ibi_chunk_sz * rh->ibi_chunks_total, in hci_dma_cleanup() 238 rh->xfer_struct_sz, rh->resp_struct_sz); in hci_dma_init() 250 if (!rh->xfer || !rh->resp || !rh->src_xfers) in hci_dma_init() 287 rh->ibi_chunk_sz = umax(4, rh->ibi_chunk_sz); in hci_dma_init() 302 if (!rh->ibi_status || !rh->ibi_data) in hci_dma_init() [all …]
|
| /drivers/dma/bestcomm/ |
| A D | sram.c | 90 bcom_sram->rh = rh_create(4); in bcom_sram_init() 98 rh_attach_region(bcom_sram->rh, 0, bcom_sram->size); in bcom_sram_init() 103 rh_attach_region(bcom_sram->rh, zbase - bcom_sram->base_phys, regaddr_p[1]); in bcom_sram_init() 128 rh_destroy(bcom_sram->rh); in bcom_sram_cleanup() 142 offset = rh_alloc_align(bcom_sram->rh, size, align, NULL); in bcom_sram_alloc() 163 rh_free(bcom_sram->rh, offset); in bcom_sram_free()
|
| /drivers/net/ethernet/cavium/liquidio/ |
| A D | octeon_droq.c | 348 recv_pkt->rh = info->rh; in octeon_create_recv_info() 527 union octeon_rh *rh, in octeon_droq_dispatch_pkt() argument 537 (u16)rh->r.subcode); in octeon_droq_dispatch_pkt() 545 rinfo->recv_pkt->rh = *rh; in octeon_droq_dispatch_pkt() 553 (unsigned int)rh->r.opcode, in octeon_droq_dispatch_pkt() 554 (unsigned int)rh->r.subcode); in octeon_droq_dispatch_pkt() 596 union octeon_rh *rh; in octeon_droq_fast_process_packets() local 621 rh = &info->rh; in octeon_droq_fast_process_packets() 626 if (opcode_slow_path(rh)) { in octeon_droq_fast_process_packets() 689 rh, &droq->napi, in octeon_droq_fast_process_packets() [all …]
|
| A D | lio_core.c | 582 union octeon_rh *rh, in liquidio_push_packet() argument 640 if (rh->r_dh.has_hwtstamp) { in liquidio_push_packet() 661 if (rh->r_dh.has_hash) { in liquidio_push_packet() 669 skb_pull(skb, rh->r_dh.len * BYTES_PER_DHLEN_UNIT); in liquidio_push_packet() 673 (((rh->r_dh.encap_on) && in liquidio_push_packet() 675 (!(rh->r_dh.encap_on) && in liquidio_push_packet() 686 if (rh->r_dh.encap_on) { in liquidio_push_packet() 694 rh->r_dh.vlan) { in liquidio_push_packet() 695 u16 priority = rh->r_dh.priority; in liquidio_push_packet() 696 u16 vid = rh->r_dh.vlan; in liquidio_push_packet() [all …]
|
| A D | octeon_device.c | 1222 (u32)recv_pkt->rh.r_core_drv_init.app_mode), in octeon_core_drv_init() 1224 oct->app_mode = (u32)recv_pkt->rh.r_core_drv_init.app_mode; in octeon_core_drv_init() 1225 if (recv_pkt->rh.r_core_drv_init.app_mode == CVM_DRV_NIC_APP) { in octeon_core_drv_init() 1227 (u32)recv_pkt->rh.r_core_drv_init.max_nic_ports; in octeon_core_drv_init() 1229 (u32)recv_pkt->rh.r_core_drv_init.num_gmx_ports; in octeon_core_drv_init() 1238 oct->fw_info.app_cap_flags = recv_pkt->rh.r_core_drv_init.app_cap_flags; in octeon_core_drv_init() 1239 oct->fw_info.app_mode = (u32)recv_pkt->rh.r_core_drv_init.app_mode; in octeon_core_drv_init() 1240 oct->pfvf_hsword.app_mode = (u32)recv_pkt->rh.r_core_drv_init.app_mode; in octeon_core_drv_init() 1242 oct->pfvf_hsword.pkind = recv_pkt->rh.r_core_drv_init.pkind; in octeon_core_drv_init()
|
| A D | octeon_network.h | 39 u64 rh; member 69 u64 rh; member 75 u64 rh; member 86 u64 rh; member
|
| A D | lio_vf_rep.c | 299 union octeon_rh *rh; in lio_vf_rep_pkt_recv() local 308 rh = &recv_pkt->rh; in lio_vf_rep_pkt_recv() 309 ifidx = rh->r.ossp; in lio_vf_rep_pkt_recv() 327 skb_pull(skb, rh->r_dh.len * BYTES_PER_DHLEN_UNIT); in lio_vf_rep_pkt_recv()
|
| A D | octeon_droq.h | 58 union octeon_rh rh; member 148 union octeon_rh rh; member
|
| A 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/ |
| A D | r8a66597-hcd.c | 999 rh->scount = R8A66597_MAX_SAMPLING; in start_root_hub_sampling() 1048 rh->port &= ~USB_PORT_STAT_RESET; in r8a66597_usb_connect() 1049 rh->port |= USB_PORT_STAT_ENABLE; in r8a66597_usb_connect() 1705 if (rh->scount > 0) { in r8a66597_root_hub_control() 1707 if (tmp == rh->old_syssts) { in r8a66597_root_hub_control() 1708 rh->scount--; in r8a66597_root_hub_control() 1709 if (rh->scount == 0) in r8a66597_root_hub_control() 1715 rh->old_syssts = tmp; in r8a66597_root_hub_control() 2187 rh->port &= ~(1 << wValue); in r8a66597_hub_control() 2231 rh->port |= 1 << wValue; in r8a66597_hub_control() [all …]
|
| A D | ohci-hub.c | 542 u32 rh = roothub_a (ohci); in ohci_hub_descriptor() local 546 desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; in ohci_hub_descriptor() 554 if (rh & RH_A_NPS) /* no power switching? */ in ohci_hub_descriptor() 556 if (rh & RH_A_PSM) /* per-port power switching? */ in ohci_hub_descriptor() 558 if (rh & RH_A_NOCP) /* no overcurrent reporting? */ in ohci_hub_descriptor() 560 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */ in ohci_hub_descriptor() 565 rh = roothub_b (ohci); in ohci_hub_descriptor() 568 desc->u.hs.DeviceRemovable[0] = rh & RH_B_DR; in ohci_hub_descriptor() 570 desc->u.hs.DeviceRemovable[1] = (rh & RH_B_DR) >> 8; in ohci_hub_descriptor()
|
| A D | ohci-omap.c | 144 u32 rh = roothub_a (ohci); in ohci_omap_reset() local 147 rh &= ~RH_A_NPS; in ohci_omap_reset() 153 rh &= ~RH_A_NOCP; in ohci_omap_reset() 161 ohci_writel(ohci, rh, &ohci->regs->roothub.a); in ohci_omap_reset()
|
| /drivers/scsi/snic/ |
| A D | vnic_dev.c | 71 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local 84 rh = bar->vaddr; in vnic_dev_discover_res() 85 if (!rh) { in vnic_dev_discover_res() 91 if (ioread32(&rh->magic) != VNIC_RES_MAGIC || in vnic_dev_discover_res() 92 ioread32(&rh->version) != VNIC_RES_VERSION) { in vnic_dev_discover_res() 95 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res() 100 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
|
| /drivers/scsi/fnic/ |
| A D | vnic_dev.c | 78 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local 87 rh = bar->vaddr; in vnic_dev_discover_res() 88 if (!rh) { in vnic_dev_discover_res() 93 if (ioread32(&rh->magic) != VNIC_RES_MAGIC || in vnic_dev_discover_res() 94 ioread32(&rh->version) != VNIC_RES_VERSION) { in vnic_dev_discover_res() 98 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res() 102 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
|
| /drivers/soc/qcom/ |
| A D | cmd-db.c | 145 const struct rsc_hdr **rh) in cmd_db_get_header() argument 168 if (rh) in cmd_db_get_header() 169 *rh = rsc_hdr; in cmd_db_get_header()
|
| /drivers/net/ethernet/cisco/enic/ |
| A D | vnic_dev.c | 34 struct vnic_resource_header __iomem *rh; in vnic_dev_discover_res() local 47 rh = bar->vaddr; in vnic_dev_discover_res() 49 if (!rh) { in vnic_dev_discover_res() 55 if ((ioread32(&rh->magic) != VNIC_RES_MAGIC) || in vnic_dev_discover_res() 56 (ioread32(&rh->version) != VNIC_RES_VERSION)) { in vnic_dev_discover_res() 62 ioread32(&rh->magic), ioread32(&rh->version)); in vnic_dev_discover_res() 70 r = (struct vnic_resource __iomem *)(rh + 1); in vnic_dev_discover_res()
|
| /drivers/net/ethernet/broadcom/ |
| A D | b44.c | 636 struct rx_header *rh; in b44_alloc_rx_skb() local 680 rh = (struct rx_header *) skb->data; in b44_alloc_rx_skb() 682 rh->len = 0; in b44_alloc_rx_skb() 683 rh->flags = 0; in b44_alloc_rx_skb() 711 struct rx_header *rh; in b44_recycle_rx() local 723 rh->len = 0; in b44_recycle_rx() 724 rh->flags = 0; in b44_recycle_rx() 767 struct rx_header *rh; in b44_rx() local 773 rh = (struct rx_header *) skb->data; in b44_rx() 774 len = le16_to_cpu(rh->len); in b44_rx() [all …]
|
| /drivers/usb/gadget/function/ |
| A D | uvc_v4l2.c | 147 u16 rw, u16 rh) in find_closest_frame_by_size() argument 171 d = min(w, rw) * min(h, rh); in find_closest_frame_by_size() 172 d = w*h + rw*rh - 2*d; in find_closest_frame_by_size() 184 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size()
|
| /drivers/media/usb/uvc/ |
| A D | uvc_v4l2.c | 245 u16 rw, rh; in uvc_v4l2_try_format() local 282 rh = fmt->fmt.pix.height; in uvc_v4l2_try_format() 289 d = min(w, rw) * min(h, rh); in uvc_v4l2_try_format() 290 d = w*h + rw*rh - 2*d; in uvc_v4l2_try_format()
|
| /drivers/gpio/ |
| A D | gpiolib.h | 165 struct rcu_head rh; member
|
| /drivers/scsi/lpfc/ |
| A D | lpfc_ct.c | 3172 struct lpfc_fdmi_reg_hba *rh; in lpfc_fdmi_cmd() local 3234 rh = (struct lpfc_fdmi_reg_hba *)&CtReq->un; in lpfc_fdmi_cmd() 3236 memcpy(&rh->hi.PortName, &phba->pport->fc_sparam.portName, in lpfc_fdmi_cmd() 3243 rh->rpl.EntryCnt = cpu_to_be32(1); in lpfc_fdmi_cmd() 3244 memcpy(&rh->rpl.pe.PortName, in lpfc_fdmi_cmd() 3250 ab = (struct lpfc_fdmi_attr_block *)((uint8_t *)rh + size); in lpfc_fdmi_cmd() 3264 addsz = func(vport, ((uint8_t *)rh + size)); in lpfc_fdmi_cmd() 3295 rh = (struct lpfc_fdmi_reg_hba *)base; in lpfc_fdmi_cmd() 3297 memcpy(&rh->hi.PortName, in lpfc_fdmi_cmd()
|
| /drivers/crypto/cavium/nitrox/ |
| A D | nitrox_csr.h | 489 u64 rh : 1; member 495 u64 rh : 1;
|
| /drivers/net/ethernet/microchip/ |
| A D | enc28j60.c | 292 int rl, rh; in nolock_regw_read() local 296 rh = spi_read_op(priv, ENC28J60_READ_CTRL_REG, address + 1); in nolock_regw_read() 298 return (rh << 8) | rl; in nolock_regw_read()
|