/linux-4.19.296/drivers/regulator/ |
D | max77686-regulator.c | 328 #define regulator_desc_ldo(num) { \ argument 329 .name = "LDO"#num, \ 330 .of_match = of_match_ptr("LDO"#num), \ 333 .id = MAX77686_LDO##num, \ 341 .vsel_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \ 343 .enable_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \ 347 #define regulator_desc_lpm_ldo(num) { \ argument 348 .name = "LDO"#num, \ 349 .of_match = of_match_ptr("LDO"#num), \ 351 .id = MAX77686_LDO##num, \ [all …]
|
D | s2mps11.c | 251 #define regulator_desc_s2mps11_ldo(num, step) { \ argument 252 .name = "LDO"#num, \ 253 .id = S2MPS11_LDO##num, \ 261 .vsel_reg = S2MPS11_REG_L1CTRL + num - 1, \ 263 .enable_reg = S2MPS11_REG_L1CTRL + num - 1, \ 267 #define regulator_desc_s2mps11_buck1_4(num) { \ argument 268 .name = "BUCK"#num, \ 269 .id = S2MPS11_BUCK##num, \ 277 .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \ 279 .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \ [all …]
|
D | max77802-regulator.c | 367 #define regulator_77802_desc_p_ldo(num, supply, log) { \ argument 368 .name = "LDO"#num, \ 369 .of_match = of_match_ptr("LDO"#num), \ 371 .id = MAX77802_LDO##num, \ 380 .vsel_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \ 382 .enable_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \ 388 #define regulator_77802_desc_n_ldo(num, supply, log) { \ argument 389 .name = "LDO"#num, \ 390 .of_match = of_match_ptr("LDO"#num), \ 392 .id = MAX77802_LDO##num, \ [all …]
|
/linux-4.19.296/include/uapi/linux/ |
D | virtio_ring.h | 98 unsigned int num; member 140 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) 141 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num]) 143 static inline void vring_init(struct vring *vr, unsigned int num, void *p, in vring_init() argument 146 vr->num = num; in vring_init() 148 vr->avail = p + num*sizeof(struct vring_desc); in vring_init() 149 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) in vring_init() 153 static inline unsigned vring_size(unsigned int num, unsigned long align) in vring_size() argument 155 return ((sizeof(struct vring_desc) * num + sizeof(__virtio16) * (3 + num) in vring_size() 157 + sizeof(__virtio16) * 3 + sizeof(struct vring_used_elem) * num; in vring_size()
|
/linux-4.19.296/fs/btrfs/ |
D | math.h | 12 static inline u64 div_factor(u64 num, int factor) in div_factor() argument 15 return num; in div_factor() 16 num *= factor; in div_factor() 17 return div_u64(num, 10); in div_factor() 20 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument 23 return num; in div_factor_fine() 24 num *= factor; in div_factor_fine() 25 return div_u64(num, 100); in div_factor_fine()
|
/linux-4.19.296/include/asm-generic/bitops/ |
D | __ffs.h | 15 int num = 0; in __ffs() local 19 num += 32; in __ffs() 24 num += 16; in __ffs() 28 num += 8; in __ffs() 32 num += 4; in __ffs() 36 num += 2; in __ffs() 40 num += 1; in __ffs() 41 return num; in __ffs()
|
D | __fls.h | 15 int num = BITS_PER_LONG - 1; in __fls() local 19 num -= 32; in __fls() 24 num -= 16; in __fls() 28 num -= 8; in __fls() 32 num -= 4; in __fls() 36 num -= 2; in __fls() 40 num -= 1; in __fls() 41 return num; in __fls()
|
/linux-4.19.296/drivers/clk/ |
D | clk-si5351.c | 50 unsigned char num; member 126 static inline u8 si5351_msynth_params_address(int num) in si5351_msynth_params_address() argument 128 if (num > 5) in si5351_msynth_params_address() 129 return SI5351_CLK6_PARAMETERS + (num - 6); in si5351_msynth_params_address() 130 return SI5351_CLK0_PARAMETERS + (SI5351_PARAMETERS_LENGTH * num); in si5351_msynth_params_address() 370 int num, enum si5351_pll_src parent) in _si5351_pll_reparent() argument 372 u8 mask = (num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in _si5351_pll_reparent() 377 if (num > 2) in _si5351_pll_reparent() 393 u8 mask = (hwdata->num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in si5351_pll_get_parent() 413 return _si5351_pll_reparent(hwdata->drvdata, hwdata->num, in si5351_pll_set_parent() [all …]
|
/linux-4.19.296/include/uapi/linux/hsi/ |
D | hsi_char.h | 30 #define HSC_IOW(num, dtype) _IOW(HSI_CHAR_MAGIC, num, dtype) argument 31 #define HSC_IOR(num, dtype) _IOR(HSI_CHAR_MAGIC, num, dtype) argument 32 #define HSC_IOWR(num, dtype) _IOWR(HSI_CHAR_MAGIC, num, dtype) argument 33 #define HSC_IO(num) _IO(HSI_CHAR_MAGIC, num) argument
|
D | cs-protocol.h | 110 #define CS_IOW(num, dtype) _IOW(CS_IO_MAGIC, num, dtype) argument 111 #define CS_IOR(num, dtype) _IOR(CS_IO_MAGIC, num, dtype) argument 112 #define CS_IOWR(num, dtype) _IOWR(CS_IO_MAGIC, num, dtype) argument 113 #define CS_IO(num) _IO(CS_IO_MAGIC, num) argument
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-cros-ec-tunnel.c | 51 static int ec_i2c_count_message(const struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_message() argument 57 size += num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_count_message() 58 for (i = 0; i < num; i++) in ec_i2c_count_message() 79 int num, u16 bus_num) in ec_i2c_construct_message() argument 86 num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_construct_message() 90 params->num_msgs = num; in ec_i2c_construct_message() 91 for (i = 0; i < num; i++) { in ec_i2c_construct_message() 120 static int ec_i2c_count_response(struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_response() argument 126 for (i = 0; i < num; i++) in ec_i2c_count_response() 146 int *num) in ec_i2c_parse_response() argument [all …]
|
D | i2c-tegra-bpmp.c | 114 unsigned int num) in tegra_bpmp_serialize_i2c_msg() argument 120 for (i = 0; i < num; i++) { in tegra_bpmp_serialize_i2c_msg() 163 unsigned int num) in tegra_bpmp_i2c_deserialize() argument 169 for (i = 0; i < num; i++) in tegra_bpmp_i2c_deserialize() 176 for (i = 0; i < num; i++) { in tegra_bpmp_i2c_deserialize() 186 static int tegra_bpmp_i2c_msg_len_check(struct i2c_msg *msgs, unsigned int num) in tegra_bpmp_i2c_msg_len_check() argument 191 for (i = 0; i < num; i++) in tegra_bpmp_i2c_msg_len_check() 198 for (i = 0; i < num; i++) in tegra_bpmp_i2c_msg_len_check() 234 struct i2c_msg *msgs, int num) in tegra_bpmp_i2c_xfer() argument 241 err = tegra_bpmp_i2c_msg_len_check(msgs, num); in tegra_bpmp_i2c_xfer() [all …]
|
/linux-4.19.296/include/trace/events/ |
D | i2c.h | 31 int num), 32 TP_ARGS(adap, msg, num), 42 __entry->msg_nr = num; 64 int num), 65 TP_ARGS(adap, msg, num), 75 __entry->msg_nr = num; 95 int num), 96 TP_ARGS(adap, msg, num), 106 __entry->msg_nr = num; 127 TP_PROTO(const struct i2c_adapter *adap, int num, int ret), [all …]
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | dibx000_common.c | 208 …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 215 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio12() 227 return num; in dibx000_i2c_master_xfer_gpio12() 230 …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 237 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio34() 249 return num; in dibx000_i2c_master_xfer_gpio34() 285 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer() argument 290 if (num > 32) { in dibx000_i2c_gated_gpio67_xfer() 292 __func__, num); in dibx000_i2c_gated_gpio67_xfer() 303 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer() [all …]
|
/linux-4.19.296/include/net/ |
D | protocol.h | 100 int inet_add_protocol(const struct net_protocol *prot, unsigned char num); 101 int inet_del_protocol(const struct net_protocol *prot, unsigned char num); 102 int inet_add_offload(const struct net_offload *prot, unsigned char num); 103 int inet_del_offload(const struct net_offload *prot, unsigned char num); 108 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num); 109 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num); 113 int inet6_add_offload(const struct net_offload *prot, unsigned char num); 114 int inet6_del_offload(const struct net_offload *prot, unsigned char num);
|
/linux-4.19.296/drivers/isdn/mISDN/ |
D | dsp_audio.c | 308 int num[] = { 110, 125, 150, 175, 200, 300, 400, 500 }; in dsp_audio_generate_volume_changes() local 314 (dsp_audio_law_to_s32[i] * denum[7] / num[7]) & 0xffff]; in dsp_audio_generate_volume_changes() 316 (dsp_audio_law_to_s32[i] * denum[6] / num[6]) & 0xffff]; in dsp_audio_generate_volume_changes() 318 (dsp_audio_law_to_s32[i] * denum[5] / num[5]) & 0xffff]; in dsp_audio_generate_volume_changes() 320 (dsp_audio_law_to_s32[i] * denum[4] / num[4]) & 0xffff]; in dsp_audio_generate_volume_changes() 322 (dsp_audio_law_to_s32[i] * denum[3] / num[3]) & 0xffff]; in dsp_audio_generate_volume_changes() 324 (dsp_audio_law_to_s32[i] * denum[2] / num[2]) & 0xffff]; in dsp_audio_generate_volume_changes() 326 (dsp_audio_law_to_s32[i] * denum[1] / num[1]) & 0xffff]; in dsp_audio_generate_volume_changes() 328 (dsp_audio_law_to_s32[i] * denum[0] / num[0]) & 0xffff]; in dsp_audio_generate_volume_changes() 329 sample = dsp_audio_law_to_s32[i] * num[0] / denum[0]; in dsp_audio_generate_volume_changes() [all …]
|
/linux-4.19.296/lib/ |
D | flex_proportions.c | 144 s64 num, den; in fprop_fraction_single() local 149 num = pl->events; in fprop_fraction_single() 157 if (den <= num) { in fprop_fraction_single() 158 if (num) in fprop_fraction_single() 159 den = num; in fprop_fraction_single() 164 *numerator = num; in fprop_fraction_single() 232 s64 num, den; in fprop_fraction_percpu() local 237 num = percpu_counter_read_positive(&pl->events); in fprop_fraction_percpu() 245 if (den <= num) { in fprop_fraction_percpu() 246 if (num) in fprop_fraction_percpu() [all …]
|
D | bsearch.c | 34 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument 40 while (num > 0) { in bsearch() 41 pivot = base + (num >> 1) * size; in bsearch() 49 num--; in bsearch() 51 num >>= 1; in bsearch()
|
/linux-4.19.296/drivers/iio/magnetometer/ |
D | st_magn_core.c | 140 .num = ST_MAGN_FS_AVL_1300MG, 146 .num = ST_MAGN_FS_AVL_1900MG, 152 .num = ST_MAGN_FS_AVL_2500MG, 158 .num = ST_MAGN_FS_AVL_4000MG, 164 .num = ST_MAGN_FS_AVL_4700MG, 170 .num = ST_MAGN_FS_AVL_5600MG, 176 .num = ST_MAGN_FS_AVL_8100MG, 219 .num = ST_MAGN_FS_AVL_1300MG, 225 .num = ST_MAGN_FS_AVL_1900MG, 231 .num = ST_MAGN_FS_AVL_2500MG, [all …]
|
/linux-4.19.296/drivers/iio/accel/ |
D | st_accel_core.c | 136 .num = ST_ACCEL_FS_AVL_2G, 141 .num = ST_ACCEL_FS_AVL_4G, 146 .num = ST_ACCEL_FS_AVL_8G, 151 .num = ST_ACCEL_FS_AVL_16G, 215 .num = ST_ACCEL_FS_AVL_2G, 220 .num = ST_ACCEL_FS_AVL_4G, 225 .num = ST_ACCEL_FS_AVL_8G, 299 .num = ST_ACCEL_FS_AVL_2G, 304 .num = ST_ACCEL_FS_AVL_4G, 309 .num = ST_ACCEL_FS_AVL_6G, [all …]
|
/linux-4.19.296/drivers/clk/pistachio/ |
D | clk.c | 62 unsigned int num) in pistachio_clk_register_gate() argument 67 for (i = 0; i < num; i++) { in pistachio_clk_register_gate() 78 unsigned int num) in pistachio_clk_register_mux() argument 83 for (i = 0; i < num; i++) { in pistachio_clk_register_mux() 96 unsigned int num) in pistachio_clk_register_div() argument 101 for (i = 0; i < num; i++) { in pistachio_clk_register_div() 112 unsigned int num) in pistachio_clk_register_fixed_factor() argument 117 for (i = 0; i < num; i++) { in pistachio_clk_register_fixed_factor() 125 unsigned int *clk_ids, unsigned int num) in pistachio_clk_force_enable() argument 130 for (i = 0; i < num; i++) { in pistachio_clk_force_enable()
|
/linux-4.19.296/drivers/s390/cio/ |
D | airq.c | 199 unsigned long airq_iv_alloc(struct airq_iv *iv, unsigned long num) in airq_iv_alloc() argument 203 if (!iv->avail || num == 0) in airq_iv_alloc() 207 while (bit + num <= iv->bits) { in airq_iv_alloc() 208 for (i = 1; i < num; i++) in airq_iv_alloc() 211 if (i >= num) { in airq_iv_alloc() 213 for (i = 0; i < num; i++) in airq_iv_alloc() 215 if (bit + num >= iv->end) in airq_iv_alloc() 216 iv->end = bit + num + 1; in airq_iv_alloc() 221 if (bit + num > iv->bits) in airq_iv_alloc() 234 void airq_iv_free(struct airq_iv *iv, unsigned long bit, unsigned long num) in airq_iv_free() argument [all …]
|
/linux-4.19.296/drivers/xen/ |
D | privcmd.c | 274 mmapcmd.num, sizeof(struct privcmd_mmap_entry), in privcmd_ioctl_mmap() 299 rc = traverse_pages(mmapcmd.num, sizeof(struct privcmd_mmap_entry), in privcmd_ioctl_mmap() 462 if (!access_ok(VERIFY_WRITE, m.arr, m.num * sizeof(*m.arr))) in privcmd_ioctl_mmap_batch() 469 if (!access_ok(VERIFY_WRITE, m.err, m.num * (sizeof(*m.err)))) in privcmd_ioctl_mmap_batch() 480 nr_pages = DIV_ROUND_UP(m.num, XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_batch() 481 if ((m.num <= 0) || (nr_pages > (LONG_MAX >> PAGE_SHIFT))) in privcmd_ioctl_mmap_batch() 484 ret = gather_array(&pagelist, m.num, sizeof(xen_pfn_t), m.arr); in privcmd_ioctl_mmap_batch() 495 if (clear_user(m.err, sizeof(int) * m.num)) { in privcmd_ioctl_mmap_batch() 554 BUG_ON(traverse_pages_block(m.num, sizeof(xen_pfn_t), in privcmd_ioctl_mmap_batch() 563 ret = traverse_pages_block(m.num, sizeof(xen_pfn_t), in privcmd_ioctl_mmap_batch() [all …]
|
/linux-4.19.296/drivers/clk/mmp/ |
D | clk-frac.c | 37 (factor->ftbl[i].num * factor->masks->factor)) * 10000; in clk_factor_round_rate() 56 unsigned int val, num, den; in clk_factor_recalc_rate() local 61 num = (val >> masks->num_shift) & masks->num_mask; in clk_factor_recalc_rate() 70 (num * factor->masks->factor)) * 10000; in clk_factor_recalc_rate() 87 (factor->ftbl[i].num * factor->masks->factor)) * 10000; in clk_factor_set_rate() 100 val |= (factor->ftbl[i].num & masks->num_mask) << masks->num_shift; in clk_factor_set_rate() 117 u32 val, num, den; in clk_factor_init() local 127 num = (val >> masks->num_shift) & masks->num_mask; in clk_factor_init() 133 if (den == factor->ftbl[i].den && num == factor->ftbl[i].num) in clk_factor_init() 138 val |= (factor->ftbl[0].num & masks->num_mask) << in clk_factor_init()
|
/linux-4.19.296/drivers/media/common/saa7146/ |
D | saa7146_i2c.c | 28 static int saa7146_i2c_msg_prepare(const struct i2c_msg *m, int num, __le32 *op) in saa7146_i2c_msg_prepare() argument 35 for(i = 0; i < num; i++) { in saa7146_i2c_msg_prepare() 55 for(i = 0; i < num; i++) { in saa7146_i2c_msg_prepare() 93 static int saa7146_i2c_msg_cleanup(const struct i2c_msg *m, int num, __le32 *op) in saa7146_i2c_msg_cleanup() argument 99 for(i = 0; i < num; i++) { in saa7146_i2c_msg_cleanup() 294 static int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int r… in saa7146_i2c_transfer() argument 304 for(i=0;i<num;i++) { in saa7146_i2c_transfer() 305 DEB_I2C("msg:%d/%d\n", i+1, num); in saa7146_i2c_transfer() 309 count = saa7146_i2c_msg_prepare(msgs, num, buffer); in saa7146_i2c_transfer() 347 err = num; in saa7146_i2c_transfer() [all …]
|