| /kernel/linux/linux-6.6/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...] |
| /kernel/linux/linux-6.6/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...] |
| /kernel/linux/linux-6.6/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...] |
| /kernel/linux/linux-6.6/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...] |
| /kernel/linux/linux-5.10/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) 43 #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000008450ull) + ((offset) & 7) * 16) 44 #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F00000083B0ull) + ((offset) & 7) * 16) 45 #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000008400ull) + ((offset) & 7) * 16) 46 #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000084A0ull) + ((offset) [all...] |
| /kernel/linux/linux-6.6/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) 43 #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000008450ull) + ((offset) & 7) * 16) 44 #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F00000083B0ull) + ((offset) & 7) * 16) 45 #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000008400ull) + ((offset) & 7) * 16) 46 #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000084A0ull) + ((offset) [all...] |
| /kernel/linux/linux-6.6/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...] |
| /kernel/linux/linux-5.10/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...] |
| /kernel/linux/linux-6.6/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...] |
| /kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_hal.c | 43 u64 offset; in nitrox_config_emu_unit() local 57 offset = EMU_WD_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 58 nitrox_write_csr(ndev, offset, emu_wd_int.value); in nitrox_config_emu_unit() 59 offset = EMU_GE_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 60 nitrox_write_csr(ndev, offset, emu_ge_int.value); in nitrox_config_emu_unit() 69 u64 offset; in reset_pkt_input_ring() local 72 offset = NPS_PKT_IN_INSTR_CTLX(ring); in reset_pkt_input_ring() 73 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 75 nitrox_write_csr(ndev, offset, pkt_in_ctl.value); in reset_pkt_input_ring() 80 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 97 u64 offset; enable_pkt_input_ring() local 127 u64 offset; nitrox_config_pkt_input_rings() local 165 u64 offset; reset_pkt_solicit_port() local 194 u64 offset; enable_pkt_solicit_port() local 220 u64 offset; config_pkt_solicit_port() local 314 u64 offset; reset_aqm_ring() local 342 u64 offset; enable_aqm_ring() local 360 u64 offset; nitrox_config_aqm_rings() local 442 u64 offset; nitrox_config_rand_unit() local 457 u64 offset; nitrox_config_efl_unit() local 478 u64 offset; nitrox_config_bmi_unit() local 500 u64 offset; nitrox_config_bmo_unit() local 514 u64 offset; invalidate_lbc() local 534 u64 offset; nitrox_config_lbc_unit() local 614 u64 offset; nitrox_get_hwinfo() local [all...] |
| /kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_hal.c | 44 u64 offset; in nitrox_config_emu_unit() local 58 offset = EMU_WD_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 59 nitrox_write_csr(ndev, offset, emu_wd_int.value); in nitrox_config_emu_unit() 60 offset = EMU_GE_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 61 nitrox_write_csr(ndev, offset, emu_ge_int.value); in nitrox_config_emu_unit() 70 u64 offset; in reset_pkt_input_ring() local 73 offset = NPS_PKT_IN_INSTR_CTLX(ring); in reset_pkt_input_ring() 74 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 76 nitrox_write_csr(ndev, offset, pkt_in_ctl.value); in reset_pkt_input_ring() 81 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 98 u64 offset; enable_pkt_input_ring() local 128 u64 offset; nitrox_config_pkt_input_rings() local 166 u64 offset; reset_pkt_solicit_port() local 195 u64 offset; enable_pkt_solicit_port() local 221 u64 offset; config_pkt_solicit_port() local 315 u64 offset; reset_aqm_ring() local 343 u64 offset; enable_aqm_ring() local 361 u64 offset; nitrox_config_aqm_rings() local 443 u64 offset; nitrox_config_rand_unit() local 458 u64 offset; nitrox_config_efl_unit() local 479 u64 offset; nitrox_config_bmi_unit() local 501 u64 offset; nitrox_config_bmo_unit() local 515 u64 offset; invalidate_lbc() local 535 u64 offset; nitrox_config_lbc_unit() local 615 u64 offset; nitrox_get_hwinfo() local [all...] |
| /kernel/linux/linux-6.6/drivers/gpio/ |
| H A D | gpio-eic-sprd.c | 139 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument 144 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_update() 152 tmp |= BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 154 tmp &= ~BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 160 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument 164 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_read() 166 return !!(readl_relaxed(base + reg) & BIT(SPRD_EIC_BIT(offset))); in sprd_eic_read() 169 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument 171 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request() 175 static void sprd_eic_free(struct gpio_chip *chip, unsigned int offset) in sprd_eic_free() argument 180 sprd_eic_get(struct gpio_chip *chip, unsigned int offset) sprd_eic_get() argument 196 sprd_eic_direction_input(struct gpio_chip *chip, unsigned int offset) sprd_eic_direction_input() argument 202 sprd_eic_set(struct gpio_chip *chip, unsigned int offset, int value) sprd_eic_set() argument 207 sprd_eic_set_debounce(struct gpio_chip *chip, unsigned int offset, unsigned int debounce) sprd_eic_set_debounce() argument 222 sprd_eic_set_config(struct gpio_chip *chip, unsigned int offset, unsigned long config) sprd_eic_set_config() argument 238 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_mask() local 265 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_unmask() local 292 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_ack() local 316 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_set_type() local 472 sprd_eic_toggle_trigger(struct gpio_chip *chip, unsigned int irq, unsigned int offset) sprd_eic_toggle_trigger() argument 560 u32 offset = bank * SPRD_EIC_PER_BANK_NR + n; sprd_eic_handle_one_type() local [all...] |
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| H A D | tas2781-fmwlib.c | 79 unsigned char offset; member 125 /* convert data[offset], data[offset + 1], data[offset + 2] and in tasdevice_add_config() 126 * data[offset + 3] into host in tasdevice_add_config() 215 int offset = 0; in tasdevice_rca_parser() local 230 fw_hdr->img_sz = be32_to_cpup((__be32 *)&buf[offset]); in tasdevice_rca_parser() 231 offset += 4; in tasdevice_rca_parser() 241 fw_hdr->checksum = be32_to_cpup((__be32 *)&buf[offset]); in tasdevice_rca_parser() 242 offset in tasdevice_rca_parser() 319 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 371 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 407 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 434 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 463 fw_parse_variable_header_kernel( struct tasdevice_priv *tas_priv, const struct firmware *fmw, int offset) fw_parse_variable_header_kernel() argument 926 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 965 fw_parse_variable_header_git(struct tasdevice_priv *tas_priv, const struct firmware *fmw, int offset) fw_parse_variable_header_git() argument 985 fw_parse_block_data(struct tasdevice_fw *tas_fmw, struct tasdev_blk *block, const struct firmware *fmw, int offset) fw_parse_block_data() argument 1047 fw_parse_data(struct tasdevice_fw *tas_fmw, struct tasdevice_data *img_data, const struct firmware *fmw, int offset) fw_parse_data() argument 1097 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 1161 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 1566 unsigned char offset; tasdev_load_blk() local 1785 fw_parse_header(struct tasdevice_priv *tas_priv, struct tasdevice_fw *tas_fmw, const struct firmware *fmw, int offset) fw_parse_header() argument 1826 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 1849 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 1914 int offset = 0; tas2781_load_calibration() local 1986 int offset = 0; tasdevice_dspfw_ready() local [all...] |
| /kernel/linux/linux-5.10/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 340 int offset; fdt_first_property_offset() local 348 fdt_next_property_offset(const void *fdt, int offset) fdt_next_property_offset() argument 356 fdt_get_property_by_offset_(const void *fdt, int offset, int *lenp) fdt_get_property_by_offset_() argument 378 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) fdt_get_property_by_offset() argument 394 fdt_get_property_namelen_(const void *fdt, int offset, const char *name, int namelen, int *lenp, int *poffset) fdt_get_property_namelen_() argument 425 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) fdt_get_property_namelen() argument 469 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) fdt_getprop_by_offset() argument 545 int offset, depth, namelen; fdt_get_path() local 597 int offset, depth; fdt_supernode_atdepth_offset() local 658 int offset; fdt_node_offset_by_prop_value() local 683 int offset; fdt_node_offset_by_phandle() local 839 int offset, err; fdt_node_offset_by_compatible() local [all...] |
| H A D | fdt.c | 135 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 137 unsigned int uoffset = offset; in fdt_offset_ptr() 138 unsigned int absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 140 if (offset < 0) in fdt_offset_ptr() 151 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 154 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr() 161 int offset = startoffset; in fdt_next_tag() local 165 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 169 offset += FDT_TAGSIZE; in fdt_next_tag() 176 p = fdt_offset_ptr(fdt, offset in fdt_next_tag() 211 fdt_check_node_offset_(const void *fdt, int offset) fdt_check_node_offset_() argument 223 fdt_check_prop_offset_(const void *fdt, int offset) fdt_check_prop_offset_() argument 235 fdt_next_node(const void *fdt, int offset, int *depth) fdt_next_node() argument 275 fdt_first_subnode(const void *fdt, int offset) fdt_first_subnode() argument 286 fdt_next_subnode(const void *fdt, int offset) fdt_next_subnode() argument [all...] |
| /kernel/linux/linux-6.6/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 340 int offset; fdt_first_property_offset() local 348 fdt_next_property_offset(const void *fdt, int offset) fdt_next_property_offset() argument 356 fdt_get_property_by_offset_(const void *fdt, int offset, int *lenp) fdt_get_property_by_offset_() argument 378 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) fdt_get_property_by_offset() argument 394 fdt_get_property_namelen_(const void *fdt, int offset, const char *name, int namelen, int *lenp, int *poffset) fdt_get_property_namelen_() argument 425 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) fdt_get_property_namelen() argument 469 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) fdt_getprop_by_offset() argument 545 int offset, depth, namelen; fdt_get_path() local 597 int offset, depth; fdt_supernode_atdepth_offset() local 658 int offset; fdt_node_offset_by_prop_value() local 683 int offset; fdt_node_offset_by_phandle() local 839 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...] |
| /kernel/linux/linux-5.10/drivers/gpio/ |
| H A D | gpio-eic-sprd.c | 140 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument 145 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_update() 153 tmp |= BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 155 tmp &= ~BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 161 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument 165 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_read() 167 return !!(readl_relaxed(base + reg) & BIT(SPRD_EIC_BIT(offset))); in sprd_eic_read() 170 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument 172 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request() 176 static void sprd_eic_free(struct gpio_chip *chip, unsigned int offset) in sprd_eic_free() argument 181 sprd_eic_get(struct gpio_chip *chip, unsigned int offset) sprd_eic_get() argument 197 sprd_eic_direction_input(struct gpio_chip *chip, unsigned int offset) sprd_eic_direction_input() argument 203 sprd_eic_set(struct gpio_chip *chip, unsigned int offset, int value) sprd_eic_set() argument 208 sprd_eic_set_debounce(struct gpio_chip *chip, unsigned int offset, unsigned int debounce) sprd_eic_set_debounce() argument 223 sprd_eic_set_config(struct gpio_chip *chip, unsigned int offset, unsigned long config) sprd_eic_set_config() argument 239 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_mask() local 264 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_unmask() local 289 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_ack() local 313 u32 offset = irqd_to_hwirq(data); sprd_eic_irq_set_type() local 469 sprd_eic_toggle_trigger(struct gpio_chip *chip, unsigned int irq, unsigned int offset) sprd_eic_toggle_trigger() argument 557 u32 offset = bank * SPRD_EIC_PER_BANK_NR + n; sprd_eic_handle_one_type() local [all...] |
| /kernel/linux/linux-6.6/arch/arm/kernel/ |
| H A D | module.c | 78 * instruction with immediate offset. E.g., 94 static u32 get_group_rem(u32 group, u32 *offset) in get_group_rem() argument 96 u32 val = *offset; in get_group_rem() 100 *offset = val; in get_group_rem() 126 s32 offset; in apply_relocate() local 132 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 133 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate() 134 pr_err("%s: section %u reloc %u: bad relocation sym offset\n", in apply_relocate() 139 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() [all...] |
| /kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
| H A D | net_resolv_test_001.cpp | 48 int offset, ret; in DnCompTest() local 50 offset = strlen(reinterpret_cast<const char *>(dnptrs[0])) + 1; in DnCompTest() 51 ret = dn_comp("x.y.z.example.com", comp_dn + offset, sizeof(comp_dn) - offset, dnptrs, lastdnptr); in DnCompTest() 52 dump(comp_dn + offset, ret); in DnCompTest() 54 ICUNIT_ASSERT_EQUAL(dnptrs[1], comp_dn + offset, dnptrs[1]); in DnCompTest() 56 offset += ret+1; in DnCompTest() 57 ret = dn_comp("zz.example.com", comp_dn + offset, sizeof(comp_dn) - offset, dnptrs, lastdnptr); in DnCompTest() 58 dump(comp_dn+offset, re in DnCompTest() [all...] |
| /kernel/linux/linux-5.10/drivers/pinctrl/ |
| H A D | pinctrl-coh901.c | 89 * its context. It calculates the port offset from the given pin 90 * offset, muliplies by the port stride and adds the register offset 211 static int u300_gpio_get(struct gpio_chip *chip, unsigned offset) in u300_gpio_get() argument 215 return !!(readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset)); in u300_gpio_get() 218 static void u300_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in u300_gpio_set() argument 226 val = readl(U300_PIN_REG(offset, dor)); in u300_gpio_set() 228 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, do in u300_gpio_set() 235 u300_gpio_direction_input(struct gpio_chip *chip, unsigned offset) u300_gpio_direction_input() argument 250 u300_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) u300_gpio_direction_output() argument 280 u300_gpio_config_get(struct gpio_chip *chip, unsigned offset, unsigned long *config) u300_gpio_config_get() argument 339 u300_gpio_config_set(struct gpio_chip *chip, unsigned offset, enum pin_config_param param) u300_gpio_config_set() argument 401 u300_toggle_trigger(struct u300_gpio *gpio, unsigned offset) u300_toggle_trigger() argument 425 int offset = d->hwirq; u300_gpio_irq_type() local 462 int offset = d->hwirq; u300_gpio_irq_enable() local 478 int offset = d->hwirq; u300_gpio_irq_disable() local 519 int offset = pinoffset + irqoffset; u300_gpio_irq_handler() local 537 u300_gpio_init_pin(struct u300_gpio *gpio, int offset, const struct u300_gpio_confdata *conf) u300_gpio_init_pin() argument 577 int offset = (i*8) + j; u300_gpio_init_coh901571() local 591 unsigned int offset; global() member [all...] |
| H A D | pinctrl-da9062.c | 25 * We need this get the gpio_desc from a <gpio_chip,offset> tuple to decide if 30 #define DA9062_TYPE(offset) (4 * (offset % 2)) 31 #define DA9062_PIN_SHIFT(offset) (4 * (offset % 2)) 45 unsigned int offset) in da9062_pctl_get_pin_mode() 50 ret = regmap_read(regmap, DA9062AA_GPIO_0_1 + (offset >> 1), &val); in da9062_pctl_get_pin_mode() 54 val >>= DA9062_PIN_SHIFT(offset); in da9062_pctl_get_pin_mode() 61 unsigned int offset, unsigned int mode_req) in da9062_pctl_set_pin_mode() 69 mode <<= DA9062_PIN_SHIFT(offset); in da9062_pctl_set_pin_mode() 44 da9062_pctl_get_pin_mode(struct da9062_pctl *pctl, unsigned int offset) da9062_pctl_get_pin_mode() argument 60 da9062_pctl_set_pin_mode(struct da9062_pctl *pctl, unsigned int offset, unsigned int mode_req) da9062_pctl_set_pin_mode() argument 80 da9062_gpio_get(struct gpio_chip *gc, unsigned int offset) da9062_gpio_get() argument 109 da9062_gpio_set(struct gpio_chip *gc, unsigned int offset, int value) da9062_gpio_set() argument 119 da9062_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) da9062_gpio_get_direction() argument 141 da9062_gpio_direction_input(struct gpio_chip *gc, unsigned int offset) da9062_gpio_direction_input() argument 168 da9062_gpio_direction_output(struct gpio_chip *gc, unsigned int offset, int value) da9062_gpio_direction_output() argument 184 da9062_gpio_set_config(struct gpio_chip *gc, unsigned int offset, unsigned long config) da9062_gpio_set_config() argument 230 da9062_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) da9062_gpio_to_irq() argument [all...] |
| /kernel/linux/linux-5.10/arch/sh/boards/mach-microdev/ |
| H A D | io.c | 55 void __iomem *microdev_ioport_map(unsigned long offset, unsigned int len) in microdev_ioport_map() argument 59 if ((offset >= IO_LAN91C111_BASE) && in microdev_ioport_map() 60 (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { in microdev_ioport_map() 64 result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; in microdev_ioport_map() 65 } else if ((offset >= IO_SUPERIO_BASE) && in microdev_ioport_map() 66 (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { in microdev_ioport_map() 72 result = IO_SUPERIO_PHYS + (offset << 1); in microdev_ioport_map() 73 } else if (((offset >= IO_IDE1_BASE) && in microdev_ioport_map() 74 (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || in microdev_ioport_map() 75 (offset in microdev_ioport_map() [all...] |
| /kernel/linux/linux-6.6/arch/sh/boards/mach-microdev/ |
| H A D | io.c | 55 void __iomem *microdev_ioport_map(unsigned long offset, unsigned int len) in microdev_ioport_map() argument 59 if ((offset >= IO_LAN91C111_BASE) && in microdev_ioport_map() 60 (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { in microdev_ioport_map() 64 result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; in microdev_ioport_map() 65 } else if ((offset >= IO_SUPERIO_BASE) && in microdev_ioport_map() 66 (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { in microdev_ioport_map() 72 result = IO_SUPERIO_PHYS + (offset << 1); in microdev_ioport_map() 73 } else if (((offset >= IO_IDE1_BASE) && in microdev_ioport_map() 74 (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || in microdev_ioport_map() 75 (offset in microdev_ioport_map() [all...] |