/drivers/scsi/ |
D | hpsa.c | 238 static int hpsa_add_sas_host(struct ctlr_info *h); 239 static void hpsa_delete_sas_host(struct ctlr_info *h); 244 *hpsa_find_device_by_sas_rphy(struct ctlr_info *h, 257 static int hpsa_passthru_ioctl(struct ctlr_info *h, 259 static int hpsa_big_passthru_ioctl(struct ctlr_info *h, 267 static void cmd_free(struct ctlr_info *h, struct CommandList *c); 268 static struct CommandList *cmd_alloc(struct ctlr_info *h); 269 static void cmd_tagged_free(struct ctlr_info *h, struct CommandList *c); 270 static struct CommandList *cmd_tagged_alloc(struct ctlr_info *h, 272 static int fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, [all …]
|
D | hpsa.h | 31 void (*submit_command)(struct ctlr_info *h, 33 void (*set_intr_mask)(struct ctlr_info *h, unsigned long val); 34 bool (*intr_pending)(struct ctlr_info *h); 35 unsigned long (*command_completed)(struct ctlr_info *h, u8 q); 420 static void SA5_submit_command(struct ctlr_info *h, in SA5_submit_command() argument 423 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); in SA5_submit_command() 424 (void) readl(h->vaddr + SA5_SCRATCHPAD_OFFSET); in SA5_submit_command() 427 static void SA5_submit_command_no_read(struct ctlr_info *h, in SA5_submit_command_no_read() argument 430 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); in SA5_submit_command_no_read() 433 static void SA5_submit_command_ioaccel2(struct ctlr_info *h, in SA5_submit_command_ioaccel2() argument [all …]
|
/drivers/media/dvb-core/ |
D | dvb_net.c | 316 static int dvb_net_ule_new_ts_cell(struct dvb_net_ule_handle *h) in dvb_net_ule_new_ts_cell() argument 323 memcpy(ule_where, h->ts, TS_SZ); in dvb_net_ule_new_ts_cell() 335 if ((h->ts[0] != TS_SYNC) || (h->ts[1] & TS_TEI) || in dvb_net_ule_new_ts_cell() 336 ((h->ts[3] & TS_SC) != 0)) { in dvb_net_ule_new_ts_cell() 338 h->priv->ts_count, h->ts[0], in dvb_net_ule_new_ts_cell() 339 (h->ts[1] & TS_TEI) >> 7, in dvb_net_ule_new_ts_cell() 340 (h->ts[3] & TS_SC) >> 6); in dvb_net_ule_new_ts_cell() 343 if (h->priv->ule_skb) { in dvb_net_ule_new_ts_cell() 344 dev_kfree_skb(h->priv->ule_skb); in dvb_net_ule_new_ts_cell() 346 h->dev->stats.rx_errors++; in dvb_net_ule_new_ts_cell() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | vpstate.c | 42 nvbios_vpstate_parse(struct nvkm_bios *b, struct nvbios_vpstate_header *h) in nvbios_vpstate_parse() argument 44 if (!h) in nvbios_vpstate_parse() 47 h->offset = nvbios_vpstate_offset(b); in nvbios_vpstate_parse() 48 if (!h->offset) in nvbios_vpstate_parse() 51 h->version = nvbios_rd08(b, h->offset); in nvbios_vpstate_parse() 52 switch (h->version) { in nvbios_vpstate_parse() 54 h->hlen = nvbios_rd08(b, h->offset + 0x1); in nvbios_vpstate_parse() 55 h->elen = nvbios_rd08(b, h->offset + 0x2); in nvbios_vpstate_parse() 56 h->slen = nvbios_rd08(b, h->offset + 0x3); in nvbios_vpstate_parse() 57 h->scount = nvbios_rd08(b, h->offset + 0x4); in nvbios_vpstate_parse() [all …]
|
/drivers/media/pci/zoran/ |
D | videocodec.c | 39 struct codec_list *h = codeclist_top; in videocodec_attach() local 55 if (!h) { in videocodec_attach() 60 while (h) { in videocodec_attach() 63 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach() 71 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach() 81 a = h->list; in videocodec_attach() 83 h->list = ptr; in videocodec_attach() 90 h->codec->name); in videocodec_attach() [all …]
|
/drivers/regulator/ |
D | irq_helpers.c | 51 struct regulator_irq *h; in regulator_notifier_isr_work() local 58 h = container_of(work, struct regulator_irq, in regulator_notifier_isr_work() 60 d = &h->desc; in regulator_notifier_isr_work() 61 rid = &h->rdata; in regulator_notifier_isr_work() 65 if (d->fatal_cnt && h->retry_cnt > d->fatal_cnt) { in regulator_notifier_isr_work() 90 h->retry_cnt++; in regulator_notifier_isr_work() 112 h->retry_cnt++; in regulator_notifier_isr_work() 140 h->retry_cnt = 0; in regulator_notifier_isr_work() 143 enable_irq(h->irq); in regulator_notifier_isr_work() 149 mod_delayed_work(system_wq, &h->isr_work, in regulator_notifier_isr_work() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_dcbnl.c | 9 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getets() local 14 if (h->kinfo.dcb_ops->ieee_getets) in hns3_dcbnl_ieee_getets() 15 return h->kinfo.dcb_ops->ieee_getets(h, ets); in hns3_dcbnl_ieee_getets() 22 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setets() local 27 if (h->kinfo.dcb_ops->ieee_setets) in hns3_dcbnl_ieee_setets() 28 return h->kinfo.dcb_ops->ieee_setets(h, ets); in hns3_dcbnl_ieee_setets() 35 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getpfc() local 40 if (h->kinfo.dcb_ops->ieee_getpfc) in hns3_dcbnl_ieee_getpfc() 41 return h->kinfo.dcb_ops->ieee_getpfc(h, pfc); in hns3_dcbnl_ieee_getpfc() 48 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setpfc() local [all …]
|
D | hns3_ethtool.c | 84 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_setup() local 85 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_lp_setup() 88 if (!h->ae_algo->ops->set_loopback || in hns3_lp_setup() 89 !h->ae_algo->ops->set_promisc_mode) in hns3_lp_setup() 98 ret = h->ae_algo->ops->set_loopback(h, loop, en); in hns3_lp_setup() 109 h->ae_algo->ops->set_promisc_mode(h, true, true); in hns3_lp_setup() 112 hns3_request_update_promisc_mode(h); in hns3_lp_setup() 119 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_up() local 122 ret = hns3_nic_reset_all_ring(h); in hns3_lp_up() 207 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring() local [all …]
|
/drivers/acpi/ |
D | acpi_configfs.c | 79 struct acpi_table_header *h = get_header(cfg); in acpi_table_aml_read() local 81 if (IS_ERR(h)) in acpi_table_aml_read() 82 return PTR_ERR(h); in acpi_table_aml_read() 85 memcpy(data, h, h->length); in acpi_table_aml_read() 87 return h->length; in acpi_table_aml_read() 101 struct acpi_table_header *h = get_header(cfg); in acpi_table_signature_show() local 103 if (IS_ERR(h)) in acpi_table_signature_show() 104 return PTR_ERR(h); in acpi_table_signature_show() 106 return sysfs_emit(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->signature); in acpi_table_signature_show() 111 struct acpi_table_header *h = get_header(cfg); in acpi_table_length_show() local [all …]
|
/drivers/clk/qcom/ |
D | clk-hfpll.c | 22 struct clk_hfpll *h = to_clk_hfpll(hw); in __clk_hfpll_init_once() local 23 struct hfpll_data const *hd = h->d; in __clk_hfpll_init_once() 24 struct regmap *regmap = h->clkr.regmap; in __clk_hfpll_init_once() 26 if (likely(h->init_done)) in __clk_hfpll_init_once() 50 h->init_done = true; in __clk_hfpll_init_once() 55 struct clk_hfpll *h = to_clk_hfpll(hw); in __clk_hfpll_enable() local 56 struct hfpll_data const *hd = h->d; in __clk_hfpll_enable() 57 struct regmap *regmap = h->clkr.regmap; in __clk_hfpll_enable() 94 struct clk_hfpll *h = to_clk_hfpll(hw); in clk_hfpll_enable() local 95 struct hfpll_data const *hd = h->d; in clk_hfpll_enable() [all …]
|
/drivers/scsi/device_handler/ |
D | scsi_dh_rdac.c | 229 struct rdac_dh_data *h; member 301 lun_table[qdata->h->lun] = 0x81; in rdac_failover_get() 362 static int get_lun_info(struct scsi_device *sdev, struct rdac_dh_data *h, in get_lun_info() argument 366 struct c8_inquiry *inqp = &h->inq.c8; in get_lun_info() 375 h->lun = inqp->lun[7]; /* Uses only the last byte */ in get_lun_info() 388 static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h) in check_ownership() argument 392 struct c9_inquiry *inqp = &h->inq.c9; in check_ownership() 394 h->state = RDAC_STATE_ACTIVE; in check_ownership() 399 h->mode = RDAC_MODE_IOSHIP; /* LUN in IOSHIP mode */ in check_ownership() 401 h->mode = RDAC_MODE_AVT; /* LUN in AVT mode */ in check_ownership() [all …]
|
D | scsi_dh_hp_sw.c | 43 static int tur_done(struct scsi_device *sdev, struct hp_sw_dh_data *h, in tur_done() argument 59 h->path_state = HP_SW_PATH_PASSIVE; in tur_done() 81 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument 97 ret = tur_done(sdev, h, &sshdr); in hp_sw_tur() 105 h->path_state = HP_SW_PATH_ACTIVE; in hp_sw_tur() 120 static int hp_sw_start_stop(struct hp_sw_dh_data *h) in hp_sw_start_stop() argument 124 struct scsi_device *sdev = h->sdev; in hp_sw_start_stop() 170 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_prep_fn() local 172 if (h->path_state != HP_SW_PATH_ACTIVE) { in hp_sw_prep_fn() 194 struct hp_sw_dh_data *h = sdev->handler_data; in hp_sw_activate() local [all …]
|
D | scsi_dh_alua.c | 326 static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h, in alua_check_vpd() argument 364 spin_lock(&h->pg_lock); in alua_check_vpd() 365 old_pg = rcu_dereference_protected(h->pg, lockdep_is_held(&h->pg_lock)); in alua_check_vpd() 368 if (h->pg) { in alua_check_vpd() 370 list_del_rcu(&h->node); in alua_check_vpd() 373 rcu_assign_pointer(h->pg, pg); in alua_check_vpd() 379 list_add_rcu(&h->node, &pg->dh_list); in alua_check_vpd() 382 alua_rtpg_queue(rcu_dereference_protected(h->pg, in alua_check_vpd() 383 lockdep_is_held(&h->pg_lock)), in alua_check_vpd() 385 spin_unlock(&h->pg_lock); in alua_check_vpd() [all …]
|
/drivers/media/i2c/ |
D | saa6752hs.c | 309 struct saa6752hs_state *h) in saa6752hs_set_bitrate() argument 311 struct saa6752hs_mpeg_params *params = &h->params; in saa6752hs_set_bitrate() 360 struct saa6752hs_state *h = in saa6752hs_try_ctrl() local 367 h->video_bitrate_peak->val < h->video_bitrate->val) in saa6752hs_try_ctrl() 368 h->video_bitrate_peak->val = h->video_bitrate->val; in saa6752hs_try_ctrl() 376 struct saa6752hs_state *h = in saa6752hs_s_ctrl() local 378 struct saa6752hs_mpeg_params *params = &h->params; in saa6752hs_s_ctrl() 413 params->vi_bitrate = h->video_bitrate->val / 1000; in saa6752hs_s_ctrl() 414 params->vi_bitrate_peak = h->video_bitrate_peak->val / 1000; in saa6752hs_s_ctrl() 415 v4l2_ctrl_activate(h->video_bitrate_peak, in saa6752hs_s_ctrl() [all …]
|
/drivers/gpu/drm/vboxvideo/ |
D | vbox_hgsmi.c | 50 struct hgsmi_buffer_header *h; in hgsmi_buffer_alloc() local 55 total_size = size + sizeof(*h) + sizeof(*t); in hgsmi_buffer_alloc() 56 h = gen_pool_dma_alloc(guest_pool, total_size, &offset); in hgsmi_buffer_alloc() 57 if (!h) in hgsmi_buffer_alloc() 60 t = (struct hgsmi_buffer_tail *)((u8 *)h + sizeof(*h) + size); in hgsmi_buffer_alloc() 62 h->flags = HGSMI_BUFFER_HEADER_F_SEQ_SINGLE; in hgsmi_buffer_alloc() 63 h->data_size = size; in hgsmi_buffer_alloc() 64 h->channel = channel; in hgsmi_buffer_alloc() 65 h->channel_info = channel_info; in hgsmi_buffer_alloc() 66 memset(&h->u.header_data, 0, sizeof(h->u.header_data)); in hgsmi_buffer_alloc() [all …]
|
/drivers/gpu/drm/i915/gvt/ |
D | firmware.c | 74 struct gvt_firmware_header *h; in expose_firmware_sysfs() local 80 size = sizeof(*h) + info->mmio_size + info->cfg_space_size; in expose_firmware_sysfs() 85 h = firmware; in expose_firmware_sysfs() 87 h->magic = VGT_MAGIC; in expose_firmware_sysfs() 88 h->version = FIRMWARE_VERSION; in expose_firmware_sysfs() 89 h->cfg_space_size = info->cfg_space_size; in expose_firmware_sysfs() 90 h->cfg_space_offset = offsetof(struct gvt_firmware_header, data); in expose_firmware_sysfs() 91 h->mmio_size = info->mmio_size; in expose_firmware_sysfs() 92 h->mmio_offset = h->cfg_space_offset + h->cfg_space_size; in expose_firmware_sysfs() 94 p = firmware + h->cfg_space_offset; in expose_firmware_sysfs() [all …]
|
/drivers/scsi/aic7xxx/ |
D | Makefile | 42 clean-files := aic7xxx_seq.h aic7xxx_reg.h aic7xxx_reg_print.c 43 clean-files += aic79xx_seq.h aic79xx_reg.h aic79xx_reg_print.c 47 $(addprefix $(obj)/,$(aic7xxx-y)): $(obj)/aic7xxx_seq.h $(obj)/aic7xxx_reg.h 48 $(addprefix $(obj)/,$(aic79xx-y)): $(obj)/aic79xx_seq.h $(obj)/aic79xx_reg.h 50 aic7xxx-gen-$(CONFIG_AIC7XXX_BUILD_FIRMWARE) := $(obj)/aic7xxx_reg.h 54 -p $(obj)/aic7xxx_reg_print.c -i aic7xxx_osm.h 57 $(obj)/aic7xxx_seq.h: $(src)/aic7xxx.seq $(src)/aic7xxx.reg $(obj)/aicasm/aicasm 58 $(obj)/aicasm/aicasm -I$(srctree)/$(src) -r $(obj)/aic7xxx_reg.h \ 59 $(aicasm-7xxx-opts-y) -o $(obj)/aic7xxx_seq.h \ 62 $(aic7xxx-gen-y): $(objtree)/$(obj)/aic7xxx_seq.h [all …]
|
/drivers/gpu/drm/i915/selftests/ |
D | lib_sw_fence.c | 95 struct heap_fence *h = container_of(fence, typeof(*h), fence); in heap_fence_notify() local 102 heap_fence_put(&h->fence); in heap_fence_notify() 110 struct heap_fence *h; in heap_fence_create() local 112 h = kmalloc(sizeof(*h), gfp); in heap_fence_create() 113 if (!h) in heap_fence_create() 116 i915_sw_fence_init(&h->fence, heap_fence_notify); in heap_fence_create() 117 refcount_set(&h->ref.refcount, 2); in heap_fence_create() 119 return &h->fence; in heap_fence_create() 124 struct heap_fence *h = container_of(ref, typeof(*h), ref); in heap_fence_release() local 126 i915_sw_fence_fini(&h->fence); in heap_fence_release() [all …]
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 42 struct hnae_handle *h; in hns_nic_get_link() local 44 h = priv->ae_handle; in hns_nic_get_link() 53 if (h->dev && h->dev->ops && h->dev->ops->get_status) in hns_nic_get_link() 54 link_stat = link_stat && h->dev->ops->get_status(h); in hns_nic_get_link() 117 struct hnae_handle *h; in hns_nic_get_link_ksettings() local 127 h = priv->ae_handle; in hns_nic_get_link_ksettings() 128 if (!h->dev || !h->dev->ops || !h->dev->ops->get_info) in hns_nic_get_link_ksettings() 131 ret = h->dev->ops->get_info(h, NULL, &speed, &duplex); in hns_nic_get_link_ksettings() 159 supported |= h->if_support; in hns_nic_get_link_ksettings() 160 if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_get_link_ksettings() [all …]
|
D | hns_enet.c | 953 static int is_valid_clean_head(struct hnae_ring *ring, int h) in is_valid_clean_head() argument 958 if (unlikely(h > ring->desc_num)) in is_valid_clean_head() 963 assert(u != c && h != c); /* must be checked before call this func */ in is_valid_clean_head() 965 return u > c ? (h > c && h <= u) : (h > c || h <= u); in is_valid_clean_head() 1115 struct hnae_handle *h = priv->ae_handle; in hns_nic_adjust_link() local 1124 if (h->dev->ops->need_adjust_link(h, ndev->phydev->speed, in hns_nic_adjust_link() 1132 h->dev->ops->adjust_link(h, ndev->phydev->speed, in hns_nic_adjust_link() 1138 state = state && h->dev->ops->get_status(h); in hns_nic_adjust_link() 1159 int hns_nic_init_phy(struct net_device *ndev, struct hnae_handle *h) in hns_nic_init_phy() argument 1162 struct phy_device *phy_dev = h->phy_dev; in hns_nic_init_phy() [all …]
|
/drivers/gpu/drm/radeon/ |
D | Makefile | 7 …h r100_reg_safe.h r200_reg_safe.h rv515_reg_safe.h r300_reg_safe.h r420_reg_safe.h rs600_reg_safe.… 12 $(obj)/%_reg_safe.h: $(src)/reg_srcs/% $(obj)/mkregtable FORCE 15 $(obj)/r100.o: $(obj)/r100_reg_safe.h $(obj)/rn50_reg_safe.h 17 $(obj)/r200.o: $(obj)/r200_reg_safe.h 19 $(obj)/rv515.o: $(obj)/rv515_reg_safe.h 21 $(obj)/r300.o: $(obj)/r300_reg_safe.h 23 $(obj)/r420.o: $(obj)/r420_reg_safe.h 25 $(obj)/rs600.o: $(obj)/rs600_reg_safe.h 27 $(obj)/r600_cs.o: $(obj)/r600_reg_safe.h 29 $(obj)/evergreen_cs.o: $(obj)/evergreen_reg_safe.h $(obj)/cayman_reg_safe.h
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_osdep.h | 39 #define i40e_allocate_dma_mem(h, m, unused, s, a) \ argument 40 i40e_allocate_dma_mem_d(h, m, s, a) 41 #define i40e_free_dma_mem(h, m) i40e_free_dma_mem_d(h, m) argument 48 #define i40e_allocate_virt_mem(h, m, s) i40e_allocate_virt_mem_d(h, m, s) argument 49 #define i40e_free_virt_mem(h, m) i40e_free_virt_mem_d(h, m) argument 51 #define i40e_debug(h, m, s, ...) \ argument 53 if (((m) & (h)->debug_mask)) \ 55 (h)->bus.bus_id, (h)->bus.device, \ 56 (h)->bus.func, ##__VA_ARGS__); \
|
/drivers/char/ipmi/ |
D | ipmi_si_hotmod.c | 104 struct ipmi_plat_data *h) in parse_hotmod_str() argument 110 h->iftype = IPMI_PLAT_IF_SI; in parse_hotmod_str() 119 h->type = ival; in parse_hotmod_str() 124 h->space = ival; in parse_hotmod_str() 131 rv = kstrtoul(curr, 0, &h->addr); in parse_hotmod_str() 149 rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing); in parse_hotmod_str() 154 rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize); in parse_hotmod_str() 159 rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift); in parse_hotmod_str() 164 rv = check_hotmod_int_op(curr, o, "irq", &h->irq); in parse_hotmod_str() 169 rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr); in parse_hotmod_str() [all …]
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_osdep.h | 36 #define iavf_allocate_dma_mem(h, m, unused, s, a) \ argument 37 iavf_allocate_dma_mem_d(h, m, s, a) 38 #define iavf_free_dma_mem(h, m) iavf_free_dma_mem_d(h, m) argument 44 #define iavf_allocate_virt_mem(h, m, s) iavf_allocate_virt_mem_d(h, m, s) argument 45 #define iavf_free_virt_mem(h, m) iavf_free_virt_mem_d(h, m) argument 47 #define iavf_debug(h, m, s, ...) \ argument 49 if (((m) & (h)->debug_mask)) \ 51 (h)->bus.bus_id, (h)->bus.device, \ 52 (h)->bus.func, ##__VA_ARGS__); \
|
/drivers/sh/intc/ |
D | access.c | 75 static unsigned long test_8(unsigned long addr, unsigned long h, in test_8() argument 79 return intc_get_field_from_handle(__raw_readb(ptr), h); in test_8() 82 static unsigned long test_16(unsigned long addr, unsigned long h, in test_16() argument 86 return intc_get_field_from_handle(__raw_readw(ptr), h); in test_16() 89 static unsigned long test_32(unsigned long addr, unsigned long h, in test_32() argument 93 return intc_get_field_from_handle(__raw_readl(ptr), h); in test_32() 96 static unsigned long write_8(unsigned long addr, unsigned long h, in write_8() argument 100 __raw_writeb(intc_set_field_from_handle(0, data, h), ptr); in write_8() 105 static unsigned long write_16(unsigned long addr, unsigned long h, in write_16() argument 109 __raw_writew(intc_set_field_from_handle(0, data, h), ptr); in write_16() [all …]
|