Home
last modified time | relevance | path

Searched refs:adj_val (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_overlay.c165 uint32_t adj_val; in overlay_phandle_add_offset() local
175 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
176 if ((adj_val + delta) < adj_val) in overlay_phandle_add_offset()
179 adj_val += delta; in overlay_phandle_add_offset()
180 if (adj_val == (uint32_t)-1) in overlay_phandle_add_offset()
183 return fdt_setprop_inplace_u32(fdt, node, name, adj_val); in overlay_phandle_add_offset()
299 fdt32_t adj_val; in overlay_update_local_node_references() local
310 memcpy(&adj_val, tree_val + poffset, sizeof(adj_val)); in overlay_update_local_node_references()
312 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
319 &adj_val, in overlay_update_local_node_references()
[all …]
/openbmc/linux/scripts/dtc/libfdt/
H A Dfdt_overlay.c105 uint32_t adj_val; in overlay_phandle_add_offset() local
115 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
116 if ((adj_val + delta) < adj_val) in overlay_phandle_add_offset()
119 adj_val += delta; in overlay_phandle_add_offset()
120 if (adj_val == (uint32_t)-1) in overlay_phandle_add_offset()
123 return fdt_setprop_inplace_u32(fdt, node, name, adj_val); in overlay_phandle_add_offset()
240 fdt32_t adj_val; in overlay_update_local_node_references() local
251 memcpy(&adj_val, tree_val + poffset, sizeof(adj_val)); in overlay_update_local_node_references()
253 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
260 &adj_val, in overlay_update_local_node_references()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_ptp.c29 u64 adj_val, adj_base; in hclge_ptp_adjfine() local
34 adj_val = adjust_by_scaled_ppm(adj_base, scaled_ppm); in hclge_ptp_adjfine()
41 quo = div_u64_rem(adj_val, cycle->den, &numerator); in hclge_ptp_adjfine()
173 u32 adj_val = 0; in hclge_ptp_adjtime() local
176 adj_val |= HCLGE_PTP_TIME_NSEC_NEG; in hclge_ptp_adjtime()
192 adj_val |= delta & HCLGE_PTP_TIME_NSEC_MASK; in hclge_ptp_adjtime()
195 writel(adj_val, hdev->ptp->io_base + HCLGE_PTP_TIME_NSEC_REG); in hclge_ptp_adjtime()
/openbmc/linux/drivers/ptp/
H A Dptp_ocp.c1062 __ptp_ocp_adjtime_locked(struct ptp_ocp *bp, u32 adj_val) in __ptp_ocp_adjtime_locked() argument
1069 iowrite32(adj_val, &bp->reg->offset_ns); in __ptp_ocp_adjtime_locked()