Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/dsa/sja1105/
Dsja1105_clocking.c107 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_idiv_config() local
119 sja1105_cgu_idiv_packing(packed_buf, &idiv, PACK); in sja1105_cgu_idiv_config()
122 regs->cgu_idiv[port], packed_buf, in sja1105_cgu_idiv_config()
156 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_mii_tx_clk_config() local
168 sja1105_cgu_mii_control_packing(packed_buf, &mii_tx_clk, PACK); in sja1105_cgu_mii_tx_clk_config()
171 regs->mii_tx_clk[port], packed_buf, in sja1105_cgu_mii_tx_clk_config()
180 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_mii_rx_clk_config() local
193 sja1105_cgu_mii_control_packing(packed_buf, &mii_rx_clk, PACK); in sja1105_cgu_mii_rx_clk_config()
196 regs->mii_rx_clk[port], packed_buf, in sja1105_cgu_mii_rx_clk_config()
205 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_mii_ext_tx_clk_config() local
[all …]
Dsja1105_spi.c71 void *packed_buf, size_t size_bytes) in sja1105_spi_send_packed_buf() argument
91 packed_buf, size_bytes); in sja1105_spi_send_packed_buf()
98 memcpy(packed_buf, rx_buf + SJA1105_SIZE_SPI_MSG_HEADER, in sja1105_spi_send_packed_buf()
119 u8 packed_buf[SJA1105_SIZE_SPI_MSG_MAXLEN]; in sja1105_spi_send_int() local
126 sja1105_pack(packed_buf, value, 8 * size_bytes - 1, 0, in sja1105_spi_send_int()
129 rc = sja1105_spi_send_packed_buf(priv, rw, reg_addr, packed_buf, in sja1105_spi_send_int()
133 sja1105_unpack(packed_buf, value, 8 * size_bytes - 1, 0, in sja1105_spi_send_int()
145 void *packed_buf, u64 buf_len) in sja1105_spi_send_long_packed_buf() argument
156 chunk.buf_ptr = packed_buf; in sja1105_spi_send_long_packed_buf()
168 distance_to_end = (uintptr_t)(packed_buf + buf_len - in sja1105_spi_send_long_packed_buf()
[all …]
Dsja1105_ethtool.c166 u8 packed_buf[SJA1105_SIZE_MAC_AREA] = {0}; in sja1105_port_status_get_mac() local
171 packed_buf, SJA1105_SIZE_MAC_AREA); in sja1105_port_status_get_mac()
175 sja1105_port_status_mac_unpack(packed_buf, status); in sja1105_port_status_get_mac()
185 u8 packed_buf[SJA1105_SIZE_HL1_AREA] = {0}; in sja1105_port_status_get_hl1() local
189 packed_buf, SJA1105_SIZE_HL1_AREA); in sja1105_port_status_get_hl1()
193 sja1105_port_status_hl1_unpack(packed_buf, status); in sja1105_port_status_get_hl1()
203 u8 packed_buf[SJA1105_SIZE_QLEVEL_AREA] = {0}; in sja1105_port_status_get_hl2() local
207 packed_buf, SJA1105_SIZE_HL2_AREA); in sja1105_port_status_get_hl2()
211 sja1105_port_status_hl2_unpack(packed_buf, status); in sja1105_port_status_get_hl2()
219 packed_buf, SJA1105_SIZE_QLEVEL_AREA); in sja1105_port_status_get_hl2()
[all …]
Dsja1105_dynamic_config.c650 u8 packed_buf[SJA1105_MAX_DYN_CMD_SIZE] = {0}; in sja1105_dynamic_config_read() local
683 ops->cmd_packing(packed_buf, &cmd, PACK); in sja1105_dynamic_config_read()
686 ops->entry_packing(packed_buf, entry, PACK); in sja1105_dynamic_config_read()
690 packed_buf, ops->packed_size); in sja1105_dynamic_config_read()
698 memset(packed_buf, 0, ops->packed_size); in sja1105_dynamic_config_read()
702 packed_buf, ops->packed_size); in sja1105_dynamic_config_read()
707 ops->cmd_packing(packed_buf, &cmd, UNPACK); in sja1105_dynamic_config_read()
724 ops->entry_packing(packed_buf, entry, UNPACK); in sja1105_dynamic_config_read()
735 u8 packed_buf[SJA1105_MAX_DYN_CMD_SIZE] = {0}; in sja1105_dynamic_config_write() local
761 ops->cmd_packing(packed_buf, &cmd, PACK); in sja1105_dynamic_config_write()
[all …]
Dsja1105_ptp.c178 u8 packed_buf[8]; in sja1105_ptpegr_ts_poll() local
185 packed_buf, in sja1105_ptpegr_ts_poll()
190 sja1105_unpack(packed_buf, &update, 0, 0, in sja1105_ptpegr_ts_poll()
213 sja1105_unpack(packed_buf, ts, tstamp_bit_start, tstamp_bit_end, in sja1105_ptpegr_ts_poll()
Dsja1105.h132 void *packed_buf, size_t size_bytes);
138 void *packed_buf, u64 buf_len);