Home
last modified time | relevance | path

Searched refs:nval (Results 1 – 21 of 21) sorted by relevance

/drivers/soundwire/
Dmipi_disco.c35 int nval, i; in sdw_master_read_prop() local
63 nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported"); in sdw_master_read_prop()
64 if (nval > 0) { in sdw_master_read_prop()
65 prop->num_clk_freq = nval; in sdw_master_read_prop()
89 nval = fwnode_property_count_u32(link, "mipi-sdw-supported-clock-gears"); in sdw_master_read_prop()
90 if (nval > 0) { in sdw_master_read_prop()
91 prop->num_clk_gears = nval; in sdw_master_read_prop()
127 int nval; in sdw_slave_read_dp0() local
135 nval = fwnode_property_count_u32(port, "mipi-sdw-port-wordlength-configs"); in sdw_slave_read_dp0()
136 if (nval > 0) { in sdw_slave_read_dp0()
[all …]
/drivers/base/
Dproperty.c79 u8 *val, size_t nval) in device_property_read_u8_array() argument
81 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array()
104 u16 *val, size_t nval) in device_property_read_u16_array() argument
106 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array()
129 u32 *val, size_t nval) in device_property_read_u32_array() argument
131 return fwnode_property_read_u32_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u32_array()
154 u64 *val, size_t nval) in device_property_read_u64_array() argument
156 return fwnode_property_read_u64_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u64_array()
179 const char **val, size_t nval) in device_property_read_string_array() argument
181 return fwnode_property_read_string_array(dev_fwnode(dev), propname, val, nval); in device_property_read_string_array()
[all …]
Dswnode.c160 size_t nval) in property_entry_read_int_array() argument
172 length = nval * elem_size; in property_entry_read_int_array()
184 const char **strings, size_t nval) in property_entry_read_string_array() argument
200 array_len = min_t(size_t, nval, array_len); in property_entry_read_string_array()
215 size_t i, nval; in property_entry_free_data() local
219 nval = p->length / sizeof(*src_str); in property_entry_free_data()
220 for (i = 0; i < nval; i++) in property_entry_free_data()
232 size_t nval) in property_copy_string_array() argument
236 for (i = 0; i < nval; i++) { in property_copy_string_array()
253 size_t nval; in property_entry_copy_data() local
[all …]
/drivers/acpi/
Dproperty.c869 size_t nval) in acpi_copy_property_array_u8() argument
873 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u8()
885 u16 *val, size_t nval) in acpi_copy_property_array_u16() argument
889 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u16()
901 u32 *val, size_t nval) in acpi_copy_property_array_u32() argument
905 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u32()
917 u64 *val, size_t nval) in acpi_copy_property_array_u64() argument
921 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u64()
931 char **val, size_t nval) in acpi_copy_property_array_string() argument
935 for (i = 0; i < nval; i++) { in acpi_copy_property_array_string()
[all …]
Ddevice_sysfs.c199 int i, nval; in create_of_modalias() local
220 nval = of_compatible->package.count; in create_of_modalias()
223 nval = 1; in create_of_modalias()
226 for (i = 0; i < nval; i++, obj++) { in create_of_modalias()
Dbus.c635 int i, nval; in acpi_of_match_device() local
645 nval = of_compatible->package.count; in acpi_of_match_device()
648 nval = 1; in acpi_of_match_device()
652 for (i = 0; i < nval; i++, obj++) { in acpi_of_match_device()
/drivers/scsi/aic94xx/
Daic94xx_reg.h233 u16 nval = asd_ddbsite_read_word(asd_ha, ddb_site_no, base); in asd_ddbsite_update_byte() local
235 if ((nval >> 8) != _oldval) in asd_ddbsite_update_byte()
237 nval = (_newval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte()
238 oval = (_oldval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte()
240 if ((nval & 0xFF) != _oldval) in asd_ddbsite_update_byte()
242 nval = (nval & 0xFF00) | _newval; in asd_ddbsite_update_byte()
243 oval = (nval & 0xFF00) | _oldval; in asd_ddbsite_update_byte()
245 return asd_ddbsite_update_word(asd_ha, ddb_site_no, base, oval, nval); in asd_ddbsite_update_byte()
/drivers/usb/typec/
Dmux.c195 int nval; in typec_mux_match() local
217 nval = fwnode_property_count_u16(fwnode, "svid"); in typec_mux_match()
218 if (nval <= 0) in typec_mux_match()
221 val = kcalloc(nval, sizeof(*val), GFP_KERNEL); in typec_mux_match()
225 ret = fwnode_property_read_u16_array(fwnode, "svid", val, nval); in typec_mux_match()
231 for (i = 0; i < nval; i++) { in typec_mux_match()
/drivers/iio/accel/
Dkxsd9.c167 u16 nval; in kxsd9_read_raw() local
177 nval = be16_to_cpu(raw_val); in kxsd9_read_raw()
179 nval >>= 4; in kxsd9_read_raw()
180 *val = nval; in kxsd9_read_raw()
/drivers/of/
Dproperty.c884 size_t nval) in of_fwnode_property_read_int_array() argument
894 return of_property_read_u8_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
896 return of_property_read_u16_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
898 return of_property_read_u32_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
900 return of_property_read_u64_array(node, propname, val, nval); in of_fwnode_property_read_int_array()
909 size_t nval) in of_fwnode_property_read_string_array() argument
914 of_property_read_string_array(node, propname, val, nval) : in of_fwnode_property_read_string_array()
/drivers/hwmon/
Dsis5595.c121 unsigned long nval = clamp_val(val, 0, 4080); in IN_TO_REG() local
122 return (nval + 8) / 16; in IN_TO_REG()
150 int nval = clamp_val(val, -54120, 157530) ; in TEMP_TO_REG() local
151 return nval < 0 ? (nval - 5212 - 415) / 830 : (nval - 5212 + 415) / 830; in TEMP_TO_REG()
Dlm78.c74 unsigned long nval = clamp_val(val, 0, 4080); in IN_TO_REG() local
75 return (nval + 8) / 16; in IN_TO_REG()
99 int nval = clamp_val(val, -128000, 127000) ; in TEMP_TO_REG() local
100 return nval < 0 ? (nval - 500) / 1000 : (nval + 500) / 1000; in TEMP_TO_REG()
Dasb100.c104 unsigned nval = clamp_val(val, ASB100_IN_MIN, ASB100_IN_MAX); in IN_TO_REG() local
105 return (nval + 8) / 16; in IN_TO_REG()
/drivers/net/ipvlan/
Dipvlan_main.c7 static int ipvlan_set_port_mode(struct ipvl_port *port, u16 nval, in ipvlan_set_port_mode() argument
15 if (port->mode != nval) { in ipvlan_set_port_mode()
18 if (nval == IPVLAN_MODE_L3 || nval == IPVLAN_MODE_L3S) { in ipvlan_set_port_mode()
30 if (nval == IPVLAN_MODE_L3S) { in ipvlan_set_port_mode()
39 port->mode = nval; in ipvlan_set_port_mode()
/drivers/isdn/mISDN/
Dtei.c473 tm->nval = 3; in tei_id_request()
593 tm->nval = 2; in tei_id_verify()
601 if (--tm->nval) { in tei_id_req_tout()
605 4 - tm->nval, tm->ri); in tei_id_req_tout()
620 if (--tm->nval) { in tei_id_ver_tout()
624 3 - tm->nval, tm->l2->tei); in tei_id_ver_tout()
691 tm->nval = 2; in tei_id_chk_req_net()
736 } else if (--tm->nval) { in tei_id_ver_tout_net()
740 3 - tm->nval, tm->l2->tei); in tei_id_ver_tout_net()
Dlayer2.h33 int tval, nval; member
/drivers/power/supply/
Dpower_supply_core.c287 int nval, ret; in power_supply_check_supplies() local
292 nval = device_property_read_string_array(psy->dev.parent, in power_supply_check_supplies()
294 if (nval <= 0) in power_supply_check_supplies()
297 psy->supplied_from = devm_kmalloc_array(&psy->dev, nval, in power_supply_check_supplies()
303 "supplied-from", (const char **)psy->supplied_from, nval); in power_supply_check_supplies()
307 psy->num_supplies = nval; in power_supply_check_supplies()
/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c4993 u32 cval,nval; in pvr2_hdw_gpio_chg_dir() local
4998 nval = (cval & ~msk) | (val & msk); in pvr2_hdw_gpio_chg_dir()
5001 msk,val,cval,nval); in pvr2_hdw_gpio_chg_dir()
5003 nval = val; in pvr2_hdw_gpio_chg_dir()
5005 "GPIO direction changing to 0x%x",nval); in pvr2_hdw_gpio_chg_dir()
5007 return pvr2_write_register(hdw,PVR2_GPIO_DIR,nval); in pvr2_hdw_gpio_chg_dir()
5013 u32 cval,nval; in pvr2_hdw_gpio_chg_out() local
5018 nval = (cval & ~msk) | (val & msk); in pvr2_hdw_gpio_chg_out()
5021 msk,val,cval,nval); in pvr2_hdw_gpio_chg_out()
5023 nval = val; in pvr2_hdw_gpio_chg_out()
[all …]
/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1527 unsigned int pin, int nval) in npcm7xx_set_drive_strength() argument
1535 if (!nval || !v) in npcm7xx_set_drive_strength()
1537 if (DSLO(v) == nval) { in npcm7xx_set_drive_strength()
1539 "setting pin %d to low strength [%d]\n", pin, nval); in npcm7xx_set_drive_strength()
1542 } else if (DSHI(v) == nval) { in npcm7xx_set_drive_strength()
1544 "setting pin %d to high strength [%d]\n", pin, nval); in npcm7xx_set_drive_strength()
/drivers/net/bonding/
Dbond_3ad.c2267 int val, nval; in bond_agg_timer_advance() local
2273 nval = val - 1; in bond_agg_timer_advance()
2275 val, nval) == val) in bond_agg_timer_advance()
2278 return nval == 0; in bond_agg_timer_advance()
/drivers/memory/tegra/
Dtegra210-emc-cc-r21021.c97 #define __WEIGHTED_UPDATE_PTFV(dev, nval) \ argument
103 ((nval * MOVAVG_PRECISION_FACTOR) + \
109 __stringify(dev), nval, next->ptfv_list[dqs]); \