| /drivers/regulator/ |
| D | atc260x-regulator.c | 171 #define atc2603c_reg_desc_dcdc(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 172 .name = "DCDC"#num, \ 173 .supply_name = "dcdc"#num, \ 174 .of_match = of_match_ptr("dcdc"#num), \ 176 .id = ATC2603C_ID_DCDC##num, \ 182 .vsel_reg = ATC2603C_PMU_DC##num##_CTL0, \ 184 .enable_reg = ATC2603C_PMU_DC##num##_CTL0, \ 190 #define atc2603c_reg_desc_dcdc_range(num, vsel_h, vsel_l) { \ argument 191 .name = "DCDC"#num, \ 192 .supply_name = "dcdc"#num, \ [all …]
|
| D | max77686-regulator.c | 309 #define regulator_desc_ldo(num) { \ argument 310 .name = "LDO"#num, \ 311 .of_match = of_match_ptr("LDO"#num), \ 314 .id = MAX77686_LDO##num, \ 322 .vsel_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \ 324 .enable_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \ 328 #define regulator_desc_lpm_ldo(num) { \ argument 329 .name = "LDO"#num, \ 330 .of_match = of_match_ptr("LDO"#num), \ 332 .id = MAX77686_LDO##num, \ [all …]
|
| D | s2mps11.c | 358 #define regulator_desc_s2mps11_ldo(num, step) { \ argument 359 .name = "LDO"#num, \ 360 .id = S2MPS11_LDO##num, \ 368 .vsel_reg = S2MPS11_REG_L1CTRL + num - 1, \ 370 .enable_reg = S2MPS11_REG_L1CTRL + num - 1, \ 374 #define regulator_desc_s2mps11_buck1_4(num) { \ argument 375 .name = "BUCK"#num, \ 376 .id = S2MPS11_BUCK##num, \ 385 .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \ 387 .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \ [all …]
|
| D | max77802-regulator.c | 311 #define regulator_77802_desc_p_ldo(num, supply, log) { \ argument 312 .name = "LDO"#num, \ 313 .of_match = of_match_ptr("LDO"#num), \ 315 .id = MAX77802_LDO##num, \ 324 .vsel_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \ 326 .enable_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \ 332 #define regulator_77802_desc_n_ldo(num, supply, log) { \ argument 333 .name = "LDO"#num, \ 334 .of_match = of_match_ptr("LDO"#num), \ 336 .id = MAX77802_LDO##num, \ [all …]
|
| /drivers/media/platform/amphion/ |
| D | vpu_dbg.c | 64 int num; in vpu_dbg_instance() local 70 num = scnprintf(str, sizeof(str), "[%s]\n", vpu_core_type_desc(inst->type)); in vpu_dbg_instance() 71 if (seq_write(s, str, num)) in vpu_dbg_instance() 74 num = scnprintf(str, sizeof(str), "tgig = %d,pid = %d\n", inst->tgid, inst->pid); in vpu_dbg_instance() 75 if (seq_write(s, str, num)) in vpu_dbg_instance() 77 num = scnprintf(str, sizeof(str), "state = %s\n", vpu_codec_state_name(inst->state)); in vpu_dbg_instance() 78 if (seq_write(s, str, num)) in vpu_dbg_instance() 80 num = scnprintf(str, sizeof(str), in vpu_dbg_instance() 83 if (seq_write(s, str, num)) in vpu_dbg_instance() 87 num = scnprintf(str, sizeof(str), in vpu_dbg_instance() [all …]
|
| /drivers/clk/ |
| D | clk-si5351.c | 46 unsigned char num; member 122 static inline u8 si5351_msynth_params_address(int num) in si5351_msynth_params_address() argument 124 if (num > 5) in si5351_msynth_params_address() 125 return SI5351_CLK6_PARAMETERS + (num - 6); in si5351_msynth_params_address() 126 return SI5351_CLK0_PARAMETERS + (SI5351_PARAMETERS_LENGTH * num); in si5351_msynth_params_address() 366 int num, enum si5351_pll_src parent) in _si5351_pll_reparent() argument 368 u8 mask = (num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in _si5351_pll_reparent() 373 if (num > 2) in _si5351_pll_reparent() 389 u8 mask = (hwdata->num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in si5351_pll_get_parent() 409 return _si5351_pll_reparent(hwdata->drvdata, hwdata->num, in si5351_pll_set_parent() [all …]
|
| /drivers/iio/chemical/ |
| D | sps30_serial.c | 46 size_t num; member 57 priv->num = 0; in sps30_serial_xfer() 122 static unsigned char sps30_serial_calc_chksum(const unsigned char *buf, size_t num) in sps30_serial_calc_chksum() argument 127 for (i = 0; i < num; i++) in sps30_serial_calc_chksum() 137 int num = 0; in sps30_serial_prep_frame() local 140 buf[num++] = SPS30_SERIAL_SOF_EOF; in sps30_serial_prep_frame() 141 buf[num++] = 0; in sps30_serial_prep_frame() 142 num += sps30_serial_put_byte(buf + num, cmd); in sps30_serial_prep_frame() 143 num += sps30_serial_put_byte(buf + num, arg_size); in sps30_serial_prep_frame() 146 num += sps30_serial_put_byte(buf + num, arg[i]); in sps30_serial_prep_frame() [all …]
|
| /drivers/pcmcia/ |
| D | rsrc_nonstatic.c | 49 u_long base, num; member 108 static int add_interval(struct resource_map *map, u_long base, u_long num) in add_interval() argument 113 if ((p != map) && (p->base+p->num >= base)) { in add_interval() 114 p->num = max(num + base - p->base, p->num); in add_interval() 117 if ((p->next == map) || (p->next->base > base+num-1)) in add_interval() 125 q->base = base; q->num = num; in add_interval() 132 static int sub_interval(struct resource_map *map, u_long base, u_long num) in sub_interval() argument 140 if ((q->base+q->num > base) && (base+num > q->base)) { in sub_interval() 142 if (q->base+q->num <= base+num) { in sub_interval() 150 q->num = q->base + q->num - base - num; in sub_interval() [all …]
|
| /drivers/staging/greybus/ |
| D | audio_manager_sysfs.c | 20 int num = sscanf(buf, in manager_sysfs_add_store() local 26 if (num != 7) in manager_sysfs_add_store() 29 num = gb_audio_manager_add(&desc); in manager_sysfs_add_store() 30 if (num < 0) in manager_sysfs_add_store() 45 int num = kstrtoint(buf, 10, &id); in manager_sysfs_remove_store() local 47 if (num != 1) in manager_sysfs_remove_store() 50 num = gb_audio_manager_remove(id); in manager_sysfs_remove_store() 51 if (num) in manager_sysfs_remove_store() 52 return num; in manager_sysfs_remove_store() 66 int num = kstrtoint(buf, 10, &id); in manager_sysfs_dump_store() local [all …]
|
| /drivers/infiniband/hw/mthca/ |
| D | mthca_profile.c | 71 int num; in mthca_make_profile() member 99 profile[MTHCA_RES_QP].num = request->num_qp; in mthca_make_profile() 100 profile[MTHCA_RES_SRQ].num = request->num_srq; in mthca_make_profile() 101 profile[MTHCA_RES_EQP].num = request->num_qp; in mthca_make_profile() 102 profile[MTHCA_RES_RDB].num = request->num_qp * request->rdb_per_qp; in mthca_make_profile() 103 profile[MTHCA_RES_CQ].num = request->num_cq; in mthca_make_profile() 104 profile[MTHCA_RES_EQ].num = MTHCA_NUM_EQS; in mthca_make_profile() 105 profile[MTHCA_RES_MCG].num = request->num_mcg; in mthca_make_profile() 106 profile[MTHCA_RES_MPT].num = request->num_mpt; in mthca_make_profile() 107 profile[MTHCA_RES_MTT].num = request->num_mtt; in mthca_make_profile() [all …]
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| D | profile.c | 79 u32 num; in mlx4_make_profile() member 123 profile[MLX4_RES_QP].num = request->num_qp; in mlx4_make_profile() 124 profile[MLX4_RES_RDMARC].num = request->num_qp * request->rdmarc_per_qp; in mlx4_make_profile() 125 profile[MLX4_RES_ALTC].num = request->num_qp; in mlx4_make_profile() 126 profile[MLX4_RES_AUXC].num = request->num_qp; in mlx4_make_profile() 127 profile[MLX4_RES_SRQ].num = request->num_srq; in mlx4_make_profile() 128 profile[MLX4_RES_CQ].num = request->num_cq; in mlx4_make_profile() 129 profile[MLX4_RES_EQ].num = mlx4_is_mfunc(dev) ? dev->phys_caps.num_phys_eqs : in mlx4_make_profile() 131 profile[MLX4_RES_DMPT].num = request->num_mpt; in mlx4_make_profile() 132 profile[MLX4_RES_CMPT].num = MLX4_NUM_CMPTS; in mlx4_make_profile() [all …]
|
| /drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| D | hclge_trace.h | 85 int num), 86 TP_ARGS(hw, desc, index, num), 93 __field(int, num) 103 __entry->num = num; 110 __entry->index, __entry->num, 120 int num), 121 TP_ARGS(hw, desc, index, num) 128 int num), 129 TP_ARGS(hw, desc, index, num) 136 int num), [all …]
|
| /drivers/leds/ |
| D | leds-lp8788.c | 32 enum lp8788_isink_number num; member 38 .num = LP8788_ISINK_3, 51 cfg->num = pdata->num; in lp8788_led_init_device() 55 led->isink_num = cfg->num; in lp8788_led_init_device() 59 mask = 1 << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device() 60 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device() 66 addr = lp8788_iout_addr[cfg->num]; in lp8788_led_init_device() 67 mask = lp8788_iout_mask[cfg->num]; in lp8788_led_init_device() 74 enum lp8788_isink_number num, int on) in lp8788_led_enable() argument 78 u8 mask = 1 << num; in lp8788_led_enable() [all …]
|
| /drivers/video/fbdev/ |
| D | chipsfb.c | 41 #define write_ind(num, val, ap, dp) do { \ argument 42 outb((num), (ap)); outb((val), (dp)); \ 44 #define read_ind(num, var, ap, dp) do { \ argument 45 outb((num), (ap)); var = inb((dp)); \ 49 #define write_xr(num, val) write_ind(num, val, 0x3d6, 0x3d7) argument 50 #define read_xr(num, var) read_ind(num, var, 0x3d6, 0x3d7) argument 52 #define write_fr(num, val) write_ind(num, val, 0x3d0, 0x3d1) argument 53 #define read_fr(num, var) read_ind(num, var, 0x3d0, 0x3d1) argument 55 #define write_cr(num, val) write_ind(num, val, 0x3d4, 0x3d5) argument 56 #define read_cr(num, var) read_ind(num, var, 0x3d4, 0x3d5) argument [all …]
|
| /drivers/video/ |
| D | screen_info_generic.c | 74 ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num) in screen_info_resources() argument 82 if (num > 0) in screen_info_resources() 84 if (num > 1) in screen_info_resources() 86 if (num > 2) in screen_info_resources() 90 if (num > 0) in screen_info_resources() 92 if (num > 1) in screen_info_resources() 96 if (num > 0) in screen_info_resources() 98 if (num > 1) in screen_info_resources() 102 if (num > 0) in screen_info_resources() 104 if (num > 1) { in screen_info_resources() [all …]
|
| /drivers/gpu/drm/radeon/ |
| D | atombios_i2c.c | 38 u8 *buf, int num) in radeon_process_i2c_ch() argument 56 if (num > ATOM_MAX_HW_I2C_WRITE) { in radeon_process_i2c_ch() 57 DRM_ERROR("hw i2c: tried to write too many bytes (%d vs 3)\n", num); in radeon_process_i2c_ch() 65 if (num) in radeon_process_i2c_ch() 66 num--; in radeon_process_i2c_ch() 67 if (num) in radeon_process_i2c_ch() 68 memcpy(&out, &buf[1], num); in radeon_process_i2c_ch() 77 args.ucTransBytes = num; in radeon_process_i2c_ch() 91 radeon_atom_copy_swap(buf, base, num, false); in radeon_process_i2c_ch() 101 struct i2c_msg *msgs, int num) in radeon_atom_hw_i2c_xfer() argument [all …]
|
| /drivers/acpi/ |
| D | acpi_pad.c | 252 static void set_power_saving_task_num(unsigned int num) in set_power_saving_task_num() argument 254 if (num > ps_tsk_num) { in set_power_saving_task_num() 255 while (ps_tsk_num < num) { in set_power_saving_task_num() 259 } else if (num < ps_tsk_num) { in set_power_saving_task_num() 260 while (ps_tsk_num > num) in set_power_saving_task_num() 283 unsigned long num; in rrtime_store() local 285 if (kstrtoul(buf, 0, &num)) in rrtime_store() 287 if (num < 1 || num >= 100) in rrtime_store() 290 round_robin_time = num; in rrtime_store() 305 unsigned long num; in idlepct_store() local [all …]
|
| /drivers/soc/fsl/qbman/ |
| D | bman_test_api.c | 115 int num = 8; in bman_test_api() local 117 if (i + num > NUM_BUFS) in bman_test_api() 118 num = NUM_BUFS - i; in bman_test_api() 119 if (bman_release(pool, bufs_in + i, num)) { in bman_test_api() 123 i += num; in bman_test_api() 128 int tmp, num = 8; in bman_test_api() local 130 if (num > i) in bman_test_api() 131 num = i; in bman_test_api() 132 tmp = bman_acquire(pool, bufs_out + i - num, num); in bman_test_api() 133 WARN_ON(tmp != num); in bman_test_api() [all …]
|
| /drivers/iio/accel/ |
| D | st_accel_core.c | 154 .num = ST_ACCEL_FS_AVL_2G, 159 .num = ST_ACCEL_FS_AVL_4G, 164 .num = ST_ACCEL_FS_AVL_8G, 169 .num = ST_ACCEL_FS_AVL_16G, 233 .num = ST_ACCEL_FS_AVL_2G, 238 .num = ST_ACCEL_FS_AVL_4G, 243 .num = ST_ACCEL_FS_AVL_8G, 317 .num = ST_ACCEL_FS_AVL_2G, 322 .num = ST_ACCEL_FS_AVL_4G, 327 .num = ST_ACCEL_FS_AVL_6G, [all …]
|
| /drivers/i2c/busses/ |
| D | i2c-cros-ec-tunnel.c | 46 static int ec_i2c_count_message(const struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_message() argument 52 size += num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_count_message() 53 for (i = 0; i < num; i++) in ec_i2c_count_message() 74 int num, u16 bus_num) in ec_i2c_construct_message() argument 81 num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_construct_message() 85 params->num_msgs = num; in ec_i2c_construct_message() 86 for (i = 0; i < num; i++) { in ec_i2c_construct_message() 115 static int ec_i2c_count_response(struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_response() argument 121 for (i = 0; i < num; i++) in ec_i2c_count_response() 141 int *num) in ec_i2c_parse_response() argument [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| D | atombios_i2c.c | 40 u8 *buf, u8 num) in amdgpu_atombios_i2c_process_i2c_ch() argument 57 if (num > ATOM_MAX_HW_I2C_WRITE) { in amdgpu_atombios_i2c_process_i2c_ch() 58 DRM_ERROR("hw i2c: tried to write too many bytes (%d vs 3)\n", num); in amdgpu_atombios_i2c_process_i2c_ch() 66 if (num) in amdgpu_atombios_i2c_process_i2c_ch() 67 num--; in amdgpu_atombios_i2c_process_i2c_ch() 68 if (num) { in amdgpu_atombios_i2c_process_i2c_ch() 70 memcpy(&out, &buf[1], num); in amdgpu_atombios_i2c_process_i2c_ch() 85 args.ucTransBytes = num; in amdgpu_atombios_i2c_process_i2c_ch() 99 amdgpu_atombios_copy_swap(buf, base, num, false); in amdgpu_atombios_i2c_process_i2c_ch() 108 struct i2c_msg *msgs, int num) in amdgpu_atombios_i2c_xfer() argument [all …]
|
| /drivers/accel/qaic/ |
| D | mhi_controller.c | 26 .num = 0, 42 .num = 1, 58 .num = 2, 74 .num = 3, 90 .num = 4, 106 .num = 5, 122 .num = 6, 138 .num = 7, 154 .num = 8, 170 .num = 9, [all …]
|
| /drivers/mfd/ |
| D | omap-usb-tll.c | 48 #define OMAP_TLL_CHANNEL_CONF(num) (0x040 + 0x004 * num) argument 71 #define OMAP_TLL_ULPI_FUNCTION_CTRL(num) (0x804 + 0x100 * num) argument 72 #define OMAP_TLL_ULPI_INTERFACE_CTRL(num) (0x807 + 0x100 * num) argument 73 #define OMAP_TLL_ULPI_OTG_CTRL(num) (0x80A + 0x100 * num) argument 74 #define OMAP_TLL_ULPI_INT_EN_RISE(num) (0x80D + 0x100 * num) argument 75 #define OMAP_TLL_ULPI_INT_EN_FALL(num) (0x810 + 0x100 * num) argument 76 #define OMAP_TLL_ULPI_INT_STATUS(num) (0x813 + 0x100 * num) argument 77 #define OMAP_TLL_ULPI_INT_LATCH(num) (0x814 + 0x100 * num) argument 78 #define OMAP_TLL_ULPI_DEBUG(num) (0x815 + 0x100 * num) argument 79 #define OMAP_TLL_ULPI_SCRATCH_REGISTER(num) (0x816 + 0x100 * num) argument
|
| /drivers/iio/adc/ |
| D | ad7606.h | 11 #define AD760X_CHANNEL(num, mask_sep, mask_type, mask_all) { \ argument 14 .channel = num, \ 15 .address = num, \ 19 .scan_index = num, \ 28 #define AD7605_CHANNEL(num) \ argument 29 AD760X_CHANNEL(num, BIT(IIO_CHAN_INFO_RAW), \ 32 #define AD7606_CHANNEL(num) \ argument 33 AD760X_CHANNEL(num, BIT(IIO_CHAN_INFO_RAW), \ 37 #define AD7616_CHANNEL(num) \ argument 38 AD760X_CHANNEL(num, BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),\ [all …]
|
| /drivers/media/dvb-frontends/ |
| D | dibx000_common.c | 209 …tic int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) in dibx000_i2c_master_xfer_gpio12() argument 216 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio12() 228 return num; in dibx000_i2c_master_xfer_gpio12() 231 …tic int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) in dibx000_i2c_master_xfer_gpio34() argument 238 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio34() 250 return num; in dibx000_i2c_master_xfer_gpio34() 286 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer() argument 291 if (num > 32) { in dibx000_i2c_gated_gpio67_xfer() 293 __func__, num); in dibx000_i2c_gated_gpio67_xfer() 304 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer() [all …]
|