Searched refs:val (Results 176 - 200 of 11023) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dlinked_maps2.c42 int key = 2, val = 2; local
47 bpf_map_update_elem(&map2, &key, &val, 0);
48 bpf_map_update_elem(&map_weak, &key, &val, 0);
57 int key = 1, *val; local
65 val = bpf_map_lookup_elem(&map2, &key);
66 if (val)
67 output_second2 = *val;
69 val = bpf_map_lookup_elem(&map_weak, &key);
70 if (val)
71 output_weak2 = *val;
[all...]
H A Dlinked_maps1.c48 int key = 1, val = 1; local
53 bpf_map_update_elem(&map2, &key, &val, 0);
54 bpf_map_update_elem(&map_weak, &key, &val, 0);
63 int key = 2, *val; local
71 val = bpf_map_lookup_elem(&map2, &key);
72 if (val)
73 output_second1 = *val;
75 val = bpf_map_lookup_elem(&map_weak, &key);
76 if (val)
77 output_weak1 = *val;
[all...]
H A Dtest_map_ops.c32 static u64 callback(u64 map, u64 key, u64 val, u64 ctx, u64 flags) argument
41 const int val = 1; local
46 err = bpf_map_update_elem(&hash_map, &key, &val, BPF_NOEXIST);
67 const int val = 1; local
72 err = bpf_map_push_elem(&stack_map, &val, 0);
80 int val; local
85 err = bpf_map_pop_elem(&stack_map, &val);
93 int val; local
98 err = bpf_map_peek_elem(&stack_map, &val);
107 const int val local
125 const int val = 1; local
[all...]
H A Dtimer_mim.c39 static int timer_cb1(void *map, int *key, struct hmap_elem *val);
41 static int timer_cb2(void *map, int *key, struct hmap_elem *val) argument
44 bpf_timer_set_callback(&val->timer, timer_cb1);
45 if (bpf_timer_start(&val->timer, 1000, 0))
52 static int timer_cb1(void *map, int *key, struct hmap_elem *val) argument
55 bpf_timer_set_callback(&val->timer, timer_cb2);
56 if (bpf_timer_start(&val->timer, 1000, 0))
69 struct hmap_elem *val; local
78 val = bpf_map_lookup_elem(inner_map, &hash_key);
79 if (!val)
[all...]
/linux-master/drivers/usb/isp1760/
H A Disp1760-core.h61 unsigned int val; local
63 regmap_field_read(fields[field], &val);
65 return val;
69 u32 val)
71 regmap_field_write(fields[field], val);
86 unsigned int val; local
88 regmap_read(regs, reg, &val);
90 return val;
93 static inline void isp1760_reg_write(struct regmap *regs, u32 reg, u32 val) argument
95 regmap_write(regs, reg, val);
68 isp1760_field_write(struct regmap_field **fields, u32 field, u32 val) argument
[all...]
/linux-master/drivers/clk/qcom/
H A Dclk-regmap-mux.c23 unsigned int val; local
25 regmap_read(clkr->regmap, mux->reg, &val);
27 val >>= mux->shift;
28 val &= mask;
31 return qcom_find_cfg_index(hw, mux->parent_map, val);
33 return val;
41 unsigned int val; local
46 val = index;
47 val <<= mux->shift;
49 return regmap_update_bits(clkr->regmap, mux->reg, mask, val);
[all...]
/linux-master/arch/x86/mm/
H A Dpgprot.c37 unsigned long val = pgprot_val(protection_map[vm_flags & local
49 val |= _PAGE_PKEY_BIT0;
51 val |= _PAGE_PKEY_BIT1;
53 val |= _PAGE_PKEY_BIT2;
55 val |= _PAGE_PKEY_BIT3;
58 val = __sme_set(val);
59 if (val & _PAGE_PRESENT)
60 val &= __supported_pte_mask;
61 return __pgprot(val);
[all...]
/linux-master/drivers/net/dsa/mv88e6xxx/
H A Dphy.h18 int addr, int reg, u16 *val);
20 int addr, int reg, u16 val);
22 int addr, int reg, u16 *val);
24 int addr, int reg, u16 val);
28 int reg, u16 *val);
30 int reg, u16 val);
32 int reg, u16 *val);
34 int reg, u16 val);
36 u8 page, int reg, u16 *val);
38 u8 page, int reg, u16 val);
[all...]
/linux-master/drivers/usb/typec/ucsi/
H A Dpsy.c34 union power_supply_propval *val)
49 val->intval = scope;
54 union power_supply_propval *val)
56 val->intval = UCSI_PSY_OFFLINE;
59 val->intval = UCSI_PSY_FIXED_ONLINE;
64 union power_supply_propval *val)
71 val->intval = pdo_fixed_voltage(pdo) * 1000;
77 val->intval = UCSI_TYPEC_VSAFE5V * 1000;
80 val->intval = 0;
87 union power_supply_propval *val)
33 ucsi_psy_get_scope(struct ucsi_connector *con, union power_supply_propval *val) argument
53 ucsi_psy_get_online(struct ucsi_connector *con, union power_supply_propval *val) argument
63 ucsi_psy_get_voltage_min(struct ucsi_connector *con, union power_supply_propval *val) argument
86 ucsi_psy_get_voltage_max(struct ucsi_connector *con, union power_supply_propval *val) argument
113 ucsi_psy_get_voltage_now(struct ucsi_connector *con, union power_supply_propval *val) argument
142 ucsi_psy_get_current_max(struct ucsi_connector *con, union power_supply_propval *val) argument
172 ucsi_psy_get_current_now(struct ucsi_connector *con, union power_supply_propval *val) argument
184 ucsi_psy_get_usb_type(struct ucsi_connector *con, union power_supply_propval *val) argument
197 ucsi_psy_get_prop(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument
[all...]
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen4_config.c19 unsigned long bank, val; local
30 val = i;
48 key, &val, ADF_DEC);
53 val = 128;
55 key, &val, ADF_DEC);
59 val = 512;
62 key, &val, ADF_DEC);
66 val = 0;
69 key, &val, ADF_DEC);
73 val
125 unsigned long val; local
192 unsigned long val; local
[all...]
/linux-master/drivers/iommu/intel/
H A Dpasid.h42 u64 val; member in struct:pasid_dir_entry
46 u64 val[8]; member in struct:pasid_entry
64 return READ_ONCE(pde->val) & PASID_PTE_PRESENT;
74 return phys_to_virt(READ_ONCE(pde->val) & PDE_PFN_MASK);
80 return READ_ONCE(pte->val[0]) & PASID_PTE_PRESENT;
86 return (u16)((READ_ONCE(pte->val[0]) >> 6) & 0x7);
91 WRITE_ONCE(pe->val[0], 0);
92 WRITE_ONCE(pe->val[1], 0);
93 WRITE_ONCE(pe->val[2], 0);
94 WRITE_ONCE(pe->val[
[all...]
/linux-master/include/trace/events/
H A Dhwmon.h12 TP_PROTO(int index, const char *attr_name, long val),
14 TP_ARGS(index, attr_name, val),
19 __field(long, val)
25 __entry->val = val;
28 TP_printk("index=%d, attr_name=%s, val=%ld",
29 __entry->index, __get_str(attr_name), __entry->val)
34 TP_PROTO(int index, const char *attr_name, long val),
36 TP_ARGS(index, attr_name, val)
41 TP_PROTO(int index, const char *attr_name, long val),
[all...]
/linux-master/arch/mips/bcm63xx/
H A Ddev-flash.c60 u32 val; local
64 val = bcm_misc_readl(MISC_STRAPBUS_6328_REG);
65 if (val & STRAPBUS_6328_BOOT_SEL_SERIAL)
76 val = bcm_gpio_readl(GPIO_STRAPBUS_REG);
77 if (val & STRAPBUS_6358_BOOT_SEL_PARALLEL)
82 val = bcm_misc_readl(MISC_STRAPBUS_6362_REG);
83 if (val & STRAPBUS_6362_BOOT_SEL_SERIAL)
88 val = bcm_gpio_readl(GPIO_STRAPBUS_REG);
89 switch (val & STRAPBUS_6368_BOOT_SEL_MASK) {
106 u32 val; local
[all...]
/linux-master/arch/arm64/kvm/
H A Dvgic-sys-reg-v3.c14 u64 val)
26 host_pri_bits = FIELD_GET(ICC_CTLR_EL1_PRI_BITS_MASK, val) + 1;
32 host_id_bits = FIELD_GET(ICC_CTLR_EL1_ID_BITS_MASK, val);
39 seis = FIELD_GET(ICC_CTLR_EL1_SEIS_MASK, val);
44 a3v = FIELD_GET(ICC_CTLR_EL1_A3V_MASK, val);
52 vmcr.cbpr = FIELD_GET(ICC_CTLR_EL1_CBPR_MASK, val);
53 vmcr.eoim = FIELD_GET(ICC_CTLR_EL1_EOImode_MASK, val);
64 u64 val; local
67 val = 0;
68 val |
13 set_gic_ctlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
87 set_gic_pmr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
99 get_gic_pmr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
110 set_gic_bpr0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
122 get_gic_bpr0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
133 set_gic_bpr1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
147 get_gic_bpr1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
162 set_gic_grpen0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
174 get_gic_grpen0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
185 set_gic_grpen1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
197 get_gic_grpen1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
208 set_apr_reg(struct kvm_vcpu *vcpu, u64 val, u8 apr, u8 idx) argument
228 set_gic_ap0r(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
241 get_gic_ap0r(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
254 set_gic_ap1r(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
267 get_gic_ap1r(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
280 set_gic_sre(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 val) argument
290 get_gic_sre(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, u64 *val) argument
[all...]
/linux-master/scripts/dtc/libfdt/
H A Dfdt_addresses.c17 uint32_t val; local
27 val = fdt32_to_cpu(*c);
28 if (val > FDT_MAX_NCELLS)
31 return (int)val;
36 int val; local
38 val = fdt_cells(fdt, nodeoffset, "#address-cells");
39 if (val == 0)
41 if (val == -FDT_ERR_NOTFOUND)
43 return val;
48 int val; local
[all...]
/linux-master/arch/mips/include/asm/
H A Dmipsmtregs.h20 #define write_c0_mvpcontrol(val) __write_32bit_c0_register($0, 1, val)
26 #define write_c0_vpecontrol(val) __write_32bit_c0_register($1, 1, val)
29 #define write_c0_vpeconf0(val) __write_32bit_c0_register($1, 2, val)
32 #define write_c0_vpeconf1(val) __write_32bit_c0_register($1, 3, val)
35 #define write_c0_tcstatus(val) __write_32bit_c0_register($2, 1, val)
[all...]
/linux-master/drivers/phy/marvell/
H A Dphy-mvebu-cp110-comphy.c340 u32 val; local
342 regmap_read(priv->regmap, MVEBU_COMPHY_CONF1(lane->id), &val);
343 val &= ~MVEBU_COMPHY_CONF1_USB_PCIE;
344 val |= MVEBU_COMPHY_CONF1_PWRUP;
345 regmap_write(priv->regmap, MVEBU_COMPHY_CONF1(lane->id), val);
348 val = readl(priv->base + MVEBU_COMPHY_SERDES_CFG0(lane->id));
349 val &= ~(MVEBU_COMPHY_SERDES_CFG0_PU_PLL |
359 val |= MVEBU_COMPHY_SERDES_CFG0_GEN_RX(0xe) |
363 val |= MVEBU_COMPHY_SERDES_CFG0_GEN_RX(0xb) |
368 val |
456 u32 val; local
498 u32 val; local
531 u32 val; local
584 u32 val; local
727 u32 val; local
878 u32 val; local
1039 u32 val; local
[all...]
/linux-master/drivers/thunderbolt/
H A Dusb4.c64 u32 val; local
79 val = opcode | ROUTER_CS_26_OV;
80 ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
88 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
92 if (val & ROUTER_CS_26_ONS)
96 *status = (val & ROUTER_CS_26_STATUS_MASK) >>
174 u32 val; local
177 if (tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_6, 1))
181 (val & ROUTER_CS_6_WOPS) ? "yes" : "no",
182 (val
220 u32 val; local
251 u32 val = 0; local
316 u32 val; local
398 u32 val; local
420 u32 val; local
500 u32 val; local
695 u32 val; local
1091 u32 val; local
1111 u32 val; local
1130 u32 val; local
1163 u32 val; local
1207 u32 val; local
1257 u32 val; local
1297 u32 val; local
1337 u32 val; local
1379 usb4_port_sb_opcode_err_to_errno(u32 val) argument
1397 u32 val; local
1426 u32 val = !offline; local
1476 u32 val; local
1493 u32 val; local
1512 u32 val; local
1533 u32 val; local
1580 u32 val; local
1647 u32 val; local
1689 u32 val; local
1964 u32 val; local
1992 u32 metadata, val; local
2086 u32 val; local
2105 u32 val; local
2168 u32 val, bw, scale; local
2222 u32 val, bw, scale; local
2250 u32 val, ubw, dbw, scale; local
2403 u32 val; local
2432 u32 val; local
2456 u32 val; local
2483 u32 val; local
2513 u32 val; local
2539 u32 val; local
2569 u32 val, tmp; local
2625 u32 val; local
2686 u32 val; local
2723 u32 val; local
2767 u32 val, granularity; local
2800 u32 val, granularity; local
2824 u32 val; local
2850 u32 val; local
2896 u32 val, granularity; local
2939 u32 val, granularity; local
2972 u32 val; local
[all...]
/linux-master/drivers/gpu/host1x/hw/
H A Ddebug_hw_1x06.c75 u32 val; local
79 val = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDFIFO_STAT);
80 host1x_debug_output(o, "CMDFIFO_STAT %08x\n", val);
81 if (val & HOST1X_CHANNEL_CMDFIFO_STAT_EMPTY) {
86 val = host1x_ch_readl(ch, HOST1X_CHANNEL_CMDFIFO_RDATA);
87 host1x_debug_output(o, "CMDFIFO_RDATA %08x\n", val);
93 val = 0;
94 val |= HOST1X_HV_CMDFIFO_PEEK_CTRL_ENABLE;
95 val |= HOST1X_HV_CMDFIFO_PEEK_CTRL_CHANNEL(ch->id);
96 host1x_hypervisor_writel(host, val, HOST1X_HV_CMDFIFO_PEEK_CTR
[all...]
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-cci.c19 int cci_read(struct regmap *map, u32 reg, u64 *val, int *err) argument
42 *val = buf[0];
46 *val = get_unaligned_le16(buf);
48 *val = get_unaligned_be16(buf);
52 *val = get_unaligned_le24(buf);
54 *val = get_unaligned_be24(buf);
58 *val = get_unaligned_le32(buf);
60 *val = get_unaligned_be32(buf);
64 *val = get_unaligned_le64(buf);
66 *val
83 cci_write(struct regmap *map, u32 reg, u64 val, int *err) argument
145 cci_update_bits(struct regmap *map, u32 reg, u64 mask, u64 val, int *err) argument
[all...]
/linux-master/drivers/net/pcs/
H A Dpcs-xpcs-wx.c54 static int txgbe_write_pma(struct dw_xpcs *xpcs, int reg, u16 val) argument
56 return xpcs_write(xpcs, MDIO_MMD_PMAPMD, TXGBE_PMA_MMD + reg, val);
61 int val; local
65 val = txgbe_read_pma(xpcs, TXGBE_TX_GENCTL1);
66 val = u16_replace_bits(val, 0x5, TXGBE_TX_GENCTL1_VBOOST_LVL);
67 txgbe_write_pma(xpcs, TXGBE_TX_GENCTL1, val);
81 val = txgbe_read_pma(xpcs, TXGBE_RX_EQ_ATTN_CTL);
82 val &= ~TXGBE_RX_EQ_ATTN_LVL0;
83 txgbe_write_pma(xpcs, TXGBE_RX_EQ_ATTN_CTL, val);
95 int val; local
129 int val, ret; local
144 int val, ret; local
175 int val, ret; local
[all...]
/linux-master/arch/loongarch/include/asm/
H A Dmodule.h50 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val);
51 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val);
53 static inline struct got_entry emit_got_entry(Elf_Addr val) argument
55 return (struct got_entry) { val };
58 static inline struct plt_entry emit_plt_entry(unsigned long val) argument
62 lu12iw = larch_insn_gen_lu12iw(LOONGARCH_GPR_T1, ADDR_IMM(val, LU12IW));
63 lu32id = larch_insn_gen_lu32id(LOONGARCH_GPR_T1, ADDR_IMM(val, LU32ID));
64 lu52id = larch_insn_gen_lu52id(LOONGARCH_GPR_T1, LOONGARCH_GPR_T1, ADDR_IMM(val, LU52ID));
65 jirl = larch_insn_gen_jirl(0, LOONGARCH_GPR_T1, ADDR_IMM(val, ORI));
70 static inline struct plt_idx_entry emit_plt_idx_entry(unsigned long val) argument
75 get_plt_idx(unsigned long val, Elf_Shdr *sechdrs, const struct mod_section *sec) argument
88 get_plt_entry(unsigned long val, Elf_Shdr *sechdrs, const struct mod_section *sec_plt, const struct mod_section *sec_plt_idx) argument
102 get_got_entry(Elf_Addr val, Elf_Shdr *sechdrs, const struct mod_section *sec) argument
[all...]
/linux-master/tools/perf/trace/beauty/
H A Dfcntl.c12 static size_t fcntl__scnprintf_getfd(unsigned long val, char *bf, size_t size, bool show_prefix) argument
14 return val ? scnprintf(bf, size, "%s", "0") :
20 return fcntl__scnprintf_getfd(arg->val, bf, size, arg->show_string_prefix);
23 static size_t fcntl__scnprintf_getlease(unsigned long val, char *bf, size_t size, bool show_prefix) argument
28 return strarray__scnprintf(&strarray__fcntl_setlease, bf, size, "%x", show_prefix, val);
33 return fcntl__scnprintf_getlease(arg->val, bf, size, arg->show_string_prefix);
38 if (arg->val == F_GETFL) {
42 if (arg->val == F_GETFD) {
46 if (arg->val == F_DUPFD_CLOEXEC || arg->val
[all...]
/linux-master/sound/soc/ti/
H A Ddavinci-mcasp.h131 #define TXROT(val) (val)
133 #define TXSSZ(val) (val<<4)
134 #define TXPBIT(val) (val<<8)
135 #define TXPAD(val) (val<<13)
137 #define FSXDLY(val) (val<<1
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs_cnf10kb.c41 u64 reg, val; local
44 val = (0x8100ull & 0xFFFF) | BIT_ULL(20) | BIT_ULL(22);
47 mcs_reg_write(mcs, reg, val);
50 mcs_reg_write(mcs, reg, val);
53 val = (0x88a8ull & 0xFFFF) | BIT_ULL(20) | BIT_ULL(23);
57 mcs_reg_write(mcs, reg, val);
61 mcs_reg_write(mcs, reg, val);
64 val = BIT_ULL(0) | BIT_ULL(1) | BIT_ULL(12);
67 mcs_reg_write(mcs, reg, val);
70 mcs_reg_write(mcs, reg, val);
75 u64 reg, val; local
92 u64 reg, val; local
117 u64 val, reg; local
128 u64 val; local
161 u64 val, sa_status; local
196 u64 val; local
[all...]

Completed in 218 milliseconds

1234567891011>>