Searched refs:dat_idx (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/i3c/master/mipi-i3c-hci/ |
H A D | dat_v1.c | 54 unsigned int dat_idx; in hci_dat_v1_init() local 74 for (dat_idx = 0; dat_idx < hci->DAT_entries; dat_idx++) { in hci_dat_v1_init() 75 dat_w0_write(dat_idx, 0); in hci_dat_v1_init() 76 dat_w1_write(dat_idx, 0); in hci_dat_v1_init() 91 unsigned int dat_idx; in hci_dat_v1_alloc_entry() local 99 dat_idx = find_first_zero_bit(hci->DAT_data, hci->DAT_entries); in hci_dat_v1_alloc_entry() 100 if (dat_idx >= hci->DAT_entries) in hci_dat_v1_alloc_entry() 102 __set_bit(dat_idx, hci->DAT_data); in hci_dat_v1_alloc_entry() 105 dat_w0_write(dat_idx, DAT_0_SIR_REJECT | DAT_0_MR_REJECT); in hci_dat_v1_alloc_entry() 107 return dat_idx; in hci_dat_v1_alloc_entry() [all …]
|
H A D | cmd_v1.c | 174 unsigned int dat_idx = 0; in hci_cmd_v1_prep_ccc() local 189 dat_idx = ret; in hci_cmd_v1_prep_ccc() 200 CMD_I0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_ccc() 210 CMD_R0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_ccc() 225 unsigned int dat_idx = dev_data->dat_idx; in hci_cmd_v1_prep_i3c_xfer() local 238 CMD_I0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i3c_xfer() 247 CMD_R0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i3c_xfer() 260 unsigned int dat_idx = dev_data->dat_idx; in hci_cmd_v1_prep_i2c_xfer() local 273 CMD_I0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i2c_xfer() 282 CMD_R0_DEV_INDEX(dat_idx) | in hci_cmd_v1_prep_i2c_xfer() [all …]
|
H A 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);
|
H A D | core.c | 442 dev_data->dat_idx = ret; in i3c_hci_attach_i3c_dev() 457 mipi_i3c_hci_dat_v1.set_dynamic_addr(hci, dev_data->dat_idx, in i3c_hci_reattach_i3c_dev() 472 mipi_i3c_hci_dat_v1.free_entry(hci, dev_data->dat_idx); in i3c_hci_detach_i3c_dev() 497 dev_data->dat_idx = ret; in i3c_hci_attach_i2c_dev() 513 mipi_i3c_hci_dat_v1.free_entry(hci, dev_data->dat_idx); in i3c_hci_detach_i2c_dev() 524 unsigned int dat_idx = dev_data->dat_idx; in i3c_hci_request_ibi() local 527 mipi_i3c_hci_dat_v1.set_flags(hci, dat_idx, DAT_0_IBI_PAYLOAD, 0); in i3c_hci_request_ibi() 529 mipi_i3c_hci_dat_v1.clear_flags(hci, dat_idx, DAT_0_IBI_PAYLOAD, 0); in i3c_hci_request_ibi() 547 mipi_i3c_hci_dat_v1.clear_flags(hci, dev_data->dat_idx, DAT_0_SIR_REJECT, 0); in i3c_hci_enable_ibi() 557 mipi_i3c_hci_dat_v1.set_flags(hci, dev_data->dat_idx, DAT_0_SIR_REJECT, 0); in i3c_hci_disable_ibi()
|
H A D | hci.h | 136 int dat_idx; member
|