/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mcs_reg.h | 15 u64 offset; \ 17 offset = 0x408ull; \ 19 offset = 0xa28ull; \ 20 offset += (a) * 0x8ull; \ 21 offset; }) 25 u64 offset; \ 27 offset = 0x808ull; \ 29 offset = 0xa68ull; \ 30 offset += (a) * 0x8ull; \ 31 offset; }) [all...] |
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_model_kunit.c | 20 .offset = 0, 25 .offset = 2, 30 .offset = 3, 35 .offset = 10, 40 .offset = 13, 45 .offset = 16, 50 .offset = 19, 55 .offset = 20, 60 .offset = 32, 65 .offset [all...] |
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_ag_api.c | 20 .offset = 0, 25 .offset = 1, 30 .offset = 2, 35 .offset = 4, 40 .offset = 16, 45 .offset = 18, 50 .offset = 83, 55 .offset = 84, 60 .offset = 85, 65 .offset [all...] |
/linux/drivers/net/ethernet/microchip/sparx5/lan969x/ |
H A D | lan969x_vcap_ag_api.c | 19 .offset = 0, 24 .offset = 1, 29 .offset = 2, 34 .offset = 4, 39 .offset = 14, 44 .offset = 16, 49 .offset = 81, 54 .offset = 82, 59 .offset = 83, 64 .offset [all...] |
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vcap_ag_api.c | 12 .offset = 0, 17 .offset = 1, 22 .offset = 3, 27 .offset = 12, 32 .offset = 13, 37 .offset = 14, 42 .offset = 15, 47 .offset = 16, 52 .offset = 17, 57 .offset [all...] |
H A D | lan966x_ethtool.c | 12 { .name = "rx_octets", .offset = 0x00, }, 13 { .name = "rx_unicast", .offset = 0x01, }, 14 { .name = "rx_multicast", .offset = 0x02 }, 15 { .name = "rx_broadcast", .offset = 0x03 }, 16 { .name = "rx_short", .offset = 0x04 }, 17 { .name = "rx_frag", .offset = 0x05 }, 18 { .name = "rx_jabber", .offset = 0x06 }, 19 { .name = "rx_crc", .offset = 0x07 }, 20 { .name = "rx_symbol_err", .offset = 0x08 }, 21 { .name = "rx_sz_64", .offset 306 u32 offset = lan966x->stats_layout[j].offset; lan966x_stats_update() local [all...] |
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-pexp-defs.h | 31 #define CVMX_PEXP_NPEI_BAR1_INDEXX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008000ull) + ((offset) & 31) * 16) argument 43 #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000008450ull) + ((offset) & 7) * 16) argument 44 #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F00000083B0ull) + ((offset) & 7) * 16) argument 45 #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000008400ull) + ((offset) & 7) * 16) argument 46 #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000084A0ull) + ((offset) argument 68 CVMX_PEXP_NPEI_MEM_ACCESS_SUBIDX(offset) global() argument 92 CVMX_PEXP_NPEI_PKTX_CNTS(offset) global() argument 93 CVMX_PEXP_NPEI_PKTX_INSTR_BADDR(offset) global() argument 94 CVMX_PEXP_NPEI_PKTX_INSTR_BAOFF_DBELL(offset) global() argument 95 CVMX_PEXP_NPEI_PKTX_INSTR_FIFO_RSIZE(offset) global() argument 96 CVMX_PEXP_NPEI_PKTX_INSTR_HEADER(offset) global() argument 97 CVMX_PEXP_NPEI_PKTX_IN_BP(offset) global() argument 98 CVMX_PEXP_NPEI_PKTX_SLIST_BADDR(offset) global() argument 99 CVMX_PEXP_NPEI_PKTX_SLIST_BAOFF_DBELL(offset) global() argument 100 CVMX_PEXP_NPEI_PKTX_SLIST_FIFO_RSIZE(offset) global() argument 113 CVMX_PEXP_NPEI_PKT_IN_DONEX_CNTS(offset) global() argument 135 CVMX_PEXP_SLI_CTL_PORTX(offset) global() argument 140 CVMX_PEXP_SLI_DMAX_CNT(offset) global() argument 141 CVMX_PEXP_SLI_DMAX_INT_LEVEL(offset) global() argument 142 CVMX_PEXP_SLI_DMAX_TIM(offset) global() argument 144 CVMX_PEXP_SLI_INT_ENB_PORTX(offset) global() argument 153 CVMX_PEXP_SLI_MEM_ACCESS_SUBIDX(offset) global() argument 176 CVMX_PEXP_SLI_PKTX_CNTS(offset) global() argument 177 CVMX_PEXP_SLI_PKTX_INSTR_BADDR(offset) global() argument 178 CVMX_PEXP_SLI_PKTX_INSTR_BAOFF_DBELL(offset) global() argument 179 CVMX_PEXP_SLI_PKTX_INSTR_FIFO_RSIZE(offset) global() argument 180 CVMX_PEXP_SLI_PKTX_INSTR_HEADER(offset) global() argument 181 CVMX_PEXP_SLI_PKTX_IN_BP(offset) global() argument 182 CVMX_PEXP_SLI_PKTX_OUT_SIZE(offset) global() argument 183 CVMX_PEXP_SLI_PKTX_SLIST_BADDR(offset) global() argument 184 CVMX_PEXP_SLI_PKTX_SLIST_BAOFF_DBELL(offset) global() argument 185 CVMX_PEXP_SLI_PKTX_SLIST_FIFO_RSIZE(offset) global() argument 199 CVMX_PEXP_SLI_PKT_IN_DONEX_CNTS(offset) global() argument 214 CVMX_PEXP_SLI_PORTX_PKIND(offset) global() argument 215 CVMX_PEXP_SLI_S2M_PORTX_CTL(offset) global() argument [all...] |
H A D | cvmx-pcsx-defs.h | 31 static inline uint64_t CVMX_PCSX_ANX_ADV_REG(unsigned long offset, unsigned long block_id) in CVMX_PCSX_ANX_ADV_REG() argument 35 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 38 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 42 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 44 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x4000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 46 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 49 static inline uint64_t CVMX_PCSX_ANX_EXT_ST_REG(unsigned long offset, unsigned long block_id) in CVMX_PCSX_ANX_EXT_ST_REG() argument 53 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG() 56 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG() 60 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) in CVMX_PCSX_ANX_EXT_ST_REG() 67 CVMX_PCSX_ANX_LP_ABIL_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_ANX_LP_ABIL_REG() argument 85 CVMX_PCSX_ANX_RESULTS_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_ANX_RESULTS_REG() argument 103 CVMX_PCSX_INTX_EN_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_INTX_EN_REG() argument 121 CVMX_PCSX_INTX_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_INTX_REG() argument 139 CVMX_PCSX_LINKX_TIMER_COUNT_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_LINKX_TIMER_COUNT_REG() argument 157 CVMX_PCSX_LOG_ANLX_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_LOG_ANLX_REG() argument 175 CVMX_PCSX_MISCX_CTL_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_MISCX_CTL_REG() argument 193 CVMX_PCSX_MRX_CONTROL_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_MRX_CONTROL_REG() argument 211 CVMX_PCSX_MRX_STATUS_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_MRX_STATUS_REG() argument 229 CVMX_PCSX_RXX_STATES_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_RXX_STATES_REG() argument 247 CVMX_PCSX_RXX_SYNC_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_RXX_SYNC_REG() argument 265 CVMX_PCSX_SGMX_AN_ADV_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_SGMX_AN_ADV_REG() argument 283 CVMX_PCSX_SGMX_LP_ADV_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_SGMX_LP_ADV_REG() argument 301 CVMX_PCSX_TXX_STATES_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_TXX_STATES_REG() argument 319 CVMX_PCSX_TX_RXX_POLARITY_REG(unsigned long offset,unsigned long block_id) CVMX_PCSX_TX_RXX_POLARITY_REG() argument [all...] |
/linux/arch/powerpc/include/asm/ |
H A D | cpu_setup.h | 8 void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec); 9 void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec); 10 void __setup_cpu_power9(unsigned long offset, struct cpu_spec *spec); 11 void __setup_cpu_power10(unsigned long offset, struct cpu_spec *spec); 17 void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec *spec); 18 void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec *spec); 19 void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec *spec); 20 void __setup_cpu_440ep(unsigned long offset, struct cpu_spec *spec); 21 void __setup_cpu_440epx(unsigned long offset, struct cpu_spec *spec); 22 void __setup_cpu_440gx(unsigned long offset, struc [all...] |
/linux/drivers/md/dm-vdo/ |
H A D | numeric.h | 14 * These utilities encode or decode a number from an offset in a larger data buffer and then 15 * advance the offset pointer to the next field in the buffer. 18 static inline void decode_s64_le(const u8 *buffer, size_t *offset, s64 *decoded) in decode_s64_le() argument 20 *decoded = get_unaligned_le64(buffer + *offset); in decode_s64_le() 21 *offset += sizeof(s64); in decode_s64_le() 24 static inline void encode_s64_le(u8 *data, size_t *offset, s64 to_encode) in encode_s64_le() argument 26 put_unaligned_le64(to_encode, data + *offset); in encode_s64_le() 27 *offset += sizeof(s64); in encode_s64_le() 30 static inline void decode_u64_le(const u8 *buffer, size_t *offset, u64 *decoded) in decode_u64_le() argument 32 *decoded = get_unaligned_le64(buffer + *offset); in decode_u64_le() 36 encode_u64_le(u8 * data,size_t * offset,u64 to_encode) encode_u64_le() argument 42 decode_s32_le(const u8 * buffer,size_t * offset,s32 * decoded) decode_s32_le() argument 48 encode_s32_le(u8 * data,size_t * offset,s32 to_encode) encode_s32_le() argument 54 decode_u32_le(const u8 * buffer,size_t * offset,u32 * decoded) decode_u32_le() argument 60 encode_u32_le(u8 * data,size_t * offset,u32 to_encode) encode_u32_le() argument 66 decode_u16_le(const u8 * buffer,size_t * offset,u16 * decoded) decode_u16_le() argument 72 encode_u16_le(u8 * data,size_t * offset,u16 to_encode) encode_u16_le() argument [all...] |
H A D | encodings.c | 204 static void encode_version_number(u8 *buffer, size_t *offset, in encode_version_number() argument 209 memcpy(buffer + *offset, &packed, sizeof(packed)); in encode_version_number() 210 *offset += sizeof(packed); in encode_version_number() 213 void vdo_encode_header(u8 *buffer, size_t *offset, const struct header *header) in vdo_encode_header() argument 217 memcpy(buffer + *offset, &packed, sizeof(packed)); in vdo_encode_header() 218 *offset += sizeof(packed); in vdo_encode_header() 221 static void decode_version_number(u8 *buffer, size_t *offset, in decode_version_number() argument 226 memcpy(&packed, buffer + *offset, sizeof(packed)); in decode_version_number() 227 *offset += sizeof(packed); in decode_version_number() 231 void vdo_decode_header(u8 *buffer, size_t *offset, struc argument 248 decode_volume_geometry(u8 * buffer,size_t * offset,struct volume_geometry * geometry,u32 version) decode_volume_geometry() argument 303 size_t offset = 0; vdo_parse_geometry_block() local 366 decode_block_map_state_2_0(u8 * buffer,size_t * offset,struct block_map_state_2_0 * state) decode_block_map_state_2_0() argument 415 encode_block_map_state_2_0(u8 * buffer,size_t * offset,struct block_map_state_2_0 state) encode_block_map_state_2_0() argument 468 encode_recovery_journal_state_7_0(u8 * buffer,size_t * offset,struct recovery_journal_state_7_0 state) encode_recovery_journal_state_7_0() argument 491 decode_recovery_journal_state_7_0(u8 * buffer,size_t * offset,struct recovery_journal_state_7_0 * state) decode_recovery_journal_state_7_0() argument 548 encode_slab_depot_state_2_0(u8 * buffer,size_t * offset,struct slab_depot_state_2_0 state) encode_slab_depot_state_2_0() argument 576 decode_slab_depot_state_2_0(u8 * buffer,size_t * offset,struct slab_depot_state_2_0 * state) decode_slab_depot_state_2_0() argument 782 allocate_partition(struct layout * layout,u8 id,physical_block_number_t offset,block_count_t size) allocate_partition() argument 815 physical_block_number_t offset; make_partition() local 856 vdo_initialize_layout(block_count_t size,physical_block_number_t offset,block_count_t block_map_blocks,block_count_t journal_blocks,block_count_t summary_blocks,struct layout * layout) vdo_initialize_layout() argument 963 encode_layout(u8 * buffer,size_t * offset,const struct layout * layout) encode_layout() argument 995 decode_layout(u8 * buffer,size_t * offset,physical_block_number_t start,block_count_t size,struct layout * layout) decode_layout() argument 1111 encode_vdo_component(u8 * buffer,size_t * offset,struct vdo_component component) encode_vdo_component() argument 1162 decode_vdo_component(u8 * buffer,size_t * offset,struct vdo_component * component) decode_vdo_component() argument 1298 decode_components(u8 * buffer,size_t * offset,struct volume_geometry * geometry,struct vdo_component_states * states) decode_components() argument 1341 size_t offset = VDO_COMPONENT_DATA_OFFSET; vdo_decode_component_states() local 1387 vdo_encode_component_states(u8 * buffer,size_t * offset,const struct vdo_component_states * states) vdo_encode_component_states() argument 1410 size_t offset = 0; vdo_encode_super_block() local 1435 size_t offset = 0; vdo_decode_super_block() local [all...] |
/linux/drivers/gpio/ |
H A D | gpio-eic-sprd.c | 143 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument 148 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_update() 156 tmp |= BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 158 tmp &= ~BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 164 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument 168 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_read() 170 return !!(readl_relaxed(base + reg) & BIT(SPRD_EIC_BIT(offset))); in sprd_eic_read() 173 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument 175 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request() 179 static void sprd_eic_free(struct gpio_chip *chip, unsigned int offset) in sprd_eic_free() argument 184 sprd_eic_get(struct gpio_chip * chip,unsigned int offset) sprd_eic_get() argument 200 sprd_eic_direction_input(struct gpio_chip * chip,unsigned int offset) sprd_eic_direction_input() argument 206 sprd_eic_set(struct gpio_chip * chip,unsigned int offset,int value) sprd_eic_set() argument 212 sprd_eic_set_debounce(struct gpio_chip * chip,unsigned int offset,unsigned int debounce) sprd_eic_set_debounce() argument 227 sprd_eic_set_config(struct gpio_chip * chip,unsigned int offset,unsigned long config) sprd_eic_set_config() argument 243 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_mask() local 270 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_unmask() local 297 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_ack() local 321 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_set_type() local 478 sprd_eic_toggle_trigger(struct gpio_chip * chip,unsigned int irq,unsigned int offset) sprd_eic_toggle_trigger() argument 558 u32 offset = bank * SPRD_EIC_PER_BANK_NR + n; sprd_eic_handle_one_type() local [all...] |
H A D | gpio-cs5535.c | 83 static void __cs5535_gpio_set(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_set() argument 86 if (offset < 16) in __cs5535_gpio_set() 88 outl(1 << offset, chip->base + reg); in __cs5535_gpio_set() 91 errata_outl(chip, 1 << (offset - 16), reg); in __cs5535_gpio_set() 94 void cs5535_gpio_set(unsigned offset, unsigned int reg) in cs5535_gpio_set() argument 100 __cs5535_gpio_set(chip, offset, reg); in cs5535_gpio_set() 105 static void __cs5535_gpio_clear(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_clear() argument 108 if (offset < 16) in __cs5535_gpio_clear() 110 outl(1 << (offset + 16), chip->base + reg); in __cs5535_gpio_clear() 113 errata_outl(chip, 1 << offset, re in __cs5535_gpio_clear() 116 cs5535_gpio_clear(unsigned offset,unsigned int reg) cs5535_gpio_clear() argument 127 cs5535_gpio_isset(unsigned offset,unsigned int reg) cs5535_gpio_isset() argument 165 cs5535_gpio_setup_event(unsigned offset,int pair,int pme) cs5535_gpio_setup_event() argument 203 chip_gpio_request(struct gpio_chip * c,unsigned offset) chip_gpio_request() argument 230 chip_gpio_get(struct gpio_chip * chip,unsigned offset) chip_gpio_get() argument 235 chip_gpio_set(struct gpio_chip * chip,unsigned int offset,int val) chip_gpio_set() argument 245 chip_direction_input(struct gpio_chip * c,unsigned offset) chip_direction_input() argument 258 chip_direction_output(struct gpio_chip * c,unsigned offset,int val) chip_direction_output() argument [all...] |
H A D | gpio-aspeed.c | 71 * @offset_timer: Maps an offset to an @timer_users index, or zero if disabled 124 * Array Value: Indicates the offset for configuring the debounce timer. 130 * Array Value: offset for configuring debounce timer 0 (g4: 0x50, g7: 0x00) 132 * Array Value: offset for configuring debounce timer 1 (g4: 0x54, g7: 0x04) 134 * Array Value: offset for configuring debounce timer 2 (g4: 0x58, g7: 0x8) 224 void (*reg_bit_set)(struct aspeed_gpio *gpio, unsigned int offset, 226 bool (*reg_bit_get)(struct aspeed_gpio *gpio, unsigned int offset, 228 int (*reg_bank_get)(struct aspeed_gpio *gpio, unsigned int offset, 230 void (*privilege_ctrl)(struct aspeed_gpio *gpio, unsigned int offset, int owner); 232 bool (*copro_request)(struct aspeed_gpio *gpio, unsigned int offset); 328 to_bank(unsigned int offset) to_bank() argument 342 find_bank_props(struct aspeed_gpio * gpio,unsigned int offset) find_bank_props() argument 355 have_gpio(struct aspeed_gpio * gpio,unsigned int offset) have_gpio() argument 365 have_input(struct aspeed_gpio * gpio,unsigned int offset) have_input() argument 375 have_output(struct aspeed_gpio * gpio,unsigned int offset) have_output() argument 382 aspeed_gpio_change_cmd_source(struct aspeed_gpio * gpio,unsigned int offset,int cmdsrc) aspeed_gpio_change_cmd_source() argument 389 aspeed_gpio_copro_request(struct aspeed_gpio * gpio,unsigned int offset) aspeed_gpio_copro_request() argument 398 aspeed_gpio_copro_release(struct aspeed_gpio * gpio,unsigned int offset) aspeed_gpio_copro_release() argument 410 aspeed_gpio_get(struct gpio_chip * gc,unsigned int offset) aspeed_gpio_get() argument 417 __aspeed_gpio_set(struct gpio_chip * gc,unsigned int offset,int val) __aspeed_gpio_set() argument 427 aspeed_gpio_set(struct gpio_chip * gc,unsigned int offset,int val) aspeed_gpio_set() argument 444 aspeed_gpio_dir_in(struct gpio_chip * gc,unsigned int offset) aspeed_gpio_dir_in() argument 463 aspeed_gpio_dir_out(struct gpio_chip * gc,unsigned int offset,int val) aspeed_gpio_dir_out() argument 483 aspeed_gpio_get_direction(struct gpio_chip * gc,unsigned int offset) aspeed_gpio_get_direction() argument 503 irqd_to_aspeed_gpio_data(struct irq_data * d,struct aspeed_gpio ** gpio,int * offset) irqd_to_aspeed_gpio_data() argument 523 int rc, offset; aspeed_gpio_irq_ack() local 543 int rc, offset; aspeed_gpio_irq_set_mask() local 585 int rc, offset; aspeed_gpio_set_type() local 661 unsigned int offset; aspeed_init_irq_valid_mask() local 679 aspeed_gpio_reset_tolerance(struct gpio_chip * chip,unsigned int offset,bool enable) aspeed_gpio_reset_tolerance() argument 696 aspeed_gpio_request(struct gpio_chip * chip,unsigned int offset) aspeed_gpio_request() argument 704 aspeed_gpio_free(struct gpio_chip * chip,unsigned int offset) aspeed_gpio_free() argument 734 register_allocated_timer(struct aspeed_gpio * gpio,unsigned int offset,unsigned int timer) register_allocated_timer() argument 753 unregister_allocated_timer(struct aspeed_gpio * gpio,unsigned int offset) unregister_allocated_timer() argument 772 timer_allocation_registered(struct aspeed_gpio * gpio,unsigned int offset) timer_allocation_registered() argument 778 configure_timer(struct aspeed_gpio * gpio,unsigned int offset,unsigned int timer) configure_timer() argument 788 enable_debounce(struct gpio_chip * chip,unsigned int offset,unsigned long usecs) enable_debounce() argument 866 disable_debounce(struct gpio_chip * chip,unsigned int offset) disable_debounce() argument 880 set_debounce(struct gpio_chip * chip,unsigned int offset,unsigned long usecs) set_debounce() argument 894 aspeed_gpio_set_config(struct gpio_chip * chip,unsigned int offset,unsigned long config) aspeed_gpio_set_config() argument 945 int rc = 0, bindex, offset = gpio_chip_hwgpio(desc); aspeed_gpio_copro_grab_gpio() local 990 int rc = 0, bindex, offset = gpio_chip_hwgpio(desc); aspeed_gpio_copro_release_gpio() local 1022 int rc, offset; aspeed_gpio_irq_print_chip() local 1041 aspeed_g4_reg_bit_set(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg,bool val) aspeed_g4_reg_bit_set() argument 1063 aspeed_g4_reg_bit_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g4_reg_bit_get() argument 1072 aspeed_g4_reg_bank_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g4_reg_bank_get() argument 1084 aspeed_g4_privilege_ctrl(struct aspeed_gpio * gpio,unsigned int offset,int cmdsrc) aspeed_g4_privilege_ctrl() argument 1109 aspeed_g4_copro_request(struct aspeed_gpio * gpio,unsigned int offset) aspeed_g4_copro_request() argument 1130 aspeed_g4_copro_release(struct aspeed_gpio * gpio,unsigned int offset) aspeed_g4_copro_release() argument 1156 aspeed_g7_reg_bit_set(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg,bool val) aspeed_g7_reg_bit_set() argument 1169 aspeed_g7_reg_bit_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g7_reg_bit_get() argument 1185 aspeed_g7_reg_bank_get(struct aspeed_gpio * gpio,unsigned int offset,const enum aspeed_gpio_reg reg) aspeed_g7_reg_bank_get() argument [all...] |
/linux/drivers/power/supply/ |
H A D | max1720x_battery.c | 154 { .name = "nXTable0", .offset = 0, .bytes = 2, }, 155 { .name = "nXTable1", .offset = 2, .bytes = 2, }, 156 { .name = "nXTable2", .offset = 4, .bytes = 2, }, 157 { .name = "nXTable3", .offset = 6, .bytes = 2, }, 158 { .name = "nXTable4", .offset = 8, .bytes = 2, }, 159 { .name = "nXTable5", .offset = 10, .bytes = 2, }, 160 { .name = "nXTable6", .offset = 12, .bytes = 2, }, 161 { .name = "nXTable7", .offset = 14, .bytes = 2, }, 162 { .name = "nXTable8", .offset = 16, .bytes = 2, }, 163 { .name = "nXTable9", .offset [all...] |
/linux/drivers/thunderbolt/ |
H A D | cap.c | 21 u32 value, offset; in tb_port_enable_tmu() local 29 offset = 0x26; in tb_port_enable_tmu() 31 offset = 0x2a; in tb_port_enable_tmu() 35 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 44 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 65 * @offset: Previous capability offset (%0 for start) 67 * Returns dword offset of the next capability in port config space 72 int tb_port_next_cap(struct tb_port *port, unsigned int offset) in tb_port_next_cap() argument 77 if (!offset) in tb_port_next_cap() 89 int offset = 0; __tb_port_find_cap() local 145 tb_switch_next_cap(struct tb_switch * sw,unsigned int offset) tb_switch_next_cap() argument 190 int offset = 0; tb_switch_find_cap() local 223 int offset = 0; tb_switch_find_vse_cap() local [all...] |
/linux/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 117 int offset = -1; in fdt_find_max_phandle() local 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 123 if (offset < 0) { in fdt_find_max_phandle() 124 if (offset == -FDT_ERR_NOTFOUND) in fdt_find_max_phandle() 127 return offset; in fdt_find_max_phandle() 130 value = fdt_get_phandle(fdt, offset); in fdt_find_max_phandle() 162 unsigned int offset in fdt_mem_rsv() local 201 nextprop_(const void * fdt,int offset) nextprop_() argument 225 fdt_subnode_offset_namelen(const void * fdt,int offset,const char * name,int namelen) fdt_subnode_offset_namelen() argument 254 int offset = 0; fdt_path_offset_namelen() local 343 int offset; fdt_first_property_offset() local 351 fdt_next_property_offset(const void * fdt,int offset) fdt_next_property_offset() argument 360 fdt_get_property_by_offset_(const void * fdt,int offset,int * lenp) fdt_get_property_by_offset_() argument 382 fdt_get_property_by_offset(const void * fdt,int offset,int * lenp) fdt_get_property_by_offset() argument 398 fdt_get_property_namelen_(const void * fdt,int offset,const char * name,int namelen,int * lenp,int * poffset) fdt_get_property_namelen_() argument 429 fdt_get_property_namelen(const void * fdt,int offset,const char * name,int namelen,int * lenp) fdt_get_property_namelen() argument 472 fdt_getprop_by_offset(const void * fdt,int offset,const char ** namep,int * lenp) fdt_getprop_by_offset() argument 532 int offset = fdt_path_offset(fdt, path); fdt_path_getprop_namelen() local 574 int offset, depth, namelen; fdt_get_path() local 626 int offset, depth; fdt_supernode_atdepth_offset() local 687 int offset; fdt_node_offset_by_prop_value() local 712 int offset; fdt_node_offset_by_phandle() local 868 int offset, err; fdt_node_offset_by_compatible() local [all...] |
H A D | fdt.c | 140 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 142 unsigned int uoffset = offset; in fdt_offset_ptr() 143 unsigned int absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 145 if (offset < 0) in fdt_offset_ptr() 156 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 159 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr() 166 int offset = startoffset; in fdt_next_tag() local 170 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 174 offset += FDT_TAGSIZE; in fdt_next_tag() 181 p = fdt_offset_ptr(fdt, offset in fdt_next_tag() 223 fdt_check_node_offset_(const void * fdt,int offset) fdt_check_node_offset_() argument 235 fdt_check_prop_offset_(const void * fdt,int offset) fdt_check_prop_offset_() argument 247 fdt_next_node(const void * fdt,int offset,int * depth) fdt_next_node() argument 287 fdt_first_subnode(const void * fdt,int offset) fdt_first_subnode() argument 298 fdt_next_subnode(const void * fdt,int offset) fdt_next_subnode() argument [all...] |
/linux/drivers/misc/ocxl/ |
H A D | mmio.c | 7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read32() argument 10 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_read32() 20 *val = readl_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 24 *val = readl((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read64() argument 35 if (offset > afu->config.global_mmio_size - 8) in ocxl_global_mmio_read64() 45 *val = readq_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 49 *val = readq((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write32() argument 60 if (offset > af in ocxl_global_mmio_write32() 83 ocxl_global_mmio_write64(struct ocxl_afu * afu,size_t offset,enum ocxl_endian endian,u64 val) ocxl_global_mmio_write64() argument 109 ocxl_global_mmio_set32(struct ocxl_afu * afu,size_t offset,enum ocxl_endian endian,u32 mask) ocxl_global_mmio_set32() argument 140 ocxl_global_mmio_set64(struct ocxl_afu * afu,size_t offset,enum ocxl_endian endian,u64 mask) ocxl_global_mmio_set64() argument 171 ocxl_global_mmio_clear32(struct ocxl_afu * afu,size_t offset,enum ocxl_endian endian,u32 mask) ocxl_global_mmio_clear32() argument 203 ocxl_global_mmio_clear64(struct ocxl_afu * afu,size_t offset,enum ocxl_endian endian,u64 mask) ocxl_global_mmio_clear64() argument [all...] |
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | qmi_wlfw_v01.c | 18 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 27 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 36 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 45 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 54 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 67 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 76 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 85 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 98 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01, 107 .offset [all...] |
/linux/sound/soc/codecs/ |
H A D | tas2781-fmwlib.c | 84 unsigned char offset; member 192 /* convert data[offset], data[offset + 1], data[offset + 2] and in tasdevice_add_config() 193 * data[offset + 3] into host in tasdevice_add_config() 281 int offset = 0; in tasdevice_rca_parser() local 296 fw_hdr->img_sz = get_unaligned_be32(&buf[offset]); in tasdevice_rca_parser() 297 offset += 4; in tasdevice_rca_parser() 307 fw_hdr->checksum = get_unaligned_be32(&buf[offset]); in tasdevice_rca_parser() 308 offset in tasdevice_rca_parser() 417 fw_parse_block_data_kernel(struct tasdevice_fw * tas_fmw,struct tasdev_blk * block,const struct firmware * fmw,int offset) fw_parse_block_data_kernel() argument 478 fw_parse_data_kernel(struct tasdevice_fw * tas_fmw,struct tasdevice_data * img_data,const struct firmware * fmw,int offset) fw_parse_data_kernel() argument 514 fw_parse_program_data_kernel(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_program_data_kernel() argument 541 fw_parse_configuration_data_kernel(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_configuration_data_kernel() argument 665 fw_parse_fct_param_address(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_fct_param_address() argument 688 fw_parse_variable_header_kernel(struct tasdevice_priv * tas_priv,const struct firmware * fmw,int offset) fw_parse_variable_header_kernel() argument 1025 fw_parse_variable_hdr(struct tasdevice_priv * tas_priv,struct tasdevice_dspfw_hdr * fw_hdr,const struct firmware * fmw,int offset) fw_parse_variable_hdr() argument 1063 fw_parse_variable_header_git(struct tasdevice_priv * tas_priv,const struct firmware * fmw,int offset) fw_parse_variable_header_git() argument 1083 fw_parse_block_data(struct tasdevice_fw * tas_fmw,struct tasdev_blk * block,const struct firmware * fmw,int offset) fw_parse_block_data() argument 1146 fw_parse_data(struct tasdevice_fw * tas_fmw,struct tasdevice_data * img_data,const struct firmware * fmw,int offset) fw_parse_data() argument 1195 fw_parse_program_data(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_program_data() argument 1261 fw_parse_configuration_data(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_configuration_data() argument 1663 unsigned char offset; tasdev_load_blk() local 1900 fw_parse_header(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_header() argument 1941 fw_parse_variable_hdr_cal(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_variable_hdr_cal() argument 1964 fw_parse_calibration_data(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_calibration_data() argument 2028 int offset = 0; tas2781_load_calibration() local 2099 int offset = 0; tasdevice_dspfw_ready() local [all...] |
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_ethtool.c | 83 int offset; member 94 .offset = 0, 101 .offset = 0x0, 108 .offset = 0x0, 115 .offset = 0x0, 123 .offset = 0x1, 130 .offset = 0x1, 137 .offset = 0x1, 144 .offset = 0x1, 151 .offset [all...] |
/linux/sound/usb/qcom/ |
H A D | usb_audio_qmi_v01.c | 17 .offset = offsetof(struct mem_info_v01, iova), 25 .offset = offsetof(struct mem_info_v01, dma), 33 .offset = offsetof(struct mem_info_v01, size), 49 .offset = offsetof(struct apps_mem_info_v01, evt_ring), 58 .offset = offsetof(struct apps_mem_info_v01, tr_data), 67 .offset = offsetof(struct apps_mem_info_v01, tr_sync), 76 .offset = offsetof(struct apps_mem_info_v01, xfer_buff), 85 .offset = offsetof(struct apps_mem_info_v01, dcba), 102 .offset = offsetof(struct usb_endpoint_descriptor_v01, 111 .offset [all...] |
/linux/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_isp_configs.c | 18 unsigned int offset = 0; in ia_css_configure_iterator() local 30 offset = binary->info->mem_offsets.offsets.config->dmem.iterator.offset; in ia_css_configure_iterator() 33 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_iterator() 41 unsigned int offset = 0; in ia_css_configure_copy_output() local 53 offset = binary->info->mem_offsets.offsets.config->dmem.copy_output.offset; in ia_css_configure_copy_output() 56 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_copy_output() 66 unsigned int offset = 0; in ia_css_configure_crop() local 78 offset in ia_css_configure_crop() 89 unsigned int offset = 0; ia_css_configure_fpn() local 111 unsigned int offset = 0; ia_css_configure_dvs() local 133 unsigned int offset = 0; ia_css_configure_qplane() local 156 unsigned int offset = 0; ia_css_configure_output0() local 179 unsigned int offset = 0; ia_css_configure_output1() local 202 unsigned int offset = 0; ia_css_configure_output() local 225 unsigned int offset = 0; ia_css_configure_raw() local 248 unsigned int offset = 0; ia_css_configure_tnr() local 271 unsigned int offset = 0; ia_css_configure_ref() local 294 unsigned int offset = 0; ia_css_configure_vf() local [all...] |
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | init.c | 43 init->offset, init_exec(init) ? \ 365 return bit_I.offset; in init_table() 377 init_table_(struct nvbios_init *init, u16 offset, const char *name) in init_table_() argument 382 if (len >= offset + 2) { in init_table_() 383 data = nvbios_rd16(bios, data + offset); in init_table_() 461 init_xlat_(struct nvbios_init *init, u8 index, u8 offset) in init_xlat_() argument 468 return nvbios_rd08(bios, data + offset); in init_xlat_() 547 * 0x6808b0 address, and then flip the offset by 8. in init_tmds_reg() 586 u8 opcode = nvbios_rd08(bios, init->offset); in init_reserved() 600 cont(" 0x%02x", nvbios_rd08(bios, init->offset in init_reserved() 1373 u16 offset = nvbios_rd16(bios, init->offset + 1); init_jump() local [all...] |