Home
last modified time | relevance | path

Searched refs:first_byte (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/common_modules/newip/src/common/
H A Dnip_addr.c53 static inline int is_1byte_addr_flag(unsigned char first_byte) in is_1byte_addr_flag() argument
55 return first_byte <= ADDR_FIRST_DC ? NIP_TRUE : NIP_FALSE; in is_1byte_addr_flag()
67 static inline int is_2byte_addr_flag(unsigned char first_byte) in is_2byte_addr_flag() argument
69 return (first_byte > ADDR_FIRST_DC) && (first_byte <= ADDR_FIRST_F0) ? in is_2byte_addr_flag()
78 static inline int is_3byte_addr_flag(unsigned char first_byte) in is_3byte_addr_flag() argument
80 return first_byte == ADDR_FIRST_F1 ? NIP_TRUE : NIP_FALSE; in is_3byte_addr_flag()
88 static inline int is_5byte_addr_flag(unsigned char first_byte) in is_5byte_addr_flag() argument
90 return first_byte == ADDR_FIRST_F2 ? NIP_TRUE : NIP_FALSE; in is_5byte_addr_flag()
98 static inline int is_7byte_addr_flag(unsigned char first_byte) in is_7byte_addr_flag() argument
108 is_8byte_addr_flag(unsigned char first_byte) is_8byte_addr_flag() argument
126 is_public_addr_flag(unsigned char first_byte) is_public_addr_flag() argument
147 nip_addr_1byte_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_1byte_check() argument
167 nip_addr_2byte_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_2byte_check() argument
188 nip_addr_3byte_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_3byte_check() argument
208 nip_addr_5byte_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_5byte_check() argument
228 nip_addr_7byte_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_7byte_check() argument
248 nip_addr_8byte_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_8byte_check() argument
272 nip_addr_public_check(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_public_check() argument
283 nip_addr_unknown(unsigned char first_byte, unsigned char second_byte, unsigned char third_byte, int addr_len) nip_addr_unknown() argument
309 unsigned char first_byte, second_byte, third_byte; nip_addr_invalid() local
371 unsigned char first_byte = addr->NIP_ADDR_FIELD8[0]; get_nip_addr_len() local
[all...]
/kernel/linux/common_modules/newip/examples/
H A Dnip_lib.c51 unsigned char first_byte; in nip_addr_fmt() local
74 first_byte = addr_str[0] << NIP_ADDR_LEN_4; in nip_addr_fmt()
75 first_byte += addr_str[1]; in nip_addr_fmt()
76 if (first_byte <= ADDR_FIRST_DC) in nip_addr_fmt()
78 else if (first_byte <= ADDR_FIRST_F0 || first_byte == ADDR_FIRST_FF) in nip_addr_fmt()
80 else if (first_byte == ADDR_FIRST_F1) in nip_addr_fmt()
82 else if (first_byte == ADDR_FIRST_F2) in nip_addr_fmt()
84 else if (first_byte == ADDR_FIRST_F3) in nip_addr_fmt()
86 else if (first_byte in nip_addr_fmt()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-regmap.c81 u8 first_byte, last_byte, len; in mcp251xfd_regmap_nocrc_update_bits() local
91 first_byte = mcp251xfd_first_byte_set(mask); in mcp251xfd_regmap_nocrc_update_bits()
93 len = last_byte - first_byte + 1; in mcp251xfd_regmap_nocrc_update_bits()
118 mcp251xfd_spi_cmd_read_nocrc(&buf_tx->cmd, reg + first_byte); in mcp251xfd_regmap_nocrc_update_bits()
126 mask_le32 = cpu_to_le32(mask >> BITS_PER_BYTE * first_byte); in mcp251xfd_regmap_nocrc_update_bits()
127 val_le32 = cpu_to_le32(val >> BITS_PER_BYTE * first_byte); in mcp251xfd_regmap_nocrc_update_bits()
132 mcp251xfd_spi_cmd_write_nocrc(&buf_tx->cmd, reg + first_byte); in mcp251xfd_regmap_nocrc_update_bits()
H A Dmcp251xfd-core.c189 u8 first_byte, last_byte, len; in mcp251xfd_cmd_prepare_write_reg() local
193 first_byte = mcp251xfd_first_byte_set(mask); in mcp251xfd_cmd_prepare_write_reg()
195 len = last_byte - first_byte + 1; in mcp251xfd_cmd_prepare_write_reg()
197 data = mcp251xfd_spi_cmd_write(priv, write_reg_buf, reg + first_byte); in mcp251xfd_cmd_prepare_write_reg()
198 val_le32 = cpu_to_le32(val >> BITS_PER_BYTE * first_byte); in mcp251xfd_cmd_prepare_write_reg()
/kernel/linux/linux-6.6/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-regmap.c91 u8 first_byte, last_byte, len; in mcp251xfd_regmap_nocrc_update_bits() local
101 first_byte = mcp251xfd_first_byte_set(mask); in mcp251xfd_regmap_nocrc_update_bits()
103 len = last_byte - first_byte + 1; in mcp251xfd_regmap_nocrc_update_bits()
128 mcp251xfd_spi_cmd_read_nocrc(&buf_tx->cmd, reg + first_byte); in mcp251xfd_regmap_nocrc_update_bits()
136 mask_le32 = cpu_to_le32(mask >> BITS_PER_BYTE * first_byte); in mcp251xfd_regmap_nocrc_update_bits()
137 val_le32 = cpu_to_le32(val >> BITS_PER_BYTE * first_byte); in mcp251xfd_regmap_nocrc_update_bits()
142 mcp251xfd_spi_cmd_write_nocrc(&buf_tx->cmd, reg + first_byte); in mcp251xfd_regmap_nocrc_update_bits()
H A Dmcp251xfd-ring.c25 u8 first_byte, last_byte, len; in mcp251xfd_cmd_prepare_write_reg() local
29 first_byte = mcp251xfd_first_byte_set(mask); in mcp251xfd_cmd_prepare_write_reg()
31 len = last_byte - first_byte + 1; in mcp251xfd_cmd_prepare_write_reg()
33 data = mcp251xfd_spi_cmd_write(priv, write_reg_buf, reg + first_byte, len); in mcp251xfd_cmd_prepare_write_reg()
34 val_le32 = cpu_to_le32(val >> BITS_PER_BYTE * first_byte); in mcp251xfd_cmd_prepare_write_reg()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dextent_io.c4419 unsigned int first_byte = start + BIT_BYTE(pos); in extent_buffer_bitmap_set() local
4421 const bool same_byte = (first_byte == last_byte); in extent_buffer_bitmap_set()
4429 kaddr = extent_buffer_get_byte(eb, first_byte); in extent_buffer_bitmap_set()
4435 ASSERT(first_byte + 1 <= last_byte); in extent_buffer_bitmap_set()
4436 memset_extent_buffer(eb, 0xff, first_byte + 1, last_byte - first_byte - 1); in extent_buffer_bitmap_set()
4456 unsigned int first_byte = start + BIT_BYTE(pos); in extent_buffer_bitmap_clear() local
4458 const bool same_byte = (first_byte == last_byte); in extent_buffer_bitmap_clear()
4466 kaddr = extent_buffer_get_byte(eb, first_byte); in extent_buffer_bitmap_clear()
4472 ASSERT(first_byte in extent_buffer_bitmap_clear()
[all...]
/kernel/linux/linux-5.10/drivers/staging/rts5208/
H A Dspi.c714 int first_byte = 1; in spi_write_flash() local
734 if (first_byte) { in spi_write_flash()
736 first_byte = 0; in spi_write_flash()
/kernel/linux/linux-6.6/drivers/staging/rts5208/
H A Dspi.c712 int first_byte = 1; in spi_write_flash() local
732 if (first_byte) { in spi_write_flash()
734 first_byte = 0; in spi_write_flash()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dcompression.c390 u64 first_byte = disk_start; in btrfs_submit_compressed_write() local
409 bio = btrfs_bio_alloc(first_byte); in btrfs_submit_compressed_write()
456 bio = btrfs_bio_alloc(first_byte); in btrfs_submit_compressed_write()
470 first_byte += PAGE_SIZE; in btrfs_submit_compressed_write()
H A Dextent_io.h275 struct bio *btrfs_bio_alloc(u64 first_byte);
H A Dextent_io.c2962 struct bio *btrfs_bio_alloc(u64 first_byte) in btrfs_bio_alloc() argument
2967 bio->bi_iter.bi_sector = first_byte >> 9; in btrfs_bio_alloc()
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c257 bool first_byte = true; in bcmasp_netfilt_wr_m_wake() local
268 if (first_byte && (!IS_ALIGNED(offset, 4) || size < 3)) { in bcmasp_netfilt_wr_m_wake()
289 first_byte = true; in bcmasp_netfilt_wr_m_wake()
291 first_byte = false; in bcmasp_netfilt_wr_m_wake()

Completed in 26 milliseconds