/kernel/linux/linux-5.10/include/rdma/ |
H A D | iba.h | 118 #define IBA_FIELD_BLOC(field_struct, byte_offset, bit_offset, num_bits) \ 119 field_struct, byte_offset, \ 122 #define IBA_FIELD8_LOC(field_struct, byte_offset, num_bits) \ 123 IBA_FIELD_BLOC(field_struct, byte_offset, 0, num_bits) 125 #define IBA_FIELD16_LOC(field_struct, byte_offset, num_bits) \ 126 field_struct, (byte_offset)&0xFFFE, \ 127 GENMASK(15 - (((byte_offset) % 2) * 8), \ 128 15 - (((byte_offset) % 2) * 8) - (num_bits - 1)), \ 131 #define IBA_FIELD32_LOC(field_struct, byte_offset, num_bits) \ 132 field_struct, (byte_offset) [all...] |
H A D | ibta_vol1_c12.h | 13 #define CM_FIELD_BLOC(field_struct, byte_offset, bits_offset, width) \ 15 (byte_offset + sizeof(struct ib_mad_hdr)), bits_offset, \ 17 #define CM_FIELD8_LOC(field_struct, byte_offset, width) \ 19 (byte_offset + sizeof(struct ib_mad_hdr)), width) 20 #define CM_FIELD16_LOC(field_struct, byte_offset, width) \ 22 (byte_offset + sizeof(struct ib_mad_hdr)), width) 23 #define CM_FIELD32_LOC(field_struct, byte_offset, width) \ 25 (byte_offset + sizeof(struct ib_mad_hdr)), width) 26 #define CM_FIELD64_LOC(field_struct, byte_offset) \ 27 IBA_FIELD64_LOC(field_struct, (byte_offset [all...] |
/kernel/linux/linux-6.6/include/rdma/ |
H A D | iba.h | 118 #define IBA_FIELD_BLOC(field_struct, byte_offset, bit_offset, num_bits) \ 119 field_struct, byte_offset, \ 122 #define IBA_FIELD8_LOC(field_struct, byte_offset, num_bits) \ 123 IBA_FIELD_BLOC(field_struct, byte_offset, 0, num_bits) 125 #define IBA_FIELD16_LOC(field_struct, byte_offset, num_bits) \ 126 field_struct, (byte_offset)&0xFFFE, \ 127 GENMASK(15 - (((byte_offset) % 2) * 8), \ 128 15 - (((byte_offset) % 2) * 8) - (num_bits - 1)), \ 131 #define IBA_FIELD32_LOC(field_struct, byte_offset, num_bits) \ 132 field_struct, (byte_offset) [all...] |
H A D | ibta_vol1_c12.h | 13 #define CM_FIELD_BLOC(field_struct, byte_offset, bits_offset, width) \ 15 (byte_offset + sizeof(struct ib_mad_hdr)), bits_offset, \ 17 #define CM_FIELD8_LOC(field_struct, byte_offset, width) \ 19 (byte_offset + sizeof(struct ib_mad_hdr)), width) 20 #define CM_FIELD16_LOC(field_struct, byte_offset, width) \ 22 (byte_offset + sizeof(struct ib_mad_hdr)), width) 23 #define CM_FIELD32_LOC(field_struct, byte_offset, width) \ 25 (byte_offset + sizeof(struct ib_mad_hdr)), width) 26 #define CM_FIELD64_LOC(field_struct, byte_offset) \ 27 IBA_FIELD64_LOC(field_struct, (byte_offset [all...] |
/kernel/linux/linux-5.10/tools/power/acpi/tools/ec/ |
H A D | ec_access.c | 39 printf("2) %s -b byte_offset\n", basename(progname)); in usage() 40 printf("3) %s -w byte_offset -v value\n\n", basename(progname)); in usage() 45 puts("\t-b offset : Read value at byte_offset (in hex)"); in usage() 46 puts("\t-w offset -v value : Write value at byte_offset"); in usage() 175 void read_ec_val(int fd, int byte_offset) in read_ec_val() argument 180 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val() 181 if (error != byte_offset) in read_ec_val() 182 err(EXIT_FAILURE, "Cannot set offset to 0x%.2x", byte_offset); in read_ec_val() 187 byte_offset, SYSFS_PATH); in read_ec_val() 192 void write_ec_val(int fd, int byte_offset, uint8_ argument [all...] |
/kernel/linux/linux-6.6/tools/power/acpi/tools/ec/ |
H A D | ec_access.c | 39 printf("2) %s -b byte_offset\n", basename(progname)); in usage() 40 printf("3) %s -w byte_offset -v value\n\n", basename(progname)); in usage() 45 puts("\t-b offset : Read value at byte_offset (in hex)"); in usage() 46 puts("\t-w offset -v value : Write value at byte_offset"); in usage() 175 void read_ec_val(int fd, int byte_offset) in read_ec_val() argument 180 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val() 181 if (error != byte_offset) in read_ec_val() 182 err(EXIT_FAILURE, "Cannot set offset to 0x%.2x", byte_offset); in read_ec_val() 187 byte_offset, SYSFS_PATH); in read_ec_val() 192 void write_ec_val(int fd, int byte_offset, uint8_ argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_parse_tcp_hdr_opt.c | 32 __u8 byte_offset; member 42 tcp_opt = (__u8 *)(data + state->byte_offset); in parse_hdr_opt() 53 state->byte_offset++; in parse_hdr_opt() 77 state->byte_offset += hdr_len; in parse_hdr_opt() 102 opt_state.byte_offset = sizeof(struct tcphdr) + tcp_offset; in xdp_ingress_v6()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.h | 159 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, 161 s32 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, 163 s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, 165 s32 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, 167 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, 169 s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset, 171 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
|
H A D | ixgbe_phy.c | 1934 * @byte_offset: EEPROM byte offset to read 1939 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_generic() argument 1942 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_eeprom_generic() 1950 * @byte_offset: byte offset at address 0xA2 1955 s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_generic() argument 1958 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_sff8472_generic() 1966 * @byte_offset: EEPROM byte offset to write 1971 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_eeprom_generic() argument 1974 return hw->phy.ops.write_i2c_byte(hw, byte_offset, in ixgbe_write_i2c_eeprom_generic() 1997 * @byte_offset 2005 ixgbe_read_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 *data, bool lock) ixgbe_read_i2c_byte_generic_int() argument 2095 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 *data) ixgbe_read_i2c_byte_generic() argument 2112 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 *data) ixgbe_read_i2c_byte_generic_unlocked() argument 2130 ixgbe_write_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 data, bool lock) ixgbe_write_i2c_byte_generic_int() argument 2198 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 data) ixgbe_write_i2c_byte_generic() argument 2215 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 data) ixgbe_write_i2c_byte_generic_unlocked() argument [all...] |
H A D | ixgbe_82598.c | 21 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, 946 * @byte_offset: byte offset to read from dev_addr 952 u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_phy_82598() 975 sfp_addr = (dev_addr << 8) + byte_offset; in ixgbe_read_i2c_phy_82598() 1017 * @byte_offset: EEPROM byte offset to read 1022 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_82598() argument 1026 byte_offset, eeprom_data); in ixgbe_read_i2c_eeprom_82598() 1032 * @byte_offset: byte offset at address 0xA2 1037 static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_82598() argument 1041 byte_offset, sff8472_dat in ixgbe_read_i2c_sff8472_82598() 951 ixgbe_read_i2c_phy_82598(struct ixgbe_hw *hw, u8 dev_addr, u8 byte_offset, u8 *eeprom_data) ixgbe_read_i2c_phy_82598() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.h | 159 s32 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, 161 s32 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, 163 s32 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, 165 s32 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, 167 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, 169 s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset, 171 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset,
|
H A D | ixgbe_phy.c | 2065 * @byte_offset: EEPROM byte offset to read 2070 s32 ixgbe_read_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_generic() argument 2073 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_eeprom_generic() 2081 * @byte_offset: byte offset at address 0xA2 2086 s32 ixgbe_read_i2c_sff8472_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_generic() argument 2089 return hw->phy.ops.read_i2c_byte(hw, byte_offset, in ixgbe_read_i2c_sff8472_generic() 2097 * @byte_offset: EEPROM byte offset to write 2102 s32 ixgbe_write_i2c_eeprom_generic(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_write_i2c_eeprom_generic() argument 2105 return hw->phy.ops.write_i2c_byte(hw, byte_offset, in ixgbe_write_i2c_eeprom_generic() 2128 * @byte_offset 2136 ixgbe_read_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 *data, bool lock) ixgbe_read_i2c_byte_generic_int() argument 2226 ixgbe_read_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 *data) ixgbe_read_i2c_byte_generic() argument 2243 ixgbe_read_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 *data) ixgbe_read_i2c_byte_generic_unlocked() argument 2261 ixgbe_write_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 data, bool lock) ixgbe_write_i2c_byte_generic_int() argument 2329 ixgbe_write_i2c_byte_generic(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 data) ixgbe_write_i2c_byte_generic() argument 2346 ixgbe_write_i2c_byte_generic_unlocked(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr, u8 data) ixgbe_write_i2c_byte_generic_unlocked() argument [all...] |
H A D | ixgbe_82598.c | 21 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, 946 * @byte_offset: byte offset to read from dev_addr 952 u8 byte_offset, u8 *eeprom_data) in ixgbe_read_i2c_phy_82598() 975 sfp_addr = (dev_addr << 8) + byte_offset; in ixgbe_read_i2c_phy_82598() 1017 * @byte_offset: EEPROM byte offset to read 1022 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_eeprom_82598() argument 1026 byte_offset, eeprom_data); in ixgbe_read_i2c_eeprom_82598() 1032 * @byte_offset: byte offset at address 0xA2 1037 static s32 ixgbe_read_i2c_sff8472_82598(struct ixgbe_hw *hw, u8 byte_offset, in ixgbe_read_i2c_sff8472_82598() argument 1041 byte_offset, sff8472_dat in ixgbe_read_i2c_sff8472_82598() 951 ixgbe_read_i2c_phy_82598(struct ixgbe_hw *hw, u8 dev_addr, u8 byte_offset, u8 *eeprom_data) ixgbe_read_i2c_phy_82598() argument [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H A D | control.c | 147 u8 byte_offset = offset & 0x3; in omap_ctrl_readb() local 151 return (val >> (byte_offset * 8)) & 0xff; in omap_ctrl_readb() 157 u16 byte_offset = offset & 0x2; in omap_ctrl_readw() local 161 return (val >> (byte_offset * 8)) & 0xffff; in omap_ctrl_readw() 174 u8 byte_offset = offset & 0x3; in omap_ctrl_writeb() local 178 tmp &= 0xffffffff ^ (0xff << (byte_offset * 8)); in omap_ctrl_writeb() 179 tmp |= val << (byte_offset * 8); in omap_ctrl_writeb() 187 u8 byte_offset = offset & 0x2; in omap_ctrl_writew() local 191 tmp &= 0xffffffff ^ (0xffff << (byte_offset * 8)); in omap_ctrl_writew() 192 tmp |= val << (byte_offset * in omap_ctrl_writew() [all...] |
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | control.c | 142 u8 byte_offset = offset & 0x3; in omap_ctrl_readb() local 146 return (val >> (byte_offset * 8)) & 0xff; in omap_ctrl_readb() 152 u16 byte_offset = offset & 0x2; in omap_ctrl_readw() local 156 return (val >> (byte_offset * 8)) & 0xffff; in omap_ctrl_readw() 169 u8 byte_offset = offset & 0x3; in omap_ctrl_writeb() local 173 tmp &= 0xffffffff ^ (0xff << (byte_offset * 8)); in omap_ctrl_writeb() 174 tmp |= val << (byte_offset * 8); in omap_ctrl_writeb() 182 u8 byte_offset = offset & 0x2; in omap_ctrl_writew() local 186 tmp &= 0xffffffff ^ (0xffff << (byte_offset * 8)); in omap_ctrl_writew() 187 tmp |= val << (byte_offset * in omap_ctrl_writew() [all...] |
/kernel/linux/linux-5.10/fs/udf/ |
H A D | truncate.c | 192 loff_t byte_offset; in udf_truncate_extents() local 204 byte_offset = (offset << sb->s_blocksize_bits) + in udf_truncate_extents() 208 WARN_ON(byte_offset); in udf_truncate_extents() 212 extent_trunc(inode, &epos, &eloc, etype, elen, byte_offset); in udf_truncate_extents() 214 if (byte_offset) in udf_truncate_extents()
|
/kernel/linux/linux-6.6/fs/udf/ |
H A D | truncate.c | 188 loff_t byte_offset; in udf_truncate_extents() local 200 byte_offset = (offset << sb->s_blocksize_bits) + in udf_truncate_extents() 204 WARN_ON(byte_offset); in udf_truncate_extents() 208 extent_trunc(inode, &epos, &eloc, etype, elen, byte_offset); in udf_truncate_extents() 210 if (byte_offset) in udf_truncate_extents()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/ |
H A D | vgic-v3.c | 317 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local 331 byte_offset = irq->intid / BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status() 333 ptr = pendbase + byte_offset; in vgic_v3_lpi_sync_pending_status() 372 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local 383 byte_offset = irq->intid / BITS_PER_BYTE; in vgic_v3_save_pending_tables() 385 ptr = pendbase + byte_offset; in vgic_v3_save_pending_tables()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/vgic/ |
H A D | vgic-v3.c | 308 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local 322 byte_offset = irq->intid / BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status() 324 ptr = pendbase + byte_offset; in vgic_v3_lpi_sync_pending_status() 400 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local 412 byte_offset = irq->intid / BITS_PER_BYTE; in vgic_v3_save_pending_tables() 414 ptr = pendbase + byte_offset; in vgic_v3_save_pending_tables()
|
/kernel/linux/linux-5.10/fs/exfat/ |
H A D | dir.c | 625 struct exfat_chain *p_dir, unsigned int byte_offset, in exfat_walk_fat_chain() 632 clu_offset = EXFAT_B_TO_CLU(byte_offset, sbi); in exfat_walk_fat_chain() 645 EXFAT_B_TO_DEN(byte_offset)); in exfat_walk_fat_chain() 824 unsigned int off, byte_offset, clu = 0; in exfat_get_dentry_set() local 838 byte_offset = EXFAT_DEN_TO_B(entry); in exfat_get_dentry_set() 839 ret = exfat_walk_fat_chain(sb, p_dir, byte_offset, &clu); in exfat_get_dentry_set() 850 byte_offset = EXFAT_CLU_OFFSET(byte_offset, sbi); in exfat_get_dentry_set() 853 off = EXFAT_BLK_OFFSET(byte_offset, sb); in exfat_get_dentry_set() 858 sec = EXFAT_B_TO_BLK(byte_offset, s in exfat_get_dentry_set() 624 exfat_walk_fat_chain(struct super_block *sb, struct exfat_chain *p_dir, unsigned int byte_offset, unsigned int *clu) exfat_walk_fat_chain() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/udl/ |
H A D | udl_transfer.c | 175 u32 byte_offset, u32 device_byte_offset, in udl_render_hline() 190 line_start = (u8 *) (front + byte_offset); in udl_render_hline() 173 udl_render_hline(struct drm_device *dev, int log_bpp, struct urb **urb_ptr, const char *front, char **urb_buf_ptr, u32 byte_offset, u32 device_byte_offset, u32 byte_width) udl_render_hline() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ |
H A D | lantiq_xrx200.c | 295 u32 byte_offset; in xrx200_start_xmit() local 320 byte_offset = mapping % 16; in xrx200_start_xmit() 322 desc->addr = mapping - byte_offset; in xrx200_start_xmit() 326 LTQ_DMA_TX_OFFSET(byte_offset) | (len & LTQ_DMA_SIZE_MASK); in xrx200_start_xmit()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.h | 11 s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr, 13 s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/udl/ |
H A D | udl_transfer.c | 214 u32 byte_offset, u32 device_byte_offset, in udl_render_hline() 225 line_start = (u8 *) (front + byte_offset); in udl_render_hline() 212 udl_render_hline(struct drm_device *dev, int log_bpp, struct urb **urb_ptr, const char *front, char **urb_buf_ptr, u32 byte_offset, u32 device_byte_offset, u32 byte_width) udl_render_hline() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.h | 11 s32 igb_read_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr, 13 s32 igb_write_i2c_byte(struct e1000_hw *hw, u8 byte_offset, u8 dev_addr,
|