Home
last modified time | relevance | path

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

/drivers/w1/masters/
Dds1wm.c96 struct ds1wm_data { struct
116 static inline void ds1wm_write_register(struct ds1wm_data *ds1wm_data, u32 reg, in ds1wm_write_register() argument
119 if (ds1wm_data->is_hw_big_endian) { in ds1wm_write_register()
120 switch (ds1wm_data->bus_shift) { in ds1wm_write_register()
122 iowrite8(val, ds1wm_data->map + (reg << 0)); in ds1wm_write_register()
125 iowrite16be((u16)val, ds1wm_data->map + (reg << 1)); in ds1wm_write_register()
128 iowrite32be((u32)val, ds1wm_data->map + (reg << 2)); in ds1wm_write_register()
132 switch (ds1wm_data->bus_shift) { in ds1wm_write_register()
134 iowrite8(val, ds1wm_data->map + (reg << 0)); in ds1wm_write_register()
137 iowrite16((u16)val, ds1wm_data->map + (reg << 1)); in ds1wm_write_register()
[all …]