Searched refs:dat_idx (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.1/drivers/i3c/master/mipi-i3c-hci/ |
D | dat_v1.c | 54 unsigned int dat_idx; in hci_dat_v1_init() local 73 for (dat_idx = 0; dat_idx < hci->DAT_entries; dat_idx++) { in hci_dat_v1_init() 74 dat_w0_write(dat_idx, 0); in hci_dat_v1_init() 75 dat_w1_write(dat_idx, 0); in hci_dat_v1_init() 89 unsigned int dat_idx; in hci_dat_v1_alloc_entry() local 91 dat_idx = find_first_zero_bit(hci->DAT_data, hci->DAT_entries); in hci_dat_v1_alloc_entry() 92 if (dat_idx >= hci->DAT_entries) in hci_dat_v1_alloc_entry() 94 __set_bit(dat_idx, hci->DAT_data); in hci_dat_v1_alloc_entry() 97 dat_w0_write(dat_idx, DAT_0_SIR_REJECT | DAT_0_MR_REJECT); in hci_dat_v1_alloc_entry() 99 return dat_idx; in hci_dat_v1_alloc_entry() [all …]
|
D | cmd_v1.c | 176 unsigned int dat_idx = 0; in hci_cmd_v1_prep_ccc() local 191 dat_idx = ret; in hci_cmd_v1_prep_ccc() 202 CMD_I0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_ccc() 212 CMD_R0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_ccc() 227 unsigned int dat_idx = dev_data->dat_idx; in hci_cmd_v1_prep_i3c_xfer() local 240 CMD_I0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i3c_xfer() 249 CMD_R0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i3c_xfer() 262 unsigned int dat_idx = dev_data->dat_idx; in hci_cmd_v1_prep_i2c_xfer() local 275 CMD_I0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i2c_xfer() 284 CMD_R0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i2c_xfer() [all …]
|
D | dat.h | 22 void (*free_entry)(struct i3c_hci *hci, unsigned int dat_idx); 23 void (*set_dynamic_addr)(struct i3c_hci *hci, unsigned int dat_idx, u8 addr); 24 void (*set_static_addr)(struct i3c_hci *hci, unsigned int dat_idx, u8 addr); 25 void (*set_flags)(struct i3c_hci *hci, unsigned int dat_idx, u32 w0, u32 w1); 26 void (*clear_flags)(struct i3c_hci *hci, unsigned int dat_idx, u32 w0, u32 w1);
|
D | core.c | 396 dev_data->dat_idx = ret; in i3c_hci_attach_i3c_dev() 411 mipi_i3c_hci_dat_v1.set_dynamic_addr(hci, dev_data->dat_idx, in i3c_hci_reattach_i3c_dev() 426 mipi_i3c_hci_dat_v1.free_entry(hci, dev_data->dat_idx); in i3c_hci_detach_i3c_dev() 451 dev_data->dat_idx = ret; in i3c_hci_attach_i2c_dev() 467 mipi_i3c_hci_dat_v1.free_entry(hci, dev_data->dat_idx); in i3c_hci_detach_i2c_dev() 478 unsigned int dat_idx = dev_data->dat_idx; in i3c_hci_request_ibi() local 481 mipi_i3c_hci_dat_v1.set_flags(hci, dat_idx, DAT_0_IBI_PAYLOAD, 0); in i3c_hci_request_ibi() 483 mipi_i3c_hci_dat_v1.clear_flags(hci, dat_idx, DAT_0_IBI_PAYLOAD, 0); in i3c_hci_request_ibi() 501 mipi_i3c_hci_dat_v1.clear_flags(hci, dev_data->dat_idx, DAT_0_SIR_REJECT, 0); in i3c_hci_enable_ibi() 511 mipi_i3c_hci_dat_v1.set_flags(hci, dev_data->dat_idx, DAT_0_SIR_REJECT, 0); in i3c_hci_disable_ibi()
|
D | hci.h | 130 int dat_idx; member
|