Home
last modified time | relevance | path

Searched refs:_max (Results 1 – 25 of 33) sorted by relevance

12

/drivers/clk/starfive/
A Dclk-starfive-jh71x0.h40 #define JH71X0__DIV(_idx, _name, _max, _parent) \ argument
44 .max = _max, \
48 #define JH71X0_GDIV(_idx, _name, _flags, _max, _parent) \ argument
52 .max = JH71X0_CLK_ENABLE | (_max), \
81 #define JH71X0_MDIV(_idx, _name, _max, _nparents, ...) \ argument
85 .max = (((_nparents) - 1) << JH71X0_CLK_MUX_SHIFT) | (_max), \
89 #define JH71X0__GMD(_idx, _name, _flags, _max, _nparents, ...) \ argument
94 (((_nparents) - 1) << JH71X0_CLK_MUX_SHIFT) | (_max), \
/drivers/net/fjes/
A Dfjes_hw.h56 #define EP_RING_INDEX(_num, _max) (((_num) + (_max)) % (_max)) argument
57 #define EP_RING_INDEX_INC(_num, _max) \ argument
58 ((_num) = EP_RING_INDEX((_num) + 1, (_max)))
59 #define EP_RING_FULL(_head, _tail, _max) \ argument
60 (0 == EP_RING_INDEX(((_tail) - (_head)), (_max)))
61 #define EP_RING_EMPTY(_head, _tail, _max) \ argument
62 (1 == EP_RING_INDEX(((_tail) - (_head)), (_max)))
/drivers/clk/sunxi-ng/
A Dccu_div.h54 #define _SUNXI_CCU_DIV_OFFSET_MAX_FLAGS(_shift, _width, _off, _max, _flags) \ argument
59 .max = _max, \
63 #define _SUNXI_CCU_DIV_MAX_FLAGS(_shift, _width, _max, _flags) \ argument
64 _SUNXI_CCU_DIV_OFFSET_MAX_FLAGS(_shift, _width, 1, _max, _flags)
69 #define _SUNXI_CCU_DIV_MAX(_shift, _width, _max) \ argument
70 _SUNXI_CCU_DIV_MAX_FLAGS(_shift, _width, _max, 0)
A Dccu_mult.h17 #define _SUNXI_CCU_MULT_OFFSET_MIN_MAX(_shift, _width, _offset, _min, _max) \ argument
20 .max = _max, \
/drivers/net/ethernet/sfc/falcon/
A Dfalcon_boards.c52 #define LM87_IN_LIMITS(nr, _min, _max) \ argument
53 0x2B + (nr) * 2, _max, 0x2C + (nr) * 2, _min
54 #define LM87_AIN_LIMITS(nr, _min, _max) \ argument
55 0x3B + (nr), _max, 0x1A + (nr), _min
56 #define LM87_TEMP_INT_LIMITS(_min, _max) \ argument
57 0x39, _max, 0x3A, _min
58 #define LM87_TEMP_EXT1_LIMITS(_min, _max) \ argument
59 0x37, _max, 0x38, _min
A Dnet_driver.h493 ((val) < member ## _max) ? member ## _names[val] : "(invalid)"
/drivers/clk/sophgo/
A Dclk-cv18xx-pll.h18 #define _CV1800_PLL_LIMIT(_min, _max) \ argument
21 .max = _max, \
/drivers/pinctrl/mediatek/
A Dpinctrl-mtk-common.h86 #define MTK_DRV_GRP(_min, _max, _low, _high, _step) \ argument
89 .max_drv = _max, \
/drivers/regulator/
A Drk808-regulator.c85 .n_voltages = (((_max) - (_min)) / (_step) + 1), \
100 #define RK8XX_DESC_COM(_id, _match, _supply, _min, _max, _step, _vreg, \ argument
109 .n_voltages = (((_max) - (_min)) / (_step) + 1), \
123 #define RK805_DESC(_id, _match, _supply, _min, _max, _step, _vreg, \ argument
125 RK8XX_DESC_COM(_id, _match, _supply, _min, _max, _step, _vreg, \
156 #define RK8XX_DESC(_id, _match, _supply, _min, _max, _step, _vreg, \ argument
158 RK8XX_DESC_COM(_id, _match, _supply, _min, _max, _step, _vreg, \
161 #define RK816_DESC(_id, _match, _supply, _min, _max, _step, _vreg, \ argument
163 RK8XX_DESC_COM(_id, _match, _supply, _min, _max, _step, _vreg, \
166 #define RK817_DESC(_id, _match, _supply, _min, _max, _step, _vreg, \ argument
[all …]
A Daxp20x-regulator.c352 #define AXP_DESC_IO(_family, _id, _match, _supply, _min, _max, _step, _vreg, \ argument
361 .n_voltages = (((_max) - (_min)) / (_step) + 1), \
374 #define AXP_DESC(_family, _id, _match, _supply, _min, _max, _step, _vreg, \ argument
383 .n_voltages = (((_max) - (_min)) / (_step) + 1), \
A Dmax8998.c479 #define MAX8998_LINEAR_REG(_name, _ops, _min, _step, _max) \ argument
486 .n_voltages = ((_max) - (_min)) / (_step) + 1, \
/drivers/hwmon/
A Dmax197.c222 static SENSOR_DEVICE_ATTR_2(in##chan##_max, S_IRUGO | S_IWUSR, \
229 &sensor_dev_attr_in##chan##_max.dev_attr.attr, \
A Dbt1-pvt.h170 .attr_max_alarm = _type## _max, \
A Dw83781d.c286 static SENSOR_DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \
396 static SENSOR_DEVICE_ATTR(temp##offset##_max, S_IRUGO | S_IWUSR, \
922 &sensor_dev_attr_in##X##_max.dev_attr.attr, \
935 &sensor_dev_attr_temp##X##_max.dev_attr.attr, \
A Dasb100.c274 static SENSOR_DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \
461 static SENSOR_DEVICE_ATTR(temp##num##_max, S_IRUGO | S_IWUSR, \
A Dvt1211.c910 SENSOR_ATTR_2(in##ix##_max, S_IRUGO | S_IWUSR, \
954 SENSOR_ATTR_2(temp##ix##_max, S_IRUGO | S_IWUSR, \
A Dw83795.c1612 SENSOR_ATTR_2(in##index##_max, S_IRUGO | S_IWUSR, show_in, \
1667 SENSOR_ATTR_2(temp##index##_max, S_IRUGO | S_IWUSR, show_dts_ext, \
1689 SENSOR_ATTR_2(temp##index##_max, S_IRUGO | S_IWUSR, show_temp, \
/drivers/clk/baikal-t1/
A Dccu-pll.c329 #define CCU_PLL_DBGFS_FLD_ATTR(_name, _reg, _lsb, _mask, _min, _max) \ argument
336 .max = _max \
/drivers/power/supply/
A Dmp2629_charger.c49 #define MP2629_PROPS(_idx, _min, _max, _step) \ argument
52 .max = _max, \
/drivers/media/v4l2-core/
A Dv4l2-ctrls-core.c2195 u32 id, u8 _max, u64 mask, u8 _def) in v4l2_ctrl_new_std_menu() argument
2203 s64 max = _max; in v4l2_ctrl_new_std_menu()
2228 const struct v4l2_ctrl_ops *ops, u32 id, u8 _max, in v4l2_ctrl_new_std_menu_items() argument
2236 s64 max = _max; in v4l2_ctrl_new_std_menu_items()
2286 u32 id, u8 _max, u8 _def, const s64 *qmenu_int) in v4l2_ctrl_new_int_menu() argument
2292 s64 max = _max; in v4l2_ctrl_new_int_menu()
A Dv4l2-common.c65 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 _min, s32 _max, s32 _step, s32 _def) in v4l2_ctrl_query_fill() argument
69 s64 max = _max; in v4l2_ctrl_query_fill()
/drivers/iio/adc/
A Dad7944.c125 #define AD7944_DEFINE_CHIP_INFO(_name, _ts, _max, _bits, _diff) \ argument
129 .max_sample_rate_hz = _max, \
/drivers/input/misc/
A Duinput.c851 #define uinput_set_bit(_arg, _bit, _max) \ argument
856 else if ((_arg) > (_max)) \
/drivers/usb/dwc2/
A Dparams.c802 #define CHECK_RANGE(_param, _min, _max, _def) do { \ argument
804 (hsotg->params._param) > (_max)) { \
/drivers/iio/addac/
A Dad74115.c245 #define AD74115_FW_PROP(_name, _max, _reg, _mask) \ argument
248 .max = (_max), \

Completed in 67 milliseconds

12