.. | .. |
---|
194 | 194 | } |
---|
195 | 195 | |
---|
196 | 196 | /** |
---|
| 197 | + * cxgb4_ptp_adjfreq - Adjust frequency of PHC cycle counter |
---|
197 | 198 | * @ptp: ptp clock structure |
---|
198 | 199 | * @ppb: Desired frequency change in parts per billion |
---|
199 | 200 | * |
---|
.. | .. |
---|
229 | 230 | |
---|
230 | 231 | /** |
---|
231 | 232 | * cxgb4_ptp_fineadjtime - Shift the time of the hardware clock |
---|
232 | | - * @ptp: ptp clock structure |
---|
| 233 | + * @adapter: board private structure |
---|
233 | 234 | * @delta: Desired change in nanoseconds |
---|
234 | 235 | * |
---|
235 | 236 | * Adjust the timer by resetting the timecounter structure. |
---|
.. | .. |
---|
366 | 367 | int err; |
---|
367 | 368 | |
---|
368 | 369 | memset(&c, 0, sizeof(c)); |
---|
369 | | - c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | |
---|
370 | | - FW_CMD_REQUEST_F | |
---|
371 | | - FW_CMD_WRITE_F | |
---|
372 | | - FW_PTP_CMD_PORTID_V(0)); |
---|
| 370 | + c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | |
---|
| 371 | + FW_CMD_REQUEST_F | |
---|
| 372 | + FW_CMD_WRITE_F | |
---|
| 373 | + FW_PTP_CMD_PORTID_V(0)); |
---|
373 | 374 | c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); |
---|
374 | 375 | c.u.scmd.sc = FW_PTP_SC_INIT_TIMER; |
---|
375 | 376 | |
---|