/linux-6.12.1/drivers/scsi/arm/ |
D | fas216.c | 144 static inline unsigned char fas216_readb(FAS216_Info *info, unsigned int reg) in fas216_readb() argument 146 unsigned int off = reg << info->scsi.io_shift; in fas216_readb() 147 return readb(info->scsi.io_base + off); in fas216_readb() 150 static inline void fas216_writeb(FAS216_Info *info, unsigned int reg, unsigned int val) in fas216_writeb() argument 152 unsigned int off = reg << info->scsi.io_shift; in fas216_writeb() 153 writeb(val, info->scsi.io_base + off); in fas216_writeb() 156 static void fas216_dumpstate(FAS216_Info *info) in fas216_dumpstate() argument 160 is = fas216_readb(info, REG_IS); in fas216_dumpstate() 161 stat = fas216_readb(info, REG_STAT); in fas216_dumpstate() 162 inst = fas216_readb(info, REG_INST); in fas216_dumpstate() [all …]
|
D | cumana_2.c | 78 FAS216_Info info; member 96 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable() local 97 writeb(ALATCH_ENA_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqenable() 108 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable() local 109 writeb(ALATCH_DIS_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqdisable() 125 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl() local 128 info->terms = 1; in cumanascsi_2_terminator_ctl() 129 writeb(ALATCH_ENA_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl() 131 info->terms = 0; in cumanascsi_2_terminator_ctl() 132 writeb(ALATCH_DIS_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl() [all …]
|
D | powertec.c | 61 FAS216_Info info; member 76 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable() local 77 writeb(POWERTEC_INTR_ENABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqenable() 88 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable() local 89 writeb(POWERTEC_INTR_DISABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqdisable() 105 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl() local 107 info->term_ctl = on_off ? POWERTEC_TERM_ENABLE : 0; in powertecscsi_terminator_ctl() 108 writeb(info->term_ctl, info->base + POWERTEC_TERM_CONTROL); in powertecscsi_terminator_ctl() 118 struct powertec_info *info = dev_id; in powertecscsi_intr() local 120 return fas216_intr(&info->info); in powertecscsi_intr() [all …]
|
/linux-6.12.1/drivers/tty/ |
D | synclink_gt.c | 41 #define DBGDATA(info, buf, size, label) if (debug_level >= DEBUG_LEVEL_DATA) trace_block((info), (b… argument 396 #define slgt_irq_on(info, mask) \ argument 397 wr_reg16((info), SCR, (unsigned short)(rd_reg16((info), SCR) | (mask))) 398 #define slgt_irq_off(info, mask) \ argument 399 wr_reg16((info), SCR, (unsigned short)(rd_reg16((info), SCR) & ~(mask))) 401 static __u8 rd_reg8(struct slgt_info *info, unsigned int addr); 402 static void wr_reg8(struct slgt_info *info, unsigned int addr, __u8 value); 403 static __u16 rd_reg16(struct slgt_info *info, unsigned int addr); 404 static void wr_reg16(struct slgt_info *info, unsigned int addr, __u16 value); 405 static __u32 rd_reg32(struct slgt_info *info, unsigned int addr); [all …]
|
/linux-6.12.1/drivers/gpu/drm/tests/ |
D | drm_format_test.c | 14 const struct drm_format_info *info = NULL; in drm_test_format_block_width_invalid() local 16 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 0); in drm_test_format_block_width_invalid() 17 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_invalid() 18 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_invalid() 23 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444); in drm_test_format_block_width_one_plane() local 25 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_one_plane() 27 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_one_plane() 28 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_one_plane() 29 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_one_plane() 34 const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12); in drm_test_format_block_width_two_plane() local [all …]
|
/linux-6.12.1/drivers/power/supply/ |
D | 88pm860x_charger.c | 116 static int measure_vchg(struct pm860x_charger_info *info, int *data) in measure_vchg() argument 121 ret = pm860x_bulk_read(info->i2c, PM8607_VCHG_MEAS1, 2, buf); in measure_vchg() 129 dev_dbg(info->dev, "%s, vchg: %d mv\n", __func__, *data); in measure_vchg() 134 static void set_vchg_threshold(struct pm860x_charger_info *info, in set_vchg_threshold() argument 144 pm860x_reg_write(info->i2c, PM8607_VCHG_LOWTH, data); in set_vchg_threshold() 145 dev_dbg(info->dev, "VCHG_LOWTH:%dmv, 0x%x\n", min, data); in set_vchg_threshold() 151 pm860x_reg_write(info->i2c, PM8607_VCHG_HIGHTH, data); in set_vchg_threshold() 152 dev_dbg(info->dev, "VCHG_HIGHTH:%dmv, 0x%x\n", max, data); in set_vchg_threshold() 156 static void set_vbatt_threshold(struct pm860x_charger_info *info, in set_vbatt_threshold() argument 166 pm860x_reg_write(info->i2c, PM8607_VBAT_LOWTH, data); in set_vbatt_threshold() [all …]
|
D | axp288_charger.c | 153 static inline int axp288_charger_set_cc(struct axp288_chrg_info *info, int cc) in axp288_charger_set_cc() argument 160 else if (cc > info->max_cc) in axp288_charger_set_cc() 161 cc = info->max_cc; in axp288_charger_set_cc() 167 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc() 171 info->cc = cc; in axp288_charger_set_cc() 176 static inline int axp288_charger_set_cv(struct axp288_chrg_info *info, int cv) in axp288_charger_set_cv() argument 197 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cv() 202 info->cv = cv; in axp288_charger_set_cv() 207 static int axp288_charger_get_vbus_inlmt(struct axp288_chrg_info *info) in axp288_charger_get_vbus_inlmt() argument 211 val = info->backend_control; in axp288_charger_get_vbus_inlmt() [all …]
|
D | 88pm860x_battery.c | 154 static int measure_12bit_voltage(struct pm860x_battery_info *info, in measure_12bit_voltage() argument 160 ret = pm860x_bulk_read(info->i2c, offset, 2, buf); in measure_12bit_voltage() 170 static int measure_vbatt(struct pm860x_battery_info *info, int state, in measure_vbatt() argument 178 ret = measure_12bit_voltage(info, PM8607_VBAT_MEAS1, data); in measure_vbatt() 194 ret = pm860x_bulk_read(info->i2c, PM8607_LDO5, 5, buf); in measure_vbatt() 213 static int measure_current(struct pm860x_battery_info *info, int *data) in measure_current() argument 219 ret = pm860x_bulk_read(info->i2c, PM8607_IBAT_MEAS1, 2, buf); in measure_current() 229 static int set_charger_current(struct pm860x_battery_info *info, int data, in set_charger_current() argument 238 *old = pm860x_reg_read(info->i2c, PM8607_CHG_CTRL2); in set_charger_current() 240 ret = pm860x_set_bits(info->i2c, PM8607_CHG_CTRL2, 0x1f, data); in set_charger_current() [all …]
|
/linux-6.12.1/drivers/usb/common/ |
D | usb-conn-gpio.c | 67 struct usb_conn_info *info; in usb_conn_detect_cable() local 71 info = container_of(to_delayed_work(work), in usb_conn_detect_cable() 75 id = info->id_gpiod ? in usb_conn_detect_cable() 76 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable() 77 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 78 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_conn_detect_cable() 87 dev_dbg(info->dev, "role %s -> %s, gpios: id %d, vbus %d\n", in usb_conn_detect_cable() 88 usb_role_string(info->last_role), usb_role_string(role), id, vbus); in usb_conn_detect_cable() 90 if (!info->initial_detection && info->last_role == role) { in usb_conn_detect_cable() 91 dev_warn(info->dev, "repeated role: %s\n", usb_role_string(role)); in usb_conn_detect_cable() [all …]
|
/linux-6.12.1/drivers/acpi/acpica/ |
D | nseval.c | 42 acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info) in acpi_ns_evaluate() argument 48 if (!info) { in acpi_ns_evaluate() 52 if (!info->node) { in acpi_ns_evaluate() 62 acpi_ns_get_node(info->prefix_node, info->relative_pathname, in acpi_ns_evaluate() 63 ACPI_NS_NO_UPSEARCH, &info->node); in acpi_ns_evaluate() 73 if (acpi_ns_get_type(info->node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) { in acpi_ns_evaluate() 74 info->node = in acpi_ns_evaluate() 76 info->node->object); in acpi_ns_evaluate() 81 info->return_object = NULL; in acpi_ns_evaluate() 82 info->node_flags = info->node->flags; in acpi_ns_evaluate() [all …]
|
/linux-6.12.1/drivers/rtc/ |
D | rtc-s3c.c | 52 void (*irq_handler) (struct s3c_rtc *info, int mask); 53 void (*enable) (struct s3c_rtc *info); 54 void (*disable) (struct s3c_rtc *info); 57 static int s3c_rtc_enable_clk(struct s3c_rtc *info) in s3c_rtc_enable_clk() argument 61 ret = clk_enable(info->rtc_clk); in s3c_rtc_enable_clk() 65 if (info->data->needs_src_clk) { in s3c_rtc_enable_clk() 66 ret = clk_enable(info->rtc_src_clk); in s3c_rtc_enable_clk() 68 clk_disable(info->rtc_clk); in s3c_rtc_enable_clk() 75 static void s3c_rtc_disable_clk(struct s3c_rtc *info) in s3c_rtc_disable_clk() argument 77 if (info->data->needs_src_clk) in s3c_rtc_disable_clk() [all …]
|
/linux-6.12.1/drivers/iio/adc/ |
D | exynos_adc.c | 163 void (*init_hw)(struct exynos_adc *info); 164 void (*exit_hw)(struct exynos_adc *info); 165 void (*clear_irq)(struct exynos_adc *info); 166 void (*start_conv)(struct exynos_adc *info, unsigned long addr); 169 static void exynos_adc_unprepare_clk(struct exynos_adc *info) in exynos_adc_unprepare_clk() argument 171 if (info->data->needs_sclk) in exynos_adc_unprepare_clk() 172 clk_unprepare(info->sclk); in exynos_adc_unprepare_clk() 173 clk_unprepare(info->clk); in exynos_adc_unprepare_clk() 176 static int exynos_adc_prepare_clk(struct exynos_adc *info) in exynos_adc_prepare_clk() argument 180 ret = clk_prepare(info->clk); in exynos_adc_prepare_clk() [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | smbdirect.c | 16 struct smbd_connection *info); 18 struct smbd_connection *info); 20 struct smbd_connection *info, 22 static int allocate_receive_buffers(struct smbd_connection *info, int num_buf); 23 static void destroy_receive_buffers(struct smbd_connection *info); 26 struct smbd_connection *info, struct smbd_response *response); 28 struct smbd_connection *info, 31 struct smbd_connection *info); 34 struct smbd_connection *info, 37 static int smbd_post_send_empty(struct smbd_connection *info); [all …]
|
/linux-6.12.1/drivers/xen/events/ |
D | events_base.c | 177 static bool (*pirq_needs_eoi)(struct irq_info *info); 259 static void set_info_for_irq(unsigned int irq, struct irq_info *info) in set_info_for_irq() argument 262 legacy_info_ptrs[irq] = info; in set_info_for_irq() 264 irq_set_chip_data(irq, info); in set_info_for_irq() 281 static void channels_on_cpu_dec(struct irq_info *info) in channels_on_cpu_dec() argument 283 if (!info->is_accounted) in channels_on_cpu_dec() 286 info->is_accounted = 0; in channels_on_cpu_dec() 288 if (WARN_ON_ONCE(info->cpu >= nr_cpu_ids)) in channels_on_cpu_dec() 291 WARN_ON_ONCE(!atomic_add_unless(&channels_on_cpu[info->cpu], -1 , 0)); in channels_on_cpu_dec() 294 static void channels_on_cpu_inc(struct irq_info *info) in channels_on_cpu_inc() argument [all …]
|
/linux-6.12.1/drivers/bluetooth/ |
D | bluecard_cs.c | 161 struct bluecard_info *info = from_timer(info, t, timer); in bluecard_activity_led_timeout() local 162 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_activity_led_timeout() 164 if (test_bit(CARD_ACTIVITY, &(info->hw_state))) { in bluecard_activity_led_timeout() 166 clear_bit(CARD_ACTIVITY, &(info->hw_state)); in bluecard_activity_led_timeout() 167 mod_timer(&(info->timer), jiffies + HZ / 10); in bluecard_activity_led_timeout() 175 static void bluecard_enable_activity_led(struct bluecard_info *info) in bluecard_enable_activity_led() argument 177 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_enable_activity_led() 180 if (timer_pending(&(info->timer))) in bluecard_enable_activity_led() 183 set_bit(CARD_ACTIVITY, &(info->hw_state)); in bluecard_enable_activity_led() 185 if (test_bit(CARD_HAS_ACTIVITY_LED, &(info->hw_state))) { in bluecard_enable_activity_led() [all …]
|
/linux-6.12.1/drivers/input/misc/ |
D | twl6040-vibra.c | 55 struct vibra_info *info = data; in twl6040_vib_irq_handler() local 56 struct twl6040 *twl6040 = info->twl6040; in twl6040_vib_irq_handler() 61 dev_warn(info->dev, "Left Vibrator overcurrent detected\n"); in twl6040_vib_irq_handler() 66 dev_warn(info->dev, "Right Vibrator overcurrent detected\n"); in twl6040_vib_irq_handler() 74 static void twl6040_vibra_enable(struct vibra_info *info) in twl6040_vibra_enable() argument 76 struct twl6040 *twl6040 = info->twl6040; in twl6040_vibra_enable() 79 ret = regulator_bulk_enable(ARRAY_SIZE(info->supplies), info->supplies); in twl6040_vibra_enable() 81 dev_err(info->dev, "failed to enable regulators %d\n", ret); in twl6040_vibra_enable() 85 twl6040_power(info->twl6040, 1); in twl6040_vibra_enable() 104 info->enabled = true; in twl6040_vibra_enable() [all …]
|
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-pkey.c | 69 static int child(struct shared_info *info) in child() argument 77 ret = wait_parent(&info->child_sync); in child() 85 CHILD_FAIL_IF(pkey1 < 0, &info->child_sync); in child() 91 CHILD_FAIL_IF(pkey2 < 0, &info->child_sync); in child() 94 CHILD_FAIL_IF(pkey3 < 0, &info->child_sync); in child() 96 info->amr1 |= 3ul << pkeyshift(pkey1); in child() 97 info->amr2 |= 3ul << pkeyshift(pkey2); in child() 102 info->invalid_amr = info->amr2 | (~0x0UL & ~info->expected_uamor); in child() 108 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child() 110 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child() [all …]
|
/linux-6.12.1/arch/csky/mm/ |
D | asid.c | 16 #define reserved_asid(info, cpu) *per_cpu_ptr((info)->reserved, cpu) argument 18 #define ASID_MASK(info) (~GENMASK((info)->bits - 1, 0)) argument 19 #define ASID_FIRST_VERSION(info) (1UL << ((info)->bits)) argument 21 #define asid2idx(info, asid) (((asid) & ~ASID_MASK(info)) >> (info)->ctxt_shift) argument 22 #define idx2asid(info, idx) (((idx) << (info)->ctxt_shift) & ~ASID_MASK(info)) argument 24 static void flush_context(struct asid_info *info) in flush_context() argument 30 bitmap_zero(info->map, NUM_CTXT_ASIDS(info)); in flush_context() 33 asid = atomic64_xchg_relaxed(&active_asid(info, i), 0); in flush_context() 42 asid = reserved_asid(info, i); in flush_context() 43 __set_bit(asid2idx(info, asid), info->map); in flush_context() [all …]
|
/linux-6.12.1/drivers/usb/host/ |
D | xen-hcd.c | 105 static inline struct usb_hcd *xenhcd_info_to_hcd(struct xenhcd_info *info) in xenhcd_info_to_hcd() argument 107 return container_of((void *)info, struct usb_hcd, hcd_priv); in xenhcd_info_to_hcd() 110 static void xenhcd_set_error(struct xenhcd_info *info, const char *msg) in xenhcd_set_error() argument 112 info->error = true; in xenhcd_set_error() 117 static inline void xenhcd_timer_action_done(struct xenhcd_info *info, in xenhcd_timer_action_done() argument 120 clear_bit(action, &info->actions); in xenhcd_timer_action_done() 123 static void xenhcd_timer_action(struct xenhcd_info *info, in xenhcd_timer_action() argument 126 if (timer_pending(&info->watchdog) && in xenhcd_timer_action() 127 test_bit(TIMER_SCAN_PENDING_URBS, &info->actions)) in xenhcd_timer_action() 130 if (!test_and_set_bit(action, &info->actions)) { in xenhcd_timer_action() [all …]
|
/linux-6.12.1/net/bridge/netfilter/ |
D | ebt_ip.c | 40 const struct ebt_ip_info *info = par->matchinfo; in ebt_ip_mt() local 49 if ((info->bitmask & EBT_IP_TOS) && in ebt_ip_mt() 50 NF_INVF(info, EBT_IP_TOS, info->tos != ih->tos)) in ebt_ip_mt() 52 if ((info->bitmask & EBT_IP_SOURCE) && in ebt_ip_mt() 53 NF_INVF(info, EBT_IP_SOURCE, in ebt_ip_mt() 54 (ih->saddr & info->smsk) != info->saddr)) in ebt_ip_mt() 56 if ((info->bitmask & EBT_IP_DEST) && in ebt_ip_mt() 57 NF_INVF(info, EBT_IP_DEST, in ebt_ip_mt() 58 (ih->daddr & info->dmsk) != info->daddr)) in ebt_ip_mt() 60 if (info->bitmask & EBT_IP_PROTO) { in ebt_ip_mt() [all …]
|
/linux-6.12.1/arch/s390/kernel/ |
D | sysinfo.c | 82 static void stsi_1_1_1(struct seq_file *m, struct sysinfo_1_1_1 *info) in stsi_1_1_1() argument 87 if (stsi(info, 1, 1, 1)) in stsi_1_1_1() 89 has_var_cap = !!info->model_var_cap[0]; in stsi_1_1_1() 90 EBCASC(info->manufacturer, sizeof(info->manufacturer)); in stsi_1_1_1() 91 EBCASC(info->type, sizeof(info->type)); in stsi_1_1_1() 92 EBCASC(info->model, sizeof(info->model)); in stsi_1_1_1() 93 EBCASC(info->sequence, sizeof(info->sequence)); in stsi_1_1_1() 94 EBCASC(info->plant, sizeof(info->plant)); in stsi_1_1_1() 95 EBCASC(info->model_capacity, sizeof(info->model_capacity)); in stsi_1_1_1() 96 EBCASC(info->model_perm_cap, sizeof(info->model_perm_cap)); in stsi_1_1_1() [all …]
|
/linux-6.12.1/drivers/extcon/ |
D | extcon-ptn5150.c | 72 static void ptn5150_check_state(struct ptn5150_info *info) in ptn5150_check_state() argument 78 ret = regmap_read(info->regmap, PTN5150_REG_CC_STATUS, ®_data); in ptn5150_check_state() 80 dev_err(info->dev, "failed to read CC STATUS %d\n", ret); in ptn5150_check_state() 88 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, false); in ptn5150_check_state() 89 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_check_state() 90 extcon_set_state_sync(info->edev, EXTCON_USB, true); in ptn5150_check_state() 94 extcon_set_state_sync(info->edev, EXTCON_USB, false); in ptn5150_check_state() 97 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_check_state() 99 gpiod_set_value_cansleep(info->vbus_gpiod, 1); in ptn5150_check_state() 101 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, true); in ptn5150_check_state() [all …]
|
D | extcon-max14577.c | 158 static int max14577_muic_set_debounce_time(struct max14577_muic_info *info, in max14577_muic_set_debounce_time() argument 168 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_debounce_time() 173 dev_err(info->dev, "failed to set ADC debounce time\n"); in max14577_muic_set_debounce_time() 178 dev_err(info->dev, "invalid ADC debounce time\n"); in max14577_muic_set_debounce_time() 195 static int max14577_muic_set_path(struct max14577_muic_info *info, in max14577_muic_set_path() argument 202 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path() 206 dev_err(info->dev, "failed to update MUIC register\n"); in max14577_muic_set_path() 215 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path() 219 dev_err(info->dev, "failed to update MUIC register\n"); in max14577_muic_set_path() 228 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path() [all …]
|
D | extcon-max77693.c | 216 static int max77693_muic_set_debounce_time(struct max77693_muic_info *info, in max77693_muic_set_debounce_time() argument 231 ret = regmap_write(info->max77693->regmap_muic, in max77693_muic_set_debounce_time() 235 dev_err(info->dev, "failed to set ADC debounce time\n"); in max77693_muic_set_debounce_time() 240 dev_err(info->dev, "invalid ADC debounce time\n"); in max77693_muic_set_debounce_time() 257 static int max77693_muic_set_path(struct max77693_muic_info *info, in max77693_muic_set_path() argument 268 ret = regmap_update_bits(info->max77693->regmap_muic, in max77693_muic_set_path() 271 dev_err(info->dev, "failed to update MUIC register\n"); in max77693_muic_set_path() 280 ret = regmap_update_bits(info->max77693->regmap_muic, in max77693_muic_set_path() 285 dev_err(info->dev, "failed to update MUIC register\n"); in max77693_muic_set_path() 289 dev_info(info->dev, in max77693_muic_set_path() [all …]
|
D | extcon-usb-gpio.c | 63 struct usb_extcon_info *info = container_of(to_delayed_work(work), in usb_extcon_detect_cable() local 68 id = info->id_gpiod ? in usb_extcon_detect_cable() 69 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_extcon_detect_cable() 70 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 71 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_extcon_detect_cable() 75 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, false); in usb_extcon_detect_cable() 77 extcon_set_state_sync(info->edev, EXTCON_USB, false); in usb_extcon_detect_cable() 80 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, true); in usb_extcon_detect_cable() 83 extcon_set_state_sync(info->edev, EXTCON_USB, true); in usb_extcon_detect_cable() 89 struct usb_extcon_info *info = dev_id; in usb_irq_handler() local [all …]
|