Home
last modified time | relevance | path

Searched refs:ccc (Results 1 – 5 of 5) sorted by relevance

/drivers/i3c/master/mipi-i3c-hci/
Dcore.c192 struct i3c_ccc_cmd *ccc) in i3c_hci_send_ccc_cmd() argument
197 bool prefixed = raw && !!(ccc->id & I3C_CCC_DIRECT); in i3c_hci_send_ccc_cmd()
198 unsigned int nxfers = ccc->ndests + prefixed; in i3c_hci_send_ccc_cmd()
203 ccc->id, ccc->rnw, ccc->ndests, ccc->dests[0].payload.len); in i3c_hci_send_ccc_cmd()
214 ccc->id, true); in i3c_hci_send_ccc_cmd()
219 xfer[i].data = ccc->dests[i].payload.data; in i3c_hci_send_ccc_cmd()
220 xfer[i].data_len = ccc->dests[i].payload.len; in i3c_hci_send_ccc_cmd()
221 xfer[i].rnw = ccc->rnw; in i3c_hci_send_ccc_cmd()
222 ret = hci->cmd->prep_ccc(hci, &xfer[i], ccc->dests[i].addr, in i3c_hci_send_ccc_cmd()
223 ccc->id, raw); in i3c_hci_send_ccc_cmd()
[all …]
/drivers/i3c/master/
Ddw-i3c-master.c662 struct i3c_ccc_cmd *ccc) in dw_i3c_ccc_set() argument
668 if (ccc->id & I3C_CCC_DIRECT) { in dw_i3c_ccc_set()
669 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_set()
679 cmd->tx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_set()
680 cmd->tx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_set()
682 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_set()
687 COMMAND_PORT_CMD(ccc->id) | in dw_i3c_ccc_set()
697 ccc->err = I3C_ERROR_M2; in dw_i3c_ccc_set()
704 static int dw_i3c_ccc_get(struct dw_i3c_master *master, struct i3c_ccc_cmd *ccc) in dw_i3c_ccc_get() argument
710 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_get()
[all …]
Dsvc-i3c-master.c1099 struct i3c_ccc_cmd *ccc) in svc_i3c_master_send_bdcast_ccc_cmd() argument
1101 unsigned int xfer_len = ccc->dests[0].payload.len + 1; in svc_i3c_master_send_bdcast_ccc_cmd()
1117 buf[0] = ccc->id; in svc_i3c_master_send_bdcast_ccc_cmd()
1118 memcpy(&buf[1], ccc->dests[0].payload.data, ccc->dests[0].payload.len); in svc_i3c_master_send_bdcast_ccc_cmd()
1123 cmd->addr = ccc->dests[0].addr; in svc_i3c_master_send_bdcast_ccc_cmd()
1124 cmd->rnw = ccc->rnw; in svc_i3c_master_send_bdcast_ccc_cmd()
1145 struct i3c_ccc_cmd *ccc) in svc_i3c_master_send_direct_ccc_cmd() argument
1147 unsigned int xfer_len = ccc->dests[0].payload.len; in svc_i3c_master_send_direct_ccc_cmd()
1148 unsigned int read_len = ccc->rnw ? xfer_len : 0; in svc_i3c_master_send_direct_ccc_cmd()
1164 cmd->out = &ccc->id; in svc_i3c_master_send_direct_ccc_cmd()
[all …]
/drivers/power/supply/
Daxp20x_battery.c618 int ccc = info.constant_charge_current_max_ua; in axp20x_power_probe() local
626 axp20x_batt->max_ccc = ccc; in axp20x_power_probe()
628 if (ccc <= 0 || axp20x_set_constant_charge_current(axp20x_batt, in axp20x_power_probe()
629 ccc)) { in axp20x_power_probe()
632 ccc = 300000; in axp20x_power_probe()
633 axp20x_batt->max_ccc = ccc; in axp20x_power_probe()
634 axp20x_set_constant_charge_current(axp20x_batt, ccc); in axp20x_power_probe()
/drivers/pci/pcie/
Daspm.c252 u16 reg16, ccc, parent_old_ccc, child_old_ccc[8]; in pcie_aspm_configure_common_clock() local
291 ccc = same_clock ? PCI_EXP_LNKCTL_CCC : 0; in pcie_aspm_configure_common_clock()
297 PCI_EXP_LNKCTL_CCC, ccc); in pcie_aspm_configure_common_clock()
302 PCI_EXP_LNKCTL_CCC, ccc); in pcie_aspm_configure_common_clock()