/Linux-v5.15/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 …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/include/linux/ |
D | dm-region-hash.h | 43 void dm_region_hash_destroy(struct dm_region_hash *rh); 45 struct dm_dirty_log *dm_rh_dirty_log(struct dm_region_hash *rh); 50 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio); 51 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region); 57 sector_t dm_rh_get_region_size(struct dm_region_hash *rh); 64 int dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block); 65 void dm_rh_set_state(struct dm_region_hash *rh, region_t region, 69 void dm_rh_update_states(struct dm_region_hash *rh, int errors_handled); 72 int dm_rh_flush(struct dm_region_hash *rh); 75 void dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios); [all …]
|
D | math64.h | 204 } 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-v5.15/crypto/ |
D | vmac.c | 104 #define ADD128(rh, rl, ih, il) \ argument 109 (rh)++; \ 110 (rh) += (ih); \ 115 #define PMUL64(rh, rl, i1, i2) /* Assumes m doesn't overflow */ \ argument 119 rh = MUL32(_i1>>32, _i2>>32); \ 121 ADD128(rh, rl, (m >> 32), (m << 32)); \ 124 #define MUL64(rh, rl, i1, i2) \ argument 129 rh = MUL32(_i1>>32, _i2>>32); \ 131 ADD128(rh, rl, (m1 >> 32), (m1 << 32)); \ 132 ADD128(rh, rl, (m2 >> 32), (m2 << 32)); \ [all …]
|
/Linux-v5.15/arch/powerpc/sysdev/ |
D | fsl_85xx_cache_sram.c | 47 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-v5.15/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()
|
/Linux-v5.15/net/ipv6/netfilter/ |
D | ip6t_rt.c | 34 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-v5.15/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()
|
/Linux-v5.15/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_clock.c | 27 } 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-v5.15/arch/arm/vfp/ |
D | vfp.h | 73 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-v5.15/net/dccp/ccids/lib/ |
D | loss_interval.c | 138 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-v5.15/arch/arm/mm/ |
D | proc-v7-3level.S | 58 #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-v5.15/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()
|
/Linux-v5.15/arch/ia64/kernel/ |
D | salinfo.c | 386 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-v5.15/net/ipv6/ |
D | exthdrs_core.c | 222 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-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/fs/ntfs3/ |
D | fslog.c | 1469 static int next_log_lsn(struct ntfs_log *log, const struct LFS_RECORD_HDR *rh, in next_log_lsn() argument 1473 u64 this_lsn = le64_to_cpu(rh->this_lsn); in next_log_lsn() 1476 final_log_off(log, this_lsn, le32_to_cpu(rh->client_data_len)); in next_log_lsn() 2255 const struct LFS_RECORD_HDR *rh, void *buffer) in read_log_rec_buf() argument 2259 u64 lsn = le64_to_cpu(rh->this_lsn); in read_log_rec_buf() 2262 u32 data_len = le32_to_cpu(rh->client_data_len); in read_log_rec_buf() 2327 struct LFS_RECORD_HDR *rh = NULL; in read_rst_area() local 2342 (struct RECORD_PAGE_HDR **)&rh, NULL); in read_rst_area() 2347 lsnr = le64_to_cpu(rh->this_lsn); in read_rst_area() 2356 len = le32_to_cpu(rh->client_data_len); in read_rst_area() [all …]
|