Defined in 2 files as a function:
- drivers/pinctrl/mediatek/pinctrl-mtk-common.c, line 474 (as a function)
- drivers/pinctrl/mediatek/pinctrl-paris.c, line 383 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pctrl_dt_node_to_map_func() -> mtk_pctrl_is_function_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pctl | 4096-ptr_max |
| PARAM_VALUE | 0 | pctl->devdata | 4096-ptr_max |
| PARAM_VALUE | 0 | pctl->devdata->npins | 1-u32max |
| PARAM_VALUE | 1 | pin_num | 0-16777215 |
| PARAM_VALUE | 2 | fnum | 0-15 |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| CAPPED_DATA | 1 | pin_num | 1 |
| DATA_SOURCE | 0 | pctl | $0 |
| DATA_SOURCE | 1 | pin_num | $1 |
| DATA_SOURCE | 2 | fnum | $2 |
| CONSTRAINT | 1 | pin_num | <2367 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | pin_num | unit_array_size |
| UNITS | 2 | fnum | unit_array_size |
drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pmx_set_mux() -> mtk_pctrl_is_function_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pctl | 4096-ptr_max |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| DATA_SOURCE | 2 | fnum | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | pin_num | unit_array_size |
drivers/pinctrl/mediatek/pinctrl-paris.c mtk_pctrl_dt_node_to_map_func() -> mtk_pctrl_is_function_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pctl | 4096-ptr_max |
| PARAM_VALUE | 0 | pctl->soc | 4096-ptr_max |
| PARAM_VALUE | 0 | pctl->soc->npins | 1-u32max |
| PARAM_VALUE | 1 | pin_num | 0-16777215 |
| PARAM_VALUE | 2 | fnum | 0-15 |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| CAPPED_DATA | 1 | pin_num | 1 |
| DATA_SOURCE | 0 | pctl | $0 |
| DATA_SOURCE | 1 | pin_num | $1 |
| DATA_SOURCE | 2 | fnum | $2 |
| CONSTRAINT | 1 | pin_num | <2363 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | pin_num | unit_array_size |
| UNITS | 2 | fnum | unit_array_size |
drivers/pinctrl/mediatek/pinctrl-paris.c mtk_pmx_set_mux() -> mtk_pctrl_is_function_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pctl | 4096-ptr_max |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| BUF_SIZE | 0 | pctl | 24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,168,176,192,208,216-s32max |
| DATA_SOURCE | 2 | fnum | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | pin_num | unit_array_size |