Home
last modified time | relevance | path

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

/linux/scripts/dtc/libfdt/
A Dfdt_overlay.c120 uint32_t adj_val; in overlay_phandle_add_offset() local
130 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
131 if ((adj_val + delta) < adj_val) in overlay_phandle_add_offset()
134 adj_val += delta; in overlay_phandle_add_offset()
135 if (adj_val == (uint32_t)-1) in overlay_phandle_add_offset()
138 return fdt_setprop_inplace_u32(fdt, node, name, adj_val); in overlay_phandle_add_offset()
255 fdt32_t adj_val; in overlay_update_local_node_references() local
266 memcpy(&adj_val, tree_val + poffset, sizeof(adj_val)); in overlay_update_local_node_references()
268 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
275 &adj_val, in overlay_update_local_node_references()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_ptp.c29 u64 adj_val, adj_base, diff; in hclge_ptp_adjfreq() local
40 adj_val = adj_base * ppb; in hclge_ptp_adjfreq()
41 diff = div_u64(adj_val, 1000000000ULL); in hclge_ptp_adjfreq()
44 adj_val = adj_base - diff; in hclge_ptp_adjfreq()
46 adj_val = adj_base + diff; in hclge_ptp_adjfreq()
53 quo = div_u64_rem(adj_val, cycle->den, &numerator); in hclge_ptp_adjfreq()
185 u32 adj_val = 0; in hclge_ptp_adjtime() local
188 adj_val |= HCLGE_PTP_TIME_NSEC_NEG; in hclge_ptp_adjtime()
204 adj_val |= delta & HCLGE_PTP_TIME_NSEC_MASK; in hclge_ptp_adjtime()
207 writel(adj_val, hdev->ptp->io_base + HCLGE_PTP_TIME_NSEC_REG); in hclge_ptp_adjtime()
/linux/drivers/ptp/
A Dptp_ocp.c610 __ptp_ocp_adjtime_locked(struct ptp_ocp *bp, u64 adj_val) in __ptp_ocp_adjtime_locked() argument
617 iowrite32(adj_val, &bp->reg->offset_ns); in __ptp_ocp_adjtime_locked()
618 iowrite32(adj_val & 0x7f, &bp->reg->offset_window_ns); in __ptp_ocp_adjtime_locked()

Completed in 12 milliseconds