Searched refs:spmi_controller (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/spmi/ |
A D | hisi-spmi-controller.c | 75 struct spmi_controller *controller; 240 spmi_controller->base + chnl_ofst + in spmi_write_cmd() 249 spmi_controller->base, slave_id, in spmi_write_cmd() 265 struct spmi_controller_dev *spmi_controller; in spmi_controller_probe() local 266 struct spmi_controller *ctrl; in spmi_controller_probe() 276 spmi_controller->controller = ctrl; in spmi_controller_probe() 287 if (!spmi_controller->base) { in spmi_controller_probe() 294 &spmi_controller->channel); in spmi_controller_probe() 301 platform_set_drvdata(pdev, spmi_controller); in spmi_controller_probe() 304 spin_lock_init(&spmi_controller->lock); in spmi_controller_probe() [all …]
|
A D | spmi.c | 36 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() 64 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add() 94 spmi_cmd(struct spmi_controller *ctrl, u8 opcode, u8 sid) in spmi_cmd() 106 static inline int spmi_read_cmd(struct spmi_controller *ctrl, u8 opcode, in spmi_read_cmd() 120 static inline int spmi_write_cmd(struct spmi_controller *ctrl, u8 opcode, in spmi_write_cmd() 396 struct spmi_device *spmi_device_alloc(struct spmi_controller *ctrl) in spmi_device_alloc() 423 struct spmi_controller *spmi_controller_alloc(struct device *parent, in spmi_controller_alloc() 426 struct spmi_controller *ctrl; in spmi_controller_alloc() 459 static void of_spmi_register_devices(struct spmi_controller *ctrl) in of_spmi_register_devices() 518 int spmi_controller_add(struct spmi_controller *ctrl) in spmi_controller_add() [all …]
|
A D | spmi-pmic-arb.c | 157 struct spmi_controller *spmic; 191 int (*non_data_cmd)(struct spmi_controller *ctrl, u8 opc, u8 sid); 242 static int pmic_arb_wait_for_done(struct spmi_controller *ctrl, in pmic_arb_wait_for_done() 292 pmic_arb_non_data_cmd_v1(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v1() 317 pmic_arb_non_data_cmd_v2(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v2() 323 static int pmic_arb_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_cmd() 336 static int pmic_arb_read_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid, in pmic_arb_read_cmd() 389 static int pmic_arb_write_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid, in pmic_arb_write_cmd() 1158 struct spmi_controller *ctrl; in spmi_pmic_arb_probe() 1329 struct spmi_controller *ctrl = platform_get_drvdata(pdev); in spmi_pmic_arb_remove()
|
/linux/include/linux/ |
A D | spmi.h | 41 struct spmi_controller *ctrl; 60 struct spmi_device *spmi_device_alloc(struct spmi_controller *ctrl); 80 struct spmi_controller { struct 83 int (*cmd)(struct spmi_controller *ctrl, u8 opcode, u8 sid); argument 84 int (*read_cmd)(struct spmi_controller *ctrl, u8 opcode, argument 86 int (*write_cmd)(struct spmi_controller *ctrl, u8 opcode, argument 92 return container_of(d, struct spmi_controller, dev); in to_spmi_controller() 107 struct spmi_controller *spmi_controller_alloc(struct device *parent, 114 static inline void spmi_controller_put(struct spmi_controller *ctrl) in spmi_controller_put() 120 int spmi_controller_add(struct spmi_controller *ctrl); [all …]
|
Completed in 13 milliseconds