Searched refs:val (Results 1 - 25 of 142) sorted by relevance

123456

/openwrt/target/sdk/
H A Dconvert-config.pl17 my $val = $2;
22 if ($val eq 'y') {
24 } elsif ($val eq 'm') {
26 } elsif ($val =~ /^".*"$/) {
28 } elsif ($val =~ /^\d+$/) {
31 warn "WARNING: no type found for symbol CONFIG_$var=$val\n";
38 default $val
/openwrt/target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/
H A Dutils.h9 u32 val = readl_relaxed(p); local
11 val &= ~mask;
12 writel_relaxed(val, p);
17 u32 val = readl_relaxed(p); local
19 val |= mask;
20 writel_relaxed(val, p);
27 u32 val = readl_relaxed(p); local
29 val &= ~mask;
30 val |= new_value;
31 writel_relaxed(val,
[all...]
H A Dsmp.h16 static inline void write_pen_release(int val) argument
18 writel(val, HOLDINGPEN_CPU);
/openwrt/package/system/mtd/src/
H A Dcrc32.h11 crc32(uint32_t val, const void *ss, int len) argument
15 val = crc32_table[(val ^ *s++) & 0xff] ^ (val >> 8);
16 return val;
/openwrt/target/linux/cns3xxx/base-files/etc/init.d/
H A Dnetdev-cpu12 local val="$2"
15 echo "$val" > "/proc/irq/$irq/smp_affinity"
/openwrt/target/linux/oxnas/base-files/init.d/
H A Dset-irq-affinity12 local val="$2"
15 echo "$val" > "/proc/irq/$irq/smp_affinity"
/openwrt/package/devel/perf/
H A Dmusl-compat.h22 int val; local
30 if (fscanf(f, "%d", &val) != 1)
34 return val;
/openwrt/package/utils/px5g-standalone/src/polarssl/
H A Dtiming.h60 * \param val points to a timer structure
63 unsigned long get_timer( struct hr_time *val, int reset );
/openwrt/target/linux/ar71xx/files/arch/mips/ath79/
H A Dpci-ath9k-fixup.c31 u32 val; local
93 val = *cal_data++;
94 val |= (*cal_data++) << 16;
96 __raw_writel(val, mem + reg);
100 pci_read_config_dword(dev, PCI_VENDOR_ID, &val);
101 dev->vendor = val & 0xffff;
102 dev->device = (val >> 16) & 0xffff;
104 pci_read_config_dword(dev, PCI_CLASS_REVISION, &val);
105 dev->revision = val & 0xff;
106 dev->class = val >>
[all...]
/openwrt/target/linux/generic/files/drivers/net/phy/
H A Dip17xx.c330 int val = mdiobus_read(state->mii_bus, port, reg); local
331 if (val < 0)
332 pr_warning("IP17xx: Unable to get MII register %d,%d: error %d\n", port, reg, -val);
335 pr_debug("IP17xx: Read MII(%d,%d) -> %04x\n", port, reg, val);
337 return val;
340 static int ip_phy_write(struct ip17xx_state *state, int port, int reg, u16 val) argument
345 pr_debug("IP17xx: Write MII(%d,%d) <- %04x\n", port, reg, val);
347 err = mdiobus_write(state->mii_bus, port, reg, val);
355 int val = ip_phy_read(state, port, reg); local
356 if (val <
465 int val; local
736 ip17xx_get_enable_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
758 ip17xx_set_enable_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
776 ip17xx_get_ports(struct switch_dev *dev, struct switch_val *val) argument
804 ip17xx_set_ports(struct switch_dev *dev, struct switch_val *val) argument
833 int val = getPhy(state, state->regs->MII_REGISTER_EN); local
876 ip17xx_get_tagged(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
894 ip17xx_set_tagged(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
910 ip17xx_get_phy(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
919 ip17xx_set_phy(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
932 ip17xx_get_reg(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
941 ip17xx_set_reg(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
954 ip17xx_get_val(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
970 ip17xx_set_val(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
982 ip17xx_read_name(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
989 ip17xx_get_tag(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1001 ip17xx_set_tag(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1017 ip17xx_set_port_speed(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1054 ip17xx_get_port_speed(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1081 ip17xx_get_port_status(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1125 ip17xx_get_pvid(struct switch_dev *dev, int port, int *val) argument
1133 ip17xx_set_pvid(struct switch_dev *dev, int port, int val) argument
[all...]
H A Drtl8366_smi.h85 int (*mii_write)(struct mii_bus *bus, int addr, int reg, u16 val);
95 int (*get_mc_index)(struct rtl8366_smi *smi, int port, int *val);
98 int port, unsigned long long *val);
127 int rtl8366_sw_get_port_pvid(struct switch_dev *dev, int port, int *val);
128 int rtl8366_sw_set_port_pvid(struct switch_dev *dev, int port, int val);
131 struct switch_val *val);
134 struct switch_val *val);
137 struct switch_val *val);
140 struct switch_val *val);
141 int rtl8366_sw_get_vlan_ports(struct switch_dev *dev, struct switch_val *val);
[all...]
H A Drtl8366rb.c375 int port, unsigned long long *val)
418 *val = mibvalue;
562 static int rtl8366rb_get_mc_index(struct rtl8366_smi *smi, int port, int *val) argument
575 *val = (data >> RTL8366RB_PORT_VLAN_CTRL_SHIFT(port)) &
628 struct switch_val *val)
638 struct switch_val *val)
645 val->value.i = (data & (RTL8366RB_LED_BLINKRATE_MASK));
652 struct switch_val *val)
656 if (val->value.i >= 6)
661 val
374 rtl8366rb_get_mib_counter(struct rtl8366_smi *smi, int counter, int port, unsigned long long *val) argument
626 rtl8366rb_sw_reset_mibs(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
636 rtl8366rb_sw_get_blinkrate(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
650 rtl8366rb_sw_set_blinkrate(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
664 rtl8366rb_sw_get_learning_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
678 rtl8366rb_sw_set_learning_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
743 rtl8366rb_sw_set_port_led(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
768 rtl8366rb_sw_get_port_led(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
784 rtl8366rb_sw_set_port_disable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
803 rtl8366rb_sw_get_port_disable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
822 rtl8366rb_sw_set_port_rate_in(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
843 rtl8366rb_sw_get_port_rate_in(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
863 rtl8366rb_sw_set_port_rate_out(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
886 rtl8366rb_sw_get_port_rate_out(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
906 rtl8366rb_sw_set_qos_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
921 rtl8366rb_sw_get_qos_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
937 rtl8366rb_sw_set_mirror_rx_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
952 rtl8366rb_sw_get_mirror_rx_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
968 rtl8366rb_sw_set_mirror_tx_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
983 rtl8366rb_sw_get_mirror_tx_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
999 rtl8366rb_sw_set_monitor_isolation_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1014 rtl8366rb_sw_get_monitor_isolation_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1030 rtl8366rb_sw_set_mirror_pause_frames_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1045 rtl8366rb_sw_get_mirror_pause_frames_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1061 rtl8366rb_sw_set_mirror_monitor_port(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1073 rtl8366rb_sw_get_mirror_monitor_port(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1086 rtl8366rb_sw_set_mirror_source_port(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1098 rtl8366rb_sw_get_mirror_source_port(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1111 rtl8366rb_sw_reset_port_mibs(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
1324 u32 val = 0; local
1334 rtl8366rb_mii_write(struct mii_bus *bus, int addr, int reg, u16 val) argument
[all...]
H A Dswconfig.c62 struct switch_val *val)
65 if (val->port_vlan >= dev->vlans)
71 ret = dev->ops->get_vlan_ports(dev, val);
77 struct switch_val *val)
79 struct switch_port *ports = val->value.ports;
83 if (val->port_vlan >= dev->vlans)
87 if (val->len > dev->ports)
93 for (i = 0; i < val->len; i++) {
99 ops->set_port_pvid(dev, ports[i].id, val->port_vlan);
102 return ops->set_vlan_ports(dev, val);
61 swconfig_get_vlan_ports(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
76 swconfig_set_vlan_ports(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
106 swconfig_set_pvid(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
119 swconfig_get_pvid(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
132 swconfig_set_link(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
142 swconfig_get_link(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
158 swconfig_apply_config(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
169 swconfig_reset_switch(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
503 swconfig_lookup_attr(struct switch_dev *dev, struct genl_info *info, struct switch_val *val) argument
584 swconfig_parse_ports(struct sk_buff *msg, struct nlattr *head, struct switch_val *val, int max) argument
635 struct switch_val val; local
750 swconfig_send_ports(struct sk_buff **msg, struct genl_info *info, int attr, const struct switch_val *val) argument
835 struct switch_val val; local
[all...]
H A Drtl8306.c279 rtl_w16(struct switch_dev *dev, unsigned int page, unsigned int phy, unsigned int reg, u16 val) argument
285 bus->write(bus, phy, reg, val);
301 rtl_rmw(struct switch_dev *dev, unsigned int page, unsigned int phy, unsigned int reg, u16 mask, u16 val) argument
310 r |= val;
320 u16 val; local
326 val = rtl_r16(dev, r->page, r->phy, r->reg);
329 val >>= r->shift;
332 val = ~val;
334 val
340 rtl_set(struct switch_dev *dev, enum rtl_regidx s, unsigned int val) argument
493 rtl_set_use_cpuport(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
502 rtl_get_use_cpuport(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
510 rtl_set_cpuport(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
518 rtl_get_cpuport(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
533 rtl_attr_set_int(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
561 rtl_attr_get_int(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
573 rtl_attr_set_port_int(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
582 rtl_attr_get_port_int(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
611 rtl_attr_set_vlan_int(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
620 rtl_attr_get_vlan_int(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
629 rtl_get_ports(struct switch_dev *dev, struct switch_val *val) argument
651 rtl_set_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
680 rtl_get_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
687 rtl_set_ports(struct switch_dev *dev, struct switch_val *val) argument
870 struct switch_val val; local
[all...]
H A Dmvsw61xx.c49 int reg, u16 mask, u16 val)
56 if ((r & mask) == val)
90 int reg, u16 val)
95 bus->write(bus, addr, reg, val);
104 bus->write(bus, base_addr, MV_INDIRECT_REG_DATA, val);
127 sw16(struct switch_dev *dev, int addr, int reg, u16 val) argument
131 w16(state->bus, state->is_indirect, state->base_addr, addr, reg, val);
136 int reg, u16 mask, u16 val)
143 if (r == val)
152 const struct switch_attr *attr, struct switch_val *val)
48 mvsw61xx_wait_mask_raw(struct mii_bus *bus, int addr, int reg, u16 mask, u16 val) argument
89 w16(struct mii_bus *bus, bool indirect, int base_addr, int addr, int reg, u16 val) argument
135 mvsw61xx_wait_mask_s(struct switch_dev *dev, int addr, int reg, u16 mask, u16 val) argument
151 mvsw61xx_get_port_mask(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
177 mvsw61xx_get_port_qmode(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
188 mvsw61xx_set_port_qmode(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
199 mvsw61xx_get_port_pvid(struct switch_dev *dev, int port, int *val) argument
209 mvsw61xx_set_port_pvid(struct switch_dev *dev, int port, int val) argument
253 mvsw61xx_get_vlan_ports(struct switch_dev *dev, struct switch_val *val) argument
284 mvsw61xx_set_vlan_ports(struct switch_dev *dev, struct switch_val *val) argument
329 mvsw61xx_get_vlan_port_based(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
346 mvsw61xx_set_vlan_port_based(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
363 mvsw61xx_get_vid(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
377 mvsw61xx_set_vid(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
391 mvsw61xx_get_enable_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
401 mvsw61xx_set_enable_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
719 u32 val; local
[all...]
H A Dpsb6970.c58 void (*write) (struct phy_device* phydev, int reg, u16 val);
76 static void psb6970_mii_write(struct phy_device *phydev, int reg, u16 val) argument
78 phydev->bus->write(phydev->bus, PHYADDR(reg), val);
83 struct switch_val *val)
86 priv->vlan = !!val->value.i;
92 struct switch_val *val)
95 val->value.i = priv->vlan;
120 struct switch_val *val)
123 priv->vlan_id[val->port_vlan] = val
82 psb6970_set_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
91 psb6970_get_vlan(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
119 psb6970_set_vid(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
128 psb6970_get_vid(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val) argument
160 psb6970_get_ports(struct switch_dev *dev, struct switch_val *val) argument
183 psb6970_set_ports(struct switch_dev *dev, struct switch_val *val) argument
[all...]
/openwrt/package/network/config/swconfig/src/
H A Dcli.c105 print_attr_val(const struct switch_attr *attr, const struct switch_val *val) argument
112 printf("%d", val->value.i);
115 printf("%s", val->value.s);
118 for(i = 0; i < val->len; i++) {
120 val->value.ports[i].id,
121 (val->value.ports[i].flags &
126 link = val->value.link;
129 val->port_vlan,
138 printf("port:%d link:down", val->port_vlan);
146 show_attrs(struct switch_dev *dev, struct switch_attr *attr, struct switch_val *val) argument
164 struct switch_val val; local
173 struct switch_val val; local
183 struct switch_val val; local
240 struct switch_val val; local
[all...]
H A Dswlib.c153 struct switch_val *val = arg; local
154 struct switch_attr *attr = val->attr;
160 NLA_PUT_U32(msg, SWITCH_ATTR_OP_PORT, val->port_vlan);
163 NLA_PUT_U32(msg, SWITCH_ATTR_OP_VLAN, val->port_vlan);
176 store_port_val(struct nl_msg *msg, struct nlattr *nla, struct switch_val *val) argument
179 int ports = val->attr->dev->ports;
183 if (!val->value.ports)
184 val->value.ports = malloc(sizeof(struct switch_port) * ports);
190 if (val->len >= ports)
200 port = &val
214 store_link_val(struct nl_msg *msg, struct nlattr *nla, struct switch_val *val) argument
248 struct switch_val *val = arg; local
275 swlib_get_attr(struct switch_dev *dev, struct switch_attr *attr, struct switch_val *val) argument
306 send_attr_ports(struct nl_msg *msg, struct switch_val *val) argument
340 send_attr_link(struct nl_msg *msg, struct switch_val *val) argument
366 struct switch_val *val = arg; local
401 swlib_set_attr(struct switch_dev *dev, struct switch_attr *attr, struct switch_val *val) argument
434 struct switch_val val; local
[all...]
/openwrt/package/network/services/ead/src/tinysrp/
H A Dbn_exp.c186 BIGNUM val[TABLE_SIZE]; local
203 BN_init(&(val[0]));
206 if (!BN_mod(&(val[0]),a,m,ctx)) goto err; /* 1 */
211 if (!BN_mod_mul_reciprocal(aa,&(val[0]),&(val[0]),&recp,ctx))
216 BN_init(&val[i]);
217 if (!BN_mod_mul_reciprocal(&(val[i]),&(val[i-1]),aa,&recp,ctx))
272 if (!BN_mod_mul_reciprocal(r,r,&(val[wvalue>>1]),&recp,ctx))
285 BN_clear_free(&(val[
298 BIGNUM val[TABLE_SIZE]; local
[all...]
/openwrt/package/boot/uboot-oxnas/files/arch/arm/include/asm/arch-nas782x/
H A Dsysctl.h76 #define REF300_DIV_INT(val) ((val) << REF300_DIV_INT_SHIFT)
77 #define REF300_DIV_FRAC(val) ((val) << REF300_DIV_FRAC_SHIFT)
116 #define PLLB_DIV_INT(val) ((val) << PLLB_DIV_INT_SHIFT)
117 #define PLLB_DIV_FRAC(val) ((val) << PLLB_DIV_FRAC_SHIFT)
/openwrt/target/linux/generic/files/drivers/net/phy/b53/
H A Db53_spi.c41 static inline int b53_spi_read_reg(struct spi_device *spi, u8 reg, u8 *val, argument
49 return spi_write_then_read(spi, txbuf, 2, val, len);
140 static int b53_spi_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val) argument
142 return b53_spi_read(dev, page, reg, val, 1);
145 static int b53_spi_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val) argument
147 int ret = b53_spi_read(dev, page, reg, (u8 *)val, 2);
150 *val = le16_to_cpu(*val);
155 static int b53_spi_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val) argument
157 int ret = b53_spi_read(dev, page, reg, (u8 *)val,
165 b53_spi_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val) argument
177 b53_spi_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val) argument
[all...]
/openwrt/target/linux/generic/files/include/linux/
H A Drtl8366.h26 u16 val; member in struct:rtl8366_initval
H A Dswitch.h87 int (*get_vlan_ports)(struct switch_dev *dev, struct switch_val *val);
88 int (*set_vlan_ports)(struct switch_dev *dev, struct switch_val *val);
90 int (*get_port_pvid)(struct switch_dev *dev, int port, int *val);
91 int (*set_port_pvid)(struct switch_dev *dev, int port, int val);
167 int (*set)(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val);
168 int (*get)(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val);
/openwrt/target/linux/lantiq/base-files/lib/functions/
H A Dlantiq_dsl.sh40 local val=$1
44 if [ "$val" -gt 1000000 ]; then
45 a=$(expr $val / 1000)
49 elif [ "$val" -gt 1000 ]; then
50 a=$(expr $val / 1000)
53 echo "${val} b"
58 local val=$1
62 a=$(expr $val / 100)
63 b=$(expr $val % 100)
71 local val
[all...]
/openwrt/tools/firmware-utils/src/
H A Dmkwrgimg.c76 static void put_u32(void *data, uint32_t val) argument
81 p[0] = (val >> 24) & 0xff;
82 p[1] = (val >> 16) & 0xff;
83 p[2] = (val >> 8) & 0xff;
84 p[3] = val & 0xff;
86 p[3] = (val >> 24) & 0xff;
87 p[2] = (val >> 16) & 0xff;
88 p[1] = (val >> 8) & 0xff;
89 p[0] = val & 0xff;

Completed in 140 milliseconds

123456