Home
last modified time | relevance | path

Searched refs:trim (Results 1 - 25 of 57) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/thermal/
H A Dimx8mm_thermal.c203 u32 trim[4] = { 0 }; in imx8mm_tmu_probe_set_calib_v2() local
217 memcpy(trim, buf, min(len, sizeof(trim))); in imx8mm_tmu_probe_set_calib_v2()
227 if (!trim[0] && !trim[1] && !trim[2] && !trim[3]) { in imx8mm_tmu_probe_set_calib_v2()
237 FIELD_GET(TRIM2_BUF_VERF_SEL_MASK, trim[0])) | in imx8mm_tmu_probe_set_calib_v2()
239 FIELD_GET(TRIM2_BUF_SLOP_SEL_MASK, trim[0])), in imx8mm_tmu_probe_set_calib_v2()
243 FIELD_GET(TRIM2_BJT_CUR_MASK, trim[ in imx8mm_tmu_probe_set_calib_v2()
[all...]
/kernel/linux/linux-6.6/scripts/
H A Drustdoc_test_gen.rs219 let rust_tests = rust_tests.trim(); in main()
220 let c_test_declarations = c_test_declarations.trim(); in main()
221 let c_test_cases = c_test_cases.trim(); in main()
H A Dparse-maintainers.pl101 sub trim { subroutine
153 $line = $1 . ":\t" . trim($2) . "\n";
158 $case = trim($lastline);
170 trim($lastline) eq "" or die ("Odd non-pattern line '$lastline' for '$case'");
H A Dcheckpatch.pl260 $verbose_messages{$type} = trim($desc);
271 $verbose_messages{$type} = trim($desc);
280 $verbose_messages{$type} = trim($desc);
899 return trim($string) if ($string =~ /^\s*0[0-7]{3,3}\s*$/);
1410 $name = trim($name);
1431 $name_comment .= trim($1);
1434 $name = trim("$quoted $name");
1436 $address = trim($address);
1438 $comment = trim($comment);
1454 $address = trim(
2523 sub trim { global() subroutine
[all...]
/kernel/linux/linux-5.10/kernel/bpf/
H A Dlpm_trie.c438 struct lpm_trie_node __rcu **trim, **trim2; in trie_delete_elem() local
456 trim = &trie->root; in trie_delete_elem()
457 trim2 = trim; in trie_delete_elem()
460 *trim, lockdep_is_held(&trie->lock)))) { in trie_delete_elem()
468 trim2 = trim; in trie_delete_elem()
470 trim = &node->child[next_bit]; in trie_delete_elem()
516 rcu_assign_pointer(*trim, rcu_access_pointer(node->child[0])); in trie_delete_elem()
518 rcu_assign_pointer(*trim, rcu_access_pointer(node->child[1])); in trie_delete_elem()
520 RCU_INIT_POINTER(*trim, NULL); in trie_delete_elem()
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-x1205.c293 static int x1205_get_dtrim(struct i2c_client *client, int *trim) in x1205_get_dtrim() argument
320 *trim = 0; in x1205_get_dtrim()
323 *trim += 20; in x1205_get_dtrim()
326 *trim += 10; in x1205_get_dtrim()
329 *trim = -*trim; in x1205_get_dtrim()
334 static int x1205_get_atrim(struct i2c_client *client, int *trim) in x1205_get_atrim() argument
369 *trim = (atr * 250) + 11000; in x1205_get_atrim()
371 dev_dbg(&client->dev, "%s: real=%d\n", __func__, *trim); in x1205_get_atrim()
H A Drtc-rs5c372.c322 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
330 if (trim) { in rs5c372_get_trim()
331 dev_dbg(&client->dev, "%s: raw trim=%x\n", __func__, tmp); in rs5c372_get_trim()
344 *trim = tmp; in rs5c372_get_trim()
472 int err, osc, trim; in rs5c372_rtc_proc() local
474 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
478 seq_printf(seq, "trim\t\t: %d\n", trim); in rs5c372_rtc_proc()
502 int err, trim; in rs5c372_sysfs_show_trim() local
504 err = rs5c372_get_trim(to_i2c_client(dev), NULL, &trim); in rs5c372_sysfs_show_trim()
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-x1205.c293 static int x1205_get_dtrim(struct i2c_client *client, int *trim) in x1205_get_dtrim() argument
320 *trim = 0; in x1205_get_dtrim()
323 *trim += 20; in x1205_get_dtrim()
326 *trim += 10; in x1205_get_dtrim()
329 *trim = -*trim; in x1205_get_dtrim()
334 static int x1205_get_atrim(struct i2c_client *client, int *trim) in x1205_get_atrim() argument
369 *trim = (atr * 250) + 11000; in x1205_get_atrim()
371 dev_dbg(&client->dev, "%s: real=%d\n", __func__, *trim); in x1205_get_atrim()
H A Drtc-rs5c372.c324 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
336 if (trim) { in rs5c372_get_trim()
337 dev_dbg(&client->dev, "%s: raw trim=%x\n", __func__, tmp); in rs5c372_get_trim()
350 *trim = tmp; in rs5c372_get_trim()
478 int err, osc, trim; in rs5c372_rtc_proc() local
480 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
484 seq_printf(seq, "trim\t\t: %d\n", trim); in rs5c372_rtc_proc()
681 int err, trim; in rs5c372_sysfs_show_trim() local
683 err = rs5c372_get_trim(to_i2c_client(dev), NULL, &trim); in rs5c372_sysfs_show_trim()
[all...]
/kernel/linux/linux-6.6/kernel/bpf/
H A Dlpm_trie.c441 struct lpm_trie_node __rcu **trim, **trim2; in trie_delete_elem() local
459 trim = &trie->root; in trie_delete_elem()
460 trim2 = trim; in trie_delete_elem()
463 *trim, lockdep_is_held(&trie->lock)))) { in trie_delete_elem()
471 trim2 = trim; in trie_delete_elem()
473 trim = &node->child[next_bit]; in trie_delete_elem()
519 rcu_assign_pointer(*trim, rcu_access_pointer(node->child[0])); in trie_delete_elem()
521 rcu_assign_pointer(*trim, rcu_access_pointer(node->child[1])); in trie_delete_elem()
523 RCU_INIT_POINTER(*trim, NULL); in trie_delete_elem()
/kernel/linux/linux-5.10/scripts/
H A Dparse-maintainers.pl101 sub trim { subroutine
153 $line = $1 . ":\t" . trim($2) . "\n";
158 $case = trim($lastline);
170 trim($lastline) eq "" or die ("Odd non-pattern line '$lastline' for '$case'");
H A Dcheckpatch.pl670 return trim($string) if ($string =~ /^\s*0[0-7]{3,3}\s*$/);
1171 $name = trim($name);
1186 $comment = trim($comment);
1187 $name = trim($name);
1190 $name_comment = trim($1);
1192 $address = trim($address);
1208 $name_comment = trim($name_comment);
1209 $comment = trim($comment);
1210 $name = trim($name);
1212 $address = trim(
2270 sub trim { global() subroutine
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dbt1-pvt.c154 * getting back enabled. The same concerns the temperature trim and
176 static inline void pvt_set_trim(struct pvt_hwmon *pvt, u32 trim) in pvt_set_trim() argument
180 trim = FIELD_PREP(PVT_CTRL_TRIM_MASK, trim); in pvt_set_trim()
184 trim | old); in pvt_set_trim()
244 * Lock the interface mutex to serialize trim, timeouts and alarm in pvt_soft_isr()
648 u32 trim; in pvt_write_trim() local
652 * Serialize trim update, since a part of the register is changed and in pvt_write_trim()
659 trim = pvt_calc_trim(val); in pvt_write_trim()
660 pvt_set_trim(pvt, trim); in pvt_write_trim()
1008 u32 trim, temp; pvt_init_iface() local
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dbt1-pvt.c130 * getting back enabled. The same concerns the temperature trim and
152 static inline void pvt_set_trim(struct pvt_hwmon *pvt, u32 trim) in pvt_set_trim() argument
156 trim = FIELD_PREP(PVT_CTRL_TRIM_MASK, trim); in pvt_set_trim()
160 trim | old); in pvt_set_trim()
220 * Lock the interface mutex to serialize trim, timeouts and alarm in pvt_soft_isr()
624 u32 trim; in pvt_write_trim() local
628 * Serialize trim update, since a part of the register is changed and in pvt_write_trim()
635 trim = pvt_calc_trim(val); in pvt_write_trim()
636 pvt_set_trim(pvt, trim); in pvt_write_trim()
975 u32 trim, temp; pvt_init_iface() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dumem_dmabuf.c52 unsigned long trim = cur + sg_dma_len(sg) - end; in ib_umem_dmabuf_map_pages() local
55 umem_dmabuf->last_sg_trim = trim; in ib_umem_dmabuf_map_pages()
56 sg_dma_len(sg) -= trim; in ib_umem_dmabuf_map_pages()
/kernel/linux/linux-6.6/drivers/scsi/qla2xxx/
H A Dqla_mid.c1189 static void qla_trim_buf(struct qla_qpair *qp, u16 trim) in qla_trim_buf() argument
1194 if (!trim) in qla_trim_buf()
1197 for (i = 0; i < trim; i++) { in qla_trim_buf()
1201 "QP id(%d): trim active buf[%d]. Remain %d bufs\n", in qla_trim_buf()
1218 qp->id, trim, qp->buf_pool.num_alloc); in qla_trim_buf()
1223 u32 trim; in __qla_adjust_buf() local
1232 trim = qp->buf_pool.num_alloc - qp->buf_pool.max_used; in __qla_adjust_buf()
1233 trim = (trim * 10) / 100; in __qla_adjust_buf()
1234 trim in __qla_adjust_buf()
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dtwl6040.h27 int twl6040_get_trim_value(struct snd_soc_component *component, enum twl6040_trim trim);
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dtwl6040.h27 int twl6040_get_trim_value(struct snd_soc_component *component, enum twl6040_trim trim);
/kernel/linux/linux-5.10/drivers/phy/socionext/
H A Dphy-uniphier-usb3hs.c145 struct uniphier_u3hsphy_trim_param trim; in uniphier_u3hsphy_update_config() local
149 ret = uniphier_u3hsphy_get_nvparams(priv, &trim); in uniphier_u3hsphy_update_config()
158 if (!ret && trim_param_is_valid(&trim)) { in uniphier_u3hsphy_update_config()
159 priv->data->trim_func(priv, pconfig, &trim); in uniphier_u3hsphy_update_config()
/kernel/linux/linux-6.6/drivers/phy/socionext/
H A Dphy-uniphier-usb3hs.c145 struct uniphier_u3hsphy_trim_param trim; in uniphier_u3hsphy_update_config() local
149 ret = uniphier_u3hsphy_get_nvparams(priv, &trim); in uniphier_u3hsphy_update_config()
158 if (!ret && trim_param_is_valid(&trim)) { in uniphier_u3hsphy_update_config()
159 priv->data->trim_func(priv, pconfig, &trim); in uniphier_u3hsphy_update_config()
/kernel/linux/linux-5.10/net/core/
H A Dskmsg.c264 int trim = msg->sg.size - len; in sk_msg_trim() local
267 if (trim <= 0) { in sk_msg_trim()
268 WARN_ON(trim < 0); in sk_msg_trim()
275 trim >= msg->sg.data[i].length) { in sk_msg_trim()
276 trim -= msg->sg.data[i].length; in sk_msg_trim()
279 if (!trim) in sk_msg_trim()
283 msg->sg.data[i].length -= trim; in sk_msg_trim()
284 sk_mem_uncharge(sk, trim); in sk_msg_trim()
292 /* If we trim data a full sg elem before curr pointer update in sk_msg_trim()
359 /* Revert iov_iter updates, msg will need to use 'trim' late in sk_msg_zerocopy_from_iter()
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dskmsg.c265 int trim = msg->sg.size - len; in sk_msg_trim() local
268 if (trim <= 0) { in sk_msg_trim()
269 WARN_ON(trim < 0); in sk_msg_trim()
276 trim >= msg->sg.data[i].length) { in sk_msg_trim()
277 trim -= msg->sg.data[i].length; in sk_msg_trim()
280 if (!trim) in sk_msg_trim()
284 msg->sg.data[i].length -= trim; in sk_msg_trim()
285 sk_mem_uncharge(sk, trim); in sk_msg_trim()
293 /* If we trim data a full sg elem before curr pointer update in sk_msg_trim()
359 /* Revert iov_iter updates, msg will need to use 'trim' late in sk_msg_zerocopy_from_iter()
[all...]
/kernel/linux/linux-5.10/net/sunrpc/
H A Dxdr.c1441 * that it's possible that we'll trim less than that amount if the xdr_buf is
1448 unsigned int trim = len; in xdr_buf_trim() local
1451 cur = min_t(size_t, buf->tail[0].iov_len, trim); in xdr_buf_trim()
1453 trim -= cur; in xdr_buf_trim()
1454 if (!trim) in xdr_buf_trim()
1459 cur = min_t(unsigned int, buf->page_len, trim); in xdr_buf_trim()
1461 trim -= cur; in xdr_buf_trim()
1462 if (!trim) in xdr_buf_trim()
1467 cur = min_t(size_t, buf->head[0].iov_len, trim); in xdr_buf_trim()
1469 trim in xdr_buf_trim()
[all...]
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dsdhci-pci-arasan.c190 u8 drv_type, u8 itap, u8 trim, u8 clk) in arasan_phy_set()
226 ret = arasan_phy_write(host, trim, DLL_TRIM); in arasan_phy_set()
189 arasan_phy_set(struct sdhci_host *host, u8 mode, u8 otap, u8 drv_type, u8 itap, u8 trim, u8 clk) arasan_phy_set() argument
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Dsdhci-pci-arasan.c190 u8 drv_type, u8 itap, u8 trim, u8 clk) in arasan_phy_set()
226 ret = arasan_phy_write(host, trim, DLL_TRIM); in arasan_phy_set()
189 arasan_phy_set(struct sdhci_host *host, u8 mode, u8 otap, u8 drv_type, u8 itap, u8 trim, u8 clk) arasan_phy_set() argument

Completed in 23 milliseconds

123