Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_ptp.c18 u16 hellcreek_ptp_read(struct hellcreek *hellcreek, unsigned int offset) in hellcreek_ptp_read() argument
20 return readw(hellcreek->ptp_base + offset); in hellcreek_ptp_read()
23 void hellcreek_ptp_write(struct hellcreek *hellcreek, u16 data, in hellcreek_ptp_write() argument
26 writew(data, hellcreek->ptp_base + offset); in hellcreek_ptp_write()
30 static u64 hellcreek_ptp_clock_read(struct hellcreek *hellcreek) in hellcreek_ptp_clock_read() argument
35 hellcreek_ptp_write(hellcreek, PR_COMMAND_C_SS, PR_COMMAND_C); in hellcreek_ptp_clock_read()
44 nsh = hellcreek_ptp_read(hellcreek, PR_SS_SYNC_DATA_C); in hellcreek_ptp_clock_read()
45 nsh = hellcreek_ptp_read(hellcreek, PR_SS_SYNC_DATA_C); in hellcreek_ptp_clock_read()
46 nsh = hellcreek_ptp_read(hellcreek, PR_SS_SYNC_DATA_C); in hellcreek_ptp_clock_read()
47 nsh = hellcreek_ptp_read(hellcreek, PR_SS_SYNC_DATA_C); in hellcreek_ptp_clock_read()
[all …]
H A Dhellcreek.c95 static u16 hellcreek_read(struct hellcreek *hellcreek, unsigned int offset) in hellcreek_read() argument
97 return readw(hellcreek->base + offset); in hellcreek_read()
100 static u16 hellcreek_read_ctrl(struct hellcreek *hellcreek) in hellcreek_read_ctrl() argument
102 return readw(hellcreek->base + HR_CTRL_C); in hellcreek_read_ctrl()
105 static u16 hellcreek_read_stat(struct hellcreek *hellcreek) in hellcreek_read_stat() argument
107 return readw(hellcreek->base + HR_SWSTAT); in hellcreek_read_stat()
110 static void hellcreek_write(struct hellcreek *hellcreek, u16 data, in hellcreek_write() argument
113 writew(data, hellcreek->base + offset); in hellcreek_write()
116 static void hellcreek_select_port(struct hellcreek *hellcreek, int port) in hellcreek_select_port() argument
120 hellcreek_write(hellcreek, val, HR_PSEL); in hellcreek_select_port()
[all …]
H A Dhellcreek_hwtstamp.c21 struct hellcreek *hellcreek = ds->priv; in hellcreek_get_ts_info() local
23 info->phc_index = hellcreek->ptp_clock ? in hellcreek_get_ts_info()
24 ptp_clock_index(hellcreek->ptp_clock) : -1; in hellcreek_get_ts_info()
42 static int hellcreek_set_hwtstamp_config(struct hellcreek *hellcreek, int port, in hellcreek_set_hwtstamp_config() argument
46 &hellcreek->ports[port].port_hwtstamp; in hellcreek_set_hwtstamp_config()
115 struct hellcreek *hellcreek = ds->priv; in hellcreek_port_hwtstamp_set() local
120 ps = &hellcreek->ports[port].port_hwtstamp; in hellcreek_port_hwtstamp_set()
125 err = hellcreek_set_hwtstamp_config(hellcreek, port, &config); in hellcreek_port_hwtstamp_set()
139 struct hellcreek *hellcreek = ds->priv; in hellcreek_port_hwtstamp_get() local
143 ps = &hellcreek->ports[port].port_hwtstamp; in hellcreek_port_hwtstamp_get()
[all …]
H A Dhellcreek_ptp.h60 int hellcreek_ptp_setup(struct hellcreek *hellcreek);
61 void hellcreek_ptp_free(struct hellcreek *hellcreek);
62 u16 hellcreek_ptp_read(struct hellcreek *hellcreek, unsigned int offset);
63 void hellcreek_ptp_write(struct hellcreek *hellcreek, u16 data,
65 u64 hellcreek_ptp_gettime_seconds(struct hellcreek *hellcreek, u64 ns);
68 container_of(ptp, struct hellcreek, ptp_clock_info)
71 container_of(dw, struct hellcreek, overflow_work)
74 container_of(ldev, struct hellcreek, led)
H A Dhellcreek.h224 struct hellcreek;
249 struct hellcreek *hellcreek; member
275 struct hellcreek { struct
H A Dhellcreek_hwtstamp.h55 int hellcreek_hwtstamp_setup(struct hellcreek *chip);
56 void hellcreek_hwtstamp_free(struct hellcreek *chip);
H A DMakefile3 hellcreek_sw-objs := hellcreek.o
/openbmc/linux/
H A DMAINTAINERS9391 F: Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml
9393 F: include/linux/platform_data/hirschmann-hellcreek.h
H A Dopengrok2.0.log[all...]
H A Dopengrok0.0.log[all...]