Home
last modified time | relevance | path

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

123

/linux/drivers/md/
A Ddm-region-hash.c184 rh = kzalloc(sizeof(*rh), GFP_KERNEL); in dm_region_hash_create()
268 return (unsigned) ((region * rh->prime) >> rh->shift) & rh->mask; in rh_hash()
298 nreg->rh = rh; in __rh_alloc()
366 struct dm_region_hash *rh = reg->rh; in complete_resync_work() local
499 rh->log->type->flush(rh->log); in dm_rh_update_states()
533 rh_inc(rh, dm_rh_bio_to_region(rh, bio)); in dm_rh_inc_pending()
580 rh->wakeup_workers(rh->context); in dm_rh_dec()
663 struct dm_region_hash *rh = reg->rh; in dm_rh_recovery_end() local
673 rh->wakeup_workers(rh->context); in dm_rh_recovery_end()
686 return rh->log->type->flush(rh->log); in dm_rh_flush()
[all …]
A Ddm-raid1.c65 struct dm_region_hash *rh; member
392 dm_rh_recovery_prepare(ms->rh); in do_recovery()
749 dm_rh_inc_pending(ms->rh, &sync); in do_writes()
750 dm_rh_inc_pending(ms->rh, &nosync); in do_writes()
772 dm_rh_delay(ms->rh, bio); in do_writes()
814 dm_rh_mark_nosync(ms->rh, bio); in do_failures()
915 if (IS_ERR(ms->rh)) { in alloc_context()
932 dm_region_hash_destroy(ms->rh); in free_context()
1328 dm_rh_stop_recovery(ms->rh); in mirror_presuspend()
1331 !dm_rh_recovery_in_flight(ms->rh)); in mirror_presuspend()
[all …]
/linux/drivers/i3c/master/mipi-i3c-hci/
A Ddma.c184 rh->xfer_struct_sz * rh->xfer_entries, in hci_dma_cleanup()
185 rh->xfer, rh->xfer_dma); 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()
193 rh->ibi_status_sz * rh->ibi_status_entries, in hci_dma_cleanup()
194 rh->ibi_status, rh->ibi_status_dma); in hci_dma_cleanup()
197 rh->ibi_chunk_sz * rh->ibi_chunks_total, in hci_dma_cleanup()
250 rh->xfer_struct_sz, rh->resp_struct_sz); in hci_dma_init()
262 if (!rh->xfer || !rh->resp || !rh->src_xfers) in hci_dma_init()
304 if (!rh->ibi_status || !rh->ibi_data) in hci_dma_init()
[all …]
/linux/include/linux/
A Ddm-region-hash.h43 void dm_region_hash_destroy(struct dm_region_hash *rh);
45 struct dm_dirty_log *dm_rh_dirty_log(struct dm_region_hash *rh);
57 sector_t dm_rh_get_region_size(struct dm_region_hash *rh);
65 void dm_rh_set_state(struct dm_region_hash *rh, region_t region,
72 int dm_rh_flush(struct dm_region_hash *rh);
76 void dm_rh_dec(struct dm_region_hash *rh, region_t region);
79 void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio);
88 void dm_rh_recovery_prepare(struct dm_region_hash *rh);
97 int dm_rh_recovery_in_flight(struct dm_region_hash *rh);
100 void dm_rh_start_recovery(struct dm_region_hash *rh);
[all …]
A Dmath64.h204 } rl, rm, rn, rh, a0, b0; in mul_u64_u64_shr() local
213 rh.ll = mul_u32_u32(a0.l.high, b0.l.high); in mul_u64_u64_shr()
221 rh.l.low = c = (c >> 32) + rm.l.high + rn.l.high + rh.l.low; in mul_u64_u64_shr()
222 rh.l.high = (c >> 32) + rh.l.high; in mul_u64_u64_shr()
231 return (rl.ll >> shift) | (rh.ll << (64 - shift)); in mul_u64_u64_shr()
232 return rh.ll >> (shift & 63); in mul_u64_u64_shr()
268 } u, rl, rh; in mul_u64_u32_div() local
272 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div()
275 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
280 rl.l.high = rh.l.low; in mul_u64_u32_div()
/linux/crypto/
A Dvmac.c109 (rh)++; \
152 rh = rl = 0; \
178 rh = rl = 0; \
387 t = rh >> 56; in l3hash()
389 rh <<= 8; in l3hash()
408 u64 rh, rl; in vhash_blocks() local
413 rh &= m62; in vhash_blocks()
421 rh &= m62; in vhash_blocks()
546 u64 rh, rl; in vhash_final() local
550 rh &= m62; in vhash_final()
[all …]
/linux/arch/powerpc/sysdev/
A Dfsl_85xx_cache_sram.c47 offset = rh_alloc_align(cache_sram->rh, size, align, NULL); in mpc85xx_cache_sram_alloc()
65 rh_free(cache_sram->rh, ptr - cache_sram->base_virt); in mpc85xx_cache_sram_free()
106 cache_sram->rh = rh_create(sizeof(unsigned int)); in instantiate_cache_sram()
107 if (IS_ERR(cache_sram->rh)) { in instantiate_cache_sram()
110 ret = PTR_ERR(cache_sram->rh); in instantiate_cache_sram()
114 rh_attach_region(cache_sram->rh, 0, cache_sram->size); in instantiate_cache_sram()
137 rh_detach_region(cache_sram->rh, 0, cache_sram->size); in remove_cache_sram()
138 rh_destroy(cache_sram->rh); in remove_cache_sram()
/linux/drivers/dma/bestcomm/
A Dsram.c97 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()
/linux/net/ipv6/netfilter/
A Dip6t_rt.c34 const struct ipv6_rt_hdr *rh; in rt_mt6() local
51 rh = skb_header_pointer(skb, ptr, sizeof(_route), &_route); in rt_mt6()
52 if (rh == NULL) { in rt_mt6()
57 hdrlen = ipv6_optlen(rh); in rt_mt6()
64 rh->segments_left, in rt_mt6()
70 ((rtinfo->rt_type == rh->type) ^ in rt_mt6()
/linux/drivers/net/ethernet/cavium/liquidio/
A Docteon_droq.c351 recv_pkt->rh = info->rh; in octeon_create_recv_info()
530 union octeon_rh *rh, in octeon_droq_dispatch_pkt() argument
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()
629 if (opcode_slow_path(rh)) { in octeon_droq_fast_process_packets()
692 rh, &droq->napi, in octeon_droq_fast_process_packets()
[all …]
A Dlio_core.c572 union octeon_rh *rh, in liquidio_push_packet() argument
630 if (rh->r_dh.has_hwtstamp) { in liquidio_push_packet()
651 if (rh->r_dh.has_hash) { in liquidio_push_packet()
659 skb_pull(skb, rh->r_dh.len * BYTES_PER_DHLEN_UNIT); in liquidio_push_packet()
663 (((rh->r_dh.encap_on) && in liquidio_push_packet()
665 (!(rh->r_dh.encap_on) && in liquidio_push_packet()
676 if (rh->r_dh.encap_on) { in liquidio_push_packet()
684 rh->r_dh.vlan) { in liquidio_push_packet()
685 u16 priority = rh->r_dh.priority; in liquidio_push_packet()
686 u16 vid = rh->r_dh.vlan; in liquidio_push_packet()
[all …]
A Docteon_device.c1208 (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()
/linux/tools/testing/selftests/kvm/x86_64/
A Dhyperv_clock.c27 } rm, rn, rh, a0, b0; in mul_u64_u64_shr64() local
35 rh.ll = (u64)a0.l.high * b0.l.high; in mul_u64_u64_shr64()
37 rh.l.low = c = rm.l.high + rn.l.high + rh.l.low; in mul_u64_u64_shr64()
38 rh.l.high = (c >> 32) + rh.l.high; in mul_u64_u64_shr64()
40 return rh.ll; in mul_u64_u64_shr64()
/linux/arch/arm/vfp/
A Dvfp.h73 u64 rh, rma, rmb, rl; in mul64to128() local
86 rh = (u64)nh * mh; in mul64to128()
87 rh += ((u64)(rma < rmb) << 32) + (rma >> 32); in mul64to128()
91 rh += (rl < rma); in mul64to128()
94 *resh = rh; in mul64to128()
105 u64 rh, rl; in vfp_hi64multiply64() local
106 mul64to128(&rh, &rl, n, m); in vfp_hi64multiply64()
107 return rh | (rl != 0); in vfp_hi64multiply64()
/linux/net/dccp/ccids/lib/
A Dloss_interval.c138 int tfrc_lh_interval_add(struct tfrc_loss_hist *lh, struct tfrc_rx_hist *rh, in tfrc_lh_interval_add() argument
143 if (cur != NULL && !tfrc_lh_is_new_loss(cur, tfrc_rx_hist_loss_prev(rh))) in tfrc_lh_interval_add()
152 new->li_seqno = tfrc_rx_hist_loss_prev(rh)->tfrchrx_seqno; in tfrc_lh_interval_add()
153 new->li_ccval = tfrc_rx_hist_loss_prev(rh)->tfrchrx_ccval; in tfrc_lh_interval_add()
161 tfrc_rx_hist_last_rcv(rh)->tfrchrx_seqno) + 1; in tfrc_lh_interval_add()
/linux/drivers/usb/host/
A Dr8a66597-hcd.c999 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 Dohci-hub.c542 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 Dohci-omap.c180 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()
/linux/arch/arm/mm/
A Dproc-v7-3level.S58 #define rh r2 macro
61 #define rh r3 macro
75 tst rh, #1 << (57 - 32) @ L_PTE_NONE
79 eor ip, rh, #1 << (55 - 32) @ toggle L_PTE_DIRTY in temp reg to
/linux/arch/ia64/kernel/
A Dsalinfo.c386 sal_log_record_header_t *rh; in salinfo_log_read_cpu() local
388 rh = (sal_log_record_header_t *)(data->log_buffer); in salinfo_log_read_cpu()
390 if (rh->severity == sal_log_severity_corrected) in salinfo_log_read_cpu()
408 sal_log_record_header_t *rh = (sal_log_record_header_t *)(data_saved->buffer); in salinfo_log_new_read() local
410 memcpy(data->log_buffer, rh, data->log_size); in salinfo_log_new_read()
412 if (rh->id == data_saved->id) { in salinfo_log_new_read()
465 sal_log_record_header_t *rh; in salinfo_log_clear() local
479 rh = (sal_log_record_header_t *)(data->log_buffer); in salinfo_log_clear()
481 if (rh->severity != sal_log_severity_corrected) in salinfo_log_clear()
/linux/net/ipv6/
A Dexthdrs_core.c222 struct ipv6_rt_hdr _rh, *rh; in ipv6_find_hdr() local
224 rh = skb_header_pointer(skb, start, sizeof(_rh), in ipv6_find_hdr()
226 if (!rh) in ipv6_find_hdr()
230 rh->segments_left == 0) in ipv6_find_hdr()
/linux/drivers/scsi/snic/
A Dvnic_dev.c85 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()
/linux/drivers/scsi/fnic/
A Dvnic_dev.c90 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()
/linux/drivers/soc/qcom/
A Dcmd-db.c139 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()
/linux/fs/ntfs3/
A Dfslog.c2327 struct LFS_RECORD_HDR *rh = NULL; in read_rst_area() local
2347 lsnr = le64_to_cpu(rh->this_lsn); in read_rst_area()
2383 kfree(rh); in read_rst_area()
2396 if (!rh) { in find_log_rec()
2400 lcb->lrh = rh; in find_log_rec()
3772 struct RESTART_HDR *rh; in log_replay() local
5122 if (!rh) { in log_replay()
5136 rh->ra_off = cpu_to_le16(t16); in log_replay()
5140 ra2 = Add2Ptr(rh, t16); in log_replay()
5154 rh, log->page_size, 0); in log_replay()
[all …]

Completed in 78 milliseconds

123