Lines Matching refs:c
130 struct fw_ptp_cmd c; in cxgb4_ptprx_timestamping() local
133 memset(&c, 0, sizeof(c)); in cxgb4_ptprx_timestamping()
134 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptprx_timestamping()
138 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptprx_timestamping()
139 c.u.init.sc = FW_PTP_SC_RXTIME_STAMP; in cxgb4_ptprx_timestamping()
140 c.u.init.mode = cpu_to_be16(mode); in cxgb4_ptprx_timestamping()
142 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptprx_timestamping()
151 struct fw_ptp_cmd c; in cxgb4_ptp_txtype() local
154 memset(&c, 0, sizeof(c)); in cxgb4_ptp_txtype()
155 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_txtype()
159 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_txtype()
160 c.u.init.sc = FW_PTP_SC_TX_TYPE; in cxgb4_ptp_txtype()
161 c.u.init.mode = cpu_to_be16(PTP_TS_NONE); in cxgb4_ptp_txtype()
163 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptp_txtype()
175 struct fw_ptp_cmd c; in cxgb4_ptp_redirect_rx_packet() local
178 memset(&c, 0, sizeof(c)); in cxgb4_ptp_redirect_rx_packet()
179 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_redirect_rx_packet()
184 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_redirect_rx_packet()
185 c.u.init.sc = FW_PTP_SC_RDRX_TYPE; in cxgb4_ptp_redirect_rx_packet()
186 c.u.init.txchan = pi->tx_chan; in cxgb4_ptp_redirect_rx_packet()
187 c.u.init.absid = cpu_to_be16(receive_q->rspq.abs_id); in cxgb4_ptp_redirect_rx_packet()
189 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptp_redirect_rx_packet()
207 struct fw_ptp_cmd c; in cxgb4_ptp_adjfreq() local
210 memset(&c, 0, sizeof(c)); in cxgb4_ptp_adjfreq()
211 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_adjfreq()
215 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_adjfreq()
216 c.u.ts.sc = FW_PTP_SC_ADJ_FREQ; in cxgb4_ptp_adjfreq()
217 c.u.ts.sign = (ppb < 0) ? 1 : 0; in cxgb4_ptp_adjfreq()
220 c.u.ts.ppb = cpu_to_be32(ppb); in cxgb4_ptp_adjfreq()
222 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptp_adjfreq()
239 struct fw_ptp_cmd c; in cxgb4_ptp_fineadjtime() local
242 memset(&c, 0, sizeof(c)); in cxgb4_ptp_fineadjtime()
243 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_fineadjtime()
247 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_fineadjtime()
248 c.u.ts.sc = FW_PTP_SC_ADJ_FTIME; in cxgb4_ptp_fineadjtime()
249 c.u.ts.tm = cpu_to_be64(delta); in cxgb4_ptp_fineadjtime()
251 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptp_fineadjtime()
270 struct fw_ptp_cmd c; in cxgb4_ptp_adjtime() local
278 memset(&c, 0, sizeof(c)); in cxgb4_ptp_adjtime()
279 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_adjtime()
283 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_adjtime()
284 c.u.ts.sc = FW_PTP_SC_ADJ_TIME; in cxgb4_ptp_adjtime()
285 c.u.ts.sign = (delta < 0) ? 1 : 0; in cxgb4_ptp_adjtime()
288 c.u.ts.tm = cpu_to_be64(delta); in cxgb4_ptp_adjtime()
290 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptp_adjtime()
313 struct fw_ptp_cmd c; in cxgb4_ptp_gettime() local
317 memset(&c, 0, sizeof(c)); in cxgb4_ptp_gettime()
318 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_gettime()
322 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_gettime()
323 c.u.ts.sc = FW_PTP_SC_GET_TIME; in cxgb4_ptp_gettime()
325 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), &c); in cxgb4_ptp_gettime()
333 ns = be64_to_cpu(c.u.ts.tm); in cxgb4_ptp_gettime()
352 struct fw_ptp_cmd c; in cxgb4_ptp_settime() local
356 memset(&c, 0, sizeof(c)); in cxgb4_ptp_settime()
357 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_settime()
361 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptp_settime()
362 c.u.ts.sc = FW_PTP_SC_SET_TIME; in cxgb4_ptp_settime()
365 c.u.ts.tm = cpu_to_be64(ns); in cxgb4_ptp_settime()
367 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptp_settime()
377 struct fw_ptp_cmd c; in cxgb4_init_ptp_timer() local
380 memset(&c, 0, sizeof(c)); in cxgb4_init_ptp_timer()
381 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_init_ptp_timer()
385 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_init_ptp_timer()
386 c.u.scmd.sc = FW_PTP_SC_INIT_TIMER; in cxgb4_init_ptp_timer()
388 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_init_ptp_timer()