Lines Matching defs:map
19 * struct ihs_axi_regs - Structure for the register map of a IHS AXI device
50 * ihs_axi_set() - Convenience macro to set values in register map
51 * @map: The register map to write to
53 * @val: The value to write to the register map
55 #define ihs_axi_set(map, member, val) \
56 regmap_set(map, struct ihs_axi_regs, member, val)
59 * ihs_axi_get() - Convenience macro to read values from register map
60 * @map: The register map to read from
64 #define ihs_axi_get(map, member, valp) \
65 regmap_get(map, struct ihs_axi_regs, member, valp)
69 * @map: Register map for the IHS AXI device
72 struct regmap *map;
175 ihs_axi_set(priv->map, address_lsb, address & 0xffff);
177 ihs_axi_set(priv->map, address_msb, (address >> 16) & 0xffff);
179 ihs_axi_set(priv->map, interrupt_status, wait_mask);
180 ihs_axi_set(priv->map, interrupt_enable_control, cmd);
183 ihs_axi_get(priv->map, interrupt_status, &status);
194 ihs_axi_get(priv->map, interrupt_status, &status);
233 ihs_axi_get(priv->map, read_data_lsb, &data_lsb);
234 ihs_axi_get(priv->map, read_data_msb, &data_msb);
256 ihs_axi_set(priv->map, write_data_lsb, *p & 0xffff);
258 ihs_axi_set(priv->map, write_data_msb, (*p >> 16) & 0xffff);
284 regmap_init_mem(dev_ofnode(dev), &priv->map);