/drivers/soundwire/ |
D | mipi_disco.c | 35 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/phy/microchip/ |
D | sparx5_serdes.h | 84 u32 nval; in sdx5_rmw() local 89 nval = readl(addr); in sdx5_rmw() 90 nval = (nval & ~mask) | (val & mask); in sdx5_rmw() 91 writel(nval, addr); in sdx5_rmw() 99 u32 nval; in sdx5_inst_rmw() local 104 nval = readl(addr); in sdx5_inst_rmw() 105 nval = (nval & ~mask) | (val & mask); in sdx5_inst_rmw() 106 writel(nval, addr); in sdx5_inst_rmw() 111 u32 nval; in sdx5_rmw_addr() local 113 nval = readl(addr); in sdx5_rmw_addr() [all …]
|
/drivers/base/ |
D | property.c | 81 u8 *val, size_t nval) in device_property_read_u8_array() argument 83 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 106 u16 *val, size_t nval) in device_property_read_u16_array() argument 108 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 131 u32 *val, size_t nval) in device_property_read_u32_array() argument 133 return fwnode_property_read_u32_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u32_array() 156 u64 *val, size_t nval) in device_property_read_u64_array() argument 158 return fwnode_property_read_u64_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u64_array() 181 const char **val, size_t nval) in device_property_read_string_array() argument 183 return fwnode_property_read_string_array(dev_fwnode(dev), propname, val, nval); in device_property_read_string_array() [all …]
|
D | swnode.c | 163 size_t nval) in property_entry_read_int_array() argument 175 length = nval * elem_size; in property_entry_read_int_array() 187 const char **strings, size_t nval) in property_entry_read_string_array() argument 203 array_len = min_t(size_t, nval, array_len); in property_entry_read_string_array() 218 size_t i, nval; in property_entry_free_data() local 222 nval = p->length / sizeof(*src_str); in property_entry_free_data() 223 for (i = 0; i < nval; i++) in property_entry_free_data() 235 size_t nval) in property_copy_string_array() argument 239 for (i = 0; i < nval; i++) { in property_copy_string_array() 256 size_t nval; in property_entry_copy_data() local [all …]
|
/drivers/scsi/aic94xx/ |
D | aic94xx_reg.h | 233 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/acpi/ |
D | property.c | 855 size_t nval) in acpi_copy_property_array_u8() argument 859 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u8() 871 u16 *val, size_t nval) in acpi_copy_property_array_u16() argument 875 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u16() 887 u32 *val, size_t nval) in acpi_copy_property_array_u32() argument 891 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u32() 903 u64 *val, size_t nval) in acpi_copy_property_array_u64() argument 907 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u64() 917 char **val, size_t nval) in acpi_copy_property_array_string() argument 921 for (i = 0; i < nval; i++) { in acpi_copy_property_array_string() [all …]
|
D | device_sysfs.c | 200 int i, nval; in create_of_modalias() local 221 nval = of_compatible->package.count; in create_of_modalias() 224 nval = 1; in create_of_modalias() 227 for (i = 0; i < nval; i++, obj++) { in create_of_modalias()
|
D | bus.c | 727 int i, nval; in acpi_of_match_device() local 737 nval = of_compatible->package.count; in acpi_of_match_device() 740 nval = 1; in acpi_of_match_device() 744 for (i = 0; i < nval; i++, obj++) { in acpi_of_match_device()
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_main.h | 406 u32 nval; in spx5_rmw() local 408 nval = readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw() 410 nval = (nval & ~mask) | (val & mask); in spx5_rmw() 411 writel(nval, spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw() 420 u32 nval; in spx5_inst_rmw() local 422 nval = readl(spx5_inst_addr(iomem, gbase, ginst, gcnt, gwidth, raddr, in spx5_inst_rmw() 424 nval = (nval & ~mask) | (val & mask); in spx5_inst_rmw() 425 writel(nval, spx5_inst_addr(iomem, gbase, ginst, gcnt, gwidth, raddr, in spx5_inst_rmw()
|
/drivers/usb/typec/ |
D | mux.c | 202 int nval; in typec_mux_match() local 224 nval = fwnode_property_count_u16(fwnode, "svid"); in typec_mux_match() 225 if (nval <= 0) in typec_mux_match() 228 val = kcalloc(nval, sizeof(*val), GFP_KERNEL); in typec_mux_match() 232 ret = fwnode_property_read_u16_array(fwnode, "svid", val, nval); in typec_mux_match() 238 for (i = 0; i < nval; i++) { in typec_mux_match()
|
/drivers/iio/accel/ |
D | kxsd9.c | 167 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/ |
D | property.c | 884 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/ |
D | sis5595.c | 121 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()
|
D | lm78.c | 74 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()
|
D | asb100.c | 104 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/ |
D | ipvlan_main.c | 9 static int ipvlan_set_port_mode(struct ipvl_port *port, u16 nval, in ipvlan_set_port_mode() argument 17 if (port->mode != nval) { in ipvlan_set_port_mode() 20 if (nval == IPVLAN_MODE_L3 || nval == IPVLAN_MODE_L3S) { in ipvlan_set_port_mode() 32 if (nval == IPVLAN_MODE_L3S) { in ipvlan_set_port_mode() 41 port->mode = nval; in ipvlan_set_port_mode()
|
/drivers/isdn/mISDN/ |
D | tei.c | 473 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()
|
D | layer2.h | 33 int tval, nval; member
|
/drivers/power/supply/ |
D | power_supply_core.c | 287 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/ |
D | pvrusb2-hdw.c | 4993 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/ |
D | pinctrl-npcm7xx.c | 1527 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/ |
D | bond_3ad.c | 2286 int val, nval; in bond_agg_timer_advance() local 2292 nval = val - 1; in bond_agg_timer_advance() 2294 val, nval) == val) in bond_agg_timer_advance() 2297 return nval == 0; in bond_agg_timer_advance()
|
/drivers/memory/tegra/ |
D | tegra210-emc-cc-r21021.c | 97 #define __WEIGHTED_UPDATE_PTFV(dev, nval) \ argument 103 ((nval * MOVAVG_PRECISION_FACTOR) + \ 109 __stringify(dev), nval, next->ptfv_list[dqs]); \
|