Searched refs:first_byte (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/common_modules/newip/src/common/ |
D | nip_addr.c | 53 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 100 return first_byte == ADDR_FIRST_F3 ? NIP_TRUE : NIP_FALSE; in is_7byte_addr_flag() [all …]
|
/kernel/linux/common_modules/newip/examples/ |
D | nip_lib.c | 51 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 == ADDR_FIRST_FE) in nip_addr_fmt() 92 printf("Newip addr error, first_byte=0x%x\n", first_byte); in nip_addr_fmt()
|
/kernel/linux/linux-5.10/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-regmap.c | 81 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()
|
D | mcp251xfd-core.c | 189 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-5.10/drivers/staging/rts5208/ |
D | spi.c | 714 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-5.10/fs/btrfs/ |
D | compression.c | 390 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()
|
D | extent_io.h | 275 struct bio *btrfs_bio_alloc(u64 first_byte);
|
D | extent_io.c | 2962 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()
|