/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
D | sja1105_clocking.c | 111 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_idiv_config() local 123 sja1105_cgu_idiv_packing(packed_buf, &idiv, PACK); in sja1105_cgu_idiv_config() 126 packed_buf, SJA1105_SIZE_CGU_CMD); in sja1105_cgu_idiv_config() 159 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_mii_tx_clk_config() local 171 sja1105_cgu_mii_control_packing(packed_buf, &mii_tx_clk, PACK); in sja1105_cgu_mii_tx_clk_config() 174 packed_buf, SJA1105_SIZE_CGU_CMD); in sja1105_cgu_mii_tx_clk_config() 182 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_mii_rx_clk_config() local 195 sja1105_cgu_mii_control_packing(packed_buf, &mii_rx_clk, PACK); in sja1105_cgu_mii_rx_clk_config() 198 packed_buf, SJA1105_SIZE_CGU_CMD); in sja1105_cgu_mii_rx_clk_config() 206 u8 packed_buf[SJA1105_SIZE_CGU_CMD] = {0}; in sja1105_cgu_mii_ext_tx_clk_config() local [all …]
|
D | sja1105_spi.c | 167 u8 packed_buf[8]; in sja1105_xfer_u64() local 171 sja1105_pack(packed_buf, value, 63, 0, 8); in sja1105_xfer_u64() 173 rc = sja1105_xfer(priv, rw, reg_addr, packed_buf, 8, ptp_sts); in sja1105_xfer_u64() 176 sja1105_unpack(packed_buf, value, 63, 0, 8); in sja1105_xfer_u64() 186 u8 packed_buf[4]; in sja1105_xfer_u32() local 195 sja1105_pack(packed_buf, &tmp, 31, 0, 4); in sja1105_xfer_u32() 198 rc = sja1105_xfer(priv, rw, reg_addr, packed_buf, 4, ptp_sts); in sja1105_xfer_u32() 201 sja1105_unpack(packed_buf, &tmp, 31, 0, 4); in sja1105_xfer_u32() 212 u8 packed_buf[SJA1105_SIZE_RESET_CMD] = {0}; in sja1105et_reset_cmd() local 216 sja1105_pack(packed_buf, &cold_rst, 3, 3, size); in sja1105et_reset_cmd() [all …]
|
D | sja1105_ethtool.c | 227 u8 packed_buf[SJA1105_SIZE_ETHER_AREA] = {0}; in sja1105pqrs_port_status_get_ether() local 232 packed_buf, SJA1105_SIZE_ETHER_AREA); in sja1105pqrs_port_status_get_ether() 236 sja1105pqrs_port_status_ether_unpack(packed_buf, ether); in sja1105pqrs_port_status_get_ether() 246 u8 packed_buf[SJA1105_SIZE_MAC_AREA] = {0}; in sja1105_port_status_get_mac() local 250 rc = sja1105_xfer_buf(priv, SPI_READ, regs->mac[port], packed_buf, in sja1105_port_status_get_mac() 255 sja1105_port_status_mac_unpack(packed_buf, status); in sja1105_port_status_get_mac() 265 u8 packed_buf[SJA1105_SIZE_HL1_AREA] = {0}; in sja1105_port_status_get_hl1() local 268 rc = sja1105_xfer_buf(priv, SPI_READ, regs->mac_hl1[port], packed_buf, in sja1105_port_status_get_hl1() 273 sja1105_port_status_hl1_unpack(packed_buf, status); in sja1105_port_status_get_hl1() 283 u8 packed_buf[SJA1105_SIZE_QLEVEL_AREA] = {0}; in sja1105_port_status_get_hl2() local [all …]
|
D | sja1105_dynamic_config.c | 856 u8 packed_buf[SJA1105_MAX_DYN_CMD_SIZE] = {0}; in sja1105_dynamic_config_read() local 889 ops->cmd_packing(packed_buf, &cmd, PACK); in sja1105_dynamic_config_read() 892 ops->entry_packing(packed_buf, entry, PACK); in sja1105_dynamic_config_read() 895 rc = sja1105_xfer_buf(priv, SPI_WRITE, ops->addr, packed_buf, in sja1105_dynamic_config_read() 904 memset(packed_buf, 0, ops->packed_size); in sja1105_dynamic_config_read() 907 rc = sja1105_xfer_buf(priv, SPI_READ, ops->addr, packed_buf, in sja1105_dynamic_config_read() 913 ops->cmd_packing(packed_buf, &cmd, UNPACK); in sja1105_dynamic_config_read() 930 ops->entry_packing(packed_buf, entry, UNPACK); in sja1105_dynamic_config_read() 941 u8 packed_buf[SJA1105_MAX_DYN_CMD_SIZE] = {0}; in sja1105_dynamic_config_write() local 967 ops->cmd_packing(packed_buf, &cmd, PACK); in sja1105_dynamic_config_write() [all …]
|
D | sja1105_ptp.c | 294 u8 packed_buf[8]; in sja1105_ptpegr_ts_poll() local 300 packed_buf, priv->info->ptpegr_ts_bytes); in sja1105_ptpegr_ts_poll() 304 sja1105_unpack(packed_buf, &update, 0, 0, in sja1105_ptpegr_ts_poll() 327 sja1105_unpack(packed_buf, ts, tstamp_bit_start, tstamp_bit_end, in sja1105_ptpegr_ts_poll()
|